调整接口分组
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
|
||||
// ListReq 获取角色列表请求参数
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/role" method:"get" tags:"Role" summary:"(系统、商户门店后台)获取角色列表"`
|
||||
g.Meta `path:"/role" method:"get" tags:"Backend/Role" summary:"(系统、商户门店后台)获取角色列表"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
Status int `json:"status" dc:"状态:1=启用,2=禁用"`
|
||||
@ -20,7 +20,7 @@ type ListRes struct {
|
||||
|
||||
// CreateReq 创建角色请求参数
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/role" method:"post" tags:"Role" summary:"(系统、商户门店后台)创建角色"`
|
||||
g.Meta `path:"/role" method:"post" tags:"Backend/Role" summary:"(系统、商户门店后台)创建角色"`
|
||||
Name string `json:"name" v:"required" dc:"角色名称"`
|
||||
Code string `json:"code" v:"required" dc:"角色编码"`
|
||||
Description string `json:"description" dc:"角色描述"`
|
||||
@ -34,7 +34,7 @@ type CreateRes struct {
|
||||
|
||||
// UpdateReq 更新角色请求参数
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/role" method:"put" tags:"Role" summary:"(系统、商户门店后台)更新角色"`
|
||||
g.Meta `path:"/role" method:"put" tags:"Backend/Role" summary:"(系统、商户门店后台)更新角色"`
|
||||
Id int64 `json:"id" v:"required" dc:"角色ID"`
|
||||
Name string `json:"name" v:"required" dc:"角色名称"`
|
||||
Code string `json:"code" v:"required" dc:"角色编码"`
|
||||
@ -49,7 +49,7 @@ type UpdateRes struct {
|
||||
|
||||
// DeleteReq 删除角色请求参数
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/role/{id}" method:"delete" tags:"Role" summary:"(系统、商户门店后台)删除角色"`
|
||||
g.Meta `path:"/role/{id}" method:"delete" tags:"Backend/Role" summary:"(系统、商户门店后台)删除角色"`
|
||||
Id int64 `json:"id" in:"path" v:"required" dc:"角色ID"`
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ type DeleteRes struct {
|
||||
}
|
||||
|
||||
type BatchDeleteReq struct {
|
||||
g.Meta `path:"/role" method:"delete" tags:"Role" summary:"(系统、商户门店后台)批量删除角色"`
|
||||
g.Meta `path:"/role" method:"delete" tags:"Backend/Role" summary:"(系统、商户门店后台)批量删除角色"`
|
||||
Ids []int `json:"ids" v:"required" dc:"角色ID"`
|
||||
}
|
||||
type BatchDeleteRes struct {
|
||||
|
||||
Reference in New Issue
Block a user