代码生成器增加前端table.vue的自动生成

This commit is contained in:
QM303176530
2020-04-30 00:00:24 +08:00
parent 9185d573ab
commit 40a78d8228
4 changed files with 178 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ export const create{{.StructName}} = (data) => {
// @Param data body model.{{.StructName}} true "用id查询{{.StructName}}"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /{{.Abbreviation}}/find{{.StructName}} [get]
export const find{{.StructName}} = (data) => {
export const find{{.StructName}} = (params) => {
return service({
url: "/{{.Abbreviation}}/find{{.StructName}}",
method: 'get',
@@ -75,7 +75,7 @@ export const create{{.StructName}} = (data) => {
// @Param data body request.PageInfo true "分页获取{{.StructName}}列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /{{.Abbreviation}}/get{{.StructName}}List [get]
export const get{{.StructName}}List = (data) => {
export const get{{.StructName}}List = (params) => {
return service({
url: "/{{.Abbreviation}}/get{{.StructName}}List",
method: 'get',