params.go 411 B

1234567891011121314151617181920
  1. package admin
  2. type queryParam struct {
  3. Cond string `json:"cond"`
  4. Page int `json:"page"`
  5. Limit int `json:"limit"`
  6. }
  7. type updateParam struct {
  8. Id string `json:"id"`
  9. Name string `json:"name"`
  10. Account string `json:"account"`
  11. Password string `json:"password"`
  12. }
  13. type addParam struct {
  14. Name string `json:"name"`
  15. Account string `json:"account"`
  16. Password string `json:"password"`
  17. }