mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-02-08 10:20:16 +08:00
15 lines
314 B
PHP
15 lines
314 B
PHP
<?php
|
|
|
|
namespace App\Annotation;
|
|
|
|
use Attribute;
|
|
use Hyperf\Di\Annotation\AbstractAnnotation;
|
|
|
|
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
|
|
class ResponseFormat extends AbstractAnnotation
|
|
{
|
|
/**
|
|
* @param string $format
|
|
*/
|
|
public function __construct(public string $format) {}
|
|
} |