Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { CreateAttribute(ctx context.Context, req domain.Attribute) (int64, error) // SearchAttributeFieldsByModelUid 查询模型下的所有字段信息,内部使用 SearchAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error) // SearchAttributeFieldsBySecure 查询全有的安全字段 SearchAttributeFieldsBySecure(ctx context.Context, modelUids []string) (map[string][]string, error) // ListAttributes 查询模型下的所有字段详情信息,前端使用 ListAttributes(ctx context.Context, modelUID string) ([]domain.Attribute, int64, error) DeleteAttribute(ctx context.Context, id int64) (int64, error) // CustomAttributeFieldColumns 自定义展示字段、以及排序 CustomAttributeFieldColumns(ctx *gin.Context, modelUid string, customField []string) (int64, error) ListAttributePipeline(ctx *gin.Context, modelUid string) ([]domain.AttributePipeline, error) // CreateDefaultAttribute 创建新模型,创建默认字段信息 CreateDefaultAttribute(ctx context.Context, modelUid string) (int64, error) CreateAttributeGroup(ctx context.Context, req domain.AttributeGroup) (int64, error) ListAttributeGroup(ctx context.Context, modelUid string) ([]domain.AttributeGroup, error) ListAttributeGroupByIds(ctx context.Context, ids []int64) ([]domain.AttributeGroup, error) }
func NewService ¶
func NewService(repo repository.AttributeRepository, groupRepo repository.AttributeGroupRepository) Service
Click to show internal directories.
Click to hide internal directories.