注销状态
This commit is contained in:
36
src/biz/AppUserLogoutRequest.php
Normal file
36
src/biz/AppUserLogoutRequest.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace cn\com\maiyoule\mqttclient\biz;
|
||||
|
||||
use cn\com\maiyoule\mqttclient\IRequest;
|
||||
|
||||
class AppUserLogoutRequest extends IRequest
|
||||
{
|
||||
|
||||
public function path(): string
|
||||
{
|
||||
|
||||
return 'mqtt/user/kick';
|
||||
}
|
||||
|
||||
public function body(): array
|
||||
{
|
||||
return [
|
||||
'username' => $this->getUsername()
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
private string $username;
|
||||
|
||||
public function getUsername(): string
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
public function setUsername(string $username): void
|
||||
{
|
||||
$this->username = $username;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user