common.go 782 B

12345678910111213141516171819202122232425262728293031323334
  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. Keyword string `json:"keyword" form:"keyword"` //关键字
  7. }
  8. // GetById Find by id structure
  9. type GetById struct {
  10. ID int `json:"id" form:"id"` // 主键ID
  11. }
  12. // Create Date Find by id structure
  13. type CreateDateReply struct {
  14. CreateDate string `json:"create_date"` // 日期
  15. }
  16. func (r *GetById) Uint() uint {
  17. return uint(r.ID)
  18. }
  19. type IdsReq struct {
  20. Ids []int `json:"ids" form:"ids"`
  21. }
  22. // GetAuthorityId Get role by id structure
  23. type GetAuthorityId struct {
  24. AuthorityId uint `json:"authorityId" form:"authorityId"` // 角色ID
  25. }
  26. type Empty struct{}