Files
lanecarford_front/src/api/workshop.ts
X1627315083 bc8e03180e fix
2025-10-09 09:35:36 +08:00

39 lines
828 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/utils/request'
//创建用户
export function userCreate(params: Object) {
return request({
url: '/api/user/create',
method: 'get',
params
})
}
//记录用户选择的信息
export function userSave(params: Object) {
return request({
url: '/api/user/save',
method: 'get',
params,
meta: {
// responseAll: true // 返回所有的信息包括状态码和message和data
}
} as any)
}
//获取题目
export function getQueryPage(data: Object) {
return request({
url: '/api/outfits/queryPage',
method: 'post',
data,
// repeatRequest: true // 配置为true则可以同一时间多次调用
}as any)
}
//查报告
export function getCalculateReport() {
return request({
url: '/api/outfits/calculateReport',
method: 'get',
})
}