毕设
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.
 
 
 
 
 

101 lines
2.9 KiB

// 通过患者ID查询患者详情
export function upload(params) {
return uni.$u.http.post("/common/upload", params);
}
// 登录
export function userlogin(params) {
return uni.$u.http.post("/login", params);
}
// 获取验证码
export function getSmsCode(params) {
return uni.$u.http.get("/user/getSmsCode", params);
}
// 用户用户信息
export function userInfo(params) {
return uni.$u.http.get("/getInfo", params);
}
// 患者列表
export function patientQuery(params) {
return uni.$u.http.post("/patient/query", params);
}
// 查询统计数量
export function queryNum(params) {
return uni.$u.http.post("/patient/queryNum", params);
}
// 新增患者
export function queryAdd(params) {
return uni.$u.http.post("/patient/add", params);
}
// 新增患者
export function queryUpd(params) {
return uni.$u.http.post("/patient/upd", params);
}
// 通过患者ID查询患者详情
export function queryById(params) {
return uni.$u.http.post("/patient/queryById", params);
}
// 通过患者ID获取测评ID
export function patientRegist(params) {
return uni.$u.http.post("/patient/regist", params);
}
// 评估结果查询
export function pgQuery(params) {
return uni.$u.http.post("/evaluation/pg/query", params);
}
// 评估信息提交
export function pgSubmit(params) {
return uni.$u.http.post("/evaluation/pg/submit", params);
}
// AD8结果查询
export function ad8Query(params) {
return uni.$u.http.post("/evaluation/ad8/query", params);
}
// AD8信息提交
export function ad8Submit(params) {
return uni.$u.http.post("/evaluation/ad8/submit", params);
}
// 登记详情接口
export function detailSubmit(params) {
return uni.$u.http.post("/evaluation/detail/submit", params);
}
// 登记详情接口
export function detailQuery(params) {
return uni.$u.http.post("/evaluation/detail/query", params);
}
// 提交签名
export function complete(params) {
return uni.$u.http.post("/evaluation/complete", params);
}
// 查询签名
export function completeById(params) {
return uni.$u.http.post("/evaluation/queryById", params);
}
// ------ 智能家居 ------
// 登录
export function login(params) {
return uni.$u.http.post("/app/user/login", params);
}
// 根据项目key查找项目id
export function queryProjectInfoByKey(params) {
return uni.$u.http.get(
`/app/device/queryProjectInfoByKey?projectKey=${params.projectKey}`
);
}
// 根据项目id查找设备列表
export function deviceList(params) {
return uni.$u.http.get(`/app/device/list?projectId=${params.projectId}`);
}
// 获取设备信息
export function attributes(params) {
return uni.$u.http.get(`/app/device/attributes?deviceId=${params.deviceId}`);
}
// 下发属性
export function sendAttribute(params) {
return uni.$u.http.post("/app/device/sendAttribute", params);
}
// 下发命令
export function sendCommand(params) {
return uni.$u.http.post("/app/device/sendCommand", params);
}