apis.dart
2.53 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
part of 'request_client.dart';
class Apis {
/// app初始化配置信息
/// GET /system/app/config
/// 接口地址:https://app.apifox.com/link/project/2684751/apis/api-89897678
static const String appConfig = 'system/app/config';
/// 登录
static const String login = 'login';
/// 登出
static const String logout = 'logout';
/// 注销账号
static const String deleteAccount = 'student/cancel/account';
/// 获取用户信息
/// get
static const String getUserInfo = 'student/info';
/// 更新用户信息
static const String setUserInfo = 'student/update/info';
/// 发送验证码
static const String sendSmsCode = 'system/send/code';
/// 初始化密码
static const String initPassword = 'student/init/password';
/// 修改密码
static const String changePassword = 'student/change/password';
/// 忘记密码
static const String resetPassword = 'student/change/password';
/// 校验验证码,用于修改密码或忘记密码,验证码有效期2分钟
static const String checkSmsCode = 'student/check/code';
/// 课程模块
// GET /home/courseModule
// 接口地址:https://app.apifox.com/link/project/2684751/apis/api-89897663
static const String courseModule = 'home/courseModule';
/// 课程列表
// GET /home/courseLesson
// 接口地址:https://app.apifox.com/link/project/2684751/apis/api-89897662
static const String courseLesson = 'home/courseLesson';
/// 磨耳朵
/// GET
static const String ears = 'course/grinding/ears';
/// 视频跟读
/// GET
static const String followRead = 'course/video/follow/read';
/// 视频跟读内容
/// GET
static const String readContent = 'course/video/follow/read/content';
/// 视频跟读提交结果
/// POST
static const String followResult = 'course/submit/follow/result';
/// 获取课程内容
/// GET
static const String process = 'course/process';
/// 首页弹窗
/// get
static const String homePopup = 'home/popup';
/// 兑换
static const String exchange = 'exchange';
/// 获取阿里云oss鉴权信息
static const String aliyunOssSts = 'oss/sts/upload';
/// 进入课堂
static const String enterClass = 'course/enter/class';
/// 退出课堂
static const String exitClass = 'course/exit/class';
/// 商品列表
static const String productList = 'order/course/combo/list';
/// 创建订单
static const String createOrder = 'order/create/order';
/// 获取阿里支付token
static const String getAliPayToken = 'pay/alipay/token';
}