request_params.go 776 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package identity
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateIdentityJsonBody struct {
  7. Name string `json:"name" binding:"required" assign:"toField:Name"`
  8. }
  9. DeleteIdentityQueryParams struct {
  10. request.IDQueryParam
  11. }
  12. UpdateIdentityJsonBody struct {
  13. request.IDJsonBody
  14. Name string `json:"name" assign:"toField:Name"`
  15. }
  16. GetIdentitiesQueryParams struct {
  17. request.BaseQueryParams
  18. Name string `form:"name" assign:"toField:Name"`
  19. }
  20. GetIdentityByIDQueryParams struct {
  21. request.IDQueryParam
  22. }
  23. UpdateStudentsOfIdentityJsonBody struct {
  24. request.IDJsonBody
  25. StudentIDs []string `json:"studentIds" assign:"toField:StudentIDs"`
  26. }
  27. QueryStudentsOfIdentityQueryParams struct {
  28. request.BaseQueryWithIDParams
  29. }
  30. )