1234567891011121314151617181920212223242526272829303132 |
- {{if .IsPlugin}}
- // {{.FuncName}} {{.FuncDesc}}
- // @Tags {{.StructName}}
- // @Summary {{.FuncDesc}}
- // @Accept application/json
- // @Produce application/json
- // @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
- // @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
- export const {{.Router}} = () => {
- return service({
- url: '/{{.Abbreviation}}/{{.Router}}',
- method: '{{.Method}}'
- })
- }
- {{- else -}}
- // {{.FuncName}} {{.FuncDesc}}
- // @Tags {{.StructName}}
- // @Summary {{.FuncDesc}}
- // @Accept application/json
- // @Produce application/json
- // @Success 200 {object} response.Response{data=object,msg=string} "成功"
- // @Router /{{.Abbreviation}}/{{.Router}} [{{.Method}}]
- export const {{.Router}} = () => {
- return service({
- url: '/{{.Abbreviation}}/{{.Router}}',
- method: '{{.Method}}'
- })
- }
- {{- end -}}
|