refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package initial;
|
||||
option go_package = ".;initial";
|
||||
option go_package = "bsm/full/module/base/initial/pb;initial";
|
||||
|
||||
|
||||
// initial-数据
|
||||
@@ -8,10 +8,10 @@ service Data{
|
||||
rpc Country(Empty) returns (CountryReply) {}
|
||||
|
||||
// 系统区域数据,默认级别:市
|
||||
rpc Areas(AreasRequest) returns (AreasReply) {}
|
||||
rpc Areas(AreasRequest) returns (AreasReply) {}
|
||||
|
||||
// 系统数据
|
||||
rpc Datas(Empty) returns (DatasReply) {}
|
||||
rpc Datas(Empty) returns (DatasReply) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ message CountryItem {
|
||||
|
||||
message AreasRequest {
|
||||
// 国家ID,默认:中国 1
|
||||
int32 country_id = 1;
|
||||
int32 country_id = 1;
|
||||
// 国家代码,默认:中国 CN
|
||||
string country_code = 2;
|
||||
string country_code = 2;
|
||||
// 是否输出乡镇,默认:市级
|
||||
bool show_town = 3;
|
||||
bool show_town = 3;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user