h5/api/smoke.js

40 lines
1.7 KiB
JavaScript
Raw Permalink Normal View History

2024-05-14 10:44:28 +08:00
import ajax from './config'
export default {
// 戒烟首页
userSmokingHome: (param) => ajax.get('userSmoking/home', param),
//烟瘾来袭
smokingCravingAdd: (param) => ajax.post('smokingCraving/add', param),
//重置戒烟
userSmokingReset: (param) => ajax.post('userSmoking/reset', param),
//开始戒烟
userSmokingAdd: (param) => ajax.post('userSmoking/add', param),
//本人日记列表
smokingDiaryList: (param) => ajax.get('smokingDiary/list', param),
//日记保存
smokingDiaryAdd: (param) => ajax.post('smokingDiary/add', param),
// 删除自主计划用户日记
smokingDiaryDelete: (param) => ajax.post('smokingDiary/delete', param),
//时光穿梭
timeTravel: (param) => ajax.get('userSmoking/timeTravel', param),
//健康恢复评分
healthRecoveryScore: (param) => ajax.get('userSmoking/healthRecoveryScore', param),
//尼古丁成瘾评估问卷
questionSmokingList: (param) => ajax.get('questionSmoking/list', param),
//尼古丁评估提交
smokingReportAdd: (param) => ajax.post('smokingReport/add', param),
//根据id获得尼古丁评估记录
getById: (param) => ajax.get('smokingReport/getById', param),
//尼古丁评估列表
smokingReportList: (param) => ajax.get('smokingReport/list', param),
//烟瘾统计图
cartogram: (param) => ajax.get('smokingCraving/cartogram', param),
//烟瘾统计图
cheatsList: (param) => ajax.get('userSmoking/cheatsList', param),
//新增学习记录
smokingSecretAdd: (param) => ajax.post('smokingSecret/add', param),
//我的戒烟数据
smokingCessationData: (param) => ajax.get('userSmoking/smokingCessationData', param),
//判断用户是否第一次进入某个页面
getUserFirstInto: (param) => ajax.get('sysUser/getUserFirstInto', param),
}