request_params.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package student
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateStudentJsonBody struct {
  7. Name string `json:"name" binding:"required" assign:"toField:Name"`
  8. }
  9. DeleteStudentQueryParams struct {
  10. request.IDQueryParam
  11. }
  12. UpdateStudentJsonBody struct {
  13. request.IDJsonBody
  14. Name string `json:"name" assign:"toField:Name"`
  15. }
  16. GetStudentsQueryParams struct {
  17. request.BaseQueryParams
  18. Name string `form:"name" assign:"toField:Name"`
  19. }
  20. GetStudentByIDQueryParams struct {
  21. request.IDQueryParam
  22. }
  23. UpdateFamilyOfStudentJsonBody struct {
  24. request.IDJsonBody
  25. FamilyID string `json:"familyId" assign:"toField:FamilyID"`
  26. }
  27. QueryFamilyOfStudentQueryParams struct {
  28. request.IDQueryParam
  29. }
  30. QueryStudentWithFamilyQueryParams struct {
  31. request.BaseQueryParams
  32. Name string `form:"name" assign:"toField:Name"`
  33. }
  34. UpdateIdentitiesOfStudentJsonBody struct {
  35. request.IDJsonBody
  36. IdentityIDs []string `json:"identityIds" assign:"toField:IdentityIDs"`
  37. }
  38. QueryIdentitiesOfStudentQueryParams struct {
  39. request.BaseQueryWithIDParams
  40. }
  41. UpdateHobbiesOfStudentJsonBody struct {
  42. request.IDJsonBody
  43. HobbyIDs []string `json:"hobbyIds" assign:"toField:HobbyIDs"`
  44. }
  45. QueryHobbiesOfStudentQueryParams struct {
  46. request.BaseQueryWithIDParams
  47. }
  48. UpdateClassOfStudentJsonBody struct {
  49. request.IDJsonBody
  50. ClassID string `json:"classId" assign:"toField:ClassID"`
  51. }
  52. QueryClassOfStudentQueryParams struct {
  53. request.BaseQueryWithIDParams
  54. }
  55. QueryStudentWithClassQueryParams struct {
  56. request.BaseQueryParams
  57. Name string `form:"name" assign:"toField:Name"`
  58. }
  59. )