Files
journal/application/extra/doc.php
wangjinlei b29fdaf5b4 20201112
2020-11-30 10:54:48 +08:00

36 lines
1.2 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' => "journal接口文档", //文档title
'version'=>'1.0.0', //文档版本
'copyright'=>'Powered By 王金磊', //版权信息
'password' => '', //访问密码,为空不需要密码
//静态资源路径--默认为云上路径解决很多人nginx配置问题
//可将assets目录拷贝到public下面具体路径课自行配置
'static_path' => '',
'controller' => [
//需要生成文档的类
'app\master\controller\Admin',
'app\master\controller\Mysystem',
'app\master\controller\Journal',
'app\master\controller\Article',
'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'=>'验证(全局)')']
],
];