Skip to content
官方QQ交流群
技术交流1:87208295   点此加入
技术交流2:787747122   点此加入
官网
云控制台
开放平台
关注微信公众号
代码仓库: 码云

控制器

控制器,根据角色分层接口

  • restful api 风格
  • php8 注解

常用的方法

  • getData
  • postData
  • putById
  • patchById
  • deleteById
  • deleteData
php
<?php

namespace addons\comA\moduleA\controller\business;

use shiyun\route\annotation\RouteRestful;

/**
 * 商家接口,文章接口
 */
#[RouteRestful('comA.modulesA/business/article_all')]
class ArticleAll
{
    public function getById(int $id = 0){

    }
}
<?php

namespace addons\comA\moduleA\controller\business;

use shiyun\route\annotation\RouteRestful;

/**
 * 商家接口,文章接口
 */
#[RouteRestful('comA.modulesA/business/article_all')]
class ArticleAll
{
    public function getById(int $id = 0){

    }
}

Copyright © 2017 10yun.com | 十云提供计算服务-IPV6 | ctocode组开发