203 lines
3.4 KiB
JavaScript
203 lines
3.4 KiB
JavaScript
const http = require('../http')
|
|
|
|
/*
|
|
修改教师密码
|
|
*/
|
|
export function changePassword(data){
|
|
return http.post('Teacher/ModifyTeacherPwd',data)
|
|
}
|
|
|
|
/*
|
|
添加关联账号
|
|
*/
|
|
export function addMyCount(data){
|
|
return http.post('User/AddRelatedAccounts',data)
|
|
}
|
|
|
|
/*
|
|
添加关联账号
|
|
*/
|
|
export function addMyCountWithToken(data,token){
|
|
return http.post('User/AddRelatedAccounts',data,false,token)
|
|
}
|
|
|
|
|
|
/*
|
|
汇总统计
|
|
*/
|
|
export function getStatistics(data){
|
|
return http.get('ClientSide/AggregateStatistics',data)
|
|
}
|
|
|
|
|
|
/*
|
|
运动记录
|
|
*/
|
|
export function getSportsRecord(data){
|
|
return http.get('ClientSide/SportsRecord',data)
|
|
}
|
|
|
|
/*
|
|
获取个人信息
|
|
*/
|
|
export function getUserInfo(){
|
|
return http.get('User/PersonalInfo')
|
|
}
|
|
|
|
/*
|
|
获取个人关联账号
|
|
*/
|
|
export function getUserAccount(){
|
|
return http.get('User/RelatedAccounts')
|
|
}
|
|
|
|
/*
|
|
获取个人关联账号
|
|
*/
|
|
export function getUserAccountWithToken(token){
|
|
return http.getWithToken('User/RelatedAccounts','',false,token)
|
|
}
|
|
|
|
/*
|
|
获取老师个人信息
|
|
*/
|
|
export function getTeacherUserInfo(){
|
|
return http.get('Teacher/TeacherProfile')
|
|
}
|
|
|
|
/*
|
|
修改个人信息
|
|
*/
|
|
export function changeUserInfo(data){
|
|
return http.post('User/UpdatePersonalInfo',data)
|
|
}
|
|
|
|
/*
|
|
修改老师个人信息
|
|
*/
|
|
export function changeTeacherUserInfo(data){
|
|
return http.post('Teacher/ModifyTeacherProfile',data)
|
|
}
|
|
|
|
/*
|
|
上传图片
|
|
*/
|
|
export function uploadPic(data){
|
|
return http.post('User/UploadPhoto',data)
|
|
}
|
|
|
|
|
|
/*
|
|
获取教学类别
|
|
*/
|
|
export function getTeachType(){
|
|
return http.get('ClientSide/CurricularTaxonomyList')
|
|
}
|
|
|
|
/*
|
|
获取热门视频
|
|
*/
|
|
export function getHotVic(){
|
|
return http.get('ClientSide/PopularCurricularList')
|
|
}
|
|
|
|
|
|
/*
|
|
获取教学列表
|
|
*/
|
|
export function getTeachList(data){
|
|
return http.get('ClientSide/CurricularList',data)
|
|
}
|
|
|
|
/*
|
|
获取场馆列表
|
|
*/
|
|
export function getRoomList(data){
|
|
return http.get('ClientSide/StadiumList',data)
|
|
}
|
|
|
|
/*
|
|
获取场馆详情
|
|
*/
|
|
export function getRoomDeatil(data){
|
|
return http.get('ClientSide/StadiumDetails',data)
|
|
}
|
|
|
|
/*
|
|
视频点击
|
|
*/
|
|
export function vicBtn(id){
|
|
return http.post('ClientSide/VideoPlay?curricularId='+id)
|
|
}
|
|
|
|
/*
|
|
预约
|
|
*/
|
|
export function roomPrepare(data){
|
|
return http.post(`ClientSide/StadiumVisiting?stadiumId=${data}`)
|
|
}
|
|
|
|
/*
|
|
设置个人目标
|
|
*/
|
|
export function setGoal(data){
|
|
return http.post('ClientSide/CreatePersonalGoal',data)
|
|
}
|
|
|
|
/*
|
|
获取偏好音乐列表
|
|
*/
|
|
export function getMusic(data){
|
|
return http.get('UserPreference/GetBackgroundMusics',data)
|
|
}
|
|
|
|
/*
|
|
获取打卡记录
|
|
*/
|
|
export function getClock(data){
|
|
return http.get('ClientSide/CetCheckInRecord',data)
|
|
}
|
|
|
|
|
|
/*
|
|
添加个人目标成绩 用户端!!!!!!!!!
|
|
*/
|
|
export function postUserTrain(data){
|
|
return http.post('ClientSide/AddPersonalGoalResult',data)
|
|
}
|
|
|
|
/*
|
|
添加个人训练 家长端!!!!!!!!!
|
|
*/
|
|
export function postParentTrain(data){
|
|
return http.post('Patriarch/AddExerciseData',data)
|
|
}
|
|
|
|
/*
|
|
刷新token
|
|
*/
|
|
export function refreshMyToken(requestToken){
|
|
return http.post('User/ReplaceToken?requestToken='+requestToken)
|
|
}
|
|
|
|
/*
|
|
获取openid
|
|
*/
|
|
export function getOpenId(code){
|
|
return http.get('User/GetWxOpenID?code='+code)
|
|
}
|
|
|
|
/*
|
|
验证唯一标识
|
|
*/
|
|
export function postOpenId(openId,userId){
|
|
return http.post(`User/VerifyUniqueIdentity?openId=${openId}&userId=${userId}`)
|
|
}
|
|
|
|
/*
|
|
删除唯一标识
|
|
*/
|
|
export function deleteOpenId(params){
|
|
return http.post('User/RemoveUniqueIdentity?userId='+params)
|
|
}
|