feat: import services and standardize Go 1.26.5
This commit is contained in:
79
apps/base/initial/swagger/check.md
Normal file
79
apps/base/initial/swagger/check.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# 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>, 发布时间
|
||||
}
|
||||
```
|
||||
|
||||
94
apps/base/initial/swagger/data.md
Normal file
94
apps/base/initial/swagger/data.md
Normal file
@@ -0,0 +1,94 @@
|
||||
# Data
|
||||
|
||||
initial-数据
|
||||
|
||||
- [/initial.Data/Country](#initialdatacountry)
|
||||
- [/initial.Data/Areas](#initialdataareas)
|
||||
- [/initial.Data/Datas](#initialdatadatas)
|
||||
|
||||
## /initial.Data/Country
|
||||
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
countries: [{
|
||||
id: 0, // type<uint32>
|
||||
Iso2: "", // type<string>
|
||||
Iso3: "", // type<string>
|
||||
num_code: "", // type<string>
|
||||
phone_code: "", // type<string>
|
||||
currency: "", // type<string>
|
||||
currency_symbol: "", // type<string>
|
||||
region: "", // type<string>
|
||||
timezones: "", // type<string>
|
||||
translations: "", // type<string>
|
||||
name: "", // type<string>
|
||||
local_name: "", // type<string>
|
||||
enabled: false, // type<bool>
|
||||
sort_order: 0, // type<int32>
|
||||
}], // list<CountryItem>
|
||||
}
|
||||
```
|
||||
## /initial.Data/Areas
|
||||
|
||||
系统区域数据,默认级别:市
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{
|
||||
// 国家ID,默认:中国 1
|
||||
country_id: 0, // type<int32>
|
||||
// 国家代码,默认:中国 CN
|
||||
country_code: "", // type<string>
|
||||
// 是否输出乡镇,默认:市级
|
||||
show_town: false, // type<bool>
|
||||
}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
areas: [{
|
||||
id: "", // type<string>
|
||||
pid: "", // type<string>
|
||||
deep: 0, // type<int32>
|
||||
name: "", // type<string>
|
||||
pinyin_prefix: "", // type<string>
|
||||
pinyin: "", // type<string>
|
||||
ext_id: "", // type<string>
|
||||
ext_name: "", // type<string>
|
||||
}], // list<AreasItem>
|
||||
}
|
||||
```
|
||||
## /initial.Data/Datas
|
||||
|
||||
系统数据
|
||||
|
||||
|
||||
### Request
|
||||
```javascript
|
||||
{}
|
||||
```
|
||||
|
||||
### Reply
|
||||
```javascript
|
||||
{
|
||||
datas: [{
|
||||
id: "0", // type<int64>
|
||||
data_type: "", // type<string>
|
||||
key: "", // type<string>
|
||||
title: "", // type<string>
|
||||
remark: "", // type<string>
|
||||
icon: "", // type<string>
|
||||
}], // list<DatasItem>
|
||||
}
|
||||
```
|
||||
|
||||
274
apps/base/initial/swagger/initial.swagger.json
Normal file
274
apps/base/initial/swagger/initial.swagger.json
Normal file
@@ -0,0 +1,274 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "check.proto",
|
||||
"version": "version not set"
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "Check"
|
||||
},
|
||||
{
|
||||
"name": "Data"
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"paths": {},
|
||||
"definitions": {
|
||||
"initialAreasItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"pid": {
|
||||
"type": "string"
|
||||
},
|
||||
"deep": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"pinyinPrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"pinyin": {
|
||||
"type": "string"
|
||||
},
|
||||
"extId": {
|
||||
"type": "string"
|
||||
},
|
||||
"extName": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialAreasReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"areas": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/initialAreasItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialCheckForUpdatesReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"identity": {
|
||||
"type": "string",
|
||||
"title": "唯一码"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"title": "版本号"
|
||||
},
|
||||
"summary": {
|
||||
"type": "string",
|
||||
"title": "更析说明"
|
||||
},
|
||||
"files": {
|
||||
"type": "string",
|
||||
"title": "更新文件以及文件hash"
|
||||
},
|
||||
"pubdate": {
|
||||
"type": "string",
|
||||
"title": "发布时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialConfigItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Identity": {
|
||||
"type": "string",
|
||||
"title": "唯一标识"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"title": "配置键"
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"title": "配置值"
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "版本号"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialConfigReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/initialConfigItem"
|
||||
},
|
||||
"title": "配置参数列表"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialCountryItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"Iso2": {
|
||||
"type": "string"
|
||||
},
|
||||
"Iso3": {
|
||||
"type": "string"
|
||||
},
|
||||
"numCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"phoneCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"currency": {
|
||||
"type": "string"
|
||||
},
|
||||
"currencySymbol": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"timezones": {
|
||||
"type": "string"
|
||||
},
|
||||
"translations": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"localName": {
|
||||
"type": "string"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sortOrder": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialCountryReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"countries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/initialCountryItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialDatasItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"dataType": {
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialDatasReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"datas": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/initialDatasItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"initialStatusReply": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"title": "状态码"
|
||||
},
|
||||
"message": {
|
||||
"type": "string",
|
||||
"title": "状态说明"
|
||||
},
|
||||
"details": {
|
||||
"type": "string",
|
||||
"title": "数据"
|
||||
},
|
||||
"timeseq": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"title": "响应时间序列"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protobufAny": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"@type": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"rpcStatus": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"details": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/protobufAny"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user