Commit 7835363c88fc60a19b596b5906a3d5c7eaa98ac5
1 parent
d797bbd1
fix:【infra】代码生成:移动端的模版,id= 的拼接不对(linter 报错)
Showing
1 changed file
with
2 additions
and
5 deletions
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/api/api.ts.vm
| ... | ... | @@ -7,7 +7,6 @@ import { http } from '@/http/http' |
| 7 | 7 | #else |
| 8 | 8 | #set ($primaryTsType = "string") |
| 9 | 9 | #end |
| 10 | - | |
| 11 | 10 | /** ${table.classComment}信息 */ |
| 12 | 11 | export interface ${simpleClassName} { |
| 13 | 12 | #foreach ($column in $columns) |
| ... | ... | @@ -28,7 +27,6 @@ export interface ${simpleClassName} { |
| 28 | 27 | #end |
| 29 | 28 | } |
| 30 | 29 | |
| 31 | -// TODO @AI:`/system/operate-log/get?id=${id}` 类似这种 | |
| 32 | 30 | /** 获取${table.classComment}分页列表 */ |
| 33 | 31 | export function get${simpleClassName}Page(params: PageParam) { |
| 34 | 32 | return http.get<PageResult<${simpleClassName}>>('/${table.moduleName}/${simpleClassName_strikeCase}/page', params) |
| ... | ... | @@ -36,7 +34,7 @@ export function get${simpleClassName}Page(params: PageParam) { |
| 36 | 34 | |
| 37 | 35 | /** 获取${table.classComment}详情 */ |
| 38 | 36 | export function get${simpleClassName}(id: ${primaryTsType}) { |
| 39 | - return http.get<${simpleClassName}>('/${table.moduleName}/${simpleClassName_strikeCase}/get?id=' + id) | |
| 37 | + return http.get<${simpleClassName}>(`/${table.moduleName}/${simpleClassName_strikeCase}/get?id=${id}`) | |
| 40 | 38 | } |
| 41 | 39 | |
| 42 | 40 | /** 创建${table.classComment} */ |
| ... | ... | @@ -49,8 +47,7 @@ export function update${simpleClassName}(data: ${simpleClassName}) { |
| 49 | 47 | return http.put<boolean>('/${table.moduleName}/${simpleClassName_strikeCase}/update', data) |
| 50 | 48 | } |
| 51 | 49 | |
| 52 | -// TODO @AI:`/system/operate-log/get?id=${id}` 类似这种 | |
| 53 | 50 | /** 删除${table.classComment} */ |
| 54 | 51 | export function delete${simpleClassName}(id: ${primaryTsType}) { |
| 55 | - return http.delete<boolean>('/${table.moduleName}/${simpleClassName_strikeCase}/delete?id=' + id) | |
| 52 | + return http.delete<boolean>(`/${table.moduleName}/${simpleClassName_strikeCase}/delete?id=${id}`) | |
| 56 | 53 | } | ... | ... |