diff --git a/src/api/DraftApi.ts b/src/api/DraftApi.ts index 92970da..0f83bfe 100644 --- a/src/api/DraftApi.ts +++ b/src/api/DraftApi.ts @@ -1,7 +1,7 @@ import { api } from 'src/boot/axios'; import { PageDto, PageQueryDto } from './ApiCommon'; -const DraftUriBase = '/api/drafting'; +const DraftUriBase = '/api/v1/drafting'; interface Item { id: number; diff --git a/src/api/LineInfoApi.ts b/src/api/LineInfoApi.ts index a2c5fb2..aae8c85 100644 --- a/src/api/LineInfoApi.ts +++ b/src/api/LineInfoApi.ts @@ -1,7 +1,7 @@ import { api } from 'src/boot/axios'; import { PageDto, PageQueryDto } from './ApiCommon'; -const UriBase = '/api/lineInfo'; +const UriBase = '/api/v1/lineInfo'; export interface createParams { name: string; diff --git a/src/api/PublishApi.ts b/src/api/PublishApi.ts index 060d2bf..4156d90 100644 --- a/src/api/PublishApi.ts +++ b/src/api/PublishApi.ts @@ -1,7 +1,7 @@ import { api } from 'src/boot/axios'; import { PageDto, PageQueryDto } from './ApiCommon'; -const PublishUriBase = '/api/publishedGi'; +const PublishUriBase = '/api/v1/publishedGi'; interface Item { id: number; diff --git a/src/api/Simulation.ts b/src/api/Simulation.ts index ba139f8..a5028d9 100644 --- a/src/api/Simulation.ts +++ b/src/api/Simulation.ts @@ -1,6 +1,6 @@ import { api } from 'src/boot/axios'; -const UriBase = '/api/simulation'; +const UriBase = '/api/v1/simulation'; /** * 创建仿真 diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts index 8f981fc..8c1a564 100644 --- a/src/api/UserApi.ts +++ b/src/api/UserApi.ts @@ -2,7 +2,7 @@ import { api } from 'src/boot/axios'; import { PageDto, PageQueryDto } from './ApiCommon'; import { Md5 } from 'ts-md5'; -const UserUriBase = '/api/user'; +const UserUriBase = '/api/v1/user'; interface RegisterInfo { name: string; @@ -73,7 +73,7 @@ export async function pageQuery( } export function distributeRole(query: { userId: number; roleIds: number[] }) { - return api.post('/api/role/distribute', query); + return api.post('/api/v1/role/distribute', query); } /**