Documentation ¶
Index ¶
- type ConnDao
- type FriendDao
- type TokenDao
- type UserDao
- func (u *UserDao) Delete(uid int32) database.DbStatus
- func (u *UserDao) Exist(uid int32) bool
- func (u *UserDao) Insert(user *po.User) database.DbStatus
- func (u *UserDao) Query(page int32, limit int32, orderBy string) ([]*po.User, int32)
- func (u *UserDao) QueryByName(username string) *po.User
- func (u *UserDao) QueryByUid(uid int32) *po.User
- func (u *UserDao) QueryByUids(uids []int32, orderBy string) []*po.User
- func (u *UserDao) Update(user *po.User) database.DbStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnDao ¶
type ConnDao struct { Config *config.ServerConfig `di:"~"` Redis *helper.RedisHelper `di:"~"` ConnJwt string `di:"-"` }
func NewConnDao ¶
func NewConnDao(dic *xdi.DiContainer) *ConnDao
type FriendDao ¶
type FriendDao struct { Config *config.ServerConfig `di:"~"` Db *helper.GormHelper `di:"~"` Graph *helper.Neo4jHelper `di:"~"` UserDao *UserDao `di:"~"` }
func NewFriendDao ¶
func NewFriendDao(dic *xdi.DiContainer) *FriendDao
type TokenDao ¶
type TokenDao struct { Config *config.ServerConfig `di:"~"` Redis *helper.RedisHelper `di:"~"` JwtFmt string `di:"-"` }
func NewTokenDao ¶
func NewTokenDao(dic *xdi.DiContainer) *TokenDao
type UserDao ¶
type UserDao struct { Config *config.ServerConfig `di:"~"` Db *helper.GormHelper `di:"~"` Graph *helper.Neo4jHelper `di:"~"` Mappers *xproperty.PropertyMappers `di:"~"` OrderByFunc func(string) string `di:"-"` }
func NewUserDao ¶
func NewUserDao(dic *xdi.DiContainer) *UserDao
func (*UserDao) QueryByUids ¶
Click to show internal directories.
Click to hide internal directories.