Browse Source

udpate small

joe 4 years ago
parent
commit
bf7de2a48e
2 changed files with 4 additions and 1 deletions
  1. 2 0
      basic.proto
  2. 2 1
      errors.proto

+ 2 - 0
basic.proto

@@ -53,6 +53,7 @@ message SmtpConf {
     string  username    = 3;
     string  password    = 4;
     string  crypto      = 5;
+    int32   enabled     = 6;
 }
 
 message SmsTemplate {
@@ -66,4 +67,5 @@ message SmsConf {
     string  region      = 3; // needed sometimes
     string  access_key  = 4;
     string  secret_key  = 5;
+    int32   enabled     = 6;
 }

+ 2 - 1
errors.proto

@@ -14,10 +14,11 @@ enum Ec {
     TARGET_HAS_EXIST    = 31;
     DISCONNECTED        = 50;
     AUTH_FAILED         = 60;
+    CONFIG_ERR          = 80;
 }
 
 enum NetClosedReason {
-    ERR_UNKNOWN         = 0;
+    ERR_UNKNOWN     = 0;
     ERR_NETWORK     = 1;
     ILLEGAL_DATA    = 2;
     SERVER_KICK     = 3;