20201112
This commit is contained in:
33
application/extra/doc.php
Normal file
33
application/extra/doc.php
Normal 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'=>'验证(全局)')']
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user