init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package operationlogctrl
import (
"91jd-server/common"
"91jd-server/common/stderr"
"91jd-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)
}