|
@@ -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
|