Documentation ¶
Index ¶
- Variables
- func DiguiMenu(menulist []*model.SysMenu, menu *pb.MenuTree) *pb.MenuTree
- func DiguiMenuLabel(menulist *[]model.SysMenu, menu *pb.MenuLabel) *pb.MenuLabel
- func NewCasbinRuleRepo(data *Data, db *gorm.DB, conf *conf.Casbin, logger log.Logger) biz.CasbinRuleRepo
- func NewDB(config *conf.Data, logger log.Logger) *gorm.DB
- func NewRedis(conf *conf.Data) go_redis.UniversalClient
- func NewRedisRepo(data *Data, logger log.Logger) biz.RedisRepo
- func NewSysApiRepo(data *Data, logger log.Logger) biz.SysApiRepo
- func NewSysDeptRepo(data *Data, logger log.Logger) biz.SysDeptRepo
- func NewSysDictDataRepo(data *Data, logger log.Logger) biz.SysDictDatumRepo
- func NewSysDictTypeRepo(data *Data, logger log.Logger) biz.SysDictTypeRepo
- func NewSysLogRepo(data *Data) biz.SysLogRepo
- func NewSysMenuRepo(data *Data, logger log.Logger) biz.SysMenuRepo
- func NewSysPostRepo(data *Data, logger log.Logger) biz.SysPostRepo
- func NewSysRoleMenuRepo(data *Data, logger log.Logger) biz.SysRoleMenuRepo
- func NewSysRoleRepo(data *Data, logger log.Logger) biz.SysRoleRepo
- func NewSysUserRepo(data *Data, logger log.Logger) biz.SysUserRepo
- func NewTransaction(d *Data) biz.Transaction
- func RecursiveDeptLabel(deptList []*model.SysDept, dept *pb.DeptLabel) *pb.DeptLabel
- type Data
- type DeptIdList
- type MenuIdList
- type RedisRepo
- func (r *RedisRepo) DelHashKey(ctx context.Context, key string, field string) error
- func (r RedisRepo) Get(ctx context.Context, key string) string
- func (r *RedisRepo) GetHashAllKeyAndVal(ctx context.Context, key string) (map[string]string, error)
- func (r *RedisRepo) GetHashKey(ctx context.Context, key string, field string) (string, error)
- func (r *RedisRepo) GetHashLen(ctx context.Context, key string) error
- func (r *RedisRepo) IncrHashKey(ctx context.Context, key string, field string, value int64) error
- func (r *RedisRepo) Lock(ctx context.Context, key string, value interface{}, duration time.Duration) (bool, error)
- func (r RedisRepo) SRem(ctx context.Context, key string, members ...interface{}) (int64, error)
- func (r RedisRepo) Set(ctx context.Context, key string, value string, expire time.Duration) error
- func (r *RedisRepo) SetHashKey(ctx context.Context, key string, field string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewDB, NewSysUserRepo, NewSysMenuRepo, NewSysDeptRepo, NewSysPostRepo, NewSysApiRepo, NewSysRoleRepo, NewSysRoleMenuRepo, NewTransaction, NewCasbinRuleRepo, NewRedis, NewSysDictDataRepo, NewSysDictTypeRepo, NewRedisRepo, NewSysLogRepo, )
ProviderSet is data providers.
Functions ¶
func DiguiMenuLabel ¶
func NewCasbinRuleRepo ¶
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 NewSysLogRepo ¶
func NewSysLogRepo(data *Data) biz.SysLogRepo
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
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data .
type DeptIdList ¶
type DeptIdList struct {
DeptId int64 `json:"deptId"`
}
type MenuIdList ¶
type MenuIdList struct {
ID int64 `json:"id"`
}
type RedisRepo ¶
type RedisRepo struct {
// contains filtered or unexported fields
}
func (*RedisRepo) DelHashKey ¶
func (*RedisRepo) GetHashAllKeyAndVal ¶
func (*RedisRepo) GetHashKey ¶
func (*RedisRepo) GetHashLen ¶
func (*RedisRepo) IncrHashKey ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.