feat: 个人中心发布

This commit is contained in:
Blizzard
2026-02-14 11:38:59 +08:00
parent f1d9f63296
commit 4820323381
35 changed files with 691 additions and 148 deletions
+26
View File
@@ -67,3 +67,29 @@ func (o *OcrApi) MyClassifyLog(c *gin.Context) {
PageSize: req.PageSize,
}, c)
}
// DeleteClassifyLog
// @tags 识别相关
// @Summary 删除识别记录
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "删除识别记录"
// @Success 200 {object} response.Response{msg=string} "删除识别记录"
// @router /classify/deleteClassifyLog [post]
func (o *OcrApi) DeleteClassifyLog(c *gin.Context) {
var req request.IdsReq
err := c.ShouldBind(&req)
if err != nil {
response.FailWithMsg("请求参数错误", c)
return
}
userId := auth.GetUserId(c)
err = ocrService.DeleteClassifyLog(req, userId)
if err != nil {
global.Logger.Error("删除识别记录失败!", zap.Error(err))
response.FailWithMsg("删除识别记录失败!", c)
return
}
response.OkWithMsg("删除识别记录成功!", c)
}