api.js
4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import {
    get,
    post
} from '../https/index';
const obj = {
    //首页轮播图
    GetBannerList: p => get('StudiesWap/GetBannerListNew', p),
    //城市基地列表
    GetStudyBaseList: p => get('StudiesWap/GetStudyBaseList', p),
    //首页获取地区
    GetZJSysAreaList: p => get('StudiesWap/GetZJSysAreaListNew', p),
    //课程类型
    GetCourseTypeList: p => get('Manage/GetCourseTypeList', p),
    //获取课程列表
    GetCourseList: p => get('StudiesWap/GetCourseList', p),
    //获取故事列表
    GetStoryList: p => get('StudiesWap/GetStoryList', p),
    //获取验证码
    AddVerificationCode: p => get('Manage/AddVerificationCode', p),
    //判断验证码
    CheckCodeIsRight: p => get('Manage/CheckCodeIsRight', p),
    //手机号判断是否注册并返回用户信息
    GetUserIsExit: p => get('Manage/GetUserIsExit', p),
    //注册获取地区
    GetArea: p => get('Manage/GetArea', p),
    //登录
    Login: p => get('Manage/Login', p),
    //注册用户
    AddUser: p => post('Manage/AddUser', p, 'json'),
    EditUser: p => post('Manage/EditUser', p, 'json'),
    //获取学校列表
    GetSchoolList: p => post('Manage/GetSchoolList', p, 'json'),
    //获取班级列表
    GetClassList: p => get('Manage/GetClassList', p),
    //获取我的心愿
    GetMyWishList: p => get('StudiesWap/GetMyWishList', p),
    //删除我的心愿
    DeleteMyWish: p => get('StudiesWap/DeleteMyWish', p),
    //获取我的课程
    GetMyCourseList: p => get('StudiesWap/GetMyCourseList', p),
    //发布故事
    AddStory: p => post('StudiesWap/AddStory', p, 'json'),
    //发布评价
    AddEvaluation: p => post('StudiesWap/AddEvaluation', p, 'json'),
    //发布评论
    AddStoryEvaluation: p => post('StudiesWap/AddStoryEvaluation', p, 'json'),
    //意见反馈
    AddFeedBack: p => post('StudiesWap/AddFeedBack', p, 'json'),
    //获取我的故事
    GetMyStoryList: p => get('StudiesWap/GetMyStoryList', p),
    //删除我的故事
    DeleteMyStory: p => get('StudiesWap/DeleteMyStory', p),
    //获取基地详情
    GetStudyBaseDetail: p => get('StudiesWap/GetStudyBaseDetail', p),
    //收藏基地
    AddMyCollect: p => get('StudiesWap/AddMyCollect', p),
    //获取课程详情
    GetCourseDetail: p => get('StudiesWap/GetCourseDetail', p),
    //加入心愿
    AddMyWish: p => get('StudiesWap/AddMyWish', p),
    //课程评价列表
    GetCourseEvaluationList: p => get('StudiesWap/GetCourseEvaluationList', p),
    //获取我的评价列表
    GetEvaluationList: p => get('StudiesWap/GetEvaluationList', p),
    //获取故事
    GetStory: p => get('StudiesWap/GetStory', p),
    //点赞
    AddStoryLike: p => post('StudiesWap/AddStoryLike', p, 'json'),
    //取消点赞
    DeleteStoryLike: p => get('StudiesWap/DeleteStoryLike', p),
    //获取故事详情
    GetStoryEvaluationList: p => get('StudiesWap/GetStoryEvaluationList', p),
    //我的收藏列表
    GetMycollectList: p => get('StudiesWap/GetMycollectList', p),
    //删除收藏
    DeleteMyCollect: p => get('StudiesWap/DeleteMyCollect', p),
    //添加我的课程
    AddMyCourse: p => get('StudiesWap/AddMyCourse', p),
    //扫一扫列表接口
    GetBaseMyWishCourseList: p => get('StudiesWap/GetBaseMyWishCourseList', p),
    //天气接口
    // weather:p => get('https://www.tianqiapi.com/api/', p),
    weather: p => get('StudiesWap/GetWeather', p),
    //获取单个轮播图
    GetOneBanner: p => get('Manage/GetOneBanner', p),
    //打卡签到日志
    AddSign: p => get('BaseManage/AddSign', p),
    //上传学生证
    UploadStudentCard: p => get('StudiesWap/UploadStudentCard', p),
    //获取openid
    GetToken: p => get('StudiesWap/GetToken', p),
    //批量打卡获取教师信息
    GetSchoolTeacherDetail: p => get('StudiesWap/GetSchoolTeacherDetail', p),
    //批量打卡获取年级班级学生
    GetTree: p => get('StudiesWap/GetTree', p),
    //批量打卡提交打卡
    AddBaseMyCourse: p => post('StudiesWap/AddBaseMyCourse', p, 'json'),
    //绑定研学码
    Bind: p => get('BackStageManage/CommonCode/Bind', p),
    //绑定研学码
    ByStudentId: p => get('BackStageManage/CommonCode/ByStudentId', p),
    // 基地阅读量
    ReadBase: p => get('Manage/ReadBase', p),
}
export default obj;