Skip to content

Commit 8dd8296

Browse files
committed
update
1 parent 37ed7bf commit 8dd8296

File tree

6 files changed

+636
-919
lines changed

6 files changed

+636
-919
lines changed

dto_proto/http_dto.proto

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ package dto;
55
message Bot{
66
int64 bot_id = 1;
77
bool is_online = 2;
8+
Captcha captcha = 3;
9+
message Captcha{
10+
int64 bot_id = 1;
11+
CaptchaType captcha_type = 2;
12+
oneof data{
13+
string url = 3;
14+
bytes image = 4;
15+
}
16+
enum CaptchaType{
17+
PIC_CAPTCHA = 0;
18+
SLIDER_CAPTCHA = 1;
19+
UNSAFE_DEVICE_LOGIN_VERIFY = 2;
20+
SMS = 4;
21+
}
22+
}
823
}
924

1025
// 创建机器人 /bot/create/v1/
@@ -37,29 +52,6 @@ message BotLoginAsyncReq{
3752
message BotLoginAsyncResp{
3853
}
3954

40-
message Captcha{
41-
int64 bot_id = 1;
42-
CaptchaType captcha_type = 2;
43-
oneof data{
44-
string url = 3;
45-
bytes image = 4;
46-
}
47-
enum CaptchaType{
48-
PIC_CAPTCHA = 0;
49-
SLIDER_CAPTCHA = 1;
50-
UNSAFE_DEVICE_LOGIN_VERIFY = 2;
51-
SMS = 4;
52-
}
53-
}
54-
55-
56-
// 获取验证码 /captcha/list/v1/
57-
message ListCaptchaReq{
58-
}
59-
message ListCaptchaResp{
60-
repeated Captcha captcha_list = 1;
61-
}
62-
6355
// 处理验证码 /captcha/solve/v1/
6456
message SolveCaptchaReq{
6557
int64 bot_id = 1;
@@ -99,7 +91,6 @@ service HttpService{
9991
rpc DeleteBot(DeleteBotReq)returns (DeleteBotResp);
10092
rpc ListBot(ListBotReq)returns (ListBotResp);
10193
rpc BotLoginAsync(BotLoginAsyncReq)returns (BotLoginAsyncResp);
102-
rpc ListCaptcha(ListCaptchaReq)returns (ListCaptchaResp);
10394
rpc SolveCaptcha(SolveCaptchaReq)returns (SolveCaptchaResp);
10495
rpc FetchQRCode(FetchQRCodeReq)returns (QRCodeLoginResp);
10596
rpc QueryQRCodeStatus(QueryQRCodeStatusReq)returns (QRCodeLoginResp);

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func InitGin() {
134134
router.POST("/bot/create/v1", handler.CreateBot)
135135
router.POST("/bot/delete/v1", handler.DeleteBot)
136136
router.POST("/bot/list/v1", handler.ListBot)
137-
router.POST("/captcha/list/v1", handler.ListCaptcha)
138137
router.POST("/captcha/solve/v1", handler.SolveCaptcha)
139138
router.POST("/qrcode/fetch/v1", handler.FetchQrCode)
140139
router.POST("/qrcode/query/v1", handler.QueryQRCodeStatus)

0 commit comments

Comments
 (0)