更新创建和修改参数
This commit is contained in:
@@ -29,23 +29,37 @@ class AppUserUpdateRequest extends IRequest
|
||||
if (!is_null($this->fettle)) {
|
||||
$data['fettle'] = $this->fettle;
|
||||
}
|
||||
if (!is_null($this->biz)) {
|
||||
$data['biz'] = join(',', $this->biz);
|
||||
if (!empty($this->publish)) {
|
||||
$data['publish'] = join(',', $this->getPublish());
|
||||
}
|
||||
if (!empty($this->subscribe)) {
|
||||
$data['subscribe'] = join(',', $this->getSubscribe());
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
private ?array $biz = null;
|
||||
private array $subscribe = [];
|
||||
|
||||
public function getBiz(): array
|
||||
public function getSubscribe(): array
|
||||
{
|
||||
return $this->biz;
|
||||
return $this->subscribe;
|
||||
}
|
||||
|
||||
public function setBiz(array $biz): void
|
||||
public function setSubscribe(array|string $subscribe): void
|
||||
{
|
||||
$this->biz = $biz;
|
||||
if (is_string($subscribe)) {
|
||||
$subscribe = [$subscribe];
|
||||
}
|
||||
$this->subscribe = $subscribe;
|
||||
}
|
||||
|
||||
|
||||
private array $publish = [];
|
||||
|
||||
public function getPublish(): array
|
||||
{
|
||||
return $this->publish;
|
||||
}
|
||||
|
||||
private string $username;
|
||||
|
Reference in New Issue
Block a user