调整问诊配置,新增随访包接口等
This commit is contained in:
@@ -11,6 +11,10 @@ use Hyperf\Validation\Rule;
|
||||
class DoctorInquiryConfigRequest extends FormRequest
|
||||
{
|
||||
protected array $scenes = [
|
||||
'getDoctorInquiryConfigOpenStatus' => [ // 获取医生问诊服务开启状态
|
||||
'inquiry_type',
|
||||
'inquiry_mode',
|
||||
],
|
||||
'getDoctorInquiryConfig' => [ // 获取医生问诊配置
|
||||
'inquiry_type',
|
||||
'inquiry_mode',
|
||||
@@ -26,22 +30,32 @@ class DoctorInquiryConfigRequest extends FormRequest
|
||||
'inquiry_price',
|
||||
'work_num_day',
|
||||
],
|
||||
'getInquiryServiceConfig' => [ // 获取医生问诊配置-服务设置
|
||||
'getDoctorInquiryDifficultConfig' => [ // 获取医生问诊配置-疑难会诊-服务设置
|
||||
'inquiry_type',
|
||||
'inquiry_mode',
|
||||
],
|
||||
'addInquiryServiceConfig' => [ // 新增医生问诊配置-服务设置
|
||||
'addDoctorInquiryDifficultConfig' => [ // 新增医生问诊配置-疑难会诊-服务设置
|
||||
'service_content',
|
||||
'service_process',
|
||||
'service_period',
|
||||
'service_rounds',
|
||||
],
|
||||
'putInquiryServiceConfig' => [ // 修改医生问诊配置-服务设置
|
||||
'putDoctorInquiryDifficultConfig' => [ // 修改医生问诊配置-疑难会诊-服务设置
|
||||
'service_content',
|
||||
'service_process',
|
||||
'service_period',
|
||||
'service_rounds',
|
||||
],
|
||||
'addDoctorInquiryFollowConfig' => [ // 新增医生问诊配置-随访包
|
||||
'monthly_frequency', // 每月次数(0表示不限次)
|
||||
'service_rounds', // 服务回合数(0表示不限次)
|
||||
'items', // 随访包内容列表数据
|
||||
],
|
||||
'putDoctorInquiryFollowConfig' => [ // 修改医生问诊配置-随访包
|
||||
'monthly_frequency', // 每月次数(0表示不限次)
|
||||
'service_rounds', // 服务回合数(0表示不限次)
|
||||
'items', // 随访包内容列表数据
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -59,7 +73,7 @@ class DoctorInquiryConfigRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'inquiry_type' => 'required|integer|min:1|max:3',
|
||||
'inquiry_mode' => 'required|integer|min:1|max:6',
|
||||
'inquiry_mode' => 'required|integer|min:1|max:9',
|
||||
'is_open' => "required|boolean",
|
||||
'inquiry_price' => "required|min:0|numeric",
|
||||
'work_num_day' => "required|min:0|numeric",
|
||||
@@ -67,6 +81,8 @@ class DoctorInquiryConfigRequest extends FormRequest
|
||||
'service_process' => "required",
|
||||
'service_period' => "required|min:2|max:30|numeric",
|
||||
'service_rounds' => "required|min:0|max:300|numeric",
|
||||
'monthly_frequency' => "required|min:0|max:10|numeric",
|
||||
'items' => "required",
|
||||
];
|
||||
}
|
||||
|
||||
@@ -103,6 +119,11 @@ class DoctorInquiryConfigRequest extends FormRequest
|
||||
'service_rounds.min' => "服务回合数最小值不可低于0",
|
||||
'service_rounds.max' => "服务回合数最大值不可超过300",
|
||||
'service_rounds.numeric' => "服务回合数填写错误",
|
||||
'monthly_frequency.required' => "请填写每月次数",
|
||||
'monthly_frequency.min' => "每月次数最小值不可低于0",
|
||||
'monthly_frequency.max' => "每月次数最大值不可超过10",
|
||||
'monthly_frequency.numeric' => "每月次数填写错误",
|
||||
'items.required' => "请填写服务内容",
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,11 @@ class SystemRequest extends FormRequest
|
||||
protected array $scenes = [
|
||||
'getSystemInquiryTime' => [ // 获取系统问诊配置 快速问诊-问诊购药
|
||||
'inquiry_type', // 订单类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||
'inquiry_mode', // 订单问诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
|
||||
'inquiry_mode', // 接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员 6:疑难会诊 7:附赠 8:健康包 9:随访包)
|
||||
],
|
||||
'getSystemInquiryConfig' => [ // 获取系统问诊配置
|
||||
'inquiry_type', // 订单类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||
'inquiry_mode', // 接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员 6:疑难会诊 7:附赠 8:健康包 9:随访包)
|
||||
],
|
||||
];
|
||||
|
||||
@@ -31,7 +35,7 @@ class SystemRequest extends FormRequest
|
||||
{
|
||||
return [
|
||||
'inquiry_type' => 'required|integer|min:1|max:4',
|
||||
'inquiry_mode' => 'required|integer|min:1|max:5',
|
||||
'inquiry_mode' => 'required|integer|min:1|max:9',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user