【前端】印包客H5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
926 B

import http from '@/utils/http/index.js'
/**
* 校验分享id是否有密码
* @param {object} data
* @value {string} id 分享id
*/
export function checkShareId(data = {}) {
return http.get({
url: `/base-paper-trading/get/mechanical-equipment-share/${data.id}`,
data: data
})
}
/**
* 校验分享id的密码
* @param {object} data
* @value {string} id 分享id
* @value {string} password 分享密码
*/
export function checkSharePassword(data = {}) {
return http.post({
url: `/base-paper-trading/check/mechanical-equipment-share/password`,
data: data
})
}
/**
* 获取设备详情
* @param {object} data
* @value {string} id 分享id
* @value {string} startDate 开始时间
* @value {string} endDate 结束时间
*/
export function getShareDeviceInfo(data = {}) {
return http.get({
url: `/base-paper-trading/get/mechanical-equipment/detail/${data.id}`,
data: data
})
}