client/docs/initial/data.md

90 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Data
initial-数据
- [/initial.Data/Country](#initialdatacountry)
- [/initial.Data/Region](#initialdataregion)
- [/initial.Data/Datas](#initialdatadatas)
## /initial.Data/Country
### Request
```javascript
{}
```
### Reply
```javascript
{
countries: [{
id: 0, // type<uint32>
code: "", // type<string>
code_3: "", // type<string>
num_code: "", // type<string>
phone_code: "", // type<string>
name: "", // type<string>
local_name: "", // type<string>
enabled: false, // type<bool>
sort_order: 0, // type<int32>
}], // list<CountryItem>
}
```
## /initial.Data/Region
系统区域数据,默认级别:市
### Request
```javascript
{
// 国家ID默认中国 1
country_id: 0, // type<int32>
// 国家代码,默认:中国 CN
country_code: "", // type<string>
// 是否输出乡镇,默认:市级
show_town: false, // type<bool>
}
```
### Reply
```javascript
{
regions: [{
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<RegionItem>
}
```
## /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>
}
```