|
@@ -205,7 +205,7 @@ class UserController extends Controller
|
|
|
* "work_years": 5,
|
|
|
* "intention_city": "杭州",
|
|
|
* "portrait_images": ["https://example.com/portrait1.jpg"],
|
|
|
- * "introduction": "专业按摩师,有多年经验",
|
|
|
+ * "introduction": "专��按摩师,有多年经验",
|
|
|
* "state": "auditing",
|
|
|
* "created_at": "2024-03-20 10:00:00",
|
|
|
* "updated_at": "2024-03-20 10:00:00"
|
|
@@ -291,4 +291,48 @@ class UserController extends Controller
|
|
|
|
|
|
return $this->success($result, '生成成功');
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * [用户]查看技师申请记录
|
|
|
+ *
|
|
|
+ * @description 获取当前用户的技师申请记录
|
|
|
+ *
|
|
|
+ * @authenticated
|
|
|
+ *
|
|
|
+ * @response 200 {
|
|
|
+ * "code": 200,
|
|
|
+ * "message": "获取成功",
|
|
|
+ * "data": {
|
|
|
+ * "id": 1,
|
|
|
+ * "coach_id": 100,
|
|
|
+ * "age": 25,
|
|
|
+ * "mobile": "13800138000",
|
|
|
+ * "gender": 1,
|
|
|
+ * "work_years": 5,
|
|
|
+ * "intention_city": "杭州",
|
|
|
+ * "portrait_images": ["https://example.com/portrait1.jpg"],
|
|
|
+ * "introduction": "专业按摩师,有多年经验",
|
|
|
+ * "state": 1,
|
|
|
+ * "state_text": "待审核",
|
|
|
+ * "created_at": "2024-03-20 10:00:00",
|
|
|
+ * "updated_at": "2024-03-20 10:00:00"
|
|
|
+ * }
|
|
|
+ * }
|
|
|
+ * @response 401 {
|
|
|
+ * "code": 401,
|
|
|
+ * "message": "请先登录",
|
|
|
+ * "data": null
|
|
|
+ * }
|
|
|
+ * @response 404 {
|
|
|
+ * "code": 404,
|
|
|
+ * "message": "未找到申请记录",
|
|
|
+ * "data": null
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ public function getCoachApplication()
|
|
|
+ {
|
|
|
+ $result = $this->service->getCoachApplication();
|
|
|
+
|
|
|
+ return $this->success($result);
|
|
|
+ }
|
|
|
}
|