Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddReasonLog(c context.Context, oid int64, tp int8, cateID int64, rid int64, uid int64, ...) (rows int64, err error)
- func (d *Dao) Close()
- func (d *Dao) GetNameByUID(c context.Context, uids []int64) (mcases map[int64][]interface{}, err error)
- func (d *Dao) GetUIDByName(c context.Context, name string) (uid int64, err error)
- func (d *Dao) GetUserRole(c context.Context, uid int64) (role int8, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Uids(c context.Context, names []string) (res map[string]int64, err error)
- func (d *Dao) Unames(c context.Context, uids []int64) (res map[int64]string, err error)
- func (d *Dao) UpGroups(c context.Context) (groups map[int64]*manager.UpGroup, err error)
- func (d *Dao) User(c context.Context, id int64) (u *manager.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao is redis dao.
func (*Dao) AddReasonLog ¶
func (d *Dao) AddReasonLog(c context.Context, oid int64, tp int8, cateID int64, rid int64, uid int64, tid int16, ctime, mtime time.Time) (rows int64, err error)
AddReasonLog add a reason log
func (*Dao) GetNameByUID ¶
func (d *Dao) GetNameByUID(c context.Context, uids []int64) (mcases map[int64][]interface{}, err error)
GetNameByUID 获取用户名
func (*Dao) GetUIDByName ¶
GetUIDByName 获取uid
func (*Dao) GetUserRole ¶
GetUserRole 用户角色
Click to show internal directories.
Click to hide internal directories.