fix:修改模型

master v1.0.5
大虾 3 years ago
parent ddc043b0f3
commit d6c8cffd4e

@ -20,6 +20,13 @@ type Requester interface {
const UnKnow = "UnKnow" const UnKnow = "UnKnow"
type SkuParam struct {
SkuID string `json:"skuId"`
SkuPrice float64 `json:"skuPrice"`
Quantity uint `json:"quantity"`
SkuName string `json:"skuName"`
}
type Address struct { type Address struct {
CityID uint `json:"cityId"` CityID uint `json:"cityId"`
CountyID uint `json:"countyId"` CountyID uint `json:"countyId"`

@ -10,19 +10,12 @@ type GetFeeRequest struct {
ApiFreightFeeParam ApiFreightFeeParam `json:"apiFreightFeeParam"` ApiFreightFeeParam ApiFreightFeeParam `json:"apiFreightFeeParam"`
} }
type SkuInfo struct {
SkuPrice float64 `json:"skuPrice"`
SkuID string `json:"skuId"`
SkuName string `json:"skuName"`
Quantity uint `json:"quantity"`
}
type ApiFreightFeeParam struct { type ApiFreightFeeParam struct {
Address rest.Address `json:"address"` Address rest.Address `json:"address"`
Pin string `json:"pin"` Pin string `json:"pin"`
PaymentType uint `json:"paymentType"` PaymentType uint `json:"paymentType"`
OrderFee float64 `json:"orderFee"` OrderFee float64 `json:"orderFee"`
SkuList []SkuInfo `json:"skuList"` SkuList []rest.SkuParam `json:"skuList"`
} }
func (o GetFeeRequest) GetApiName() string { func (o GetFeeRequest) GetApiName() string {

@ -12,7 +12,7 @@ type ApiShipmentTypeParam struct {
Address rest.Address `json:"address"` Address rest.Address `json:"address"`
Pin string `json:"pin"` Pin string `json:"pin"`
PaymentType uint `json:"paymentType"` PaymentType uint `json:"paymentType"`
SkuList []SkuInfo `json:"skuList"` SkuList []rest.SkuParam `json:"skuList"`
} }
func (o GetMethodRequest) GetApiName() string { func (o GetMethodRequest) GetApiName() string {

@ -26,14 +26,7 @@ type Param struct {
} }
type ProductParam struct { type ProductParam struct {
MainSku SkuParam `json:"mainSku"` MainSku rest.SkuParam `json:"mainSku"`
}
type SkuParam struct {
SkuID string `json:"skuId"`
SkuPrice float64 `json:"skuPrice"`
Quantity uint `json:"quantity"`
SkuName string `json:"skuName"`
} }
type ReceiverParam struct { type ReceiverParam struct {

Loading…
Cancel
Save