feat: notify config, refactor config load.

This commit is contained in:
tx7do
2023-10-26 16:46:14 +08:00
parent 6d18bc0ffe
commit e7883775ed
24 changed files with 1907 additions and 1177 deletions

18
api/conf/v1/notify.proto Normal file
View File

@@ -0,0 +1,18 @@
syntax = "proto3";
package conf;
option go_package = "github.com/tx7do/kratos-bootstrap/gen/api/go/conf/v1;conf";
// 通知消息
message Notification {
// 短信
message SMS {
string endpoint = 1; // 公网接入地址
string region_id = 2; // 地域ID
string access_key_id = 3; // 访问密钥ID
string access_key_secret = 4; // 访问密钥
}
SMS sms = 1;
}