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,20 +1,20 @@
syntax = "proto3";
package initial;
option go_package = ".;initial";
option go_package = "bsm/full/module/base/initial/pb;initial";
// initial-检测是否有新版或新的配置
service Check{
// HELLO
rpc Hello(Crc) returns (StatusReply){}
// 获取应用的相关配置信息
rpc Config(ConfigRequest) returns (ConfigReply) {}
rpc Config(ConfigRequest) returns (ConfigReply) {}
// 检查更新
rpc Updates(CheckForUpdatesRequest) returns (CheckForUpdatesReply) {}
rpc Updates(CheckForUpdatesRequest) returns (CheckForUpdatesReply) {}
}
@@ -49,7 +49,7 @@ message ConfigItem {
int64 version=4; //版本号
}
message CheckForUpdatesRequest {
string app = 1; // 应用程序名称 <必填>
string os = 2; // 操作系统 <必填>

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