1
This commit is contained in:
@@ -101,7 +101,7 @@ type LogisticsQueryRest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LogisticsQueryData struct {
|
type LogisticsQueryData struct {
|
||||||
Timestamp string `json:"timestamp"` // 当前系统时间
|
Timestamp string `json:"timestamp"` // 运单状态时间
|
||||||
TrackNo string `json:"track_no"` // 运单号
|
TrackNo string `json:"track_no"` // 运单号
|
||||||
Traces []TracesList `json:"traces"` // 轨迹列表
|
Traces []TracesList `json:"traces"` // 轨迹列表
|
||||||
}
|
}
|
||||||
@@ -172,7 +172,7 @@ func (c *LogisticsController) LogisticsQuery() {
|
|||||||
ReturnCode: "200",
|
ReturnCode: "200",
|
||||||
Message: "正常",
|
Message: "正常",
|
||||||
Data: LogisticsQueryData{
|
Data: LogisticsQueryData{
|
||||||
Timestamp: utils.Time2Str(time.Now()),
|
Timestamp: utils.Time2Str(data[0].StatusTime),
|
||||||
TrackNo: param.TrackNo,
|
TrackNo: param.TrackNo,
|
||||||
Traces: []TracesList{{
|
Traces: []TracesList{{
|
||||||
Timestamp: utils.Time2Str(time.Now()),
|
Timestamp: utils.Time2Str(time.Now()),
|
||||||
|
|||||||
Reference in New Issue
Block a user