- refactor Id to ID.

This commit is contained in:
gazebo
2018-06-25 14:05:25 +08:00
parent 7657966da5
commit 9356784af5
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ func (a *API) GetOrderCallbackMsg(request *http.Request) (orderMsg *CallbackOrde
} }
orderMsg = &CallbackOrderMsg{ orderMsg = &CallbackOrderMsg{
OrderInfoCommon: OrderInfoCommon{ OrderInfoCommon: OrderInfoCommon{
DeliveryId: utils.Str2Int64(request.FormValue("delivery_id")), DeliveryID: utils.Str2Int64(request.FormValue("delivery_id")),
MtPeisongId: request.FormValue("mt_peisong_id"), MtPeisongId: request.FormValue("mt_peisong_id"),
OrderId: request.FormValue("order_id"), OrderId: request.FormValue("order_id"),
CourierName: request.FormValue("courier_name"), CourierName: request.FormValue("courier_name"),
@@ -88,7 +88,7 @@ func (a *API) GetOrderExceptionCallbackMsg(request *http.Request) (orderMsg *Cal
} }
orderMsg = &CallbackOrderExceptionMsg{ orderMsg = &CallbackOrderExceptionMsg{
OrderInfoCommon: OrderInfoCommon{ OrderInfoCommon: OrderInfoCommon{
DeliveryId: utils.Str2Int64(request.FormValue("delivery_id")), DeliveryID: utils.Str2Int64(request.FormValue("delivery_id")),
MtPeisongId: request.FormValue("mt_peisong_id"), MtPeisongId: request.FormValue("mt_peisong_id"),
OrderId: request.FormValue("order_id"), OrderId: request.FormValue("order_id"),
CourierName: request.FormValue("courier_name"), CourierName: request.FormValue("courier_name"),

View File

@@ -71,7 +71,7 @@ const (
) )
type OrderInfoCommon struct { type OrderInfoCommon struct {
DeliveryId int64 DeliveryID int64
MtPeisongId string MtPeisongId string
OrderId string OrderId string
CourierName string CourierName string