|
|
@@ -6,6 +6,7 @@ import (
|
|
|
"git.sxidc.com/go-framework/baize/convenient/entity_crud"
|
|
|
"git.sxidc.com/go-framework/baize/framework/binding"
|
|
|
"git.sxidc.com/go-framework/baize/framework/core/api"
|
|
|
+ "git.sxidc.com/go-framework/baize/framework/core/api/request"
|
|
|
"git.sxidc.com/go-framework/baize/framework/core/application"
|
|
|
"git.sxidc.com/go-framework/baize/framework/core/domain"
|
|
|
"git.sxidc.com/go-framework/baize/framework/core/domain/entity"
|
|
|
@@ -39,7 +40,7 @@ func (svc *ClassService) v1(appInstance *application.App) {
|
|
|
QueryQueryParams: &class.GetClassesQueryParams{},
|
|
|
GetByIDQueryParams: &class.GetClassByIDQueryParams{},
|
|
|
}, entity_crud.WithCreateCallbacks(&entity_crud.CreateCallbacks{
|
|
|
- After: func(c *api.Context, e entity.Entity, prepared map[string]any, i *infrastructure.Infrastructure, tx database.Executor) error {
|
|
|
+ After: func(c *api.Context, params request.Params, e entity.Entity, prepared map[string]any, i *infrastructure.Infrastructure, tx database.Executor) error {
|
|
|
go func() {
|
|
|
classEntity, err := domain.ToConcrete[*class.Entity](e)
|
|
|
if err != nil {
|