service

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 6 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL