更新创建和修改参数

This commit is contained in:
2025-05-15 16:32:42 +08:00
parent 3c5020b80b
commit cffc90dfc9
2 changed files with 48 additions and 15 deletions

View File

@@ -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;