mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 01:05:37 +08:00
42 lines
776 B
PHP
42 lines
776 B
PHP
<?php
|
|
|
|
|
|
namespace ZM\Annotation\CQ;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
use ZM\Annotation\AnnotationBase;
|
|
use ZM\Annotation\Interfaces\Level;
|
|
|
|
/**
|
|
* Class CQRequest
|
|
* @Annotation
|
|
* @Target("ALL")
|
|
* @package ZM\Annotation\CQ
|
|
*/
|
|
class CQRequest extends AnnotationBase implements Level
|
|
{
|
|
/** @var string */
|
|
public $request_type = "";
|
|
/** @var string */
|
|
public $sub_type = "";
|
|
/** @var int */
|
|
public $user_id = 0;
|
|
/** @var string */
|
|
public $comment = "";
|
|
/** @var int */
|
|
public $level = 20;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getLevel(): int {
|
|
return $this->level;
|
|
}
|
|
|
|
/**
|
|
* @param int $level
|
|
*/
|
|
public function setLevel($level) {
|
|
$this->level = $level;
|
|
}
|
|
} |