修改数据库字段
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user