flyddy/http-annotation

dev-main 2024-09-20 09:31 UTC

This package is not auto-updated.

Last update: 2024-11-16 08:47:25 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()
    {
        
    }
}