Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+31
View File
@@ -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)
}