request_params.go 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package class
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateClassJsonBody struct {
  7. Name string `json:"name" binding:"required" assign:"toField:Name"`
  8. StudentNum int `json:"studentNum" binding:"required" assign:"toField:StudentNum"`
  9. }
  10. DeleteClassQueryParams struct {
  11. request.IDQueryParam
  12. }
  13. UpdateClassJsonBody struct {
  14. request.IDJsonBody
  15. Name string `json:"name" assign:"toField:Name"`
  16. StudentNum int `json:"studentNum" assign:"toField:StudentNum"`
  17. }
  18. GetClassesQueryParams struct {
  19. request.BaseQueryParams
  20. Name string `form:"name" assign:"toField:Name"`
  21. StudentNum int `form:"studentNum" assign:"toField:StudentNum"`
  22. }
  23. GetClassByIDQueryParams struct {
  24. request.IDQueryParam
  25. }
  26. UpdateStudentsOfClassJsonBody struct {
  27. request.IDJsonBody
  28. StudentIDs []string `json:"studentIds" assign:"toField:StudentIDs"`
  29. }
  30. QueryStudentsOfClassQueryParams struct {
  31. request.BaseQueryWithIDParams
  32. }
  33. )