修改Order的命名域
This commit is contained in:
@@ -41,6 +41,9 @@ service home-user-auth {
|
||||
|
||||
@handler UserAddAddressHandler
|
||||
post /user/add-address(RequestAddAddress) returns (response);
|
||||
|
||||
@handler UserOderDeleteHandler
|
||||
post /user/order-delete(RequestOrderId) returns (response);
|
||||
}
|
||||
|
||||
type RequestBasicInfoForm {
|
||||
@@ -67,9 +70,10 @@ type RequestUserLogin {
|
||||
Password string `json:"pwd"`
|
||||
}
|
||||
|
||||
// RequestAddAddress 增加地址结构
|
||||
type RequestAddAddress {
|
||||
Id int64 `json:"id"` // address_id 地址id
|
||||
IsDefault int64 `json:"is_default"` //是否默认
|
||||
IsDefault int64 `json:"is_default"` //是否默认
|
||||
Name string `json:"name"` //收货人
|
||||
FirstName string `json:"first_name"` //first_name
|
||||
LastName string `json:"last_name"` //last_name
|
||||
@@ -81,6 +85,11 @@ type RequestAddAddress {
|
||||
State string `json:"state"` //州
|
||||
}
|
||||
|
||||
// RequestOrderId 传入订单id的结构
|
||||
type RequestOrderId {
|
||||
OrderId int64 `json:"id"`
|
||||
}
|
||||
|
||||
// UserLoginHandler 用户登录请求结构
|
||||
type DataUserLogin {
|
||||
Token string `json:"token"` // 登录jwt token
|
||||
|
||||
Reference in New Issue
Block a user