service

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)
	// SearchAllAttributeFieldsByModelUid 查询模型下的所有字段信息,内部使用
	SearchAllAttributeFieldsByModelUid(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)

	UpdateAttribute(ctx context.Context, attribute domain.Attribute) (int64, error)
}

Jump to

Keyboard shortcuts

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