Documentation ¶
Index ¶
- func CancelOrder(orderID string, reason string) error
- func Destroy()
- func EstimatePrice(startX float64, startY float64, endX float64, endY float64) (float64, float64, float64, error)
- func GetTencentAddr(lng float64, lat float64) (string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func PushOrder(phone string, startAddr string, endAddr string, customerID string, ...) error
- func PushOrderLocation(workID string, orderID string, longitude string, latitude string, ...) error
- func PushOrderState(workID string, serviceCode string, servicePerName string, ...) error
- type CancelOrderRequest
- type EstimatePriceRequest
- type EstimatePriceResponse
- type GetOrdersQuery
- type GetOrdersResponse
- type GetPlatformOrderDetailQuery
- type GetPlatformOrderDetailResponse
- type GetTencentAddrResponse
- type PlatformOrderInfo
- type PushOrderLocationRequest
- type PushOrderRequest
- type PushOrderStateRequest
- type VeteranOrderInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelOrder ¶
func EstimatePrice ¶
func PushOrderLocation ¶
Types ¶
type CancelOrderRequest ¶
type EstimatePriceRequest ¶
type EstimatePriceResponse ¶
type GetOrdersQuery ¶
type GetOrdersResponse ¶
type GetOrdersResponse struct { Infos []VeteranOrderInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetPlatformOrderDetailQuery ¶
type GetPlatformOrderDetailQuery struct {
ID string `form:"id" binding:"required"`
}
type GetPlatformOrderDetailResponse ¶
type GetPlatformOrderDetailResponse struct { Info *PlatformOrderInfo `json:"info"` // contains filtered or unexported fields }
type GetTencentAddrResponse ¶
type GetTencentAddrResponse struct { Address string `json:"address"` // contains filtered or unexported fields }
type PlatformOrderInfo ¶
type PlatformOrderInfo struct { OrderID string `json:"orderId"` DriverName string `json:"driverName"` DriverPhone string `json:"driverPhone"` DriverNum string `json:"driverNum"` DriverYear string `json:"driverYear"` Star string `json:"star"` State string `json:"state"` From string `json:"from"` To string `json:"to"` Distance string `json:"distance"` Duration string `json:"duration"` Price string `json:"price"` PlatformOrderID string `json:"platformOrderId"` Lng string `json:"lng"` Lat string `json:"lat"` }
func GetPlatformOrderDetail ¶
func GetPlatformOrderDetail(id string) (*PlatformOrderInfo, error)
type PushOrderLocationRequest ¶
type PushOrderLocationRequest struct { WorkID string `json:"workId"` OrderID string `json:"orderId"` Longitude string `json:"longitude"` Latitude string `json:"latitude"` SendTime string `json:"sendTime"` ServicePerName string `json:"servicePerName"` ServicePerPhone string `json:"servicePerPhone"` Data string `json:"data"` }
type PushOrderRequest ¶
type PushOrderStateRequest ¶
type PushOrderStateRequest struct { WorkID string `json:"workId"` ServiceCode string `json:"serviceCode"` ServicePerName string `json:"servicePerName"` ServicePerPhone string `json:"servicePerPhone"` State string `json:"state"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` TotalMoney string `json:"totalMoney"` TotalKilometer string `json:"totalKilometer"` TotalTime string `json:"totalTime"` OrderID string `json:"orderId"` OrderUrl string `json:"orderUrl"` }
type VeteranOrderInfo ¶
type VeteranOrderInfo struct { ID string `json:"id"` Phone string `json:"phone"` StartAddr string `json:"startAddr"` EndAddr string `json:"endAddr"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` VeteranOrderID string `json:"veteranOrderId"` State int `json:"state"` CustomerID string `json:"customerId"` CustomerName string `json:"customerName"` ServiceCode string `json:"serviceCode"` ServicePerName string `json:"servicePerName"` ServicePerPhone string `json:"servicePerPhone"` DriverTimes uint `json:"driverTimes"` DriveAge uint16 `json:"driveAge"` DriverStar uint8 `json:"driverStar"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` TotalMoney float64 `json:"totalMoney"` TotalKilometer float64 `json:"totalKilometer"` TotalTime int `json:"totalTime"` }
Click to show internal directories.
Click to hide internal directories.