'require', 'user_id' => 'require', 'name' => 'require', 'phone' => 'require', 'wechat' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'user_id' => '用户id', 'name' => '姓名', 'phone' => '联系电话', 'wechat' => '微信', ]; /** * @notes 添加场景 * @return UserInformationgValidate * @author likeadmin * @date 2023/08/01 15:00 */ public function sceneAdd() { return $this->only(['user_id','name','phone','wechat']); } /** * @notes 编辑场景 * @return UserInformationgValidate * @author likeadmin * @date 2023/08/01 15:00 */ public function sceneEdit() { return $this->only(['id','user_id','name','phone','wechat']); } /** * @notes 删除场景 * @return UserInformationgValidate * @author likeadmin * @date 2023/08/01 15:00 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return UserInformationgValidate * @author likeadmin * @date 2023/08/01 15:00 */ public function sceneDetail() { return $this->only(['id']); } }