This commit is contained in:
wangjinlei
2021-08-24 14:58:20 +08:00
parent 5c5143166c
commit 8951c60621

View File

@@ -1,15 +1,18 @@
<?php <?php
return [ return [
'title' => "APi接口文档", //文档title 'title' => "tougao接口文档", //文档title
'version'=>'1.0.0', //文档版本 'version'=>'1.0.0', //文档版本
'copyright'=>'Powered By Zhangweiwei', //版权信息 'copyright'=>'Powered By wangjinlei', //版权信息
'password' => '', //访问密码,为空不需要密码 'password' => '', //访问密码,为空不需要密码
//静态资源路径--默认为云上路径解决很多人nginx配置问题 //静态资源路径--默认为云上路径解决很多人nginx配置问题
//可将assets目录拷贝到public下面具体路径课自行配置 //可将assets目录拷贝到public下面具体路径课自行配置
'static_path' => '', 'static_path' => '',
'controller' => [ 'controller' => [
//需要生成文档的类 //需要生成文档的类
'app\index\controller\demo' 'app\api\controller\Reviewer',
'app\api\controller\Chief',
'app\api\controller\Board',
'app\api\controller\User',
], ],
'filter_method' => [ 'filter_method' => [
//过滤 不解析的方法名称 //过滤 不解析的方法名称
@@ -17,8 +20,8 @@ return [
], ],
'return_format' => [ 'return_format' => [
//数据格式 //数据格式
'status' => "200/300/301/302", 'code' => "0/1",
'message' => "提示信息", 'msg' => "message",
], ],
'public_header' => [ 'public_header' => [
//全局公共头部参数 //全局公共头部参数