1.8 KiB
1.8 KiB
Data
initial-数据
/initial.Data/Country
Request
{}
Reply
{
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
{
// 国家ID,默认:中国 1
country_id: 0, // type<int32>
// 国家代码,默认:中国 CN
country_code: "", // type<string>
// 是否输出乡镇,默认:市级
show_town: false, // type<bool>
}
Reply
{
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
{}
Reply
{
datas: [{
id: "0", // type<int64>
data_type: "", // type<string>
key: "", // type<string>
title: "", // type<string>
remark: "", // type<string>
icon: "", // type<string>
}], // list<DatasItem>
}