You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.4 KiB
71 lines
1.4 KiB
6 months ago
|
syntax = "proto3";
|
||
|
package kratos.api;
|
||
|
|
||
|
option go_package = "bkb-notify/internal/conf;conf";
|
||
|
|
||
|
import "google/protobuf/duration.proto";
|
||
|
|
||
|
message Bootstrap {
|
||
|
Server server = 1;
|
||
|
Data data = 2;
|
||
|
App app=4;
|
||
|
}
|
||
|
message App{
|
||
|
string env=1;
|
||
|
message Email {
|
||
|
string account = 1;
|
||
|
string password = 2;
|
||
|
string sender = 3;
|
||
|
string host = 4;
|
||
|
int32 port = 5;
|
||
|
bool isSSL = 6;
|
||
|
}
|
||
|
Email email = 2;
|
||
|
message Dysmsapi {
|
||
|
string accessSecret = 1;
|
||
|
string accessKeyID = 2;
|
||
|
string signName = 3;
|
||
|
string templateCode1 = 4;
|
||
|
string templateCode2 = 5;
|
||
|
string templateCode3 = 6;
|
||
|
string templateCode4 = 7;
|
||
|
string signNameGlobal = 8;
|
||
|
string templateCodeGlobal1 = 9;
|
||
|
string templateCodeGlobal2 = 10;
|
||
|
string templateCodeGlobal3 = 11;
|
||
|
string templateCodeGlobal4 = 12;
|
||
|
}
|
||
|
Dysmsapi dysmsapi = 3;
|
||
|
}
|
||
|
message Server {
|
||
|
message HTTP {
|
||
|
string network = 1;
|
||
|
string addr = 2;
|
||
|
google.protobuf.Duration timeout = 3;
|
||
|
}
|
||
|
message GRPC {
|
||
|
string network = 1;
|
||
|
string addr = 2;
|
||
|
google.protobuf.Duration timeout = 3;
|
||
|
}
|
||
|
HTTP http = 1;
|
||
|
GRPC grpc = 2;
|
||
|
}
|
||
|
|
||
|
message Data {
|
||
|
message Database {
|
||
|
string driver = 1;
|
||
|
string source = 2;
|
||
|
}
|
||
|
message Redis {
|
||
|
|
||
|
string addr = 1;
|
||
|
string password=2;
|
||
|
google.protobuf.Duration read_timeout = 3;
|
||
|
google.protobuf.Duration write_timeout = 4;
|
||
|
int32 db=5;
|
||
|
}
|
||
|
Database database = 1;
|
||
|
Redis redis = 2;
|
||
|
}
|