Skip to content

Commit 3b93a07

Browse files
committed
feature: swagger 优化
1 parent a4a7b44 commit 3b93a07

File tree

9 files changed

+2039
-855
lines changed

9 files changed

+2039
-855
lines changed

server/api/v1/system/auto_code_history.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (a *AutoCodeHistoryApi) Delete(c *gin.Context) {
6666
// @Security ApiKeyAuth
6767
// @accept application/json
6868
// @Produce application/json
69-
// @Param data body systemReq.RollBack true "请求参数"
69+
// @Param data body request.SysAutoHistoryRollBack true "请求参数"
7070
// @Success 200 {object} response.Response{msg=string} "回滚自动生成代码"
7171
// @Router /autoCode/rollback [post]
7272
func (a *AutoCodeHistoryApi) RollBack(c *gin.Context) {
@@ -90,7 +90,7 @@ func (a *AutoCodeHistoryApi) RollBack(c *gin.Context) {
9090
// @Security ApiKeyAuth
9191
// @accept application/json
9292
// @Produce application/json
93-
// @Param data body systemReq.SysAutoHistory true "请求参数"
93+
// @Param data body common.PageInfo true "请求参数"
9494
// @Success 200 {object} response.Response{data=response.PageResult,msg=string} "查询回滚记录,返回包括列表,总数,页码,每页数量"
9595
// @Router /autoCode/getSysHistory [post]
9696
func (a *AutoCodeHistoryApi) GetList(c *gin.Context) {

server/api/v1/system/auto_code_package.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type AutoCodePackageApi struct{}
1919
// @Security ApiKeyAuth
2020
// @accept application/json
2121
// @Produce application/json
22-
// @Param data body system.SysAutoCode true "创建package"
22+
// @Param data body request.SysAutoCodePackageCreate true "创建package"
2323
// @Success 200 {object} response.Response{data=map[string]interface{},msg=string} "创建package成功"
2424
// @Router /autoCode/createPackage [post]
2525
func (a *AutoCodePackageApi) Create(c *gin.Context) {
@@ -48,7 +48,7 @@ func (a *AutoCodePackageApi) Create(c *gin.Context) {
4848
// @Security ApiKeyAuth
4949
// @accept application/json
5050
// @Produce application/json
51-
// @Param data body system.SysAutoCode true "创建package"
51+
// @Param data body common.GetById true "创建package"
5252
// @Success 200 {object} response.Response{data=map[string]interface{},msg=string} "删除package成功"
5353
// @Router /autoCode/delPackage [post]
5454
func (a *AutoCodePackageApi) Delete(c *gin.Context) {

server/api/v1/system/auto_code_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (a *AutoCodePluginApi) Install(c *gin.Context) {
5555
// @Security ApiKeyAuth
5656
// @accept application/json
5757
// @Produce application/json
58-
// @Param data body system.SysAutoCode true "打包插件"
58+
// @Param plugName query string true "插件名称"
5959
// @Success 200 {object} response.Response{data=map[string]interface{},msg=string} "打包插件成功"
6060
// @Router /autoCode/pubPlug [get]
6161
func (a *AutoCodePluginApi) Packaged(c *gin.Context) {

server/api/v1/system/auto_code_template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type AutoCodeTemplateApi struct{}
1717
// @Security ApiKeyAuth
1818
// @accept application/json
1919
// @Produce application/json
20-
// @Param data body system.AutoCodeStruct true "预览创建代码"
20+
// @Param data body request.AutoCode true "预览创建代码"
2121
// @Success 200 {object} response.Response{data=map[string]interface{},msg=string} "预览创建后的代码"
2222
// @Router /autoCode/preview [post]
2323
func (a *AutoCodeTemplateApi) Preview(c *gin.Context) {
@@ -53,7 +53,7 @@ func (a *AutoCodeTemplateApi) Preview(c *gin.Context) {
5353
// @Security ApiKeyAuth
5454
// @accept application/json
5555
// @Produce application/json
56-
// @Param data body system.AutoCodeStruct true "创建自动代码"
56+
// @Param data body request.AutoCode true "创建自动代码"
5757
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
5858
// @Router /autoCode/createTemp [post]
5959
func (a *AutoCodeTemplateApi) Create(c *gin.Context) {

0 commit comments

Comments
 (0)