h5/api/index.js

89 lines
7.9 KiB
JavaScript

import ajax from './config'
export default { // 所有接口
// 心理评估接口
list: (param) => ajax.post('psychology/dict/list', param), // 获取心理主页数据
introduInfo: (param) => ajax.post('psychology/paperwork/introduInfo', param), // 心理评估文案表
subjectList: (param) => ajax.post('psychology/subject/subjectList', param), // 心里评估题目
tempSave: (param) => ajax.post('psychology/paperUserSave/tempSave?application=true', param), // 评估答题暂存
pagerUserByCode: (param) => ajax.post('psychology/paperUserSave/pagerUserByCode', param), //根据评估类型查询评估答题试卷
savePaper: (param) => ajax.post('psychology/paperUserSave/savePaper?application=true', param), //评估答题保存
anewQuery: (param) => ajax.post('psychology/paperUserSave/anewQuery', param), //重新填写
queryResult: (param) => ajax.post('psychology/result/queryResult', param), //心理评估结果查看
queryDimensionFactors: (param) => ajax.post('psychology/factor/queryDimensionFactors', param), //查询雷达因子
queryResultByCode: (param) => ajax.post('psychology/scale/queryResultByCode', param), //心理评估结果等级
assessmentReport: (param) => ajax.get('psychology/dict/assessmentReport', param), //心理评估报告
assessmentResult: (param) => ajax.get('psychology/dict/assessmentResult', param), //心理评估详情
typeList: (param) => ajax.get('diggmindUser/typeList', param), //查询格米分类
diggmindUserList: (param) => ajax.post('diggmindUser/list?application=true', param), //根据分类查询列表
details: (param) => ajax.get('diggmindUser/details', param), //评估详情
startAssessment: (param) => ajax.get('diggmindUser/startAssessment', param), //问卷地址
reportAddress: (param) => ajax.get('diggmindUser/reportAddress', param), //报告地址
getDiseaseResult: (param) => ajax.get('disease-assess-subject/getDiseaseResult', param), //基础评估结果
// 风险评估接口
selectDictList: (param) => ajax.get('disease-assess-dict/selectDictList', param), //查询疾病字典
getUserExtInfo: (param) => ajax.get('sysUser/userExt/getUserExtInfo', param), // 获取用户扩展信息
saveUserExtInfo: (param) => ajax.post('sysUser/userExt/saveUserExtInfo?application=true', param), //修改用户扩展信息
selectBasisAssessInfo: (param) => ajax.get('disease-assess-subject/selectBasisAssessInfo', param), //查询题目生成疾病试卷
selectPaperList: (param) => ajax.get('disease-assess-subject/selectPaperList', param), //试卷查询
basisAssessSaveJson: (param) => ajax.post('disease-assess-subject/basisAssessSaveJson', param), //保存试卷 暂存试卷
getDiseaseResult: (param) => ajax.get('disease-assess-subject/getDiseaseResult', param), //评估结果
generatePaper: (param) => ajax.get('disease-assess-subject/generatePaper', param), //试卷查询,重新生成试卷
getAssessReport: (param) => ajax.get('disease-assess-subject/getAssessReport', param), //评估报告
getDiseaseContent: (param) => ajax.get('disease-assess-subject/getDiseaseContent', param), //评估报告内容
saveDictList: (param) => ajax.get('disease-paper-save/selectDictList', param), //风险评估报告
getUserAssessReport: (param) => ajax.get('disease-paper-save/getUserAssessReport', param), //评估报告查询
getFamilyMemberByMemberId: (param) => ajax.get('member/familyMember/getFamilyMemberByMemberId', param), //评估报告查询
selectHealthyGuide: (param) => ajax.get('disease-assess-subject/selectHealthyGuide', param), //评估报告
selectTaskIntegral: (param) => ajax.get('integral/userIntegralFlow/selectTaskIntegral', param), //查询本次评估预计生成的积分
selectFoodsSubjectList: (param) => ajax.get(`disease-plan/selectFoodsSubjectList`, param), // 生成饮食试卷
beingGenerated: (param) => ajax.get('dis-day-task/beingGenerated', param),
openDayTaskDetail: (param) => ajax.post(`dis-day-task/openDayTaskDetail`, param), // 开启计划
selectQuestAll: (param) => ajax.get('psychological/psychological-plan-question/selectQuestAll',
param), //获取加入计划的所有问卷题目
queryEmotionQuest: (param) => ajax.get('psychological/psychological-plan-question/queryEmotionQuest',
param), //查询情绪问卷
queryStressManagement: (param) => ajax.get('psychological/psychological-plan-question/queryStressManagement',
param), //查询减压问卷
selectQuestById: (param) => ajax.get('psychological/psychological-plan-question/selectQuestById',
param), //获取每日任务单独问卷题目
insertQuestResult: (param) => ajax.post(
'psychological/psychological-plan-question/insertQuestResult?application=true', param), //保存问卷
getPsychologicalResult: (param) => ajax.get('psychological/psychological-plan-question/getPsychologicalResult',
param), //用户心理加入计划评估综合报告
getBeliefResult: (param) => ajax.get('psychological/psychological-plan-question/getBeliefResult',
param), //用户心理睡眠个人信念和态度量结果
getInsomniaResult: (param) => ajax.get('psychological/psychological-plan-question/getInsomniaResult',
param), //查询用户心理失眠程度结果
getPsychologyInfo: (param) => ajax.get('psychological/psychological-plan-question/getPsychologyInfo',
param), // 查询焦虑情绪评估结果或焦虑自评结果 15,16,32问卷类型
getEmotionalInfo: (param) => ajax.get('psychological/psychological-plan-question/getEmotionalInfo',
param), // 查询情绪智力量表结果
// 14天减压
getSimpleResponse: (param) => ajax.get('psychological/psychological-plan-question/getSimpleResponse',
param), // 查询简易应答量表结果
getResultEmotion: (param) => ajax.get('api/psychological/task/getResultEmotion', param),
getEmotionManagement: (param) => ajax.get('psychological/psychological-plan-question/getEmotionManagement',
param), // 评估结果页面查询
getStressManagement: (param) => ajax.get('psychological/psychological-plan-question/getStressManagement',
param), // 评估结果页面查询
getAssessInfo: (param) => ajax.get('disease-assess-subject/getAssessInfo', param), // 查询评估信息
getUserAnalysisReport: (param) => ajax.get('ExaminingReport/getUserAnalysisReport', param), // 查看体检报告集合
queryQuestionAll: (param) => ajax.get('/api/questionnaire/queryQuestionAll', param), // 获取问卷列表
questSelectQuestById: (param) => ajax.get('/api/questionnaire/selectQuestById', param), // 获取问卷题目
saveAnswer: (param) => ajax.post('/api/questionnaire/saveAnswer?application=true', param), // 保存问卷
appLogin: (param) => ajax.get('userLogin/login/appLogin', param), // App手机号登陆
hasLifestyleAssessment: (param) => ajax.get('dis-day-task/hasLifestyleAssessment', param), //查询生活方式评估状态
sendTheVerificationCodeApp: (param) => ajax.get('sysUser/sendTheVerificationCodeApp', param), // 发送手机号验证码
selectFoodsInfo: (param) => ajax.get(`doodsInfo/selectFoodsInfo`, param), // 查询食材详情
selectDictListByFoodList: (param) => ajax.get('disease-assess-dict/selectDictListByFoodList2', param), //查询疾病字典
getDiseaseFoodsLevel: (param) => ajax.get(`healthTools/getDiseaseFoodsLevel`, param), //食物榜单
getFoodTypes: (param) => ajax.get('healthTools/getFoodTypes', param),
selectFoodsList: (param) => ajax.get(`healthTools/selectFoodsList`, param), //食物成分
queryEeFoodType: (param) => ajax.get(`zksr.zksrservice.eefood/yh-ee-food-type/queryEeFoodType`, param), //查询ee屏食物类型
queryEeFoodInfo: (param) => ajax.get(`zksr.zksrservice.eefood/yh-ee-food-info/queryEeFoodInfo`, param), //查询食物信息
queryEeFoodInfoDetails: (param) => ajax.get(`zksr.zksrservice.eefood/yh-ee-food-info/queryEeFoodInfoDetails`, param), //查询食物信息详情
setSaveActivity: (param) => ajax.post('zksr.zksrservice.autonomous/autonomous-plan-activity/saveActivity?application=true', param), // 保存问卷
uploadImg: () => ajax.getUrl('qiniu/uploadImg'), //上传图片
}