查询是否已经关注了用户
(uid, fansId interface{})
| 48 | |
| 49 | //查询是否已经关注了用户 |
| 50 | func (this *Fans) Relation(uid, fansId interface{}) (ok bool) { |
| 51 | var fans Fans |
| 52 | orm.NewOrm().QueryTable(tableFans).Filter("uid", uid).Filter("fans_id", fansId).One(&fans) |
| 53 | return fans.Id != 0 |
| 54 | } |
| 55 | |
| 56 | //查询用户的粉丝(用户id作为被关注对象) |
| 57 | func (this *Fans) GetFansList(uid, page, pageSize int) (fans []FansResult, total int64, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected