Files
zmkgC/api/v1/system/app_role_menus.go

87 lines
2.9 KiB
Go
Raw Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:14
// 生成路径: api/v1/system/app_role_menus.go
// 生成人gfast
// desc:app角色绑定菜单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// AppRoleMenusSearchReq 分页请求参数
type AppRoleMenusSearchReq struct {
g.Meta `path:"/list" tags:"app角色绑定菜单" method:"get" summary:"app角色绑定菜单列表"`
Id string `p:"id"` //
RoleId string `p:"roleId" v:"roleId@integer#角色ID需为整数"` //角色ID
MenuId string `p:"menuId" v:"menuId@integer#菜单ID需为整数"` //菜单ID
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
commonApi.PageReq
commonApi.Author
}
// AppRoleMenusSearchRes 列表返回结果
type AppRoleMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppRoleMenusListRes `json:"list"`
}
// AppRoleMenusAddReq 添加操作请求参数
type AppRoleMenusAddReq struct {
g.Meta `path:"/add" tags:"app角色绑定菜单" method:"post" summary:"app角色绑定菜单添加"`
commonApi.Author
RoleId int `p:"roleId" `
MenuId int `p:"menuId" `
}
// AppRoleMenusAddRes 添加操作返回结果
type AppRoleMenusAddRes struct {
commonApi.EmptyRes
}
// AppRoleMenusEditReq 修改操作请求参数
type AppRoleMenusEditReq struct {
g.Meta `path:"/edit" tags:"app角色绑定菜单" method:"put" summary:"app角色绑定菜单修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
RoleId int `p:"roleId" `
MenuId int `p:"menuId" `
}
// AppRoleMenusEditRes 修改操作返回结果
type AppRoleMenusEditRes struct {
commonApi.EmptyRes
}
// AppRoleMenusGetReq 获取一条数据请求
type AppRoleMenusGetReq struct {
g.Meta `path:"/get" tags:"app角色绑定菜单" method:"get" summary:"获取app角色绑定菜单信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` //通过主键获取
}
// AppRoleMenusGetRes 获取一条数据结果
type AppRoleMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppRoleMenusInfoRes
}
// AppRoleMenusDeleteReq 删除数据请求
type AppRoleMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app角色绑定菜单" method:"delete" summary:"删除app角色绑定菜单"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` //通过主键删除
}
// AppRoleMenusDeleteRes 删除数据返回
type AppRoleMenusDeleteRes struct {
commonApi.EmptyRes
}