|
|
@@ -2,7 +2,7 @@ import request from '@/router/axios';
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
return request({
|
|
|
- url: '/api/$!{cfg.serviceName}/$!{table.entityPath}/list',
|
|
|
+ url: '/api/$!{cfg.serviceName}/$!{cfg.entityKey}/list',
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
...params,
|
|
|
@@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
|
|
|
|
|
|
export const getDetail = (id) => {
|
|
|
return request({
|
|
|
- url: '/api/$!{cfg.serviceName}/$!{table.entityPath}/detail',
|
|
|
+ url: '/api/$!{cfg.serviceName}/$!{cfg.entityKey}/detail',
|
|
|
method: 'get',
|
|
|
params: {
|
|
|
id
|
|
|
@@ -24,7 +24,7 @@ export const getDetail = (id) => {
|
|
|
|
|
|
export const remove = (ids) => {
|
|
|
return request({
|
|
|
- url: '/api/$!{cfg.serviceName}/$!{table.entityPath}/remove',
|
|
|
+ url: '/api/$!{cfg.serviceName}/$!{cfg.entityKey}/remove',
|
|
|
method: 'post',
|
|
|
params: {
|
|
|
ids,
|
|
|
@@ -34,7 +34,7 @@ export const remove = (ids) => {
|
|
|
|
|
|
export const add = (row) => {
|
|
|
return request({
|
|
|
- url: '/api/$!{cfg.serviceName}/$!{table.entityPath}/submit',
|
|
|
+ url: '/api/$!{cfg.serviceName}/$!{cfg.entityKey}/submit',
|
|
|
method: 'post',
|
|
|
data: row
|
|
|
})
|
|
|
@@ -42,7 +42,7 @@ export const add = (row) => {
|
|
|
|
|
|
export const update = (row) => {
|
|
|
return request({
|
|
|
- url: '/api/$!{cfg.serviceName}/$!{table.entityPath}/submit',
|
|
|
+ url: '/api/$!{cfg.serviceName}/$!{cfg.entityKey}/submit',
|
|
|
method: 'post',
|
|
|
data: row
|
|
|
})
|