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.

93 lines
2.0 KiB

import request from "../utils/axios";
2 years ago
//医院列表 - SM2
export const queryHosiptal = () => {
return request({
url: "/api/blade-system/dept-hospital/list-hospital",
method: "get",
});
};
2 years ago
//根据医院id获取须知 - SM2
export const queryArticleDetail = (createDept) => {
return request({
url: "/api/blade-business/article/detail-publish",
method: "get",
params: {
createDept,
},
});
};
2 years ago
//查询改用户是否在黑名单内 - SM2
export const checkBacklist = (cupCardNo) => {
return request({
url: "/api/blade-business/blacklist/user-blacklist",
method: "get",
params: {
cupCardNo,
},
});
};
2 years ago
//我的预约列表 - SM2
export const myRecord = (createDept, cupCardNo, current, size) => {
return request({
url: "/api/blade-business/apm-record/page",
method: "get",
params: {
createDept,
cupCardNo,
current,
size,
},
});
};
2 years ago
//取消预约 - SM2
export const recordCancel = (id) => {
return request({
url: "/api/blade-business/apm-record/cancel",
method: "post",
params: {
id,
},
});
};
2 years ago
//系统时间 - SM2
export const getSystemTime = () => {
return request({
url: "/api/blade-business/common-api/get-system-datetime",
method: "get",
});
3 years ago
};
//获取预约用户头像
export const getCupImg = (cupCardNo) => {
return request({
url: "/api/blade-business/common-api/get-cup-img",
method: "get",
params: {
cupCardNo,
},
});
3 years ago
};
//存储用户头像
export const saveCupImg = (data) => {
return request({
url: "/api/blade-business/common-api/save-cup-img",
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
},
data,
});
};
//存储用户头像
export const saveCupImgLocal = (data) => {
return request({
url: "/api/blade-business/common-api/save-cup-img-local",
method: "post",
// headers: {
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
// },
data,
});
};