area

package
v0.0.0-...-fb5fdcc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuery

func NewQuery(query *ent.AreaQuery) queryOption

Types

type AreaRepo

type AreaRepo struct {
	// contains filtered or unexported fields
}

func NewAreaRepo

func NewAreaRepo(d *data.Data) *AreaRepo

func (*AreaRepo) Count

func (r *AreaRepo) Count(ctx context.Context, options ...bizarea.Query) int

Count 数量

func (*AreaRepo) FindList

func (r *AreaRepo) FindList(ctx context.Context, options ...bizarea.Query) (list []*bizarea.Area, err error)

FindList 查找数据

func (*AreaRepo) FindOne

func (r *AreaRepo) FindOne(ctx context.Context, options ...bizarea.Query) (*bizarea.Area, error)

FindList 查找数据

func (*AreaRepo) Remove

func (r *AreaRepo) Remove(ctx context.Context, options ...bizarea.Query) error

Remove 移除数据

func (*AreaRepo) ReplaceParentListPrefix

func (r *AreaRepo) ReplaceParentListPrefix(ctx context.Context, oldPrefix, newPrefix string) (int, error)

func (*AreaRepo) Save

func (r *AreaRepo) Save(ctx context.Context, data *bizarea.Area) (*bizarea.Area, error)

FindList 查找数据

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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