Skip to content

Commit d8a41c9

Browse files
committed
style:swagger optimize
1 parent b945d96 commit d8a41c9

30 files changed

+114
-112
lines changed

server/api/v1/autocode/auto_code_example.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var autoCodeExampleService = service.ServiceGroupApp.AutoCodeServiceGroup.AutoCo
2121
// @accept application/json
2222
// @Produce application/json
2323
// @Param data body autocode.AutoCodeExample true "AutoCodeExample模型"
24-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
24+
// @Success 200 {object} response.Response{msg="创建成功"} "创建AutoCodeExample"
2525
// @Router /autoCodeExample/createAutoCodeExample [post]
2626
func (autoCodeExampleApi *AutoCodeExampleApi) CreateAutoCodeExample(c *gin.Context) {
2727
var autoCodeExample autocode.AutoCodeExample
@@ -40,7 +40,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) CreateAutoCodeExample(c *gin.Conte
4040
// @accept application/json
4141
// @Produce application/json
4242
// @Param data body autocode.AutoCodeExample true "AutoCodeExample模型"
43-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
43+
// @Success 200 {object} response.Response{msg="删除成功"} "删除AutoCodeExample"
4444
// @Router /autoCodeExample/deleteAutoCodeExample [delete]
4545
func (autoCodeExampleApi *AutoCodeExampleApi) DeleteAutoCodeExample(c *gin.Context) {
4646
var autoCodeExample autocode.AutoCodeExample
@@ -59,7 +59,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) DeleteAutoCodeExample(c *gin.Conte
5959
// @accept application/json
6060
// @Produce application/json
6161
// @Param data body autocode.AutoCodeExample true "更新AutoCodeExample"
62-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
62+
// @Success 200 {object} response.Response{msg="更新成功"} "更新AutoCodeExample"
6363
// @Router /autoCodeExample/updateAutoCodeExample [put]
6464
func (autoCodeExampleApi *AutoCodeExampleApi) UpdateAutoCodeExample(c *gin.Context) {
6565
var autoCodeExample autocode.AutoCodeExample
@@ -78,7 +78,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) UpdateAutoCodeExample(c *gin.Conte
7878
// @accept application/json
7979
// @Produce application/json
8080
// @Param data query autocode.AutoCodeExample true "用id查询AutoCodeExample"
81-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
81+
// @Success 200 {object} response.Response{data=gin.H,msg="查询成功"} "用id查询AutoCodeExample"
8282
// @Router /autoCodeExample/findAutoCodeExample [get]
8383
func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context) {
8484
var autoCodeExample autocode.AutoCodeExample
@@ -101,7 +101,7 @@ func (autoCodeExampleApi *AutoCodeExampleApi) FindAutoCodeExample(c *gin.Context
101101
// @accept application/json
102102
// @Produce application/json
103103
// @Param data query autocodeReq.AutoCodeExampleSearch true "页码, 每页大小, 搜索条件"
104-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
104+
// @Success 200 {object} response.Response{data=response.PageResult,msg="获取成功"} "分页获取AutoCodeExample列表,返回包括列表,总数,页码,每页数量"
105105
// @Router /autoCodeExample/getAutoCodeExampleList [get]
106106
func (autoCodeExampleApi *AutoCodeExampleApi) GetAutoCodeExampleList(c *gin.Context) {
107107
var pageInfo autocodeReq.AutoCodeExampleSearch

server/api/v1/example/exa_breakpoint_continue.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package example
22

33
import (
44
"fmt"
5-
"github.com/flipped-aurora/gin-vue-admin/server/model/example"
65
"io/ioutil"
76
"mime/multipart"
87
"strconv"
98

9+
"github.com/flipped-aurora/gin-vue-admin/server/model/example"
10+
1011
"github.com/flipped-aurora/gin-vue-admin/server/global"
1112
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
1213
exampleRes "github.com/flipped-aurora/gin-vue-admin/server/model/example/response"
@@ -21,7 +22,7 @@ import (
2122
// @accept multipart/form-data
2223
// @Produce application/json
2324
// @Param file formData file true "an example for breakpoint resume, 断点续传示例"
24-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"切片创建成功"}"
25+
// @Success 200 {object} response.Response{msg="切片创建成功"} "断点续传到服务器"
2526
// @Router /fileUploadAndDownload/breakpointContinue [post]
2627
func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
2728
fileMd5 := c.Request.FormValue("fileMd5")
@@ -80,7 +81,7 @@ func (u *FileUploadAndDownloadApi) BreakpointContinue(c *gin.Context) {
8081
// @accept multipart/form-data
8182
// @Produce application/json
8283
// @Param file formData file true "Find the file, 查找文件"
83-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查找成功"}"
84+
// @Success 200 {object} response.Response{data=exampleRes.FileResponse,msg="查找成功"} "查找文件,返回包括文件详情"
8485
// @Router /fileUploadAndDownload/findFile [post]
8586
func (u *FileUploadAndDownloadApi) FindFile(c *gin.Context) {
8687
fileMd5 := c.Query("fileMd5")
@@ -101,7 +102,7 @@ func (u *FileUploadAndDownloadApi) FindFile(c *gin.Context) {
101102
// @accept multipart/form-data
102103
// @Produce application/json
103104
// @Param file formData file true "上传文件完成"
104-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"file uploaded, 文件创建成功"}"
105+
// @Success 200 {object} response.Response{data=exampleRes.FilePathResponse,msg="文件创建成功"} "创建文件,返回包括文件路径"
105106
// @Router /fileUploadAndDownload/findFile [post]
106107
func (b *FileUploadAndDownloadApi) BreakpointContinueFinish(c *gin.Context) {
107108
fileMd5 := c.Query("fileMd5")
@@ -121,7 +122,7 @@ func (b *FileUploadAndDownloadApi) BreakpointContinueFinish(c *gin.Context) {
121122
// @accept multipart/form-data
122123
// @Produce application/json
123124
// @Param file formData file true "删除缓存切片"
124-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"缓存切片删除成功"}"
125+
// @Success 200 {object} response.Response{msg="缓存切片删除成功"} "删除切片"
125126
// @Router /fileUploadAndDownload/removeChunk [post]
126127
func (u *FileUploadAndDownloadApi) RemoveChunk(c *gin.Context) {
127128
var file example.ExaFile

server/api/v1/example/exa_customer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type CustomerApi struct{}
1919
// @accept application/json
2020
// @Produce application/json
2121
// @Param data body example.ExaCustomer true "客户用户名, 客户手机号码"
22-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
22+
// @Success 200 {object} response.Response{msg="创建成功"} "创建客户"
2323
// @Router /customer/customer [post]
2424
func (e *CustomerApi) CreateExaCustomer(c *gin.Context) {
2525
var customer example.ExaCustomer
@@ -44,7 +44,7 @@ func (e *CustomerApi) CreateExaCustomer(c *gin.Context) {
4444
// @accept application/json
4545
// @Produce application/json
4646
// @Param data body example.ExaCustomer true "客户ID"
47-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
47+
// @Success 200 {object} response.Response{msg="删除成功"} "删除客户"
4848
// @Router /customer/customer [delete]
4949
func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) {
5050
var customer example.ExaCustomer
@@ -67,7 +67,7 @@ func (e *CustomerApi) DeleteExaCustomer(c *gin.Context) {
6767
// @accept application/json
6868
// @Produce application/json
6969
// @Param data body example.ExaCustomer true "客户ID, 客户信息"
70-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
70+
// @Success 200 {object} response.Response{msg="更新成功"} "更新客户信息"
7171
// @Router /customer/customer [put]
7272
func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) {
7373
var customer example.ExaCustomer
@@ -94,7 +94,7 @@ func (e *CustomerApi) UpdateExaCustomer(c *gin.Context) {
9494
// @accept application/json
9595
// @Produce application/json
9696
// @Param data query example.ExaCustomer true "客户ID"
97-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
97+
// @Success 200 {object} response.Response{data=exampleRes.ExaCustomerResponse,msg="获取成功"} "获取单一客户信息,返回包括客户详情"
9898
// @Router /customer/customer [get]
9999
func (e *CustomerApi) GetExaCustomer(c *gin.Context) {
100100
var customer example.ExaCustomer
@@ -118,7 +118,7 @@ func (e *CustomerApi) GetExaCustomer(c *gin.Context) {
118118
// @accept application/json
119119
// @Produce application/json
120120
// @Param data query request.PageInfo true "页码, 每页大小"
121-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
121+
// @Success 200 {object} response.Response{data=response.PageResult,msg="获取成功"} "分页获取权限客户列表,返回包括列表,总数,页码,每页数量"
122122
// @Router /customer/customerList [get]
123123
func (e *CustomerApi) GetExaCustomerList(c *gin.Context) {
124124
var pageInfo request.PageInfo

server/api/v1/example/exa_excel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (e *ExcelApi) ExportExcel(c *gin.Context) {
4444
// @accept multipart/form-data
4545
// @Produce application/json
4646
// @Param file formData file true "导入Excel文件"
47-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"导入成功"}"
47+
// @Success 200 {object} response.Response{msg="导入成功"} "导入Excel文件"
4848
// @Router /excel/importExcel [post]
4949
func (e *ExcelApi) ImportExcel(c *gin.Context) {
5050
_, header, err := c.Request.FormFile("file")
@@ -61,7 +61,7 @@ func (e *ExcelApi) ImportExcel(c *gin.Context) {
6161
// @Summary 加载Excel数据
6262
// @Security ApiKeyAuth
6363
// @Produce application/json
64-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"加载数据成功"}"
64+
// @Success 200 {object} response.Response{data=response.PageResult,msg="加载数据成功"} "加载Excel数据,返回包括列表,总数,页码,每页数量"
6565
// @Router /excel/loadExcel [get]
6666
func (e *ExcelApi) LoadExcel(c *gin.Context) {
6767
menus, err := excelService.ParseExcel2InfoList()

server/api/v1/example/exa_file_upload_download.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type FileUploadAndDownloadApi struct{}
1818
// @accept multipart/form-data
1919
// @Produce application/json
2020
// @Param file formData file true "上传文件示例"
21-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"上传成功"}"
21+
// @Success 200 {object} response.Response{data=exampleRes.ExaFileResponse,msg="上传成功"} "上传文件示例,返回包括文件详情"
2222
// @Router /fileUploadAndDownload/upload [post]
2323
func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
2424
var file example.ExaFileUploadAndDownload
@@ -43,7 +43,7 @@ func (u *FileUploadAndDownloadApi) UploadFile(c *gin.Context) {
4343
// @Security ApiKeyAuth
4444
// @Produce application/json
4545
// @Param data body example.ExaFileUploadAndDownload true "传入文件里面id即可"
46-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
46+
// @Success 200 {object} response.Response{msg="删除成功"} "删除文件"
4747
// @Router /fileUploadAndDownload/deleteFile [post]
4848
func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {
4949
var file example.ExaFileUploadAndDownload
@@ -62,7 +62,7 @@ func (u *FileUploadAndDownloadApi) DeleteFile(c *gin.Context) {
6262
// @accept application/json
6363
// @Produce application/json
6464
// @Param data body request.PageInfo true "页码, 每页大小"
65-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
65+
// @Success 200 {object} response.Response{data=response.PageResult,msg="获取成功"} "分页文件列表,返回包括列表,总数,页码,每页数量"
6666
// @Router /fileUploadAndDownload/getFileList [post]
6767
func (u *FileUploadAndDownloadApi) GetFileList(c *gin.Context) {
6868
var pageInfo request.PageInfo

server/api/v1/system/sys_api.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type SystemApiApi struct{}
2121
// @accept application/json
2222
// @Produce application/json
2323
// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法"
24-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
24+
// @Success 200 {object} response.Response{msg="创建成功"} "创建基础api"
2525
// @Router /api/createApi [post]
2626
func (s *SystemApiApi) CreateApi(c *gin.Context) {
2727
var api system.SysApi
@@ -44,7 +44,7 @@ func (s *SystemApiApi) CreateApi(c *gin.Context) {
4444
// @accept application/json
4545
// @Produce application/json
4646
// @Param data body system.SysApi true "ID"
47-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
47+
// @Success 200 {object} response.Response{msg="删除成功"} "删除api"
4848
// @Router /api/deleteApi [post]
4949
func (s *SystemApiApi) DeleteApi(c *gin.Context) {
5050
var api system.SysApi
@@ -67,7 +67,7 @@ func (s *SystemApiApi) DeleteApi(c *gin.Context) {
6767
// @accept application/json
6868
// @Produce application/json
6969
// @Param data body systemReq.SearchApiParams true "分页获取API列表"
70-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
70+
// @Success 200 {object} response.Response{data=response.PageResult,msg="获取成功"} "分页获取API列表,返回包括列表,总数,页码,每页数量"
7171
// @Router /api/getApiList [post]
7272
func (s *SystemApiApi) GetApiList(c *gin.Context) {
7373
var pageInfo systemReq.SearchApiParams
@@ -89,13 +89,14 @@ func (s *SystemApiApi) GetApiList(c *gin.Context) {
8989
}
9090
}
9191

92+
// todo
9293
// @Tags SysApi
9394
// @Summary 根据id获取api
9495
// @Security ApiKeyAuth
9596
// @accept application/json
9697
// @Produce application/json
9798
// @Param data body request.GetById true "根据id获取api"
98-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
99+
// @Success 200 {object} response.Response{data=systemRes.SysAPIResponse} "根据id获取api,返回包括api详情"
99100
// @Router /api/getApiById [post]
100101
func (s *SystemApiApi) GetApiById(c *gin.Context) {
101102
var idInfo request.GetById
@@ -114,12 +115,12 @@ func (s *SystemApiApi) GetApiById(c *gin.Context) {
114115
}
115116

116117
// @Tags SysApi
117-
// @Summary 创建基础api
118+
// @Summary 修改基础api
118119
// @Security ApiKeyAuth
119120
// @accept application/json
120121
// @Produce application/json
121122
// @Param data body system.SysApi true "api路径, api中文描述, api组, 方法"
122-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
123+
// @Success 200 {object} response.Response{msg="修改成功"} "修改基础api"
123124
// @Router /api/updateApi [post]
124125
func (s *SystemApiApi) UpdateApi(c *gin.Context) {
125126
var api system.SysApi
@@ -141,7 +142,7 @@ func (s *SystemApiApi) UpdateApi(c *gin.Context) {
141142
// @Security ApiKeyAuth
142143
// @accept application/json
143144
// @Produce application/json
144-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
145+
// @Success 200 {object} response.Response{data=systemRes.SysAPIListResponse,msg="获取成功"} "获取所有的Api 不分页,返回包括api列表"
145146
// @Router /api/getAllApis [post]
146147
func (s *SystemApiApi) GetAllApis(c *gin.Context) {
147148
if err, apis := apiService.GetAllApis(); err != nil {
@@ -158,7 +159,7 @@ func (s *SystemApiApi) GetAllApis(c *gin.Context) {
158159
// @accept application/json
159160
// @Produce application/json
160161
// @Param data body request.IdsReq true "ID"
161-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
162+
// @Success 200 {object} response.Response{msg="删除成功"} "删除选中Api"
162163
// @Router /api/deleteApisByIds [delete]
163164
func (s *SystemApiApi) DeleteApisByIds(c *gin.Context) {
164165
var ids request.IdsReq

server/api/v1/system/sys_authority.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type AuthorityApi struct{}
2121
// @accept application/json
2222
// @Produce application/json
2323
// @Param data body system.SysAuthority true "权限id, 权限名, 父角色id"
24-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
24+
// @Success 200 {object} response.Response{data=systemRes.SysAuthorityResponse,msg="创建成功"} "创建角色,返回包括系统角色详情"
2525
// @Router /authority/createAuthority [post]
2626
func (a *AuthorityApi) CreateAuthority(c *gin.Context) {
2727
var authority system.SysAuthority
@@ -46,7 +46,7 @@ func (a *AuthorityApi) CreateAuthority(c *gin.Context) {
4646
// @accept application/json
4747
// @Produce application/json
4848
// @Param data body response.SysAuthorityCopyResponse true "旧角色id, 新权限id, 新权限名, 新父角色id"
49-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"拷贝成功"}"
49+
// @Success 200 {object} response.Response{data=systemRes.SysAuthorityResponse,msg="拷贝成功"} "拷贝角色,返回包括系统角色详情"
5050
// @Router /authority/copyAuthority [post]
5151
func (a *AuthorityApi) CopyAuthority(c *gin.Context) {
5252
var copyInfo systemRes.SysAuthorityCopyResponse
@@ -73,7 +73,7 @@ func (a *AuthorityApi) CopyAuthority(c *gin.Context) {
7373
// @accept application/json
7474
// @Produce application/json
7575
// @Param data body system.SysAuthority true "删除角色"
76-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
76+
// @Success 200 {object} response.Response{msg="删除成功"} "删除角色"
7777
// @Router /authority/deleteAuthority [post]
7878
func (a *AuthorityApi) DeleteAuthority(c *gin.Context) {
7979
var authority system.SysAuthority
@@ -96,7 +96,7 @@ func (a *AuthorityApi) DeleteAuthority(c *gin.Context) {
9696
// @accept application/json
9797
// @Produce application/json
9898
// @Param data body system.SysAuthority true "权限id, 权限名, 父角色id"
99-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
99+
// @Success 200 {object} response.Response{data=systemRes.SysAuthorityResponse,msg="更新成功"} "更新角色信息,返回包括系统角色详情"
100100
// @Router /authority/updateAuthority [post]
101101
func (a *AuthorityApi) UpdateAuthority(c *gin.Context) {
102102
var auth system.SysAuthority
@@ -119,7 +119,7 @@ func (a *AuthorityApi) UpdateAuthority(c *gin.Context) {
119119
// @accept application/json
120120
// @Produce application/json
121121
// @Param data body request.PageInfo true "页码, 每页大小"
122-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
122+
// @Success 200 {object} response.Response{data=response.PageResult,msg="获取成功"} "分页获取角色列表,返回包括列表,总数,页码,每页数量"
123123
// @Router /authority/getAuthorityList [post]
124124
func (a *AuthorityApi) GetAuthorityList(c *gin.Context) {
125125
var pageInfo request.PageInfo
@@ -147,7 +147,7 @@ func (a *AuthorityApi) GetAuthorityList(c *gin.Context) {
147147
// @accept application/json
148148
// @Produce application/json
149149
// @Param data body system.SysAuthority true "设置角色资源权限"
150-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
150+
// @Success 200 {object} response.Response{msg="设置成功"} "设置角色资源权限"
151151
// @Router /authority/setDataAuthority [post]
152152
func (a *AuthorityApi) SetDataAuthority(c *gin.Context) {
153153
var auth system.SysAuthority

server/api/v1/system/sys_auto_code.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type AutoCodeApi struct{}
2424
// @accept application/json
2525
// @Produce application/json
2626
// @Param data body system.AutoCodeStruct true "预览创建代码"
27-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
27+
// @Success 200 {object} response.Response{data=gin.H,msg="预览成功"} "预览创建后的代码"
2828
// @Router /autoCode/preview [post]
2929
func (autoApi *AutoCodeApi) PreviewTemp(c *gin.Context) {
3030
var a system.AutoCodeStruct
@@ -94,7 +94,7 @@ func (autoApi *AutoCodeApi) CreateTemp(c *gin.Context) {
9494
// @Security ApiKeyAuth
9595
// @accept application/json
9696
// @Produce application/json
97-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
97+
// @Success 200 {object} response.Response{data=gin.H,msg="获取成功"} "获取当前所有数据库"
9898
// @Router /autoCode/getDatabase [get]
9999
func (autoApi *AutoCodeApi) GetDB(c *gin.Context) {
100100
dbs, err := autoCodeService.Database().GetDB()
@@ -111,7 +111,7 @@ func (autoApi *AutoCodeApi) GetDB(c *gin.Context) {
111111
// @Security ApiKeyAuth
112112
// @accept application/json
113113
// @Produce application/json
114-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
114+
// @Success 200 {object} response.Response{data=gin.H,msg="获取成功"} "获取当前数据库所有表"
115115
// @Router /autoCode/getTables [get]
116116
func (autoApi *AutoCodeApi) GetTables(c *gin.Context) {
117117
dbName := c.DefaultQuery("dbName", global.GVA_CONFIG.Mysql.Dbname)
@@ -130,7 +130,7 @@ func (autoApi *AutoCodeApi) GetTables(c *gin.Context) {
130130
// @Security ApiKeyAuth
131131
// @accept application/json
132132
// @Produce application/json
133-
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
133+
// @Success 200 {object} response.Response{data=gin.H,msg="获取成功"} "获取当前表所有字段"
134134
// @Router /autoCode/getColumn [get]
135135
func (autoApi *AutoCodeApi) GetColumn(c *gin.Context) {
136136
dbName := c.DefaultQuery("dbName", global.GVA_CONFIG.Mysql.Dbname)

0 commit comments

Comments
 (0)