Files
iotlcm/admin-svr/server/api/agent/v1/tapigroup.go
T

56 lines
1.9 KiB
Go

package v1
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
"github.com/gogf/gf/v2/frame/g"
)
type TApiGroupListReq struct {
g.Meta `path:"/tApiGroup/list" method:"get" tags:"open-api-group" summary:"list open api groups" x-check-permission:"cpm:agent:tApiGroup:list,cpm:gen:tApiGroup:list"`
model.TApiGroupListParam
}
type TApiGroupListRes struct {
response.PageResult
Items []*model.TApiGroupListModel `json:"items" dc:"items"`
}
type TApiGroupExportReq struct {
g.Meta `path:"/tApiGroup/export" method:"post" tags:"open-api-group" summary:"export open api groups" x-check-permission:"cpm:agent:tApiGroup:export,cpm:gen:tApiGroup:export"`
model.TApiGroupListParam
}
type TApiGroupExportRes struct{}
type TApiGroupViewReq struct {
g.Meta `path:"/tApiGroup/view" method:"get" tags:"open-api-group" summary:"view open api group" x-check-permission:"cpm:agent:tApiGroup:view,cpm:gen:tApiGroup:view"`
model.TApiGroupViewParam
}
type TApiGroupViewRes struct {
*model.TApiGroupViewModel
}
type TApiGroupEditReq struct {
g.Meta `path:"/tApiGroup/edit" method:"post" tags:"open-api-group" summary:"edit open api group" x-check-permission:"cpm:agent:tApiGroup:edit,cpm:gen:tApiGroup:edit"`
model.TApiGroupEditParam
}
type TApiGroupEditRes struct{}
type TApiGroupDeleteReq struct {
g.Meta `path:"/tApiGroup/delete" method:"post" tags:"open-api-group" summary:"delete open api group" x-check-permission:"cpm:agent:tApiGroup:delete,cpm:gen:tApiGroup:delete"`
model.TApiGroupDeleteParam
}
type TApiGroupDeleteRes struct{}
type TApiGroupStatusReq struct {
g.Meta `path:"/tApiGroup/status" method:"post" tags:"open-api-group" summary:"update open api group status" x-check-permission:"cpm:agent:tApiGroup:status,cpm:gen:tApiGroup:status"`
model.TApiGroupStatusParam
}
type TApiGroupStatusRes struct{}