|
@@ -1,12 +1,12 @@
|
|
|
import { request } from '/@/utils/service';
|
|
|
import { UserPageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
|
|
|
|
|
|
-export const apiPrefix = '/api/system/borrow';
|
|
|
+export const apiPrefix = '/api/system/borrow/';
|
|
|
export const apiPrefixDetail = '/api/system/borrow/application/';
|
|
|
|
|
|
export function GetList(query: UserPageQuery) {
|
|
|
return request({
|
|
|
- url: apiPrefix + "/application/",
|
|
|
+ url: apiPrefix + "application/",
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
});
|
|
@@ -21,7 +21,7 @@ export function GetObj(id: InfoReq) {
|
|
|
|
|
|
export function AddObj(obj: AddReq) {
|
|
|
return request({
|
|
|
- url: apiPrefix+ "/application/",
|
|
|
+ url: apiPrefix+ "application/",
|
|
|
method: 'post',
|
|
|
data: obj
|
|
|
});
|