Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
docs
Commits
7af29079
Commit
7af29079
authored
Jun 03, 2015
by
郑伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定义rpc 接口定义规范
parent
cc0bd580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
rpc.md
rpc.md
+35
-2
No files found.
rpc.md
View file @
7af29079
...
@@ -47,4 +47,37 @@
...
@@ -47,4 +47,37 @@
### 包管理混乱
### 包管理混乱
现在gaia的包管理比较乱, 每个文件夹没有明确的定义。比如hera, 我们有一个api/hera目录, 同时也存在一个hera目录.
现在gaia的包管理比较乱, 每个文件夹没有明确的定义。比如hera, 我们有一个api/hera目录, 同时也存在一个hera目录.
\ No newline at end of file
### 解决方案
#### 按照业务划分包名
-
社区(api)
-
后台(hera)
-
医生版(doctor)
-
交易(pay)
-
社交(relation)
-
搜索(search)
-
统计(userstat)
-
工具(util)
#### api命名规范
{{package_name}}/{{resource_name}}/{{resource_action}}
例如帖子
api/topic/list 列出帖子
api/topic/create 发帖
api/topic/delete 删帖
api/topic/update 修改
api/topic/query 查询
api/topic/get 只拿一个对象
(TODO)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment