sys_role.go 654 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @desc:角色api
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu<yxh669@qq.com>
  5. * @Date: 2022/3/30 9:16
  6. */
  7. package system
  8. import (
  9. "github.com/gogf/gf/v2/frame/g"
  10. commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
  11. "github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
  12. )
  13. type RoleListReq struct {
  14. g.Meta `path:"/role/list" tags:"角色管理" method:"get" summary:"角色列表"`
  15. RoleName string `p:"roleName"` //参数名称
  16. Status string `p:"status"` //状态
  17. commonApi.PageReq
  18. }
  19. type RoleListRes struct {
  20. g.Meta `mime:"application/json"`
  21. commonApi.ListRes
  22. List []*entity.SysRole `json:"list"`
  23. }