| 12345678910111213141516171819202122232425 |
- package user
- import (
- "git.sxidc.com/go-framework/baize/convenient/entity_crud"
- "git.sxidc.com/go-framework/baize/framework/binding"
- )
- // Simple Bind参数
- type Simple struct {
- // schema
- Schema string
- }
- func (simple *Simple) Bind(binder *binding.Binder) {
- // TODO 定制需要加密的字段逻辑,Name赋值默认值
- entity_crud.BindSimple(binder, &entity_crud.Simple[Info]{
- Entity: &Entity{},
- Schema: simple.Schema,
- CreateJsonBody: &CreateUserJsonBody{},
- DeleteQueryParams: &DeleteUserQueryParams{},
- UpdateJsonBody: &UpdateUserJsonBody{},
- QueryQueryParams: &GetUsersQueryParams{},
- GetByIDQueryParams: &GetUserQueryParams{},
- })
- }
|