Skip to content

Commit

Permalink
fixed: 清理自动化方法的swagger入参
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Sep 16, 2024
1 parent 37b0ef4 commit 8733b24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion server/resource/function/api.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// @Summary {{.FuncDesc}}
// @accept application/json
// @Produce application/json
// @Param data query request.{{.StructName}}Search true "分页获取{{.Description}}列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) {
Expand Down
2 changes: 0 additions & 2 deletions server/resource/function/api.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// @Summary {{.FuncDesc}}
// @accept application/json
// @Produce application/json
// @Param data query request.{{.StructName}}Search true "分页获取{{.Description}}列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
export const {{.Router}} = () => {
Expand All @@ -21,7 +20,6 @@ export const {{.Router}} = () => {
// @Summary {{.FuncDesc}}
// @accept application/json
// @Produce application/json
// @Param data query {{.Package}}Req.{{.StructName}}Search true "成功"
// @Success 200 {object} response.Response{data=object,msg=string} "成功"
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
export const {{.Router}} = () => {
Expand Down

0 comments on commit 8733b24

Please sign in to comment.