初始化项目

This commit is contained in:
2026-03-29 22:20:35 +08:00
parent e2c315200a
commit c914ca1b9e
21 changed files with 2811 additions and 5 deletions

View 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 MyMeetingInfo extends BasicModel<MyMeetingInfo> {
createTime?: string; // 记录时间
title: string; // 会议标题
meetingCode: string; // 会议编号
meetingContent: string; // 会议内容
meetingUser: string; // 参会人员
otherUser?: string; // 其他人员
meetingType: string; // 会议类型
startTime?: string; // 开始时间
endTime?: string; // 结束时间
meetingLocation: string; // 会议地点
ustatus: string; // 会议状态
remark?: string; // 备注说明
createUser?: string; // 创建账户
updateTime?: string; // 更新时间
}
export const myMeetingInfoList = (params?: MyMeetingInfo | any) =>
defHttp.get<MyMeetingInfo>({ url: adminPath + '/biz/myMeetingInfo/list', params });
export const myMeetingInfoListData = (params?: MyMeetingInfo | any) =>
defHttp.post<Page<MyMeetingInfo>>({ url: adminPath + '/biz/myMeetingInfo/listData', params });
export const myMeetingInfoForm = (params?: MyMeetingInfo | any) =>
defHttp.get<MyMeetingInfo>({ url: adminPath + '/biz/myMeetingInfo/form', params });
export const myMeetingInfoSave = (params?: any, data?: MyMeetingInfo | any) =>
defHttp.postJson<MyMeetingInfo>({ url: adminPath + '/biz/myMeetingInfo/save', params, data });
export const myMeetingInfoImportData = (
params: UploadFileParams,
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
) =>
defHttp.uploadFile<UploadApiResult>(
{
url: ctxPath + adminPath + '/biz/myMeetingInfo/importData',
onUploadProgress,
},
params,
);
export const myMeetingInfoDelete = (params?: MyMeetingInfo | any) =>
defHttp.get<MyMeetingInfo>({ url: adminPath + '/biz/myMeetingInfo/delete', params });

View File

@@ -0,0 +1,60 @@
/**
* 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 MySchedule extends BasicModel<MySchedule> {
createTime?: string; // 记录时间
scheduleId?: string; // 日程主键
title: string; // 日程标题
content: string; // 日程内容
scheduleType: string; // 日程类型
startTime?: string; // 开始时间
endTime?: string; // 结束时间
priority: string; // 优先等级
ustatus: string; // 日程状态
isAllDay: string; // 是否全天
remindTime?: number; // 提醒分钟
location?: string; // 日程地点
createUser?: number; // 创建账户
updateTime?: string; // 更新时间
}
export const myScheduleList = (params?: MySchedule | any) =>
defHttp.get<MySchedule>({ url: adminPath + '/biz/mySchedule/list', params });
export const myScheduleListAll = (params?: MySchedule | any) =>
defHttp.get<MySchedule[]>({ url: adminPath + '/biz/mySchedule/listAll', params });
export const myScheduleListData = (params?: MySchedule | any) =>
defHttp.post<Page<MySchedule>>({ url: adminPath + '/biz/mySchedule/listData', params });
export const myScheduleForm = (params?: MySchedule | any) =>
defHttp.get<MySchedule>({ url: adminPath + '/biz/mySchedule/form', params });
export const myScheduleSave = (params?: any, data?: MySchedule | any) =>
defHttp.postJson<MySchedule>({ url: adminPath + '/biz/mySchedule/save', params, data });
export const myScheduleImportData = (
params: UploadFileParams,
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
) =>
defHttp.uploadFile<UploadApiResult>(
{
url: ctxPath + adminPath + '/biz/mySchedule/importData',
onUploadProgress,
},
params,
);
export const myScheduleDelete = (params?: MySchedule | any) =>
defHttp.get<MySchedule>({ url: adminPath + '/biz/mySchedule/delete', params });