Files
tougao/application/extra/doc.php
wangjinlei 7b0edf5da5 20201112
2022-02-28 10:00:50 +08:00

39 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
return [
'title' => "tougao接口文档", //文档title
'version'=>'1.0.0', //文档版本
'copyright'=>'Powered By wangjinlei', //版权信息
'password' => '', //访问密码,为空不需要密码
//静态资源路径--默认为云上路径解决很多人nginx配置问题
//可将assets目录拷贝到public下面具体路径课自行配置
'static_path' => '',
'controller' => [
//需要生成文档的类
'app\api\controller\Reviewer',
'app\api\controller\Chief',
'app\api\controller\Board',
'app\api\controller\User',
'app\api\controller\Article',
'app\api\controller\Major',
'app\api\controller\Admin',
'app\api\controller\Journal',
],
'filter_method' => [
//过滤 不解析的方法名称
'_empty'
],
'return_format' => [
//数据格式
'code' => "0/1",
'msg' => "message",
],
'public_header' => [
//全局公共头部参数
//如:['name'=>'version', 'require'=>1, 'default'=>'', 'desc'=>'版本号(全局)']
],
'public_param' => [
//全局公共请求参数,设置了所以的接口会自动增加次参数
//如:['name'=>'token', 'type'=>'string', 'require'=>1, 'default'=>'', 'other'=>'' ,'desc'=>'验证(全局)')']
],
];