@@ -0,0 +1,31 @@
|
||||
package operationlogctrl
|
||||
|
||||
import (
|
||||
"91porn-server/common"
|
||||
"91porn-server/common/stderr"
|
||||
"91porn-server/web/service/operationlogser"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// @Tags 帖子、用户操作日志
|
||||
// @Summary 查询帖子、用户操作日志列表
|
||||
// @Description 查询帖子、用户操作日志列表
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} operationlogser.GetOperationLogListResp
|
||||
// @Failure 400 {string} string "失败"
|
||||
// @Router /web/operationlog/List [GET]
|
||||
func OperationLogList(c *gin.Context) {
|
||||
var req operationlogser.GetOperationLogListReq
|
||||
if err := c.ShouldBind(&req); err != nil {
|
||||
common.ServeJSON(c, stderr.ErrParamError, err.Error())
|
||||
return
|
||||
}
|
||||
data, serr := operationlogser.GetOperationLogList(req)
|
||||
if serr != stderr.Success {
|
||||
common.ServeJSON(c, serr, "")
|
||||
return
|
||||
}
|
||||
common.ServeJSON(c, stderr.Success, data)
|
||||
}
|
||||
Reference in New Issue
Block a user