Documentation ¶
Index ¶
- type PTXServiceDTOBikeSpecificationV2BikeAvailability
- func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) Validate(formats strfmt.Registry) error
- type PTXServiceDTOBikeSpecificationV2BikeShape
- func (m *PTXServiceDTOBikeSpecificationV2BikeShape) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeShape) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOBikeSpecificationV2BikeShape) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeShape) Validate(formats strfmt.Registry) error
- type PTXServiceDTOBikeSpecificationV2BikeStation
- func (m *PTXServiceDTOBikeSpecificationV2BikeStation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeStation) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOBikeSpecificationV2BikeStation) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOBikeSpecificationV2BikeStation) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV2BaseNameType
- func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV2BasePointType
- func (m *PTXServiceDTOSharedSpecificationV2BasePointType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BasePointType) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
- func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV3BaseInbound
- func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV3BaseOutbound
- func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate(formats strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTXServiceDTOBikeSpecificationV2BikeAvailability ¶ added in v0.6.0
type PTXServiceDTOBikeSpecificationV2BikeAvailability struct { // Int32 // // 可租借車數 AvailableRentBikes int32 `json:"AvailableRentBikes,omitempty"` // Int32 // // 可歸還車數 AvailableReturnBikes int32 `json:"AvailableReturnBikes,omitempty"` // Int32 // // 服務狀態 : [0:'停止營運',1:'正常營運',2:'暫停營運'] ServiceStatus int64 `json:"ServiceStatus,omitempty"` // Int32 // // 服務類型 : [1:'YouBike1.0',2:'YouBike2.0'] ServiceType int64 `json:"ServiceType,omitempty"` // 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Format: date-time SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"` // String // // 站點代碼 StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // String // // 站點唯一識別代碼,規則為 {業管機關代碼} + {StationID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 StationUID string `json:"StationUID,omitempty" xml:"String,omitempty"` // DateTime // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOBikeSpecificationV2BikeAvailability BikeAvailability
自行車站點剩餘數量資訊
swagger:model PTX.Service.DTO.Bike.Specification.V2.BikeAvailability
func (*PTXServiceDTOBikeSpecificationV2BikeAvailability) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o bike specification v2 bike availability based on context it is used
func (*PTXServiceDTOBikeSpecificationV2BikeAvailability) MarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOBikeSpecificationV2BikeAvailability) UnmarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeAvailability) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOBikeSpecificationV2BikeShape ¶ added in v0.6.0
type PTXServiceDTOBikeSpecificationV2BikeShape struct { // String // // 業管機關名稱(可能包含多個業管機關) AuthorityName string `json:"AuthorityName,omitempty" xml:"String,omitempty"` // String // // 路線所在縣市名稱 // Required: true City *string `json:"City" xml:"String"` // String // // 路線所在縣市代碼 // Required: true CityCode *string `json:"CityCode" xml:"String"` // 自行車道長度 CyclingLength float64 `json:"CyclingLength,omitempty"` // String // // 自行車道類型 CyclingType string `json:"CyclingType,omitempty" xml:"String,omitempty"` // String // // 自行車道車行方向 Direction string `json:"Direction,omitempty" xml:"String,omitempty"` // String // // 路線軌跡編碼(encoded polyline) // Required: true EncodedPolyline *string `json:"EncodedPolyline" xml:"String"` // String // // 自行車道完工日期時間 FinishedTime string `json:"FinishedTime,omitempty" xml:"String,omitempty"` // String // // well-known text,為路線軌跡資料 // Required: true Geometry *string `json:"Geometry" xml:"String"` // String // // 路線迄點描述 RoadSectionEnd string `json:"RoadSectionEnd,omitempty" xml:"String,omitempty"` // String // // 路線起點描述 RoadSectionStart string `json:"RoadSectionStart,omitempty" xml:"String,omitempty"` // String // // 路線名稱 // Required: true RouteName *string `json:"RouteName" xml:"String"` // String // // 路線所在鄉鎮名稱(可能包含多個鄉鎮) Town string `json:"Town,omitempty" xml:"String,omitempty"` // DateTime // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOBikeSpecificationV2BikeShape BikeShape
swagger:model PTX.Service.DTO.Bike.Specification.V2.BikeShape
func (*PTXServiceDTOBikeSpecificationV2BikeShape) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOBikeSpecificationV2BikeShape) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o bike specification v2 bike shape based on context it is used
func (*PTXServiceDTOBikeSpecificationV2BikeShape) MarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeShape) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOBikeSpecificationV2BikeShape) UnmarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeShape) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOBikeSpecificationV2BikeStation ¶ added in v0.6.0
type PTXServiceDTOBikeSpecificationV2BikeStation struct { // String // // 業管單位代碼 AuthorityID string `json:"AuthorityID,omitempty" xml:"String,omitempty"` // Int32 // // 可容納之自行車總數 BikesCapacity int32 `json:"BikesCapacity,omitempty"` // Int32 // // 服務類型 : [1:'YouBike1.0',2:'YouBike2.0'] ServiceType int64 `json:"ServiceType,omitempty"` // 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Format: date-time SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"` // NameType // // 站點地址 StationAddress struct { PTXServiceDTOSharedSpecificationV2BaseNameType } `json:"StationAddress,omitempty" xml:"NameType,omitempty"` // String // // 站點代碼 StationID string `json:"StationID,omitempty" xml:"String,omitempty"` // NameType // // 站點名稱 StationName struct { PTXServiceDTOSharedSpecificationV2BaseNameType } `json:"StationName,omitempty" xml:"NameType,omitempty"` // PointType // // 站點位置 StationPosition struct { PTXServiceDTOSharedSpecificationV2BasePointType } `json:"StationPosition,omitempty" xml:"PointType,omitempty"` // String // // 站點唯一識別代碼,規則為 {業管機關代碼} + {StationID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢 StationUID string `json:"StationUID,omitempty" xml:"String,omitempty"` // String // // 站點描述 StopDescription string `json:"StopDescription,omitempty" xml:"String,omitempty"` // DateTime // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOBikeSpecificationV2BikeStation BikeStation
自行車站點資訊
swagger:model PTX.Service.DTO.Bike.Specification.V2.BikeStation
func (*PTXServiceDTOBikeSpecificationV2BikeStation) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOBikeSpecificationV2BikeStation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x service d t o bike specification v2 bike station based on the context it is used
func (*PTXServiceDTOBikeSpecificationV2BikeStation) MarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeStation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOBikeSpecificationV2BikeStation) UnmarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOBikeSpecificationV2BikeStation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BaseNameType ¶ added in v0.6.0
type PTXServiceDTOSharedSpecificationV2BaseNameType struct { // // 英文名稱 En string `json:"En,omitempty" xml:"String,omitempty"` // // 中文繁體名稱 ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"` }
PTXServiceDTOSharedSpecificationV2BaseNameType NameType
名稱資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.NameType
func (*PTXServiceDTOSharedSpecificationV2BaseNameType) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o shared specification v2 base name type based on context it is used
func (*PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BasePointType ¶ added in v0.6.0
type PTXServiceDTOSharedSpecificationV2BasePointType struct { // // 地理空間編碼 GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"` PositionLat float64 `json:"PositionLat,omitempty"` PositionLon float64 `json:"PositionLon,omitempty"` }
PTXServiceDTOSharedSpecificationV2BasePointType PointType
座標資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.PointType
func (*PTXServiceDTOSharedSpecificationV2BasePointType) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BasePointType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o shared specification v2 base point type based on context it is used
func (*PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary ¶ added in v0.6.0
func (m *PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth ¶ added in v0.12.0
type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct { // // 本平台資料來源轉入狀態 Inbound struct { PTXServiceDTOSharedSpecificationV3BaseInbound } `json:"Inbound,omitempty" xml:"Inbound,omitempty"` // // 本平台API狀態 Outbound struct { PTXServiceDTOSharedSpecificationV3BaseOutbound } `json:"Outbound,omitempty" xml:"Outbound,omitempty"` // // API服務代碼 // Required: true ServiceID *string `json:"ServiceID" xml:"String"` // // API服務中文名稱 // Required: true ServiceName *string `json:"ServiceName" xml:"String"` }
PTXServiceDTOSharedSpecificationV3BaseDisplayHealth DisplayHealth
API服務健康狀態 ¶
swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth
func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) ContextValidate ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x service d t o shared specification v3 base display health based on the context it is used
func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV3BaseInbound ¶ added in v0.12.0
type PTXServiceDTOSharedSpecificationV3BaseInbound struct { // // 檢核時間 // Required: true // Format: date-time CheckTime *strfmt.DateTime `json:"CheckTime"` // // 檢核失敗原因 Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true Status *int64 `json:"Status"` }
PTXServiceDTOSharedSpecificationV3BaseInbound Inbound
本平台資料來源轉入狀態
swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Inbound
func (*PTXServiceDTOSharedSpecificationV3BaseInbound) ContextValidate ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o shared specification v3 base inbound based on context it is used
func (*PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV3BaseOutbound ¶ added in v0.12.0
type PTXServiceDTOSharedSpecificationV3BaseOutbound struct { // // 檢核時間 // Required: true // Format: date-time CheckTime *strfmt.DateTime `json:"CheckTime"` // // 檢核失敗原因 Reason string `json:"Reason,omitempty" xml:"String,omitempty"` // // 檢核結果狀態 : [0:'失敗',1:'成功'] // Required: true Status *int64 `json:"Status"` }
PTXServiceDTOSharedSpecificationV3BaseOutbound Outbound
本平台API狀態
swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Outbound
func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) ContextValidate ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o shared specification v3 base outbound based on context it is used
func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary ¶ added in v0.12.0
func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- p_t_x_service_d_t_o_bike_specification_v2_bike_availability.go
- p_t_x_service_d_t_o_bike_specification_v2_bike_shape.go
- p_t_x_service_d_t_o_bike_specification_v2_bike_station.go
- p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
- p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
- p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
- p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
- p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go