项目需求、任务以及模块精简
This commit is contained in:
@@ -6,11 +6,8 @@
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
|
||||
createTime?: string; // 记录时间
|
||||
@@ -26,7 +23,7 @@ export interface MyQuickLogin extends BasicModel<MyQuickLogin> {
|
||||
|
||||
export const myQuickLoginList = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/list', params });
|
||||
|
||||
|
||||
export const myQuickLoginListAll = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin[]>({ url: adminPath + '/biz/myQuickLogin/listAll', params });
|
||||
|
||||
@@ -39,17 +36,5 @@ export const myQuickLoginForm = (params?: MyQuickLogin | any) =>
|
||||
export const myQuickLoginSave = (params?: any, data?: MyQuickLogin | any) =>
|
||||
defHttp.postJson<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/save', params, data });
|
||||
|
||||
export const myQuickLoginImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myQuickLogin/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myQuickLoginDelete = (params?: MyQuickLogin | any) =>
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params });
|
||||
defHttp.get<MyQuickLogin>({ url: adminPath + '/biz/myQuickLogin/delete', params });
|
||||
Reference in New Issue
Block a user