common.go 500 B

12345678910111213141516171819202122232425262728
  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"`
  10. }
  11. // Find by id structure
  12. type GetByIdUnit struct {
  13. Id uint `json:"id" form:"id"`
  14. }
  15. type IdsReq struct {
  16. Ids []int `json:"ids" form:"ids"`
  17. }
  18. // Get role by id structure
  19. type GetAuthorityId struct {
  20. AuthorityId string
  21. }
  22. type Empty struct{}