yokyo há 5 anos atrás
pai
commit
658bd94709
2 ficheiros alterados com 23 adições e 7 exclusões
  1. 16 7
      confs.proto
  2. 7 0
      structs.proto

+ 16 - 7
confs.proto

@@ -48,13 +48,14 @@ message LoginConf {
     uint64 id           = 1;
     RedisConf redis     = 2;
     NatsConf nats       = 3;
-    string addr         = 4;
-    string agentAddr    = 5;
-    string rpcAddr      = 6;
-    string key          = 7;
-    string logPath      = 10;
-    int32 level         = 11;
-    string mode         = 12;
+    repeated EmailConf emails = 4;
+    string addr         = 5;
+    string agentAddr    = 7;
+    string rpcAddr      = 9;
+    string key          = 11;
+    string logPath      = 12;
+    int32 level         = 14;
+    string mode         = 16;
 }
 
 message ManagerConf {
@@ -89,4 +90,12 @@ message RouteRule_ {
 // 路由规则配置
 message RouteRules {
     repeated RouteRule_ rules = 1;
+}
+
+message EmailConf {
+    string smtp     = 1;
+    int32 port      = 2;
+    string username = 3;
+    string password = 4;
+    string crypto   = 5;
 }

+ 7 - 0
structs.proto

@@ -33,4 +33,11 @@ message Mail {
     int64 expires               = 9;    // 过期时间,0 永不过期
     int32 read                  = 10;   // 是否已读
     int32 valid                 = 12;   // 是否有效
+}
+
+// 多语言内容,提前配置
+message LangText {
+    int32 lang              = 1;
+    string emailTitleTpl    = 2;
+    string emailBodyTpl     = 3;
 }