api.go 627 B

123456789101112131415161718192021222324
  1. package role
  2. import (
  3. "git.sxidc.com/go-framework/baize/convenient/entity_crud"
  4. "git.sxidc.com/go-framework/baize/framework/binding"
  5. )
  6. // Simple Bind参数
  7. type Simple struct {
  8. // schema
  9. Schema string
  10. }
  11. func (simple *Simple) Bind(binder *binding.Binder) {
  12. entity_crud.BindSimple(binder, &entity_crud.Simple[Info]{
  13. Entity: &Entity{},
  14. Schema: simple.Schema,
  15. CreateJsonBody: &CreateRoleJsonBody{},
  16. DeleteQueryParams: &DeleteRoleQueryParams{},
  17. UpdateJsonBody: &UpdateRoleJsonBody{},
  18. QueryQueryParams: &GetRolesQueryParams{},
  19. GetByIDQueryParams: &GetRoleQueryParams{},
  20. })
  21. }