修改数据库字段

This commit is contained in:
eson
2023-08-23 16:51:47 +08:00
parent 2321c5be77
commit d31e84c425
2 changed files with 25 additions and 8 deletions

View File

@@ -12,6 +12,9 @@ import "basic.api"
service auth {
@handler UserLoginHandler
post /api/auth/login(RequestUserLogin) returns (response);
@handler UserLoginHandler
post /api/auth/register(RequestUserLogin) returns (response);
@handler AcceptCookieHandler
post /api/auth/accept-cookie(request) returns (response);
@@ -45,6 +48,19 @@ type (
}
)
type (
// UserAddAddressHandler 用户登录请求结构
RequestUserRegister {
Email string `json:"email"`
Password string `json:"password"`
}
// UserLoginHandler 用户登录请求结构
DataUserRegister{
Token string `json:"token"` // 登录jwt token
}
)
type (
// RequestUserResetToken 请求重置token, 一定不为null