调整接口url

This commit is contained in:
dong 2023-07-31 10:15:08 +08:00
parent 4c0378c597
commit 62da0fde67
5 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,6 +1,6 @@
import { api } from 'src/boot/axios';
const UriBase = '/api/simulation';
const UriBase = '/api/v1/simulation';
/**
* 仿

View File

@ -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);
}
/**