data

package
v0.0.0-...-d1760a8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func DiguiMenu

func DiguiMenu(menulist []*model.SysMenu, menu *pb.MenuTree) *pb.MenuTree

func DiguiMenuLabel

func DiguiMenuLabel(menulist *[]model.SysMenu, menu *pb.MenuLabel) *pb.MenuLabel

func NewCasbinRuleRepo

func NewCasbinRuleRepo(data *Data, db *gorm.DB, conf *conf.Casbin, logger log.Logger) biz.CasbinRuleRepo

func NewDB

func NewDB(config *conf.Data, logger log.Logger) *gorm.DB

func NewRedis

func NewRedis(conf *conf.Data) go_redis.UniversalClient

func NewRedisRepo

func NewRedisRepo(data *Data, logger log.Logger) biz.RedisRepo

func NewSysApiRepo

func NewSysApiRepo(data *Data, logger log.Logger) biz.SysApiRepo

func NewSysDeptRepo

func NewSysDeptRepo(data *Data, logger log.Logger) biz.SysDeptRepo

func NewSysDictDataRepo

func NewSysDictDataRepo(data *Data, logger log.Logger) biz.SysDictDatumRepo

func NewSysDictTypeRepo

func NewSysDictTypeRepo(data *Data, logger log.Logger) biz.SysDictTypeRepo

func NewSysMenuRepo

func NewSysMenuRepo(data *Data, logger log.Logger) biz.SysMenuRepo

func NewSysPostRepo

func NewSysPostRepo(data *Data, logger log.Logger) biz.SysPostRepo

func NewSysRoleMenuRepo

func NewSysRoleMenuRepo(data *Data, logger log.Logger) biz.SysRoleMenuRepo

func NewSysRoleRepo

func NewSysRoleRepo(data *Data, logger log.Logger) biz.SysRoleRepo

func NewSysUserRepo

func NewSysUserRepo(data *Data, logger log.Logger) biz.SysUserRepo

NewSysUserRepo .

func NewTransaction

func NewTransaction(d *Data) biz.Transaction

func RecursiveDeptLabel

func RecursiveDeptLabel(deptList []*model.SysDept, dept *pb.DeptLabel) *pb.DeptLabel

Types

type Data

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

Data .

func NewData

func NewData(db *gorm.DB, logger log.Logger, rdb go_redis.UniversalClient) (*Data, func(), error)

NewData .

func (*Data) Query

func (d *Data) Query(ctx context.Context) *query.Query

func (*Data) Transaction

func (d *Data) Transaction(ctx context.Context, fn func(ctx context.Context) error) error

type DeptIdList

type DeptIdList struct {
	DeptId int64 `json:"deptId"`
}
type MenuIdList struct {
	ID int64 `json:"id"`
}

type RedisRepo

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

func (*RedisRepo) DelHashKey

func (r *RedisRepo) DelHashKey(ctx context.Context, key string, field string) error

func (RedisRepo) Get

func (r RedisRepo) Get(ctx context.Context, key string) string

func (*RedisRepo) GetHashAllKeyAndVal

func (r *RedisRepo) GetHashAllKeyAndVal(ctx context.Context, key string) (map[string]string, error)

func (*RedisRepo) GetHashKey

func (r *RedisRepo) GetHashKey(ctx context.Context, key string, field string) (string, error)

func (*RedisRepo) GetHashLen

func (r *RedisRepo) GetHashLen(ctx context.Context, key string) error

func (*RedisRepo) IncrHashKey

func (r *RedisRepo) IncrHashKey(ctx context.Context, key string, field string, value int64) error

func (*RedisRepo) Lock

func (r *RedisRepo) Lock(ctx context.Context, key string, value interface{}, duration time.Duration) (bool, error)

func (RedisRepo) SRem

func (r RedisRepo) SRem(ctx context.Context, key string, members ...interface{}) (int64, error)

func (RedisRepo) Set

func (r RedisRepo) Set(ctx context.Context, key string, value string, expire time.Duration) error

func (*RedisRepo) SetHashKey

func (r *RedisRepo) SetHashKey(ctx context.Context, key string, field string, value interface{}) error

Directories

Path Synopsis
dal

Jump to

Keyboard shortcuts

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