|
|
@@ -1,7 +1,8 @@
|
|
|
syntax = "proto3";
|
|
|
package protos;
|
|
|
+option go_package = ".;protos";
|
|
|
|
|
|
-import "structs.proto";
|
|
|
+//import "structs.proto";
|
|
|
|
|
|
// 项目中配置文件定义
|
|
|
|
|
|
@@ -32,51 +33,13 @@ message NatsConf {
|
|
|
string clusterId = 4;
|
|
|
}
|
|
|
|
|
|
-// agent 服务器配置
|
|
|
-message AgentConf {
|
|
|
- ConfConf zoo = 1;
|
|
|
- string namespace = 2;
|
|
|
- uint64 id = 3;
|
|
|
- string addr = 4;
|
|
|
- string rpcAddr = 5;
|
|
|
- string profileAddr = 6;
|
|
|
- string agentAddr = 7;
|
|
|
- LogConf log = 8;
|
|
|
- string mode = 10;
|
|
|
-}
|
|
|
-
|
|
|
// zk 中 login 配置
|
|
|
message LoginConfConf {
|
|
|
repeated string addrs = 1;
|
|
|
string password = 2;
|
|
|
}
|
|
|
|
|
|
-// login 服务器启动配置
|
|
|
-// 因为 login 不在 zookeeper 中注册服务,所以 login 有两个配置
|
|
|
-message LoginConf {
|
|
|
- uint64 id = 1;
|
|
|
- RedisConf redis = 2;
|
|
|
- NatsConf nats = 3;
|
|
|
- repeated EmailConf emails = 4;
|
|
|
- string addr = 5;
|
|
|
- string agentAddr = 7;
|
|
|
- string rpcAddr = 9;
|
|
|
- string key = 11;
|
|
|
- LogConf log = 12;
|
|
|
- string mode = 16;
|
|
|
-}
|
|
|
-
|
|
|
-message ManagerConf {
|
|
|
- ConfConf zoo = 1;
|
|
|
- string namespace = 2;
|
|
|
- uint64 id = 3;
|
|
|
- string addr = 4;
|
|
|
- string profileAddr = 6;
|
|
|
- LogConf log = 7;
|
|
|
- string mode = 10;
|
|
|
-}
|
|
|
-
|
|
|
-message LogicConf {
|
|
|
+message AppConf {
|
|
|
ConfConf zoo = 1;
|
|
|
string namespace = 2;
|
|
|
uint64 id = 3;
|
|
|
@@ -88,6 +51,11 @@ message LogicConf {
|
|
|
string mode = 10;
|
|
|
}
|
|
|
|
|
|
+message Message {
|
|
|
+ string tplSubject = 1;
|
|
|
+ string tplBody = 2;
|
|
|
+}
|
|
|
+
|
|
|
// smtp 服务器配置
|
|
|
message EmailConf {
|
|
|
string smtp = 1;
|
|
|
@@ -95,6 +63,19 @@ message EmailConf {
|
|
|
string username = 3;
|
|
|
string password = 4;
|
|
|
string crypto = 5;
|
|
|
- string sujectTpl = 11;
|
|
|
- string bodyTpl = 12;
|
|
|
-}
|
|
|
+ repeated Message msg= 6;
|
|
|
+}
|
|
|
+
|
|
|
+message SmsTpl {
|
|
|
+ string tplCode = 1;
|
|
|
+ string tplParam = 2;
|
|
|
+}
|
|
|
+
|
|
|
+message SmsConf {
|
|
|
+ string type = 1;
|
|
|
+ string signName = 2;
|
|
|
+ string region = 3;
|
|
|
+ string secretKey = 6;
|
|
|
+ string accessKey = 10;
|
|
|
+ repeated SmsTpl tpls= 11;
|
|
|
+}
|