Skip to content

Commit f4e1257

Browse files
奇淼(piexlmaxSliverHornsongzhibin97
authored
V2.5.2beta (flipped-aurora#1101)
* fix: zap无法在运行时进行切割日志, config.docker.yaml与config.yaml同步 flipped-aurora#1094 * feat: 为定时任务增加秒级控制 * feat: 调整代码结构,err更改为后置 * css 样式调整 Co-authored-by: SliverHorn <503551462@qq.com> Co-authored-by: songzhibin97 <718428482@qq.com>
1 parent 513d4b6 commit f4e1257

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+489
-455
lines changed

server/api/v1/example/exa_breakpoint_continue.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// @Param file formData file true "an example for breakpoint resume, 断点续传示例"
2525
// @Success 200 {object} response.Response{msg=string} "断点续传到服务器"
2626
// @Router /fileUploadAndDownload/breakpointContinue [post]
27-
func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
27+
func (b *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
2828
fileMd5 := c.Request.FormValue("fileMd5")
2929
fileName := c.Request.FormValue("fileName")
3030
chunkMd5 := c.Request.FormValue("chunkMd5")
@@ -54,20 +54,20 @@ func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
5454
response.FailWithMessage("检查md5失败", c)
5555
return
5656
}
57-
err, file := fileUploadAndDownloadService.FindOrCreateFile(fileMd5, fileName, chunkTotal)
57+
file, err := fileUploadAndDownloadService.FindOrCreateFile(fileMd5, fileName, chunkTotal)
5858
if err != nil {
5959
global.GVA_LOG.Error("查找或创建记录失败!", zap.Error(err))
6060
response.FailWithMessage("查找或创建记录失败", c)
6161
return
6262
}
63-
err, pathc := utils.BreakPointContinue(cen, fileName, chunkNumber, chunkTotal, fileMd5)
63+
pathC, err := utils.BreakPointContinue(cen, fileName, chunkNumber, chunkTotal, fileMd5)
6464
if err != nil {
6565
global.GVA_LOG.Error("断点续传失败!", zap.Error(err))
6666
response.FailWithMessage("断点续传失败", c)
6767
return
6868
}
6969

70-
if err = fileUploadAndDownloadService.CreateFileChunk(file.ID, pathc, chunkNumber); err != nil {
70+
if err = fileUploadAndDownloadService.CreateFileChunk(file.ID, pathC, chunkNumber); err != nil {
7171
global.GVA_LOG.Error("创建文件记录失败!", zap.Error(err))
7272
response.FailWithMessage("创建文件记录失败", c)
7373
return
@@ -83,11 +83,11 @@ func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
8383
// @Param file formData file true "Find the file, 查找文件"
8484
// @Success 200 {object} response.Response{data=exampleRes.FileResponse,msg=string} "查找文件,返回包括文件详情"
8585
// @Router /fileUploadAndDownload/findFile [post]
86-
func (u *FileUploadAndDownloadApi) FindFile(c *gin.Context) {
86+
func (b *FileUploadAndDownloadApi) FindFile(c *gin.Context) {
8787
fileMd5 := c.Query("fileMd5")
8888
fileName := c.Query("fileName")
8989
chunkTotal, _ := strconv.Atoi(c.Query("chunkTotal"))
90-
err, file := fileUploadAndDownloadService.FindOrCreateFile(fileMd5, fileName, chunkTotal)
90+
file, err := fileUploadAndDownloadService.FindOrCreateFile(fileMd5, fileName, chunkTotal)
9191
if err != nil {
9292
global.GVA_LOG.Error("查找失败!", zap.Error(err))
9393
response.FailWithMessage("查找失败", c)
@@ -107,7 +107,7 @@ func (u *FileUploadAndDownloadApi) FindFile(c *gin.Context) {
107107
func (b *FileUploadAndDownloadApi) BreakpointContinueFinish(c *gin.Context) {
108108
fileMd5 := c.Query("fileMd5")
109109
fileName := c.Query("fileName")
110-
err, filePath := utils.MakeFile(fileName, fileMd5)
110+
filePath, err := utils.MakeFile(fileName, fileMd5)
111111
if err != nil {
112112
global.GVA_LOG.Error("文件创建失败!", zap.Error(err))
113113
response.FailWithDetailed(exampleRes.FilePathResponse{FilePath: filePath}, "文件创建失败", c)
@@ -124,15 +124,15 @@ func (b *FileUploadAndDownloadApi) BreakpointContinueFinish(c *gin.Context) {
124124
// @Param file formData file true "删除缓存切片"
125125
// @Success 200 {object} response.Response{msg=string} "删除切片"
126126
// @Router /fileUploadAndDownload/removeChunk [post]
127-
func (u *FileUploadAndDownloadApi) RemoveChunk(c *gin.Context) {
127+
func (b *FileUploadAndDownloadApi) RemoveChunk(c *gin.Context) {
128128
var file example.ExaFile
129-
c.ShouldBindJSON(&file)
129+
_ = c.ShouldBindJSON(&file)
130130
err := utils.RemoveChunk(file.FileMd5)
131131
if err != nil {
132132
global.GVA_LOG.Error("缓存切片删除失败!", zap.Error(err))
133133
return
134134
}
135-
err = fileUploadAndDownloadService.DeleteFileChunk(file.FileMd5, file.FileName, file.FilePath)
135+
err = fileUploadAndDownloadService.DeleteFileChunk(file.FileMd5, file.FilePath)
136136
if err != nil {
137137
global.GVA_LOG.Error(err.Error(), zap.Error(err))
138138
response.FailWithMessage(err.Error(), c)

server/api/v1/example/exa_customer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (e *CustomerApi) GetExaCustomer(c *gin.Context) {
103103
response.FailWithMessage(err.Error(), c)
104104
return
105105
}
106-
err, data := customerService.GetExaCustomer(customer.ID)
106+
data, err := customerService.GetExaCustomer(customer.ID)
107107
if err != nil {
108108
global.GVA_LOG.Error("获取失败!", zap.Error(err))
109109
response.FailWithMessage("获取失败", c)
@@ -127,7 +127,7 @@ func (e *CustomerApi) GetExaCustomerList(c *gin.Context) {
127127
response.FailWithMessage(err.Error(), c)
128128
return
129129
}
130-
err, customerList, total := customerService.GetCustomerInfoList(utils.GetUserAuthorityId(c), pageInfo)
130+
customerList, total, err := customerService.GetCustomerInfoList(utils.GetUserAuthorityId(c), pageInfo)
131131
if err != nil {
132132
global.GVA_LOG.Error("获取失败!", zap.Error(err))
133133
response.FailWithMessage("获取失败"+err.Error(), c)

server/api/v1/example/exa_file_upload_download.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type FileUploadAndDownloadApi struct{}
2020
// @Param file formData file true "上传文件示例"
2121
// @Success 200 {object} response.Response{data=exampleRes.ExaFileResponse,msg=string} "上传文件示例,返回包括文件详情"
2222
// @Router /fileUploadAndDownload/upload [post]
23-
func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
23+
func (b *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
2424
var file example.ExaFileUploadAndDownload
2525
noSave := c.DefaultQuery("noSave", "0")
2626
_, header, err := c.Request.FormFile("file")
@@ -29,7 +29,7 @@ func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
2929
response.FailWithMessage("接收文件失败", c)
3030
return
3131
}
32-
err, file = fileUploadAndDownloadService.UploadFile(header, noSave) // 文件上传后拿到文件路径
32+
file, err = fileUploadAndDownloadService.UploadFile(header, noSave) // 文件上传后拿到文件路径
3333
if err != nil {
3434
global.GVA_LOG.Error("修改数据库链接失败!", zap.Error(err))
3535
response.FailWithMessage("修改数据库链接失败", c)
@@ -39,7 +39,7 @@ func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
3939
}
4040

4141
// EditFileName 编辑文件名或者备注
42-
func (u *FileUploadAndDownloadApi) EditFileName(c *gin.Context) {
42+
func (b *FileUploadAndDownloadApi) EditFileName(c *gin.Context) {
4343
var file example.ExaFileUploadAndDownload
4444
_ = c.ShouldBindJSON(&file)
4545
if err := fileUploadAndDownloadService.EditFileName(file); err != nil {
@@ -57,7 +57,7 @@ func (u *FileUploadAndDownloadApi) EditFileName(c *gin.Context) {
5757
// @Param data body example.ExaFileUploadAndDownload true "传入文件里面id即可"
5858
// @Success 200 {object} response.Response{msg=string} "删除文件"
5959
// @Router /fileUploadAndDownload/deleteFile [post]
60-
func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {
60+
func (b *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {
6161
var file example.ExaFileUploadAndDownload
6262
_ = c.ShouldBindJSON(&file)
6363
if err := fileUploadAndDownloadService.DeleteFile(file); err != nil {
@@ -76,10 +76,10 @@ func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {
7676
// @Param data body request.PageInfo true "页码, 每页大小"
7777
// @Success 200 {object} response.Response{data=response.PageResult,msg=string} "分页文件列表,返回包括列表,总数,页码,每页数量"
7878
// @Router /fileUploadAndDownload/getFileList [post]
79-
func (u *FileUploadAndDownloadApi) GetFileList(c *gin.Context) {
79+
func (b *FileUploadAndDownloadApi) GetFileList(c *gin.Context) {
8080
var pageInfo request.PageInfo
8181
_ = c.ShouldBindJSON(&pageInfo)
82-
err, list, total := fileUploadAndDownloadService.GetFileRecordInfoList(pageInfo)
82+
list, total, err := fileUploadAndDownloadService.GetFileRecordInfoList(pageInfo)
8383
if err != nil {
8484
global.GVA_LOG.Error("获取失败!", zap.Error(err))
8585
response.FailWithMessage("获取失败", c)

server/api/v1/system/sys_api.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *SystemApiApi) GetApiList(c *gin.Context) {
7676
response.FailWithMessage(err.Error(), c)
7777
return
7878
}
79-
if err, list, total := apiService.GetAPIInfoList(pageInfo.SysApi, pageInfo.PageInfo, pageInfo.OrderKey, pageInfo.Desc); err != nil {
79+
if list, total, err := apiService.GetAPIInfoList(pageInfo.SysApi, pageInfo.PageInfo, pageInfo.OrderKey, pageInfo.Desc); err != nil {
8080
global.GVA_LOG.Error("获取失败!", zap.Error(err))
8181
response.FailWithMessage("获取失败", c)
8282
} else {
@@ -89,7 +89,6 @@ func (s *SystemApiApi) GetApiList(c *gin.Context) {
8989
}
9090
}
9191

92-
// todo
9392
// @Tags SysApi
9493
// @Summary 根据id获取api
9594
// @Security ApiKeyAuth
@@ -105,7 +104,7 @@ func (s *SystemApiApi) GetApiById(c *gin.Context) {
105104
response.FailWithMessage(err.Error(), c)
106105
return
107106
}
108-
err, api := apiService.GetApiById(idInfo.ID)
107+
api, err := apiService.GetApiById(idInfo.ID)
109108
if err != nil {
110109
global.GVA_LOG.Error("获取失败!", zap.Error(err))
111110
response.FailWithMessage("获取失败", c)
@@ -145,7 +144,7 @@ func (s *SystemApiApi) UpdateApi(c *gin.Context) {
145144
// @Success 200 {object} response.Response{data=systemRes.SysAPIListResponse,msg=string} "获取所有的Api 不分页,返回包括api列表"
146145
// @Router /api/getAllApis [post]
147146
func (s *SystemApiApi) GetAllApis(c *gin.Context) {
148-
if err, apis := apiService.GetAllApis(); err != nil {
147+
if apis, err := apiService.GetAllApis(); err != nil {
149148
global.GVA_LOG.Error("获取失败!", zap.Error(err))
150149
response.FailWithMessage("获取失败", c)
151150
} else {

server/api/v1/system/sys_authority.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (a *AuthorityApi) CreateAuthority(c *gin.Context) {
3030
response.FailWithMessage(err.Error(), c)
3131
return
3232
}
33-
if err, authBack := authorityService.CreateAuthority(authority); err != nil {
33+
if authBack, err := authorityService.CreateAuthority(authority); err != nil {
3434
global.GVA_LOG.Error("创建失败!", zap.Error(err))
3535
response.FailWithMessage("创建失败"+err.Error(), c)
3636
} else {
@@ -59,7 +59,7 @@ func (a *AuthorityApi) CopyAuthority(c *gin.Context) {
5959
response.FailWithMessage(err.Error(), c)
6060
return
6161
}
62-
if err, authBack := authorityService.CopyAuthority(copyInfo); err != nil {
62+
if authBack, err := authorityService.CopyAuthority(copyInfo); err != nil {
6363
global.GVA_LOG.Error("拷贝失败!", zap.Error(err))
6464
response.FailWithMessage("拷贝失败"+err.Error(), c)
6565
} else {
@@ -105,7 +105,7 @@ func (a *AuthorityApi) UpdateAuthority(c *gin.Context) {
105105
response.FailWithMessage(err.Error(), c)
106106
return
107107
}
108-
if err, authority := authorityService.UpdateAuthority(auth); err != nil {
108+
if authority, err := authorityService.UpdateAuthority(auth); err != nil {
109109
global.GVA_LOG.Error("更新失败!", zap.Error(err))
110110
response.FailWithMessage("更新失败"+err.Error(), c)
111111
} else {
@@ -128,7 +128,7 @@ func (a *AuthorityApi) GetAuthorityList(c *gin.Context) {
128128
response.FailWithMessage(err.Error(), c)
129129
return
130130
}
131-
if err, list, total := authorityService.GetAuthorityInfoList(pageInfo); err != nil {
131+
if list, total, err := authorityService.GetAuthorityInfoList(pageInfo); err != nil {
132132
global.GVA_LOG.Error("获取失败!", zap.Error(err))
133133
response.FailWithMessage("获取失败"+err.Error(), c)
134134
} else {

server/api/v1/system/sys_authority_btn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type AuthorityBtnApi struct{}
2121
func (a *AuthorityBtnApi) GetAuthorityBtn(c *gin.Context) {
2222
var req request.SysAuthorityBtnReq
2323
_ = c.ShouldBindJSON(&req)
24-
if err, res := authorityBtnService.GetAuthorityBtn(req); err != nil {
24+
if res, err := authorityBtnService.GetAuthorityBtn(req); err != nil {
2525
global.GVA_LOG.Error("查询失败!", zap.Error(err))
2626
response.FailWithMessage("查询失败", c)
2727
} else {

server/api/v1/system/sys_auto_code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (autoApi *AutoCodeApi) DelPackage(c *gin.Context) {
218218
}
219219
}
220220

221-
// DelPackage
221+
// AutoPlug
222222
// @Tags AutoCode
223223
// @Summary 创建插件模板
224224
// @Security ApiKeyAuth

server/api/v1/system/sys_dictionary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (s *DictionaryApi) UpdateSysDictionary(c *gin.Context) {
8080
func (s *DictionaryApi) FindSysDictionary(c *gin.Context) {
8181
var dictionary system.SysDictionary
8282
_ = c.ShouldBindQuery(&dictionary)
83-
if err, sysDictionary := dictionaryService.GetSysDictionary(dictionary.Type, dictionary.ID); err != nil {
83+
if sysDictionary, err := dictionaryService.GetSysDictionary(dictionary.Type, dictionary.ID); err != nil {
8484
global.GVA_LOG.Error("查询失败!", zap.Error(err))
8585
response.FailWithMessage("查询失败", c)
8686
} else {
@@ -103,7 +103,7 @@ func (s *DictionaryApi) GetSysDictionaryList(c *gin.Context) {
103103
response.FailWithMessage(err.Error(), c)
104104
return
105105
}
106-
if err, list, total := dictionaryService.GetSysDictionaryInfoList(pageInfo); err != nil {
106+
if list, total, err := dictionaryService.GetSysDictionaryInfoList(pageInfo); err != nil {
107107
global.GVA_LOG.Error("获取失败!", zap.Error(err))
108108
response.FailWithMessage("获取失败", c)
109109
} else {

server/api/v1/system/sys_dictionary_detail.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) {
8484
response.FailWithMessage(err.Error(), c)
8585
return
8686
}
87-
if err, resysDictionaryDetail := dictionaryDetailService.GetSysDictionaryDetail(detail.ID); err != nil {
87+
if reSysDictionaryDetail, err := dictionaryDetailService.GetSysDictionaryDetail(detail.ID); err != nil {
8888
global.GVA_LOG.Error("查询失败!", zap.Error(err))
8989
response.FailWithMessage("查询失败", c)
9090
} else {
91-
response.OkWithDetailed(gin.H{"resysDictionaryDetail": resysDictionaryDetail}, "查询成功", c)
91+
response.OkWithDetailed(gin.H{"reSysDictionaryDetail": reSysDictionaryDetail}, "查询成功", c)
9292
}
9393
}
9494

@@ -103,7 +103,7 @@ func (s *DictionaryDetailApi) FindSysDictionaryDetail(c *gin.Context) {
103103
func (s *DictionaryDetailApi) GetSysDictionaryDetailList(c *gin.Context) {
104104
var pageInfo request.SysDictionaryDetailSearch
105105
_ = c.ShouldBindQuery(&pageInfo)
106-
if err, list, total := dictionaryDetailService.GetSysDictionaryDetailInfoList(pageInfo); err != nil {
106+
if list, total, err := dictionaryDetailService.GetSysDictionaryDetailInfoList(pageInfo); err != nil {
107107
global.GVA_LOG.Error("获取失败!", zap.Error(err))
108108
response.FailWithMessage("获取失败", c)
109109
} else {

server/api/v1/system/sys_menu.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type AuthorityMenuApi struct{}
2323
// @Success 200 {object} response.Response{data=systemRes.SysMenusResponse,msg=string} "获取用户动态路由,返回包括系统菜单详情列表"
2424
// @Router /menu/getMenu [post]
2525
func (a *AuthorityMenuApi) GetMenu(c *gin.Context) {
26-
if err, menus := menuService.GetMenuTree(utils.GetUserAuthorityId(c)); err != nil {
26+
if menus, err := menuService.GetMenuTree(utils.GetUserAuthorityId(c)); err != nil {
2727
global.GVA_LOG.Error("获取失败!", zap.Error(err))
2828
response.FailWithMessage("获取失败", c)
2929
} else {
@@ -42,7 +42,7 @@ func (a *AuthorityMenuApi) GetMenu(c *gin.Context) {
4242
// @Success 200 {object} response.Response{data=systemRes.SysBaseMenusResponse,msg=string} "获取用户动态路由,返回包括系统菜单列表"
4343
// @Router /menu/getBaseMenuTree [post]
4444
func (a *AuthorityMenuApi) GetBaseMenuTree(c *gin.Context) {
45-
if err, menus := menuService.GetBaseMenuTree(); err != nil {
45+
if menus, err := menuService.GetBaseMenuTree(); err != nil {
4646
global.GVA_LOG.Error("获取失败!", zap.Error(err))
4747
response.FailWithMessage("获取失败", c)
4848
} else {
@@ -88,7 +88,7 @@ func (a *AuthorityMenuApi) GetMenuAuthority(c *gin.Context) {
8888
response.FailWithMessage(err.Error(), c)
8989
return
9090
}
91-
if err, menus := menuService.GetMenuAuthority(&param); err != nil {
91+
if menus, err := menuService.GetMenuAuthority(&param); err != nil {
9292
global.GVA_LOG.Error("获取失败!", zap.Error(err))
9393
response.FailWithDetailed(systemRes.SysMenusResponse{Menus: menus}, "获取失败", c)
9494
} else {
@@ -189,7 +189,7 @@ func (a *AuthorityMenuApi) GetBaseMenuById(c *gin.Context) {
189189
response.FailWithMessage(err.Error(), c)
190190
return
191191
}
192-
if err, menu := baseMenuService.GetBaseMenuById(idInfo.ID); err != nil {
192+
if menu, err := baseMenuService.GetBaseMenuById(idInfo.ID); err != nil {
193193
global.GVA_LOG.Error("获取失败!", zap.Error(err))
194194
response.FailWithMessage("获取失败", c)
195195
} else {
@@ -212,7 +212,7 @@ func (a *AuthorityMenuApi) GetMenuList(c *gin.Context) {
212212
response.FailWithMessage(err.Error(), c)
213213
return
214214
}
215-
if err, menuList, total := menuService.GetInfoList(); err != nil {
215+
if menuList, total, err := menuService.GetInfoList(); err != nil {
216216
global.GVA_LOG.Error("获取失败!", zap.Error(err))
217217
response.FailWithMessage("获取失败", c)
218218
} else {

server/api/v1/system/sys_operation_record.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) {
8585
response.FailWithMessage(err.Error(), c)
8686
return
8787
}
88-
if err, resysOperationRecord := operationRecordService.GetSysOperationRecord(sysOperationRecord.ID); err != nil {
88+
if reSysOperationRecord, err := operationRecordService.GetSysOperationRecord(sysOperationRecord.ID); err != nil {
8989
global.GVA_LOG.Error("查询失败!", zap.Error(err))
9090
response.FailWithMessage("查询失败", c)
9191
} else {
92-
response.OkWithDetailed(gin.H{"resysOperationRecord": resysOperationRecord}, "查询成功", c)
92+
response.OkWithDetailed(gin.H{"reSysOperationRecord": reSysOperationRecord}, "查询成功", c)
9393
}
9494
}
9595

@@ -104,7 +104,7 @@ func (s *OperationRecordApi) FindSysOperationRecord(c *gin.Context) {
104104
func (s *OperationRecordApi) GetSysOperationRecordList(c *gin.Context) {
105105
var pageInfo systemReq.SysOperationRecordSearch
106106
_ = c.ShouldBindQuery(&pageInfo)
107-
if err, list, total := operationRecordService.GetSysOperationRecordInfoList(pageInfo); err != nil {
107+
if list, total, err := operationRecordService.GetSysOperationRecordInfoList(pageInfo); err != nil {
108108
global.GVA_LOG.Error("获取失败!", zap.Error(err))
109109
response.FailWithMessage("获取失败", c)
110110
} else {

server/api/v1/system/sys_system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type SystemApi struct{}
2020
// @Success 200 {object} response.Response{data=systemRes.SysConfigResponse,msg=string} "获取配置文件内容,返回包括系统配置"
2121
// @Router /system/getSystemConfig [post]
2222
func (s *SystemApi) GetSystemConfig(c *gin.Context) {
23-
if err, config := systemConfigService.GetSystemConfig(); err != nil {
23+
if config, err := systemConfigService.GetSystemConfig(); err != nil {
2424
global.GVA_LOG.Error("获取失败!", zap.Error(err))
2525
response.FailWithMessage("获取失败", c)
2626
} else {

0 commit comments

Comments
 (0)