exercise.js
1.69 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
/*
* @Description: AI对练相关接口
* @Author: huyue
* @Date: 2024-04-19 11:02:02
* @LastEditors: huyue
* @LastEditTime: 2024-05-08 11:32:07
*/
import request from "./request"
const path = 'dj.api.smartcarlife.ai.sparring.'
// 获取练习列表
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 updateTaskPromptStatus(data) {
data.method = `${path}task.updatePrompt`
return request(data)
}