|
|
|
import { request } from './request'
|
|
|
|
const api = {
|
|
|
|
wxPublicLogin(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/wxPublicLogin',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
simulationErrorList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/simulationError',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
freeQuestionInfo(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/freeQuestionInfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
freeSubPaper(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/freeSubPaper',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
freeQuestionList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/freeQuestionList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getConfigIndex(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/index',
|
|
|
|
method: 'get',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getConfig(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/getConfig',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
realQuestionInfo(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/realQuestionInfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
simulation(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/simulation',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
realSubPaper(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/realSubPaper',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
Realforecast(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/Realforecast',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
realQuestionList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/realQuestionList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
chapterQuestionsInfo(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/chapterQuestionsInfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
orderQuestion(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/orderQuestion',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
chapterErrorQuestionsList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/chapterErrorQuestionsList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
chapterQuestionsList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/chapterQuestionsList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
questionLogInfo(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/questionLogInfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
chapterList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/chapterList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
orderList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/orderList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
payOrder(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/payOrder',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
createOrder(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/createOrder',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
applyWithdrawal(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/applyWithdrawal',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
balanceLogList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/balanceLogList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
videoList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/videoList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
delCircle(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/delCircle',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
addCircle(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/addCircle',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
wxlogin(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/wxMinLogin',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
bannerList(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/bannerList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
sendSms(data) { //发送验证码
|
|
|
|
return request({
|
|
|
|
url: 'api/sendSms',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
login(data) { //登录
|
|
|
|
return request({
|
|
|
|
url: 'api/login',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
logOut(data) { //退出登录
|
|
|
|
return request({
|
|
|
|
url: 'api/user/cancelAccount',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
loginInfo(data) { //用户信息
|
|
|
|
return request({
|
|
|
|
url: 'api/user/memberInfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
updateMember(data) { //更新用户信息
|
|
|
|
return request({
|
|
|
|
url: 'api/user/updateMember',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
articleList(data) { //文章
|
|
|
|
return request({
|
|
|
|
url: 'api/articleList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
circleList(data) { //圈子列表
|
|
|
|
return request({
|
|
|
|
url: 'api/circleList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
teamList(data) { //我的团队
|
|
|
|
return request({
|
|
|
|
url: 'api/user/teamList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
categoryList(data) { //分类列表
|
|
|
|
return request({
|
|
|
|
url: 'api/categoryList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
categoryTreeList(data) { //分类列表
|
|
|
|
return request({
|
|
|
|
url: 'api/categoryTreeList',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
export default api
|