58 lines
1017 B
JavaScript
58 lines
1017 B
JavaScript
const http = require('../http')
|
|
|
|
/*
|
|
获取运动偏好
|
|
*/
|
|
export function getTrainSetting (){
|
|
return http.get('UserPreference/GetPreferences')
|
|
}
|
|
|
|
/*
|
|
设置运动偏好
|
|
*/
|
|
export function setTrainSetting (data){
|
|
return http.post('UserPreference/SetPreferences',data)
|
|
}
|
|
|
|
/*
|
|
获取个人目标
|
|
*/
|
|
export function getGoal (data){
|
|
return http.get('ClientSide/CetPersonalGoal',data)
|
|
}
|
|
|
|
/*
|
|
添加个人目标
|
|
*/
|
|
export function addGoal (data){
|
|
return http.post('ClientSide/CreatePersonalGoal',data)
|
|
}
|
|
|
|
|
|
/*
|
|
添加个人目标成绩
|
|
*/
|
|
export function addGoalResult (data){
|
|
return http.post('ClientSide/AddPersonalGoalResult',data)
|
|
}
|
|
|
|
/*
|
|
获取地区项目时长
|
|
*/
|
|
export function getAreaList (data){
|
|
return http.get('ClientSide/CetAreaCategory',data)
|
|
}
|
|
|
|
/*
|
|
获取中考得分
|
|
*/
|
|
export function getMidScore (data){
|
|
return http.get('ClientSide/CetAreaCategoryScoreRank',data)
|
|
}
|
|
|
|
/*
|
|
获取得分和等级 小学
|
|
*/
|
|
export function getSmallScore (data){
|
|
return http.get('ClientSide/CetPersonalScoreRank',data)
|
|
} |