|
|
@@ -2,97 +2,97 @@ import request from '@/api'
|
|
|
|
|
|
/** 课程模型 */
|
|
|
export interface Course {
|
|
|
- courseID: number /** 课程ID*/
|
|
|
+ courseID: string /** 课程ID*/
|
|
|
courseName: string /** 课程名称*/
|
|
|
courseDesc: string /** 课程描述*/
|
|
|
- totalDuration: number /** 课程总时长*/
|
|
|
- typeID: number /** 分类ID*/
|
|
|
+ totalDuration: string /** 课程总时长*/
|
|
|
+ typeID: string /** 分类ID*/
|
|
|
courseDataStream: string /** 课程数据流*/
|
|
|
- externalTypeID: number /** 外部分类ID*/
|
|
|
+ externalTypeID: string /** 外部分类ID*/
|
|
|
courseGUID: string /** 课程GUID*/
|
|
|
guideDesc: string /** 指导描述*/
|
|
|
guideFilePath: string /** 指导文件地址*/
|
|
|
- lineNo: number /** 线路号*/
|
|
|
- runningMap: number /** 运行图*/
|
|
|
+ lineNo: string /** 线路号*/
|
|
|
+ runningMap: string /** 运行图*/
|
|
|
virtualRole: string /** 虚拟角色,使用逗号隔开*/
|
|
|
- virtualStartTime: number /** 虚拟起始时间*/
|
|
|
+ virtualStartTime: string /** 虚拟起始时间*/
|
|
|
creator: string /** 创建人*/
|
|
|
createTime: string /** 创建时间*/
|
|
|
modifyTime: string /** 修改时间*/
|
|
|
}
|
|
|
|
|
|
export class CourseServer {
|
|
|
- public static list = (data: any) => request.post<Course[]>('/course/list', data)
|
|
|
- public static detail = (courseId: number) => request.post<Course>('/course/detail/get', { courseId })
|
|
|
+ public static list = (params: Record<string, unknown>) => request.post<Course[]>('/course/list', params)
|
|
|
+ public static detail = (courseId: string) => request.post<Course>('/course/detail/get', { courseId })
|
|
|
public static add = (data: Omit<Course, 'courseID' | 'courseGUID' | 'creator' | 'createTime' | 'modifyTime'>) => request.post('/course/add', data)
|
|
|
public static update = (data: Omit<Course, 'creator' | 'createTime' | 'modifyTime'>) => request.post('/course/update', data)
|
|
|
- public static delete = (courseId: number) => request.post('/course/delete', { courseId })
|
|
|
+ public static delete = (courseId: string) => request.post('/course/delete', { courseId })
|
|
|
// 课程复制
|
|
|
- public static copy = (courseId: number) => request.post('/course/copy', { courseId })
|
|
|
+ public static copy = (courseId: string) => request.post('/course/copy', { courseId })
|
|
|
// 课程导入
|
|
|
public static import = (file: Blob | File) => request.upload('/course/import', { file })
|
|
|
// 课程导出
|
|
|
- public static export = (courseIds: number[]) => request.post('/course/export', { courseIds })
|
|
|
+ public static export = (courseIds: string[]) => request.post('/course/export', { courseIds })
|
|
|
}
|
|
|
|
|
|
/** 用户角色 */
|
|
|
export interface ProcessRole {
|
|
|
- roleID: number /** 角色ID */
|
|
|
+ roleID: string /** 角色ID */
|
|
|
roleName: string /** 角色名称 */
|
|
|
- roleType: number /** 角色类型 */
|
|
|
+ roleType: string /** 角色类型 */
|
|
|
}
|
|
|
/** 操作类模板 */
|
|
|
export interface ProcessOperate {
|
|
|
- templateID: number /** 模板ID */
|
|
|
+ templateID: string /** 模板ID */
|
|
|
templateName: string /** 操作模板名称 */
|
|
|
- templateType: number /** 操作模板类型 */
|
|
|
- category: number /** 分类 */
|
|
|
+ templateType: string /** 操作模板类型 */
|
|
|
+ category: string /** 分类 */
|
|
|
categoryName: string /** 分类名称 */
|
|
|
param1Desc: string /** 参数1说明 */
|
|
|
- param1Type: number /** 参数1类型 */
|
|
|
+ param1Type: string /** 参数1类型 */
|
|
|
param2Desc: string /** 参数2说明 */
|
|
|
- param2Type: number /** 参数2类型 */
|
|
|
+ param2Type: string /** 参数2类型 */
|
|
|
param3Desc: string /** 参数3说明 */
|
|
|
- param3Type: number /** 参数3类型 */
|
|
|
+ param3Type: string /** 参数3类型 */
|
|
|
param4Desc: string /** 参数4说明 */
|
|
|
- param4Type: number /** 参数4类型 */
|
|
|
+ param4Type: string /** 参数4类型 */
|
|
|
param5Desc: string /** 参数5说明 */
|
|
|
- param5Type: number /** 参数5类型 */
|
|
|
- subCategory: number /** 子分类 */
|
|
|
+ param5Type: string /** 参数5类型 */
|
|
|
+ subCategory: string /** 子分类 */
|
|
|
subCategoryName: string /** 子分类名称 */
|
|
|
}
|
|
|
/** 故障类模板 */
|
|
|
export interface ProcessFault {
|
|
|
- templateID: number /** 模板ID */
|
|
|
+ templateID: string /** 模板ID */
|
|
|
templateName: string /** 模板名称 */
|
|
|
- templateType: number /** 故障模板类型 */
|
|
|
- category: number /** 分类 */
|
|
|
+ templateType: string /** 故障模板类型 */
|
|
|
+ category: string /** 分类 */
|
|
|
categoryName: string /** 分类名称 */
|
|
|
param1Desc: string /** 参数1说明 */
|
|
|
- param1Type: number /** 参数1类型 */
|
|
|
+ param1Type: string /** 参数1类型 */
|
|
|
param2Desc: string /** 参数2说明 */
|
|
|
- param2Type: number /** 参数2类型 */
|
|
|
+ param2Type: string /** 参数2类型 */
|
|
|
param3Desc: string /** 参数3说明 */
|
|
|
- param3Type: number /** 参数3类型 */
|
|
|
+ param3Type: string /** 参数3类型 */
|
|
|
param4Desc: string /** 参数4说明 */
|
|
|
- param4Type: number /** 参数4类型 */
|
|
|
+ param4Type: string /** 参数4类型 */
|
|
|
param5Desc: string /** 参数5说明 */
|
|
|
- param5Type: number /** 参数5类型 */
|
|
|
- subCategory: number /** 子分类 */
|
|
|
+ param5Type: string /** 参数5类型 */
|
|
|
+ subCategory: string /** 子分类 */
|
|
|
subCategoryName: string /** 子分类名称 */
|
|
|
}
|
|
|
/** 语音类模板 */
|
|
|
export interface ProcessVoice {
|
|
|
- templateID: number /** 模板ID */
|
|
|
+ templateID: string /** 模板ID */
|
|
|
templateName: string /** 模板名称 */
|
|
|
- templateType: number /** 语音模板类型 */
|
|
|
- category: number /** 分类 */
|
|
|
+ templateType: string /** 语音模板类型 */
|
|
|
+ category: string /** 分类 */
|
|
|
categoryName: string /** 分类名称 */
|
|
|
- subCategory: number /** 子分类 */
|
|
|
+ subCategory: string /** 子分类 */
|
|
|
subCategoryName: string /** 子分类名称 */
|
|
|
voiceContent: string /** 语音内容 */
|
|
|
evalTemplate: string /** 评估模板 */
|
|
|
- destRoleID: number /** 目标角色ID */
|
|
|
+ destRoleID: string /** 目标角色ID */
|
|
|
}
|
|
|
export class ProcessServer {
|
|
|
// 角色
|