api.go 694 B

123456789101112131415161718192021222324
  1. package permission_group
  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: &CreatePermissionGroupJsonBody{},
  16. DeleteQueryParams: &DeletePermissionGroupQueryParams{},
  17. UpdateJsonBody: &UpdatePermissionGroupJsonBody{},
  18. QueryQueryParams: &GetPermissionGroupsQueryParams{},
  19. GetByIDQueryParams: &GetPermissionGroupQueryParams{},
  20. })
  21. }