添加自增控制

This commit is contained in:
eson
2023-06-19 18:27:31 +08:00
parent 05363b1849
commit 640d3261e0
148 changed files with 1101 additions and 757 deletions

View File

@@ -38,6 +38,9 @@ service home-user-auth {
@handler UserAddressListHandler
get /user/address-list(request) returns (response);
@handler UserAddAddressHandler
post /user/add-address(RequestAddAddress) returns (response);
}
type RequestBasicInfoForm {
@@ -58,12 +61,26 @@ type RequestBasicInfoForm {
// NewPassword string `form:"new_password,optional" db:"new_password"` // new_password 如果存在新密码
}
// UserLoginHandler 用户登录请求结构
// UserAddAddressHandler 用户登录请求结构
type RequestUserLogin {
Name string `json:"name"`
Password string `json:"pwd"`
}
type RequestAddAddress {
Id int64 `json:"id"` // address_id 地址id
IsDefault int `json:"is_default"` //是否默认
Name string `json:"name"` //收货人
FirstName string `json:"first_name"` //first_name
LastName string `json:"last_name"` //last_name
Mobile string `json:"mobile"` //手机
ZipCode string `json:"zip_code"` //邮编
Street string `json:"street"` //街道
Suite string `json:"suite"` //房号
City string `json:"city"` //城市
State string `json:"state"` //州
}
// UserLoginHandler 用户登录请求结构
type DataUserLogin {
Token string `json:"token"` // 登录jwt token