service层注释规范化

This commit is contained in:
SliverHorn
2020-11-08 13:30:12 +08:00
parent 829fa4dac5
commit 0b1cc913d9
21 changed files with 467 additions and 513 deletions

View File

@@ -15,7 +15,7 @@ import (
// @Security ApiKeyAuth
// @accept multipart/form-data
// @Produce application/json
// TODO @Param file formData file true "断点续传插件版示例"
// @Param file formData file true "断点续传插件版示例"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"切片创建成功"}"
// @Router /simpleUploader/upload [post]
func SimpleUploaderUpload(c *gin.Context) {

View File

@@ -18,7 +18,7 @@ import (
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// TODO @Param data body model.AutoCodeStruct true "创建自动代码"
// @Param data body model.AutoCodeStruct true "创建自动代码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /autoCode/createTemp [post]
func CreateTemp(c *gin.Context) {

View File

@@ -62,7 +62,6 @@ func DeleteSysOperationRecordByIds(c *gin.Context) {
_ = c.ShouldBindJSON(&IDS)
if err := service.DeleteSysOperationRecordByIds(IDS); err != nil {
global.GVA_LOG.Error("批量删除失败!", zap.Any("err", err))
response.FailWithMessage("批量删除失败", c)
} else {
response.OkWithMessage("批量删除成功", c)