update
This commit is contained in:
4
interface&dataStruct/README.md
Normal file
4
interface&dataStruct/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# docs.md
|
||||
```
|
||||
m2pool模块、组件通信和数据结构
|
||||
```
|
||||
23
interface&dataStruct/doc.md
Normal file
23
interface&dataStruct/doc.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 模块通信接口及数据结构定义,仅针对非数据库部分
|
||||
|
||||
## web <-> core (接收请求方 <-> 发送请求方、接收响应方)
|
||||
### request
|
||||
```
|
||||
protocal: https
|
||||
method: post
|
||||
target: https://m2pool.com/api/pool/checkAccount
|
||||
params:
|
||||
{
|
||||
"coin": <coin><string>,
|
||||
"ma": <user><string>,
|
||||
}
|
||||
```
|
||||
### response(success)
|
||||
```
|
||||
<result><bool>
|
||||
```
|
||||
### response(fail)
|
||||
```
|
||||
<error info>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user