data

package
v0.0.0-...-1018313 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 8 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewCarStorage

func NewCarStorage(entCli *ent.Client) biz.CarStorage

func NewDeptStorage

func NewDeptStorage(entCli *ent.Client) biz.DeptStorage

func NewGreeterRepo

func NewGreeterRepo(data *Data, logger log.Logger) biz.GreeterRepo

NewGreeterRepo .

func NewUserStorage

func NewUserStorage(entCli *ent.Client) biz.UserStorage

Types

type CarStorage

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

func (*CarStorage) Create

func (this *CarStorage) Create(ctx context.Context, data map[string]interface{}) (id int, outErr error)

func (*CarStorage) Query

func (this *CarStorage) Query(ctx context.Context, query *common.QueryRequest) (records []*curd.Car, count int, err error)

type Data

type Data struct {
}

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error)

NewData .

type DeptStorage

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

func (*DeptStorage) Create

func (this *DeptStorage) Create(ctx context.Context, data map[string]interface{}) (id int, outErr error)

func (*DeptStorage) Query

func (this *DeptStorage) Query(ctx context.Context, query *common.QueryRequest) (records []*curd.Dept, count int, err error)

type UserStorage

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

func (*UserStorage) Create

func (this *UserStorage) Create(ctx context.Context, data map[string]interface{}) (id int, outErr error)

func (*UserStorage) Query

func (this *UserStorage) Query(ctx context.Context, query *common.QueryRequest) (records []*curd.User, count int, err error)

Jump to

Keyboard shortcuts

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