package friend import ( "go_dreamfactory/comm" "go_dreamfactory/pb" "google.golang.org/protobuf/proto" ) // 点赞列表 func (this *apiComp) ZanlistCheck(session comm.IUserSession, req *pb.FriendZanlistReq) (code pb.ErrorCode) { return } // Deprecated: func (this *apiComp) Zanlist(session comm.IUserSession, req *pb.FriendZanlistReq) (code pb.ErrorCode, data proto.Message) { if code = this.ZanlistCheck(session, req); code != pb.ErrorCode_Success { return } var ( self *pb.DBFriend list []*pb.FriendBase ) self = this.moduleFriend.modelFriend.GetFriend(session.GetUserId()) if self == nil { code = pb.ErrorCode_FriendSelfNoData return } for _, v := range self.ZanIds { base := this.setDefaultFriendUserBaseInfo(v) if base != nil { list = append(list, base) } } rsp := &pb.FriendZanlistResp{ List: list, } if err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSubTypeZanList, rsp); err != nil { code = pb.ErrorCode_SystemError return } return }