新增获取患者已购买的某医生的服务包详情
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Request;
|
||||
|
||||
use App\Constants\HttpEnumCode;
|
||||
use Hyperf\Validation\Request\FormRequest;
|
||||
use Hyperf\Validation\Rule;
|
||||
|
||||
class UserPatientRequest extends FormRequest
|
||||
{
|
||||
@@ -17,6 +18,12 @@ class UserPatientRequest extends FormRequest
|
||||
'product_id',
|
||||
'shopping_cart_num',
|
||||
],
|
||||
'getPatientBuyServiceDetail' => [ // 获取患者已购买的某医生的服务包详情
|
||||
'doctor_id',
|
||||
'family_id',
|
||||
'service_type',
|
||||
'follow_package_item_id',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -36,6 +43,9 @@ class UserPatientRequest extends FormRequest
|
||||
'user_coupon_status' => 'required|numeric|min:0|max:3',
|
||||
'product_id' => 'required',
|
||||
'shopping_cart_num' => 'required|numeric|min:0|max:999',
|
||||
'doctor_id' => 'required',
|
||||
'family_id' => 'required',
|
||||
'service_type' => ['required','integer',Rule::in([1,2])],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -55,6 +65,12 @@ class UserPatientRequest extends FormRequest
|
||||
'shopping_cart_num.numeric' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'shopping_cart_num.min' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'shopping_cart_num.max' => "请勿超出最大添加数量",
|
||||
|
||||
'doctor_id.required' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'family_id.required' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'service_type.required' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'service_type.numeric' => HttpEnumCode::getMessage(HttpEnumCode::CLIENT_HTTP_ERROR),
|
||||
'service_type.integer' => "服务包类型错误",
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user