diff --git a/container/DefaultInformationManager.go b/container/DefaultInformationManager.go index a6c328e..4fe9aff 100644 --- a/container/DefaultInformationManager.go +++ b/container/DefaultInformationManager.go @@ -7,7 +7,7 @@ import ( ) // 默认组件信息管理器 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/InformationManager +// @Implement LAPP_ACURA_MOM_BACKEND/container/InformationManager type DefaultInformationManager struct { // 组件信息映射: map[组件接口]组件信息 informationMapping map[Interface]ComponentInformation @@ -20,7 +20,7 @@ func NewDefaultInformationManager() *DefaultInformationManager { return &DefaultInformationManager{make(map[Interface]ComponentInformation, 100)} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/InformationManager.RegisterElement +// @Reference LAPP_ACURA_MOM_BACKEND/container/InformationManager.RegisterElement // 异常: // 1.工厂不能为空 // 2.工厂必须是func @@ -44,7 +44,7 @@ func (manager *DefaultInformationManager) RegisterElement(factory interface{}, i manager.informationMapping[elementType] = elementInformation } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/InformationManager.RegisterService +// @Reference LAPP_ACURA_MOM_BACKEND/container/InformationManager.RegisterService // 异常: // 1.工厂不能为空 // 2.工厂必须是func @@ -69,7 +69,7 @@ func (manager *DefaultInformationManager) RegisterService(factory interface{}, i return serviceInformation } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/InformationManager.Item +// @Reference LAPP_ACURA_MOM_BACKEND/container/InformationManager.Item func (manager *DefaultInformationManager) Item(interfaceType Interface) ComponentInformation { if interfaceType == nil { @@ -82,7 +82,7 @@ func (manager *DefaultInformationManager) Item(interfaceType Interface) Componen return nil } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/InformationManager.Items +// @Reference LAPP_ACURA_MOM_BACKEND/container/InformationManager.Items func (manager *DefaultInformationManager) Items() []ComponentInformation { items := make([]ComponentInformation, len(manager.informationMapping)) diff --git a/container/DefaultTransactionHandlerFactory.go b/container/DefaultTransactionHandlerFactory.go index 12b2723..47ba19f 100644 --- a/container/DefaultTransactionHandlerFactory.go +++ b/container/DefaultTransactionHandlerFactory.go @@ -24,7 +24,7 @@ func NewDefaultTransactionHandlerFactory(engine *xorm.Engine) *DefaultTransactio return &DefaultTransactionHandlerFactory{engine} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/TransactionHandlerFactory.Create +// @Reference LAPP_ACURA_MOM_BACKEND/container/TransactionHandlerFactory.Create func (impl *DefaultTransactionHandlerFactory) Create() (TransactionHandler, error) { return NewTransactionHandler(impl.engine.NewSession()) } diff --git a/container/ElementHandler.go b/container/ElementHandler.go index ad635a9..2ae2270 100644 --- a/container/ElementHandler.go +++ b/container/ElementHandler.go @@ -3,7 +3,7 @@ package container // 基本组件句柄 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/ComponentHandler +// @Implement LAPP_ACURA_MOM_BACKEND/container/ComponentHandler type ElementHandler struct { // 组件实例 instance Instance @@ -18,7 +18,7 @@ func NewElementHandler(instance Instance) *ElementHandler { return &ElementHandler{instance} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/ComponentHandler.Instance +// @Reference LAPP_ACURA_MOM_BACKEND/container/ComponentHandler.Instance func (handler *ElementHandler) Instance() Instance { return handler.instance } diff --git a/container/ElementInformation.go b/container/ElementInformation.go index be52105..e9295f7 100644 --- a/container/ElementInformation.go +++ b/container/ElementInformation.go @@ -8,7 +8,7 @@ import ( ) // 基本组件信息 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation +// @Implement LAPP_ACURA_MOM_BACKEND/container/ComponentInformation type ElementInformation struct { // 实例工厂 factory Factory @@ -28,17 +28,17 @@ func NewElementInformation(factory interface{}) *ElementInformation { return &ElementInformation{valueOfFactory, interfaceType} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation.Interface +// @Reference LAPP_ACURA_MOM_BACKEND/container/ComponentInformation.Interface func (info *ElementInformation) Interface() Interface { return info.interfaceType } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation.IsGlobal +// @Reference LAPP_ACURA_MOM_BACKEND/container/ComponentInformation.IsGlobal func (info *ElementInformation) IsGlobal() bool { return false } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation.BuildHandler +// @Reference LAPP_ACURA_MOM_BACKEND/container/ComponentInformation.BuildHandler func (info *ElementInformation) BuildHandler(sessionContext *SessionContext) (ComponentHandler, error) { if sessionContext == nil { diff --git a/container/LogBrokerBuilder.go b/container/LogBrokerBuilder.go index e74e54e..7d0eeda 100644 --- a/container/LogBrokerBuilder.go +++ b/container/LogBrokerBuilder.go @@ -8,7 +8,7 @@ import ( ) // 日志代理创建器 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder +// @Implement LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder type LogBrokerBuilder struct { // 代码文件 codeFile string @@ -40,7 +40,7 @@ func NewLogBrokerBuilder(codeFile string, method string, description string) *Lo return &LogBrokerBuilder{codeFile, method, description} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Check +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Check func (builder *LogBrokerBuilder) Check(methodType Method) error { if methodType == nil { return errors.New(fmt.Sprintf("方法类型不能为空!")) @@ -48,7 +48,7 @@ func (builder *LogBrokerBuilder) Check(methodType Method) error { return nil } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Build +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Build func (builder *LogBrokerBuilder) Build(_ *SessionContext, caller Caller) (Caller, error) { if caller == nil { return nil, errors.New(fmt.Sprintf("调用器不能为空!")) diff --git a/container/NewSessionBrokerBuilder.go b/container/NewSessionBrokerBuilder.go index c008d9b..680974d 100644 --- a/container/NewSessionBrokerBuilder.go +++ b/container/NewSessionBrokerBuilder.go @@ -8,7 +8,7 @@ import ( ) // 新会话(XORM会话)代理创建器 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder +// @Implement LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder type NewSessionBrokerBuilder struct { } @@ -19,7 +19,7 @@ func NewNewSessionBrokerBuilder() *NewSessionBrokerBuilder { return &NewSessionBrokerBuilder{} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Check +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Check func (builder *NewSessionBrokerBuilder) Check(methodType Method) error { if methodType == nil { return errors.New(fmt.Sprintf("方法类型不能为空!")) @@ -39,7 +39,7 @@ func (builder *NewSessionBrokerBuilder) Check(methodType Method) error { return nil } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Build +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Build func (builder *NewSessionBrokerBuilder) Build(sessionContext *SessionContext, caller Caller) (Caller, error) { if sessionContext == nil { return nil, errors.New(fmt.Sprintf("会话上下文不能为空!")) diff --git a/container/NewTransactionBrokerBuilder.go b/container/NewTransactionBrokerBuilder.go index cd82626..1af9a16 100644 --- a/container/NewTransactionBrokerBuilder.go +++ b/container/NewTransactionBrokerBuilder.go @@ -8,7 +8,7 @@ import ( ) // 新事务代理创建器 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder +// @Implement LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder type NewTransactionBrokerBuilder struct { } @@ -19,7 +19,7 @@ func NewNewTransactionBrokerBuilder() *NewTransactionBrokerBuilder { return &NewTransactionBrokerBuilder{} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Check +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Check func (builder *NewTransactionBrokerBuilder) Check(methodType Method) error { if methodType == nil { return errors.New(fmt.Sprintf("方法类型不能为空!")) @@ -39,7 +39,7 @@ func (builder *NewTransactionBrokerBuilder) Check(methodType Method) error { return nil } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Build +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Build func (builder *NewTransactionBrokerBuilder) Build(sessionContext *SessionContext, caller Caller) (Caller, error) { if sessionContext == nil { return nil, errors.New(fmt.Sprintf("会话上下文不能为空!")) diff --git a/container/NoSessionBrokerBuilder.go b/container/NoSessionBrokerBuilder.go index a669600..0f75be1 100644 --- a/container/NoSessionBrokerBuilder.go +++ b/container/NoSessionBrokerBuilder.go @@ -8,7 +8,7 @@ import ( ) // 无会话(XORM会话)代理创建器 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder +// @Implement LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder type NoSessionBrokerBuilder struct { } @@ -19,7 +19,7 @@ func NewNoSessionBrokerBuilder() *NoSessionBrokerBuilder { return &NoSessionBrokerBuilder{} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Check +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Check func (builder *NoSessionBrokerBuilder) Check(methodType Method) error { if methodType == nil { return errors.New(fmt.Sprintf("方法类型不能为空!")) @@ -39,7 +39,7 @@ func (builder *NoSessionBrokerBuilder) Check(methodType Method) error { return nil } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/CallerBrokerBuilder.Build +// @Reference LAPP_ACURA_MOM_BACKEND/container/CallerBrokerBuilder.Build func (builder *NoSessionBrokerBuilder) Build(_ *SessionContext, caller Caller) (Caller, error) { if caller == nil { return nil, errors.New(fmt.Sprintf("调用器不能为空!")) diff --git a/container/ServiceHandler.go b/container/ServiceHandler.go index 4457161..f80e2ba 100644 --- a/container/ServiceHandler.go +++ b/container/ServiceHandler.go @@ -8,9 +8,9 @@ import ( ) // 服务组件句柄 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/ComponentHandler +// @Implement LAPP_ACURA_MOM_BACKEND/container/ComponentHandler type ServiceHandler struct { - // @Inherit LAPP_GAAS_GFrame_BACKEND/container/ElementHandler + // @Inherit LAPP_ACURA_MOM_BACKEND/container/ElementHandler ElementHandler // 方法句柄映射: map[方法名]方法句柄 methodMapping map[string]*ServiceMethodHandler diff --git a/container/ServiceInformation.go b/container/ServiceInformation.go index 5c05286..f8f8973 100644 --- a/container/ServiceInformation.go +++ b/container/ServiceInformation.go @@ -8,9 +8,9 @@ import ( ) // 服务组件信息 -// @Implement LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation +// @Implement LAPP_ACURA_MOM_BACKEND/container/ComponentInformation type ServiceInformation struct { - // @Inherit LAPP_GAAS_GFrame_BACKEND/container/ElementInformation + // @Inherit LAPP_ACURA_MOM_BACKEND/container/ElementInformation ElementInformation // 方法信息映射: map[方法名]方法信息 methodMapping map[string]*ServiceMethodInformation @@ -28,8 +28,8 @@ func NewServiceInformation(factory interface{}) *ServiceInformation { return &ServiceInformation{ElementInformation{valueOfFactory, interfaceType}, make(map[string]*ServiceMethodInformation, 10)} } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/ComponentInformation.BuildHandler -// @Override LAPP_GAAS_GFrame_BACKEND/container/ElementInformation.BuildHandler +// @Reference LAPP_ACURA_MOM_BACKEND/container/ComponentInformation.BuildHandler +// @Override LAPP_ACURA_MOM_BACKEND/container/ElementInformation.BuildHandler func (info *ServiceInformation) BuildHandler(sessionContext *SessionContext) (ComponentHandler, error) { if sessionContext == nil { diff --git a/container/container_test.go b/container/container_test.go index 0ffc420..69e4391 100644 --- a/container/container_test.go +++ b/container/container_test.go @@ -285,7 +285,7 @@ type TransactionHandlerFactoryMock struct { createError error } -// @Reference LAPP_GAAS_GFrame_BACKEND/container/TransactionHandlerFactory.Create +// @Reference LAPP_ACURA_MOM_BACKEND/container/TransactionHandlerFactory.Create func (mock *TransactionHandlerFactoryMock) Create() (TransactionHandler, error) { return mock.handler, mock.createError }