|
|
|
@ -80,11 +80,11 @@ func (u *UserFollow) RenewFollow(userId, followUserId uint) int64 {
|
|
|
|
|
Where("is_del = ?", 1).Update("is_Del", 0).RowsAffected
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Title 获取会员离职关注数据
|
|
|
|
|
// @Title 获取会员被关注过数据
|
|
|
|
|
func (u *UserFollow) GetCountAll(userId uint) (result int64) {
|
|
|
|
|
if userId <= 0 {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
u.GetDb().Model(u).Where(UserFollow{}).Where("user_id = ?", userId).Count(&result)
|
|
|
|
|
u.GetDb().Model(u).Where(UserFollow{}).Where("follow_user_id = ?", userId).Count(&result)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|