This commit is contained in:
wangjinlei
2020-11-13 10:10:23 +08:00
parent d4925b37b5
commit ba50974c16
1494 changed files with 298911 additions and 0 deletions

33
application/extra/doc.php Normal file
View File

@@ -0,0 +1,33 @@
<?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\Journal',
'app\master\controller\Mysystem'
],
'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'=>'验证(全局)')']
],
];