feature:自动化代码增加数据源配置功能

This commit is contained in:
pixelmaxQM
2024-04-27 21:35:29 +08:00
parent 6c62d73afb
commit d9a43ea1d6
12 changed files with 207 additions and 59 deletions

View File

@@ -95,3 +95,19 @@ export const get{{.StructName}}List = (params) => {
params
})
}
{{- if .HasDataSource}}
// @Tags {{.StructName}}
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /{{.Abbreviation}}/find{{.StructName}}DataSource [get]
export const get{{.StructName}}DataSource = () => {
return service({
url: '/{{.Abbreviation}}/get{{.StructName}}DataSource',
method: 'get',
})
}
{{- end}}