Captcha Gateway

This commit is contained in:
2025-03-22 19:48:19 +08:00
parent ba1d96b118
commit 62dcbbf424
14 changed files with 474 additions and 5 deletions

18
pkg/proto/captcha.proto Normal file
View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = ".;proto";
package proto;
service CaptchaService {
rpc CheckCaptcha(CheckCaptchaRequest) returns (CheckCaptchaResponse) {}
}
message CheckCaptchaRequest {
string token = 1;
string remote_ip = 2;
}
message CheckCaptchaResponse {
bool is_valid = 1;
}