add: user accomplished

This commit is contained in:
wwweww
2026-02-27 05:42:13 +08:00
parent 659168fe32
commit a0c720eb2f
90 changed files with 9592 additions and 1180 deletions
+17
View File
@@ -7,6 +7,10 @@ info (
)
type (
EmptyResp {}
ForgotPasswordReq {
Email string `json:"email"`
}
SendVerificationCodeReq {
Email string `json:"email" binding:"required,email"`
Scene string `json:"scene" binding:"required,oneof=register login reset_password bind_email"`
@@ -30,5 +34,18 @@ service email-api {
)
@handler SendVerificationCode
post /verification-code/send (SendVerificationCodeReq) returns (SendVerificationCodeResp)
}
@server (
group: user
prefix: /api/v1/auth
)
service email-api {
@doc "忘记密码-发送验证码"
@handler ForgotPassword
post /forgot-password/send (ForgotPasswordReq) returns (EmptyResp)
}