Files
huangguo_server/web/api/operationlogctrl/operationlog.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

32 lines
912 B
Go

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)
}