|
@@ -4,6 +4,7 @@ import (
|
|
|
"git.sxidc.com/go-framework/baize/convenient/entity_crud"
|
|
"git.sxidc.com/go-framework/baize/convenient/entity_crud"
|
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/application/domain/identity"
|
|
"git.sxidc.com/go-framework/baize/examples/examples/project/application/domain/identity"
|
|
|
"git.sxidc.com/go-framework/baize/framework/binding"
|
|
"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/application"
|
|
"git.sxidc.com/go-framework/baize/framework/core/application"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -21,7 +22,7 @@ func (svc *IdentityService) Destroy() error {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (svc *IdentityService) v1(appInstance *application.App) {
|
|
func (svc *IdentityService) v1(appInstance *application.App) {
|
|
|
- v1Binder := binding.NewBinder(appInstance.ChooseRouter(application.RouterPrefix, "v1"), appInstance.Infrastructure())
|
|
|
|
|
|
|
+ v1Binder := binding.NewBinder(appInstance.ChooseRouter(api.RouterPrefix, "v1"), appInstance.Infrastructure())
|
|
|
|
|
|
|
|
entity_crud.BindSimple[identity.Info](v1Binder, &entity_crud.Simple[identity.Info]{
|
|
entity_crud.BindSimple[identity.Info](v1Binder, &entity_crud.Simple[identity.Info]{
|
|
|
Entity: &identity.Entity{},
|
|
Entity: &identity.Entity{},
|