Documentation
¶
Index ¶
- type BatchOperateReq
- type BatchOperateRes
- type ChangeStatusReq
- type ChangeStatusRes
- type CreateReq
- type CreateRes
- type DeleteReq
- type DeleteRes
- type DetailReq
- type DetailRes
- type InitSyncReq
- type InitSyncRes
- type ListReq
- type ListRes
- type PageReq
- type PageRes
- type PermissionsReq
- type PermissionsRes
- type TreeReq
- type TreeRes
- type UpdateReq
- type UpdateRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchOperateReq ¶ added in v0.2.0
type BatchOperateReq struct {
g.Meta `path:"/batch/operate" method:"post" auth:"true" role:"admin" tags:"model" summary:"模型批量操作接口"`
model.ModelBatchOperateReq
}
模型批量操作接口请求参数
type BatchOperateRes ¶ added in v0.2.0
模型批量操作接口响应参数
type ChangeStatusReq ¶
type ChangeStatusReq struct {
g.Meta `path:"/change/status" method:"post" auth:"true" role:"admin" tags:"model" summary:"更改模型状态接口"`
model.ModelChangeStatusReq
}
更改模型状态接口请求参数
type ChangeStatusRes ¶
更改模型状态接口响应参数
type CreateReq ¶
type CreateReq struct {
g.Meta `path:"/create" method:"post" auth:"true" role:"admin" tags:"model" summary:"新建模型接口"`
model.ModelCreateReq
}
新建模型接口请求参数
type DeleteReq ¶
type DeleteReq struct {
g.Meta `path:"/delete" method:"post" auth:"true" role:"admin" tags:"model" summary:"删除模型接口"`
Id string `json:"id"`
}
删除模型接口请求参数
type DetailReq ¶
type DetailReq struct {
g.Meta `path:"/detail" method:"get" auth:"true" role:"admin" tags:"model" summary:"模型详情接口"`
Id string `json:"id"`
}
模型详情接口请求参数
type DetailRes ¶
type DetailRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.ModelDetailRes
}
模型详情接口响应参数
type InitSyncReq ¶ added in v0.5.0
type InitSyncReq struct {
g.Meta `path:"/init" method:"post" auth:"true" role:"admin" tags:"model" summary:"模型初始化同步接口"`
model.ModelInitSyncReq
}
模型初始化同步接口请求参数
type InitSyncRes ¶ added in v0.5.0
模型初始化同步接口响应参数
type ListReq ¶
type ListReq struct {
g.Meta `path:"/list" method:"get" auth:"true" role:"user,admin" tags:"model" summary:"模型列表接口"`
model.ModelListReq
}
模型列表接口请求参数
type ListRes ¶
type ListRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.ModelListRes
}
模型列表接口响应参数
type PageReq ¶
type PageReq struct {
g.Meta `path:"/page" method:"post" auth:"true" role:"user,admin" tags:"model" summary:"模型分页列表接口"`
model.ModelPageReq
}
模型分页列表接口请求参数
type PageRes ¶
type PageRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.ModelPageRes
}
模型分页列表接口响应参数
type PermissionsReq ¶ added in v1.1.0
type PermissionsReq struct {
g.Meta `path:"/permissions" method:"post" auth:"true" role:"user,admin" tags:"model" summary:"模型权限列表接口"`
model.ModelPermissionsReq
}
模型权限列表接口请求参数
type PermissionsRes ¶ added in v1.1.0
type PermissionsRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.ModelPermissionsRes
}
模型权限列表接口响应参数
type TreeReq ¶ added in v0.5.0
type TreeReq struct {
g.Meta `path:"/tree" method:"get" auth:"true" role:"user,admin" tags:"model" summary:"模型树接口"`
model.ModelTreeReq
}
模型树接口请求参数
type TreeRes ¶ added in v0.5.0
type TreeRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.ModelTreeRes
}
模型树接口响应参数
Click to show internal directories.
Click to hide internal directories.