Skip to content

Commit

Permalink
fixed:插件api增加空方法模板调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Jul 27, 2024
1 parent 6debb09 commit 2645dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/resource/function/api.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// @Produce application/json
// @Param data query request.{{.StructName}}Search true "分页获取{{.Description}}列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /{{.Abbreviation}}/{{.FuncName}} [{{.Method}}]
func (a *{{.Abbreviation}}) {{.Router}}(c *gin.Context) {
// @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
func (a *{{.Abbreviation}}) {{.FuncName}}(c *gin.Context) {
// 请添加自己的业务逻辑
err := service{{ .StructName }}.{{.FuncName}}()
if err != nil {
Expand Down

0 comments on commit 2645dcd

Please sign in to comment.