Some checks failed
CI / init (push) Has been cancelled
CI / Frontend node 18.16.0 (push) Has been cancelled
CI / Backend go (1.22) (push) Has been cancelled
CI / devops-test (1.22, 18.16.0) (push) Has been cancelled
CI / release-pr (push) Has been cancelled
CI / release-please (push) Has been cancelled
CI / devops-prod (1.22, 18.x) (push) Has been cancelled
CI / docker (push) Has been cancelled
33 lines
853 B
Smarty
33 lines
853 B
Smarty
{{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 -}}
|