Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeExecutor ¶
type AttributeExecutor interface {
// ExecuteGroups 执行属性分组创建,直接使用 domain.AttributeGroup
ExecuteGroups(ctx context.Context, modelUid string, groups []domain.AttributeGroup) (
[]domain.AttributeGroup, error)
// ExecuteFields 执行字段创建,直接使用 domain.Attribute
ExecuteFields(ctx context.Context, modelUid string, attrs []domain.Attribute) error
}
AttributeExecutor 属性执行器,负责属性分组和字段的创建
func NewAttributeExecutor ¶
func NewAttributeExecutor(attributeSvc attribute.Service) AttributeExecutor
NewAttributeExecutor 创建属性执行器
type ModelExecutor ¶
type ModelExecutor interface {
// Execute 执行模型创建,直接使用 domain.Model
Execute(ctx context.Context, m domain.Model) (int64, error)
}
ModelExecutor 模型执行器,负责模型的创建
func NewModelExecutor ¶
func NewModelExecutor(modelSvc model.Service) ModelExecutor
NewModelExecutor 创建模型执行器
type ModelGroupExecutor ¶
type ModelGroupExecutor interface {
// Execute 执行模型分组创建,直接使用 domain.ModelGroup
Execute(ctx context.Context, groups []domain.ModelGroup) ([]domain.ModelGroup, error)
// Get 查询模型组信息
Get(ctx context.Context, groupName string) (domain.ModelGroup, error)
}
ModelGroupExecutor 模型分组执行器,负责模型分组的创建
func NewModelGroupExecutor ¶
func NewModelGroupExecutor(modelGroupSvc model.MGService) ModelGroupExecutor
NewModelGroupExecutor 创建模型分组执行器
type RelationExecutor ¶
type RelationExecutor interface {
// ExecuteRelationTypes 执行关联类型创建,直接使用 domain.RelationType
ExecuteRelationTypes(ctx context.Context, relationTypes []domain.RelationType) error
// ExecuteModelRelations 执行模型关联关系创建,直接使用 domain.ModelRelation
ExecuteModelRelations(ctx context.Context, modelRelations []domain.ModelRelation) error
}
RelationExecutor 关联执行器,负责关联类型和模型关联的创建
func NewRelationExecutor ¶
func NewRelationExecutor( relationRTSvc relation.RelationTypeService, relationRMSvc relation.RelationModelService, ) RelationExecutor
NewRelationExecutor 创建关联执行器
Click to show internal directories.
Click to hide internal directories.