exercise.js
2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* @Description: AI对练相关接口
* @Author: huyue
* @Date: 2024-04-19 11:02:02
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-25 15:45:25
*/
import request from "./request"
const path = "dj.api.smartcarlife.ai.sparring."
// 结束任务
export function stopTask(data) {
data.method = `${path}stop.task`
return request(data)
}
// 获取练习列表
export function getList(data) {
data.method = `${path}task.page`
return request(data)
}
// 新建任务
export function createTask(data) {
data.method = `${path}task.create`
return request(data, "post")
}
// 对练详情
export function getTaskDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 分页任务员工列表
export function getTaskStaffList(data) {
data.method = `${path}task.staff.page`
return request(data)
}
// 任务员工提醒
export function remindTaskStaff(data) {
data.method = `${path}task.staff.notify`
return request(data)
}
// 查询员工列表
export function getStaffList(data) {
data.method = `dj.api.smartcarlife.staff.page`
// data.method = 'merchants.api.open.serviceCenter.searchStaffPage'
return request(data)
}
// 获取所有的园区店
export function getAllStore(data = {}) {
data.method = `dj.smartcarlife.api.yqMerchant.list`
return request(data)
}
// 获取质检结果
export function getQualityResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
return request(data)
}
// 查询对练详情
export function getSparringDetail(data) {
data.method = `${path}task.staff.detail.page`
return request(data)
}
// 查询对练详情列表
export function staffRecordPage(data) {
data.method = `${path}staff.record.page`
return request(data)
}
// 查询对练详情列表
export function staffBehaviorPage(data) {
data.method = `dj.api.carboutique.ai.sparring.staff.behavior.page`
return request(data)
}
// 查询对练详情列表
export function staffBehaviorExport(data) {
data.method = `dj.api.smartcarlife.ai.sparring.staff.behavior.list.export`
return request(data)
}
// 更新任务提示词状态
export function updateTaskPromptStatus(data) {
data.method = `${path}task.updatePrompt`
return request(data)
}
//质检结果
export function getSparringCheckResult(data) {
data.method = `dj.api.carboutique.ai.sparring.detail.check.result`
}
// 获取对练报告详情
export function getSparringReportDetail(data) {
data.method = `${path}report.detail`
return request(data)
}