info address
This commit is contained in:
parent
47a1ecfc79
commit
6a41be4f3a
|
@ -2,7 +2,6 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
|
||||
"net/http"
|
||||
|
||||
"fusenapi/server/info/internal/svc"
|
||||
|
@ -11,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ type AddressNameRequest struct {
|
|||
}
|
||||
|
||||
type AddressRequest struct {
|
||||
AddressId int64 `json:"address_id,omitempty"`
|
||||
AddressId int64 `json:"address_id,optional"`
|
||||
IsDefault int64 `json:"is_default"` //是否默认
|
||||
AddressName string `json:"address_name"` //收货人
|
||||
FirstName string `json:"first_name"` //first_name
|
||||
|
|
|
@ -17,7 +17,7 @@ service info {
|
|||
post /api/info/address/default(AddressIdRequest) returns (response);
|
||||
|
||||
@handler AddressAddHandler
|
||||
post /api/info/address/add(AddressNameRequest) returns (response);
|
||||
post /api/info/address/add(AddressRequest) returns (response);
|
||||
|
||||
@handler AddressUpdateHandler
|
||||
post /api/info/address/update(AddressObjectRequest) returns (response);
|
||||
|
@ -48,7 +48,7 @@ type (
|
|||
}
|
||||
|
||||
AddressRequest {
|
||||
AddressId int64 `json:"address_id,omitempty"`
|
||||
AddressId int64 `json:"address_id,optional"`
|
||||
IsDefault int64 `json:"is_default"` //是否默认
|
||||
AddressName string `json:"address_name"` //收货人
|
||||
FirstName string `json:"first_name"` //first_name
|
||||
|
|
Loading…
Reference in New Issue
Block a user