common.go 514 B

1234567891011121314151617181920212223
  1. package request
  2. // 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. // Find by id structure
  8. type GetById struct {
  9. ID float64 `json:"id" form:"id"` // 主键ID
  10. }
  11. type IdsReq struct {
  12. Ids []int `json:"ids" form:"ids"`
  13. }
  14. // Get role by id structure
  15. type GetAuthorityId struct {
  16. AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
  17. }
  18. type Empty struct{}