代码生成器:增加树形结构的 vm 模版

This commit is contained in:
zhijiantianya@gmail.com
2023-11-14 19:37:35 +08:00
parent 06649624e5
commit b47c4fbd8d
15 changed files with 246 additions and 20 deletions

View File

@@ -15,10 +15,17 @@ export interface ${simpleClassName}VO {
#end
}
// 查询${table.classComment}列表
#if ( $table.templateType != 2 )
// 查询${table.classComment}分页
export const get${simpleClassName}Page = async (params) => {
return await request.get({ url: `${baseURL}/page`, params })
}
#else
// 查询${table.classComment}列表
export const get${simpleClassName}List = async (params) => {
return await request.get({ url: `${baseURL}/list`, params })
}
#end
// 查询${table.classComment}详情
export const get${simpleClassName} = async (id: number) => {