'require', 'worker_id' => 'require', 'name' => 'require', 'mobile' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'worker_id' => '师傅id', 'name' => '姓名', 'mobile' => '手机号', ]; /** * @notes 添加场景 * @return MasterWorkerCustomerValidate * @author likeadmin * @date 2024/07/10 17:34 */ public function sceneAdd() { return $this->only(['worker_id','name','mobile']); } /** * @notes 编辑场景 * @return MasterWorkerCustomerValidate * @author likeadmin * @date 2024/07/10 17:34 */ public function sceneEdit() { return $this->only(['id','worker_id','name','mobile']); } /** * @notes 删除场景 * @return MasterWorkerCustomerValidate * @author likeadmin * @date 2024/07/10 17:34 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return MasterWorkerCustomerValidate * @author likeadmin * @date 2024/07/10 17:34 */ public function sceneDetail() { return $this->only(['id']); } }