新增获取我的问诊、关注医生列表接口
This commit is contained in:
@@ -10,12 +10,21 @@ use Hyperf\Validation\Request\FormRequest;
|
||||
class PatientDoctorRequest extends FormRequest
|
||||
{
|
||||
protected array $scenes = [
|
||||
'getInquiryDoctorList' => ['expertise_id','province_id','city_id','sort_order','keyword'],
|
||||
'getInquiryDoctorList' => [
|
||||
'expertise_id',
|
||||
'province_id',
|
||||
'city_id',
|
||||
'sort_order',
|
||||
'keyword'
|
||||
],
|
||||
'getDoctorInquiryCheck' => [ // 检测是否可以接诊
|
||||
'inquiry_type', // 订单类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||
'inquiry_mode', // 订单问诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
|
||||
'doctor_id', // 医生id(非必需)
|
||||
],
|
||||
'getDoctorList' => [ // 获取我的问诊、关注医生列表
|
||||
'my_doctor_type', // 医生类型(1:问诊 2:关注)
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -35,6 +44,7 @@ class PatientDoctorRequest extends FormRequest
|
||||
'sort_order' => 'sometimes|integer|min:1|max:5',
|
||||
'inquiry_type' => 'required|integer|min:1|max:4',
|
||||
'inquiry_mode' => 'required|integer|min:1|max:5',
|
||||
'my_doctor_type' => 'required|integer|min:1|max:2',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -55,6 +65,10 @@ class PatientDoctorRequest extends FormRequest
|
||||
'inquiry_mode.integer' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'inquiry_mode.min' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'inquiry_mode.max' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'my_doctor_type.required' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'my_doctor_type.integer' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'my_doctor_type.min' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'my_doctor_type.max' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user