This commit is contained in:
scheibling
2025-04-08 19:24:11 +02:00
commit 30fb57f4f7
92 changed files with 6196 additions and 0 deletions

20
setting.go Normal file
View File

@@ -0,0 +1,20 @@
package woogo
import (
"git.cloudyne.io/go/woogo/entity"
jsoniter "github.com/json-iterator/go"
)
type settingService service
func (s settingService) Groups() (items []entity.SettingGroup, err error) {
resp, err := s.httpClient.R().Get("/settings")
if err != nil {
return
}
if resp.IsSuccess() {
err = jsoniter.Unmarshal(resp.Body(), &items)
}
return
}