repository

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeGroupRepository

type AttributeGroupRepository interface {
	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 NewAttributeGroupRepository

func NewAttributeGroupRepository(dao dao.AttributeGroupDAO) AttributeGroupRepository

type AttributeRepository

type AttributeRepository interface {
	CreateAttribute(ctx context.Context, req domain.Attribute) (int64, error)
	SearchAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)
	SearchAllAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)
	SearchAttributeFieldsBySecure(ctx context.Context, modelUid []string) (map[string][]string, error)
	ListAttributes(ctx context.Context, modelUID string) ([]domain.Attribute, error)
	Total(ctx context.Context, modelUID string) (int64, error)

	DeleteAttribute(ctx context.Context, id int64) (int64, error)

	CustomAttributeFieldColumns(ctx *gin.Context, modelUid string, customField []string) (int64, error)
	CustomAttributeFieldColumnsReverse(ctx *gin.Context, modelUid string, customField []string) (int64, error)

	ListAttributePipeline(ctx context.Context, modelUid string) ([]domain.AttributePipeline, error)
	UpdateAttribute(ctx context.Context, req domain.Attribute) (int64, error)

	DetailAttribute(ctx context.Context, id int64) (domain.Attribute, error)
}

func NewAttributeRepository

func NewAttributeRepository(dao dao.AttributeDAO) AttributeRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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