You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
320 B
14 lines
320 B
package admin
|
|
|
|
import (
|
|
model "github.com/HFO4/cloudreve/models"
|
|
"github.com/HFO4/cloudreve/pkg/serializer"
|
|
)
|
|
|
|
// GroupList 获取用户组列表
|
|
func (service *NoParamService) GroupList() serializer.Response {
|
|
var res []model.Group
|
|
model.DB.Model(&model.Group{}).Find(&res)
|
|
return serializer.Response{Data: res}
|
|
}
|