Files
zmkgC/api/v1/system/app_user_menus.go
2025-07-07 20:11:59 +08:00

87 lines
2.9 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: api/v1/system/app_user_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"
)
// AppUserMenusSearchReq 分页请求参数
type AppUserMenusSearchReq struct {
g.Meta `path:"/list" tags:"app用户菜单关联" method:"get" summary:"app用户菜单关联列表"`
UserMenuId string `p:"userMenuId"` //
UserId string `p:"userId" v:"userId@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
}
// AppUserMenusSearchRes 列表返回结果
type AppUserMenusSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.AppUserMenusListRes `json:"list"`
}
// AppUserMenusAddReq 添加操作请求参数
type AppUserMenusAddReq struct {
g.Meta `path:"/add" tags:"app用户菜单关联" method:"post" summary:"app用户菜单关联添加"`
commonApi.Author
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserMenusAddRes 添加操作返回结果
type AppUserMenusAddRes struct {
commonApi.EmptyRes
}
// AppUserMenusEditReq 修改操作请求参数
type AppUserMenusEditReq struct {
g.Meta `path:"/edit" tags:"app用户菜单关联" method:"put" summary:"app用户菜单关联修改"`
commonApi.Author
UserMenuId uint `p:"userMenuId" v:"required#主键ID不能为空"`
UserId int `p:"userId" `
MenuId int `p:"menuId" `
}
// AppUserMenusEditRes 修改操作返回结果
type AppUserMenusEditRes struct {
commonApi.EmptyRes
}
// AppUserMenusGetReq 获取一条数据请求
type AppUserMenusGetReq struct {
g.Meta `path:"/get" tags:"app用户菜单关联" method:"get" summary:"获取app用户菜单关联信息"`
commonApi.Author
UserMenuId uint `p:"userMenuId" v:"required#主键必须"` //通过主键获取
}
// AppUserMenusGetRes 获取一条数据结果
type AppUserMenusGetRes struct {
g.Meta `mime:"application/json"`
*model.AppUserMenusInfoRes
}
// AppUserMenusDeleteReq 删除数据请求
type AppUserMenusDeleteReq struct {
g.Meta `path:"/delete" tags:"app用户菜单关联" method:"delete" summary:"删除app用户菜单关联"`
commonApi.Author
UserMenuIds []uint `p:"userMenuIds" v:"required#主键必须"` //通过主键删除
}
// AppUserMenusDeleteRes 删除数据返回
type AppUserMenusDeleteRes struct {
commonApi.EmptyRes
}