|
@@ -96,8 +96,8 @@ class CoachInfoRecordController extends AdminController
|
|
|
*
|
|
|
* @header x-xsrf-token required CSRF令牌 Example: your_csrf_token
|
|
|
*
|
|
|
- * @bodyParam id integer required 申请记录ID Example: 1
|
|
|
- * @bodyParam state integer required 审核状态(2:通过 3:驳回) Example: 2
|
|
|
+ * @bodyParam info_record_id integer required 申请记录ID Example: 1
|
|
|
+ * @bodyParam info_record_state integer required 审核状态(2:通过 3:驳回) Example: 2
|
|
|
* @bodyParam audit_remark string required 审核意见 Example: 资料符合要求,审核通过
|
|
|
*
|
|
|
* @response scenario=success {
|
|
@@ -119,15 +119,15 @@ class CoachInfoRecordController extends AdminController
|
|
|
public function audit(Request $request)
|
|
|
{
|
|
|
$validated = $request->validate([
|
|
|
- 'id' => 'required|integer|exists:coach_info_records,id',
|
|
|
- 'state' => 'required|integer|in:2,3', // 2:通过 3:驳回
|
|
|
+ 'info_record_id' => 'required|integer|exists:coach_info_records,id',
|
|
|
+ 'info_record_state' => 'required|integer|in:2,3', // 2:通过 3:驳回
|
|
|
'audit_remark' => 'required|string|max:255',
|
|
|
]);
|
|
|
|
|
|
try {
|
|
|
$result = $this->service->audit(
|
|
|
- $validated['id'],
|
|
|
- $validated['state'],
|
|
|
+ $validated['info_record_id'],
|
|
|
+ $validated['info_record_state'],
|
|
|
$validated['audit_remark'],
|
|
|
Admin::user()->id
|
|
|
);
|