...
|
...
|
@@ -35,7 +35,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 注册-个人
|
|
|
* @ApiWeigh (99)
|
|
|
* @ApiTitle (注册-个人)
|
|
|
* @ApiSummary (注册-个人)
|
|
|
* @param string $mobile 手机号
|
|
|
* @param string $code 验证码
|
|
|
* @param string $password 密码
|
...
|
...
|
@@ -63,6 +65,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (97)
|
|
|
* @ApiTitle (注册协议-个人)
|
|
|
* @ApiSummary (注册协议-个人)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -81,7 +84,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 注册-公司
|
|
|
* @ApiWeigh (95)
|
|
|
* @ApiTitle (注册-公司)
|
|
|
* @ApiSummary (注册-公司)
|
|
|
* @param string $name 公司名称
|
|
|
* @param string $address 公司地址
|
|
|
* @param string $license 公司执照
|
...
|
...
|
@@ -140,6 +145,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (93)
|
|
|
* @ApiTitle (注册协议-公司)
|
|
|
* @ApiSummary (注册协议-公司)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -158,7 +164,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 登录
|
|
|
* @ApiWeigh (91)
|
|
|
* @ApiTitle (登录)
|
|
|
* @ApiSummary (登录)
|
|
|
* @param string $mobile 手机号
|
|
|
* @param string $password 密码
|
|
|
*/
|
...
|
...
|
@@ -181,7 +189,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 忘记密码
|
|
|
* @ApiWeigh (89)
|
|
|
* @ApiTitle (忘记密码)
|
|
|
* @ApiSummary (忘记密码)
|
|
|
*
|
|
|
* @param string $mobile 手机号
|
|
|
* @param string $newpassword 新密码
|
...
|
...
|
@@ -213,6 +223,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (87)
|
|
|
* @ApiTitle (选择参加的考试)
|
|
|
* @ApiSummary (选择参加的考试)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -245,6 +256,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (85)
|
|
|
* @ApiTitle (暂不登录提示)
|
|
|
* @ApiSummary (暂不登录提示)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -263,6 +275,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (83)
|
|
|
* @ApiTitle (我的-首页)
|
|
|
* @ApiSummary (我的-首页)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -281,7 +294,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改会员个人信息
|
|
|
* @ApiWeigh (81)
|
|
|
* @ApiTitle (我的-修改会员个人信息)
|
|
|
* @ApiSummary (我的-修改会员个人信息)
|
|
|
*
|
|
|
* @param string $image 头像地址
|
|
|
* @param string $username 用户名
|
...
|
...
|
@@ -309,7 +324,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改手机号-第一步
|
|
|
* @ApiWeigh (79)
|
|
|
* @ApiTitle (修改手机号-第一步)
|
|
|
* @ApiSummary (修改手机号-第一步)
|
|
|
* @param string $code 验证码
|
|
|
*/
|
|
|
public function changemobile1()
|
...
|
...
|
@@ -324,7 +341,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改手机号-第二步
|
|
|
* @ApiWeigh (77)
|
|
|
* @ApiTitle (修改手机号-第二步)
|
|
|
* @ApiSummary (修改手机号-第二步)
|
|
|
*
|
|
|
* @param string $mobile 新手机号
|
|
|
* @param string $code 验证码
|
...
|
...
|
@@ -358,7 +377,9 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 加入企业
|
|
|
* @ApiWeigh (75)
|
|
|
* @ApiTitle (加入企业)
|
|
|
* @ApiSummary (加入企业)
|
|
|
*
|
|
|
* @param string $company_id 企业ID
|
|
|
* @param string $name 姓名
|
...
|
...
|
@@ -418,6 +439,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (73)
|
|
|
* @ApiTitle (我的课程)
|
|
|
* @ApiSummary (我的课程)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -475,6 +497,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (71)
|
|
|
* @ApiTitle (我的课程-评价页面)
|
|
|
* @ApiSummary (我的课程-评价页面)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -514,6 +537,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (69)
|
|
|
* @ApiTitle (我的课程-评价)
|
|
|
* @ApiSummary (我的课程-评价)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -550,6 +574,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (67)
|
|
|
* @ApiTitle (我的密卷)
|
|
|
* @ApiSummary (我的密卷)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -607,6 +632,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (65)
|
|
|
* @ApiTitle (我的积分)
|
|
|
* @ApiSummary (我的积分)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -633,6 +659,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (63)
|
|
|
* @ApiTitle (积分说明)
|
|
|
* @ApiSummary (积分说明)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -651,6 +678,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (61)
|
|
|
* @ApiTitle (积分记录)
|
|
|
* @ApiSummary (积分记录)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -680,6 +708,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (59)
|
|
|
* @ApiTitle (海报分享)
|
|
|
* @ApiSummary (海报分享)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -698,6 +727,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (57)
|
|
|
* @ApiTitle (充值积分-套餐)
|
|
|
* @ApiSummary (充值积分-套餐)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -717,6 +747,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (55)
|
|
|
* @ApiTitle (积分充值预览)
|
|
|
* @ApiSummary (积分充值预览)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -752,6 +783,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (53)
|
|
|
* @ApiTitle (充值积分)
|
|
|
* @ApiSummary (充值积分)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -787,6 +819,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (51)
|
|
|
* @ApiTitle (我的收藏-题目)
|
|
|
* @ApiSummary (我的收藏-题目)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
@@ -796,11 +829,23 @@ class User extends Api |
|
|
* @ApiParams (name="page_num", type="inter", required=false, description="每页显示数据个数(默认10)")
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1599017563",
|
|
|
"data": "积分说明" //积分说明内容
|
|
|
})
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1600162242",
|
|
|
"data": {
|
|
|
"total": 1, // 题目总数
|
|
|
"list": [{
|
|
|
"id": 1,
|
|
|
"user_id": 16, //用户ID
|
|
|
"question_id": 1, //题目ID
|
|
|
"createtime": "2020.09.03 19:25", //收藏时间
|
|
|
"question": { //题目信息
|
|
|
"title": "测定混凝土立方体抗压强度时,标准试件的尺寸是( )㎜。", //题目
|
|
|
"type": "1" //题目类型:1=单选题,2=多选题,3=判断题,4=简答题
|
|
|
}
|
|
|
}]
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function collectQuestionList()
|
|
|
{
|
...
|
...
|
|