add: some user api and all api desc
This commit is contained in:
+3
-6
@@ -7,7 +7,7 @@ info (
|
||||
)
|
||||
|
||||
type (
|
||||
EmptyResp {}
|
||||
EmptyResp {}
|
||||
ForgotPasswordReq {
|
||||
Email string `json:"email"`
|
||||
}
|
||||
@@ -24,7 +24,7 @@ type (
|
||||
|
||||
@server (
|
||||
group: email
|
||||
prefix: /api/email
|
||||
prefix: /api/v1/email
|
||||
middleware: Logger
|
||||
)
|
||||
service email-api {
|
||||
@@ -34,14 +34,11 @@ service email-api {
|
||||
)
|
||||
@handler SendVerificationCode
|
||||
post /verification-code/send (SendVerificationCodeReq) returns (SendVerificationCodeResp)
|
||||
|
||||
|
||||
}
|
||||
|
||||
@server (
|
||||
group: user
|
||||
group: email
|
||||
prefix: /api/v1/auth
|
||||
|
||||
)
|
||||
service email-api {
|
||||
@doc "忘记密码-发送验证码"
|
||||
|
||||
Reference in New Issue
Block a user