Documentation ¶
Index ¶
- Constants
- type Dao
- func (d *Dao) AddFollowingCache(c context.Context, mid int64, following *model.Following) (err error)
- func (d *Dao) DelFollowerCache(fid int64) (err error)
- func (d *Dao) DelFollowing(c context.Context, mid int64, following *model.Following) (err error)
- func (d *Dao) DelFollowingCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelStatCache(mid int64) (err error)
- func (d *Dao) DelTagCountCache(c context.Context, mid int64) (err error)
- func (d *Dao) DelTagsCache(c context.Context, mid int64) (err error)
- func (d *Dao) FollowerAchieve(c context.Context, mid, follower int64)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SendMsg(c context.Context, mid int64, title string, context string) (err error)
- func (d *Dao) UpdateFollowingCache(r *model.Relation) (err error)
- func (d *Dao) UserRelation(c context.Context, mid, fid int64) (f *sml.Following, err error)
- func (d *Dao) UserSetAchieveFlag(ctx context.Context, mid int64, flag uint64) (int64, error)
Constants ¶
View Source
const ( AttrFollowing = uint32(1) << 1 AttrFriend = uint32(1) << 2 )
consts
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao struct info of Dao.
func (*Dao) AddFollowingCache ¶
func (d *Dao) AddFollowingCache(c context.Context, mid int64, following *model.Following) (err error)
AddFollowingCache add following cache.
func (*Dao) DelFollowerCache ¶
DelFollowerCache del follower cache
func (*Dao) DelFollowing ¶
DelFollowing del following cache.
func (*Dao) DelFollowingCache ¶
DelFollowingCache delete following cache.
func (*Dao) DelTagCountCache ¶
DelTagCountCache del tag count cache.
func (*Dao) DelTagsCache ¶
DelTagsCache is
func (*Dao) FollowerAchieve ¶
FollowerAchieve is
func (*Dao) UpdateFollowingCache ¶
UpdateFollowingCache update following cache.
func (*Dao) UserRelation ¶
UserRelation get user relation attr.
Click to show internal directories.
Click to hide internal directories.