初始化项目
This commit is contained in:
51
web-vue/packages/biz/api/biz/myWebsiteStorage.ts
Normal file
51
web-vue/packages/biz/api/biz/myWebsiteStorage.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
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();
|
||||
|
||||
export interface MyWebsiteStorage extends BasicModel<MyWebsiteStorage> {
|
||||
createTime?: string; // 记录日期
|
||||
websiteId?: string; // 网站标识
|
||||
websiteUrl: string; // 网站地址
|
||||
websiteName: string; // 网站名称
|
||||
webAccount?: string; // 登录账号
|
||||
webPassword?: string; // 登录密码
|
||||
loginUser?: string; // 所属账户
|
||||
ustatus: string; // 状态
|
||||
}
|
||||
|
||||
export const myWebsiteStorageList = (params?: MyWebsiteStorage | any) =>
|
||||
defHttp.get<MyWebsiteStorage>({ url: adminPath + '/biz/myWebsiteStorage/list', params });
|
||||
|
||||
export const myWebsiteStorageListData = (params?: MyWebsiteStorage | any) =>
|
||||
defHttp.post<Page<MyWebsiteStorage>>({ url: adminPath + '/biz/myWebsiteStorage/listData', params });
|
||||
|
||||
export const myWebsiteStorageForm = (params?: MyWebsiteStorage | any) =>
|
||||
defHttp.get<MyWebsiteStorage>({ url: adminPath + '/biz/myWebsiteStorage/form', params });
|
||||
|
||||
export const myWebsiteStorageSave = (params?: any, data?: MyWebsiteStorage | any) =>
|
||||
defHttp.postJson<MyWebsiteStorage>({ url: adminPath + '/biz/myWebsiteStorage/save', params, data });
|
||||
|
||||
export const myWebsiteStorageImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myWebsiteStorage/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myWebsiteStorageDelete = (params?: MyWebsiteStorage | any) =>
|
||||
defHttp.get<MyWebsiteStorage>({ url: adminPath + '/biz/myWebsiteStorage/delete', params });
|
||||
Reference in New Issue
Block a user