feat: 个人中心发布
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user