From 4ecf734932f0dcc5eae1dd94b661ef0d57387b20 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Wed, 16 Jan 2019 14:08:37 +0800 Subject: [PATCH] document --- src/Sami/config.php | 16 +- src/Sami/document/App.html | 94 ++++ src/Sami/document/App/Rpc.html | 94 ++++ src/Sami/document/App/Rpc/Order.html | 104 ++++ src/Sami/document/App/Rpc/Order/RpcOrder.html | 167 +++++++ src/Sami/document/App/Rpc/User.html | 104 ++++ src/Sami/document/App/Rpc/User/RpcUser.html | 213 ++++++++ src/Sami/document/PROJECT_VERSION | 1 + src/Sami/document/SAMI_VERSION | 1 + src/Sami/document/cache/PROJECT_VERSION | 1 + src/Sami/document/cache/SAMI_VERSION | 1 + .../c_127280bce09e09d9f983508b496b0ce4.json | 147 ++++++ .../c_37fa4b5c5efbd0aed1b8d9466a194140.json | 103 ++++ src/Sami/document/classes.html | 101 ++++ src/Sami/document/css/bootstrap-theme.min.css | 10 + src/Sami/document/css/bootstrap.min.css | 10 + src/Sami/document/css/sami.css | 459 ++++++++++++++++++ src/Sami/document/doc-index.html | 117 +++++ .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 20335 bytes .../fonts/glyphicons-halflings-regular.svg | 229 +++++++++ .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 41280 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 23320 bytes src/Sami/document/index.html | 92 ++++ src/Sami/document/interfaces.html | 83 ++++ src/Sami/document/js/bootstrap.min.js | 12 + src/Sami/document/js/jquery-1.11.1.min.js | 4 + src/Sami/document/js/typeahead.min.js | 6 + src/Sami/document/namespaces.html | 92 ++++ src/Sami/document/opensearch.xml | 0 src/Sami/document/renderer.index | 1 + src/Sami/document/sami.js | 203 ++++++++ src/Sami/document/search.html | 154 ++++++ src/Sami/document/traits.html | 82 ++++ src/Server/JsonRpcServerDoc.php | 3 + 34 files changed, 2699 insertions(+), 5 deletions(-) create mode 100644 src/Sami/document/App.html create mode 100644 src/Sami/document/App/Rpc.html create mode 100644 src/Sami/document/App/Rpc/Order.html create mode 100644 src/Sami/document/App/Rpc/Order/RpcOrder.html create mode 100644 src/Sami/document/App/Rpc/User.html create mode 100644 src/Sami/document/App/Rpc/User/RpcUser.html create mode 100644 src/Sami/document/PROJECT_VERSION create mode 100644 src/Sami/document/SAMI_VERSION create mode 100644 src/Sami/document/cache/PROJECT_VERSION create mode 100644 src/Sami/document/cache/SAMI_VERSION create mode 100644 src/Sami/document/cache/store/c_127280bce09e09d9f983508b496b0ce4.json create mode 100644 src/Sami/document/cache/store/c_37fa4b5c5efbd0aed1b8d9466a194140.json create mode 100644 src/Sami/document/classes.html create mode 100644 src/Sami/document/css/bootstrap-theme.min.css create mode 100644 src/Sami/document/css/bootstrap.min.css create mode 100644 src/Sami/document/css/sami.css create mode 100644 src/Sami/document/doc-index.html create mode 100644 src/Sami/document/fonts/glyphicons-halflings-regular.eot create mode 100644 src/Sami/document/fonts/glyphicons-halflings-regular.svg create mode 100644 src/Sami/document/fonts/glyphicons-halflings-regular.ttf create mode 100644 src/Sami/document/fonts/glyphicons-halflings-regular.woff create mode 100644 src/Sami/document/index.html create mode 100644 src/Sami/document/interfaces.html create mode 100755 src/Sami/document/js/bootstrap.min.js create mode 100644 src/Sami/document/js/jquery-1.11.1.min.js create mode 100644 src/Sami/document/js/typeahead.min.js create mode 100644 src/Sami/document/namespaces.html create mode 100644 src/Sami/document/opensearch.xml create mode 100644 src/Sami/document/renderer.index create mode 100644 src/Sami/document/sami.js create mode 100644 src/Sami/document/search.html create mode 100644 src/Sami/document/traits.html diff --git a/src/Sami/config.php b/src/Sami/config.php index ada638c..ba30561 100644 --- a/src/Sami/config.php +++ b/src/Sami/config.php @@ -5,14 +5,20 @@ * Date: 2019/1/14 * Time: 6:46 PM */ -$dir = \Illuminate\Support\Facades\App::basePath().'/Rpc/'; +//$config = require_once __DIR__.'/../../../../../config/rpc.php'; +//$dir = $config['rpc_path']; +require_once __DIR__.'/../../../../../public/index.php'; +$app_name = env('APP_NAME'); +var_dump($app_name); +exit(); +$document_path = $config['document_path']; + $iterator = \Symfony\Component\Finder\Finder::create()->files()->name('*.php')->in($dir); - return new \Sami\Sami($iterator,[ 'theme' => 'default',//sami安装后默认的有一套文档页面风格模板,名称是default。位置在:vendor/sami/sami/Sami/Resources/themes/下。 - 'title' => 'Mysic',//项目名称 - 'build_dir' => __DIR__.'/document/',//设置文档生成后的保存路径 - 'cache_dir' => __DIR__.'/document/cache/',//设置文档生成时的缓存路径 + 'title' => 'Paidian-rpc',//项目名称 + 'build_dir' => $document_path,//设置文档生成后的保存路径 + 'cache_dir' => $document_path.'/cache/',//设置文档生成时的缓存路径 'default_opened_level' => 2 ]); diff --git a/src/Sami/document/App.html b/src/Sami/document/App.html new file mode 100644 index 0000000..149839d --- /dev/null +++ b/src/Sami/document/App.html @@ -0,0 +1,94 @@ + + +
+ + +class + RpcOrder extends JsonRpcMethod +
+ + + + + + + + +No description
+ RpcOrder
+ getOrderInfo(int $order_id, $user_id)
+
+ class + RpcUser extends JsonRpcMethod +
+ + + + +Class RpcUser
No description
+No description
+ int
+ getUserInfo($uid)
+
+ int
+ getUserId($uid)
+
+ iH=8Q2h
zlS%BdC6DaYEWi0UNhnc*zFT$fV`4_VMNU~nH;q(Ld?!#lIvm)K;W_4C(l3+4TZ=QI
zD%siB%cY+Y7vMFM_KAg?sxm(^nJsMIV?v|vAS8l;zotv$#Ml-Y!n7|X5Y5C)=TiGZ
zQ+=(9%lk0&L&hDtwRD=Ua6wQeS{g2mvwc>^|4$ot-2Hi`z)|V$N{mNAEZC3gw_8%z
zq(L3Bcwr2gin62 e0?Ou*xB{?A9P$i{y
zM|4xJ3)%!G%8d{u-AC5&>)0?3EeMgln4Yut1`I~s-Cl*~G*Ri1k>5}JY295;&pq@-
z#Lm^4Hp$Vz)X?2y^sW@;*ClyG-%gBU|LBB2+bG$zX%YcrI$cSa$$Sdz2EBDDiX$!I
z{_-)%I3e)hC3KOBqNUpT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