MQTT 管理客户端
This commit is contained in:
39
src/biz/AppUserDeleteRequest.php
Normal file
39
src/biz/AppUserDeleteRequest.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace cn\com\maiyoule\mqttclient\biz;
|
||||
|
||||
use cn\com\maiyoule\mqttclient\IRequest;
|
||||
|
||||
/**
|
||||
* 删除用户请求
|
||||
*/
|
||||
class AppUserDeleteRequest extends IRequest
|
||||
{
|
||||
|
||||
public function path(): string
|
||||
{
|
||||
return 'mqtt/user/delete';
|
||||
}
|
||||
|
||||
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