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
21 lines
642 B
package bully_screen_service
|
|
|
|
import (
|
|
"github.com/ouxuanserver/osmanthuswine/src/core"
|
|
"hudongzhuanjia/models"
|
|
)
|
|
|
|
type ReviewListResult struct {
|
|
Id int `json:"id"`
|
|
Content string `json:"content"`
|
|
Status int `json:"status"`
|
|
Second int `json:"second"`
|
|
}
|
|
|
|
func GetReviewList(uid, bssid int64) ([]*ReviewListResult, error) {
|
|
list := make([]*ReviewListResult, 0)
|
|
err := core.GetXormAuto().Table(new(models.BullyScreenHistory)).Select("id, content, status, second").
|
|
Where("is_delete=0 and user_id=? and bully_screen_server_id=? and status<> -1", uid, bssid).
|
|
OrderBy("created_at desc").Find(&list)
|
|
return list, err
|
|
}
|