...
|
...
|
@@ -23,6 +23,9 @@ func (c *AuditController) AuditList() { |
|
|
c.ResposeJson(msg)
|
|
|
}()
|
|
|
var param protocol.RequestAuditList
|
|
|
param.Status = -1
|
|
|
param.ReviewStatus = -1
|
|
|
param.PublishStatus = -1
|
|
|
if err := json.Unmarshal(c.Ctx.Input.RequestBody, ¶m); err != nil {
|
|
|
log.Error("json 解析失败", err)
|
|
|
msg = protocol.BadRequestParam("1")
|
...
|
...
|
@@ -36,9 +39,16 @@ func (c *AuditController) AuditList() { |
|
|
if err == nil && len(param.CreateTimeEndS) > 0 {
|
|
|
param.CreateTimeEnd = endTime.Unix() + 864399
|
|
|
}
|
|
|
|
|
|
if len(param.StatusS) > 0 {
|
|
|
param.Status, _ = strconv.Atoi(param.StatusS)
|
|
|
}
|
|
|
if len(param.ReviewStatusS) > 0 {
|
|
|
param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
|
|
|
}
|
|
|
if len(param.PublishStatusS) > 0 {
|
|
|
param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
|
|
|
}
|
|
|
uid := c.GetUserId()
|
|
|
companyId := c.GetCompanyId()
|
|
|
list, err := serveaudit.GetAuditList(param, companyId, uid)
|
...
|
...
|
|