request_params.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package family
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateFamilyJsonBody struct {
  7. Father string `json:"father" binding:"required" assign:"toField:Father"`
  8. Mother string `json:"mother" binding:"required" assign:"toField:Mother"`
  9. }
  10. DeleteFamilyQueryParams struct {
  11. request.IDQueryParam
  12. }
  13. UpdateFamilyJsonBody struct {
  14. request.IDJsonBody
  15. Father string `json:"father" assign:"toField:Father"`
  16. Mother string `json:"mother" assign:"toField:Mother"`
  17. }
  18. GetFamiliesQueryParams struct {
  19. request.BaseQueryParams
  20. Father string `form:"father" assign:"toField:Father"`
  21. Mother string `form:"mother" assign:"toField:Mother"`
  22. }
  23. GetFamilyByIDQueryParams struct {
  24. request.IDQueryParam
  25. }
  26. UpdateStudentOfFamilyJsonBody struct {
  27. request.IDJsonBody
  28. StudentID string `json:"studentId" assign:"toField:StudentID"`
  29. }
  30. QueryStudentOfFamilyQueryParams struct {
  31. request.IDQueryParam
  32. }
  33. QueryFamilyWithStudentQueryParams struct {
  34. request.BaseQueryParams
  35. Father string `form:"father" assign:"toField:Father"`
  36. Mother string `form:"mother" assign:"toField:Mother"`
  37. }
  38. )