互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
642 B

5 years ago
  1. package bully_screen_service
  2. import (
  3. "github.com/ouxuanserver/osmanthuswine/src/core"
  4. "hudongzhuanjia/models"
  5. )
  6. type ReviewListResult struct {
  7. Id int `json:"id"`
  8. Content string `json:"content"`
  9. Status int `json:"status"`
  10. Second int `json:"second"`
  11. }
  12. func GetReviewList(uid, bssid int64) ([]*ReviewListResult, error) {
  13. list := make([]*ReviewListResult, 0)
  14. err := core.GetXormAuto().Table(new(models.BullyScreenHistory)).Select("id, content, status, second").
  15. Where("is_delete=0 and user_id=? and bully_screen_server_id=? and status<> -1", uid, bssid).
  16. OrderBy("created_at desc").Find(&list)
  17. return list, err
  18. }