refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -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;
}