调整接口url
This commit is contained in:
parent
4c0378c597
commit
62da0fde67
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { api } from 'src/boot/axios';
|
||||
|
||||
const UriBase = '/api/simulation';
|
||||
const UriBase = '/api/v1/simulation';
|
||||
|
||||
/**
|
||||
* 创建仿真
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user