You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
600 B

3 years ago
  1. package request
  2. // PageInfo Paging common input parameter structure
  3. type PageInfo struct {
  4. Page int `json:"page" form:"page"` // 页码
  5. PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
  6. }
  7. // GetById Find by id structure
  8. type GetById struct {
  9. ID float64 `json:"id" form:"id"` // 主键ID
  10. }
  11. func (r *GetById) Uint() uint {
  12. return uint(r.ID)
  13. }
  14. type IdsReq struct {
  15. Ids []int `json:"ids" form:"ids"`
  16. }
  17. // GetAuthorityId Get role by id structure
  18. type GetAuthorityId struct {
  19. AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
  20. }
  21. type Empty struct{}