作者 yangfu

消息id

@@ -220,6 +220,15 @@ limit ?`) @@ -220,6 +220,15 @@ limit ?`)
220 return 220 return
221 } 221 }
222 222
  223 +//我点赞的
  224 +func GetChanceThumbup(uid int64, lastId int64, pageSize int, v interface{}) (total int, err error) {
  225 + sqlCount := `select count(0) from chance_favorite where user_id =? and enable_status=1 and (mark_flag&1)>0 and source_type=1`
  226 + if err = utils.ExecuteQueryOne(&total, sqlCount, uid); err != nil {
  227 + return
  228 + }
  229 + return
  230 +}
  231 +
223 //我的评论 232 //我的评论
224 func GetChanceComment(uid int64, lastId int64, pageSize int, v interface{}) (total int, err error) { 233 func GetChanceComment(uid int64, lastId int64, pageSize int, v interface{}) (total int, err error) {
225 sql := fmt.Sprintf(`select a.*,b.content commented_content,b.create_at commented_time,b.user_id commented_user_id 234 sql := fmt.Sprintf(`select a.*,b.content commented_content,b.create_at commented_time,b.user_id commented_user_id
@@ -379,7 +379,7 @@ func UserStatistics(header *protocol.RequestHeader, request *protocol.UserStatis @@ -379,7 +379,7 @@ func UserStatistics(header *protocol.RequestHeader, request *protocol.UserStatis
379 } 379 }
380 break 380 break
381 case protocol.ZanStatic: //点赞 381 case protocol.ZanStatic: //点赞
382 - if total, err = models.GetChanceThumbUp(header.UserId, 0, 0, nil); err != nil { 382 + if total, err = models.GetChanceThumbup(header.UserId, 0, 0, nil); err != nil {
383 log.Error(err) 383 log.Error(err)
384 } 384 }
385 break 385 break