* @Link https://gitee.com/xmo/MineAdmin */ declare(strict_types = 1); namespace Builder\Annotation; use Attribute; use Hyperf\Di\Annotation\AbstractAnnotation; /** * 禁止重复提交 * @Annotation * @Target({"METHOD"}) */ #[Attribute(Attribute::TARGET_METHOD)] class Resubmit extends AbstractAnnotation { /** * second * @var int */ public int $second = 3; /** * 提示信息 * @var string */ public string $message; public function __construct($value, $message = null) { parent::__construct($value); $this->bindMainProperty('second', [ $value ]); $this->bindMainProperty('message', [ $message ]); } }