merge: 同步 origin/master 新功能到定制版本
Build docker and publish / build (20.15.1) (push) Successful in 8m8s
Build docker and publish / build (20.15.1) (push) Successful in 8m8s
This commit is contained in:
+32
-9
@@ -20,6 +20,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
// Check user is exist request
|
||||
CheckUserRequest {
|
||||
@@ -42,6 +43,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
// User reset password request
|
||||
ResetPasswordRequest {
|
||||
@@ -55,6 +57,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
// Email login request
|
||||
EmailLoginRequest {
|
||||
@@ -94,6 +97,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
// Check user is exist request
|
||||
TelephoneCheckUserRequest {
|
||||
@@ -118,6 +122,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
// User login response
|
||||
TelephoneResetPasswordRequest {
|
||||
@@ -132,6 +137,7 @@ type (
|
||||
CfToken string `json:"cf_token,optional"`
|
||||
CaptchaId string `json:"captcha_id,optional"`
|
||||
CaptchaCode string `json:"captcha_code,optional"`
|
||||
SliderToken string `json:"slider_token,optional"`
|
||||
}
|
||||
AppleLoginCallbackRequest {
|
||||
Code string `form:"code"`
|
||||
@@ -150,9 +156,19 @@ type (
|
||||
ShortCode string `json:"short_code,optional"`
|
||||
}
|
||||
GenerateCaptchaResponse {
|
||||
Id string `json:"id"`
|
||||
Image string `json:"image"`
|
||||
Type string `json:"type"`
|
||||
Id string `json:"id"`
|
||||
Image string `json:"image"`
|
||||
Type string `json:"type"`
|
||||
BlockImage string `json:"block_image,omitempty"`
|
||||
}
|
||||
SliderVerifyCaptchaRequest {
|
||||
Id string `json:"id" validate:"required"`
|
||||
X int `json:"x" validate:"required"`
|
||||
Y int `json:"y" validate:"required"`
|
||||
Trail string `json:"trail"`
|
||||
}
|
||||
SliderVerifyCaptchaResponse {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -191,20 +207,24 @@ service ppanel {
|
||||
get /check/telephone (TelephoneCheckUserRequest) returns (TelephoneCheckUserResponse)
|
||||
|
||||
@doc "User Telephone register"
|
||||
@handler TelephoneUserRegister
|
||||
@handler TelephoneRegister
|
||||
post /register/telephone (TelephoneRegisterRequest) returns (LoginResponse)
|
||||
|
||||
@doc "Reset password"
|
||||
@doc "Reset password by telephone"
|
||||
@handler TelephoneResetPassword
|
||||
post /reset/telephone (TelephoneResetPasswordRequest) returns (LoginResponse)
|
||||
|
||||
@doc "Device Login"
|
||||
@handler DeviceLogin
|
||||
post /login/device (DeviceLoginRequest) returns (LoginResponse)
|
||||
|
||||
@doc "Generate captcha"
|
||||
@handler GenerateCaptcha
|
||||
post /captcha/generate returns (GenerateCaptchaResponse)
|
||||
|
||||
@doc "Device Login"
|
||||
@handler DeviceLogin
|
||||
post /login/device (DeviceLoginRequest) returns (LoginResponse)
|
||||
@doc "Verify slider captcha"
|
||||
@handler SliderVerifyCaptcha
|
||||
post /captcha/slider/verify (SliderVerifyCaptchaRequest) returns (SliderVerifyCaptchaResponse)
|
||||
}
|
||||
|
||||
@server (
|
||||
@@ -224,6 +244,10 @@ service ppanel {
|
||||
@doc "Generate captcha"
|
||||
@handler AdminGenerateCaptcha
|
||||
post /captcha/generate returns (GenerateCaptchaResponse)
|
||||
|
||||
@doc "Verify slider captcha"
|
||||
@handler AdminSliderVerifyCaptcha
|
||||
post /captcha/slider/verify (SliderVerifyCaptchaRequest) returns (SliderVerifyCaptchaResponse)
|
||||
}
|
||||
|
||||
@server (
|
||||
@@ -243,4 +267,3 @@ service ppanel {
|
||||
@handler AppleLoginCallback
|
||||
post /callback/apple (AppleLoginCallbackRequest)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user