项目初始化
This commit is contained in:
59
web-vue/packages/biz/api/biz/myCompany.ts
Normal file
59
web-vue/packages/biz/api/biz/myCompany.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 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 MyCompany extends BasicModel<MyCompany> {
|
||||
createTime?: string; // 记录时间
|
||||
companyId?: string; // 唯一主键
|
||||
companyName: string; // 公司全称
|
||||
shortName: string; // 公司简称
|
||||
creditCode: string; // 统一社会信用代码
|
||||
legalPerson: string; // 法人姓名
|
||||
registeredCapital: string; // 注册资本
|
||||
establishDate: string; // 成立日期
|
||||
province: string; // 所在省份
|
||||
city: string; // 所在城市
|
||||
address: string; // 注册地址
|
||||
businessScope: string; // 经营范围
|
||||
contactPhone?: string; // 公司电话
|
||||
contactEmail?: string; // 公司邮箱
|
||||
ustatus: string; // 数据状态
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myCompanyList = (params?: MyCompany | any) =>
|
||||
defHttp.get<MyCompany>({ url: adminPath + '/biz/myCompany/list', params });
|
||||
|
||||
export const myCompanyListData = (params?: MyCompany | any) =>
|
||||
defHttp.post<Page<MyCompany>>({ url: adminPath + '/biz/myCompany/listData', params });
|
||||
|
||||
export const myCompanyForm = (params?: MyCompany | any) =>
|
||||
defHttp.get<MyCompany>({ url: adminPath + '/biz/myCompany/form', params });
|
||||
|
||||
export const myCompanySave = (params?: any, data?: MyCompany | any) =>
|
||||
defHttp.postJson<MyCompany>({ url: adminPath + '/biz/myCompany/save', params, data });
|
||||
|
||||
export const myCompanyImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myCompany/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myCompanyDelete = (params?: MyCompany | any) =>
|
||||
defHttp.get<MyCompany>({ url: adminPath + '/biz/myCompany/delete', params });
|
||||
55
web-vue/packages/biz/api/biz/myNotes.ts
Normal file
55
web-vue/packages/biz/api/biz/myNotes.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* 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 MyNotes extends BasicModel<MyNotes> {
|
||||
createTime?: string; // 记录时间
|
||||
noteId?: string; // 唯一标识
|
||||
title: string; // 标题
|
||||
content: string; // 内容
|
||||
priority: string; // 级别
|
||||
ustatus: string; // 状态
|
||||
startTime?: string; // 开始时间
|
||||
endTime?: string; // 结束时间
|
||||
type: string; // 类型
|
||||
deadline: string; // 截至时间
|
||||
updateTime?: string; // 更新时间
|
||||
createUser?: string; // 创建用户
|
||||
}
|
||||
|
||||
export const myNotesList = (params?: MyNotes | any) =>
|
||||
defHttp.get<MyNotes>({ url: adminPath + '/biz/myNotes/list', params });
|
||||
|
||||
export const myNotesListData = (params?: MyNotes | any) =>
|
||||
defHttp.post<Page<MyNotes>>({ url: adminPath + '/biz/myNotes/listData', params });
|
||||
|
||||
export const myNotesForm = (params?: MyNotes | any) =>
|
||||
defHttp.get<MyNotes>({ url: adminPath + '/biz/myNotes/form', params });
|
||||
|
||||
export const myNotesSave = (params?: any, data?: MyNotes | any) =>
|
||||
defHttp.postJson<MyNotes>({ url: adminPath + '/biz/myNotes/save', params, data });
|
||||
|
||||
export const myNotesImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myNotes/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myNotesDelete = (params?: MyNotes | any) =>
|
||||
defHttp.get<MyNotes>({ url: adminPath + '/biz/myNotes/delete', params });
|
||||
57
web-vue/packages/biz/api/biz/myPerson.ts
Normal file
57
web-vue/packages/biz/api/biz/myPerson.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 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 MyPerson extends BasicModel<MyPerson> {
|
||||
createTime?: string; // 记录时间
|
||||
personId?: string; // 唯一主键
|
||||
personName: string; // 姓名
|
||||
gender: string; // 性别
|
||||
idCard: string; // 身份证号
|
||||
phone?: string; // 手机号码
|
||||
email?: string; // 邮箱
|
||||
birthDate: string; // 出生日期
|
||||
address?: string; // 居住地址
|
||||
department?: string; // 所属部门
|
||||
positionName?: string; // 职位
|
||||
ustatus?: string; // 状态
|
||||
companyId?: string; // 公司编号
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myPersonList = (params?: MyPerson | any) =>
|
||||
defHttp.get<MyPerson>({ url: adminPath + '/biz/myPerson/list', params });
|
||||
|
||||
export const myPersonListData = (params?: MyPerson | any) =>
|
||||
defHttp.post<Page<MyPerson>>({ url: adminPath + '/biz/myPerson/listData', params });
|
||||
|
||||
export const myPersonForm = (params?: MyPerson | any) =>
|
||||
defHttp.get<MyPerson>({ url: adminPath + '/biz/myPerson/form', params });
|
||||
|
||||
export const myPersonSave = (params?: any, data?: MyPerson | any) =>
|
||||
defHttp.postJson<MyPerson>({ url: adminPath + '/biz/myPerson/save', params, data });
|
||||
|
||||
export const myPersonImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myPerson/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myPersonDelete = (params?: MyPerson | any) =>
|
||||
defHttp.get<MyPerson>({ url: adminPath + '/biz/myPerson/delete', params });
|
||||
Reference in New Issue
Block a user