80 lines
1.5 KiB
Markdown
80 lines
1.5 KiB
Markdown
# Check
|
|
|
|
initial-检测是否有新版或新的配置
|
|
|
|
- [/initial.Check/Hello](#initialcheckhello)
|
|
- [/initial.Check/Config](#initialcheckconfig)
|
|
- [/initial.Check/Updates](#initialcheckupdates)
|
|
|
|
## /initial.Check/Hello
|
|
|
|
HELLO
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
code: "", // type<string>
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
status: "0", // type<int64>, 状态码
|
|
identity: "", // type<string>, 标识码
|
|
message: "", // type<string>, 状态说明
|
|
timeseq: "0", // type<int64>, 响应时间序列
|
|
}
|
|
```
|
|
## /initial.Check/Config
|
|
|
|
获取应用的相关配置信息
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
app: "", // type<string>, 应用程序名称 <必填>
|
|
os: "", // type<string>, 操作系统 <必填>
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
data: [{
|
|
Identity: "", // type<string>, 唯一标识
|
|
key: "", // type<string>, 配置键
|
|
value: "", // type<string>, 配置值
|
|
version: "0", // type<int64>, 版本号
|
|
}], // list<ConfigItem>, 配置参数列表
|
|
}
|
|
```
|
|
## /initial.Check/Updates
|
|
|
|
检查更新
|
|
|
|
|
|
### Request
|
|
```javascript
|
|
{
|
|
app: "", // type<string>, 应用程序名称 <必填>
|
|
os: "", // type<string>, 操作系统 <必填>
|
|
arch: "", // type<string>, 构架名称 <必填>
|
|
version: "", // type<string>, 版本号 <必填>
|
|
}
|
|
```
|
|
|
|
### Reply
|
|
```javascript
|
|
{
|
|
identity: "", // type<string>, 唯一码
|
|
version: "", // type<string>, 版本号
|
|
summary: "", // type<string>, 更析说明
|
|
files: "", // type<string>, 更新文件以及文件hash
|
|
pubdate: "", // type<string>, 发布时间
|
|
}
|
|
```
|
|
|