easyswoole/http-annotation

2.2.1 2021-07-06 08:06 UTC

README

安装

composer require easyswoole/http-annotation

注解规范

Example

/**
 * Class ControllerA
 * @package EasySwoole\HttpAnnotation\Tests\TestController
 * @ApiGroup(groupName="A")
 * @ApiGroupDescription()
 */
class ControllerA extends AnnotationController
{
    /**
     * @Api(path="/A/test")
     */
    function test()
    {

    }

    /**
     * @Api(path="")
     */
    function test2()
    {
        
    }
}