const {
	http
} = uni.$u

// 注册
export const registerUrl = (params, config = {}) => http.post('/xc-order/api//order/user/register', params, config);
// 登录
export const loginUrl = (params, config = {}) => http.post('/xc-order/api/order/user/login', params, config);
// 获取用户信息
export const getUserInfoUrl = (data) => http.get('/xc-order/api/order/user/getUser', data);
// 获取未读消息数
export const getMsgCountUrl = (data) => http.get('/xc-order/api/order/message/getNotReadNum', data);
// 修改消息
export const modifyMsgUrl = (data) => http.get('/xc-order/api/order/message/isRead', data);
// 查询消息列表
export const getMessageListUrl = (params, config = {}) => http.post('/xc-order/api/order/message/messageList', params,
	config);
// 修改个人信息
export const modifyUserInfoUrl = (params, config = {}) => http.post('/xc-order/api/order/user/updateUser', params,
	config);
// 获取预约日期信息
export const getDateInfoUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumDateList', data);
// 根据日期获取预约数据
export const getInfoByDateUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumList', data);
// 提交预约
export const submitReversationUrl = (params, config = {}) => http.post('/xc-order/api/order/business/submitOrder',
	params,
	config);
// 获取预约列表
export const getReservationListUrl = (data) => http.get('/xc-order/api/order/business/getOrderBusinessList', data);
// 取消预约
export const cancelReservationUrl = (params, config = {}) => http.put('/xc-order/api/order/business/cancelOrder',
	params, config);

// 修改密码
export const changePwdUrl = (params, config = {}) => http.put('/system/user/resetPwdByUser', params, config);
// 获取村社列表
export const getVillageUrl = (data) => http.get('/system/user/deptTree', data);
// 实名认证
export const authUrl = (params, config = {}) => http.put('/system/user/realName', params, config);
// 上传
export const uploadImgUrl = (params, config = {}) => http.upload('/common/upload', params, config);
// 新增助学申请
export const addApplyUrl = (params, config = {}) => http.post('/deal/dmsStudyHelp', params, config);
// 助学申请列表
export const getApplyList = (data) => http.get('/deal/dmsStudyHelp/list', data);
// 助学申请详情
export const getApplyDetailUrl = (data) => http.get('/deal/dmsStudyHelp/' + data.id, data);
// 修改暂存
export const modifyApplyUrl = (params, config = {}) => http.put('/deal/dmsStudyHelp', params, config);
// 删除申请详情
export const deleteApplyUrl = (data) => http.delete('/deal/dmsStudyHelp/' + data.id, data);
// 查询是否有未读消息
export const hasUnReadMessageUrl = (data) => http.get('/deal/messageInfo/isRead', data);

// 进度节点列表
export const getProcessNodeUrl = (data) => http.get('/deal/processInfo/list', data);