feat: api

This commit is contained in:
tx7do
2024-11-19 22:41:10 +08:00
parent 29e8e79d50
commit 4c3b801ae5
19 changed files with 723 additions and 247 deletions

View File

@@ -0,0 +1,19 @@
syntax = "proto3";
package conf;
option go_package = "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1;conf";
import "google/protobuf/duration.proto";
// 认证
message Authentication {
// JWT
message Jwt {
string method = 1; // JWT签名的算法支持算法HS256
string key = 2; // JWT 秘钥
}
optional Jwt jwt = 1;
}