models

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

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

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

MarshalBinary interface implementation

func (*PTXServiceDTOBikeSpecificationV2BikeAvailability) UnmarshalBinary added in v0.6.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBikeSpecificationV2BikeAvailability) Validate added in v0.6.0

Validate validates this p t x service d t o bike specification v2 bike availability

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

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

func (*PTXServiceDTOBikeSpecificationV2BikeShape) Validate added in v0.6.0

Validate validates this p t x service d t o bike specification v2 bike shape

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

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

func (*PTXServiceDTOBikeSpecificationV2BikeStation) Validate added in v0.6.0

Validate validates this p t x service d t o bike specification v2 bike station

type PTXServiceDTOSharedSpecificationV2BaseNameType added in v0.6.0

type PTXServiceDTOSharedSpecificationV2BaseNameType struct {

	// String
	//
	// 英文名稱
	En string `json:"En,omitempty" xml:"String,omitempty"`

	// String
	//
	// 中文繁體名稱
	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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary added in v0.6.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) Validate added in v0.6.0

Validate validates this p t x service d t o shared specification v2 base name type

type PTXServiceDTOSharedSpecificationV2BasePointType added in v0.6.0

type PTXServiceDTOSharedSpecificationV2BasePointType struct {

	// String
	//
	// 地理空間編碼
	GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"`

	// 位置緯度(WGS84)
	PositionLat float64 `json:"PositionLat,omitempty"`

	// 位置經度(WGS84)
	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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary added in v0.6.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BasePointType) Validate added in v0.6.0

Validate validates this p t x service d t o shared specification v2 base point type

type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth added in v0.12.0

type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct {

	// Inbound
	//
	// 本平台資料來源轉入狀態
	Inbound struct {
		PTXServiceDTOSharedSpecificationV3BaseInbound
	} `json:"Inbound,omitempty" xml:"Inbound,omitempty"`

	// Outbound
	//
	// 本平台API狀態
	Outbound struct {
		PTXServiceDTOSharedSpecificationV3BaseOutbound
	} `json:"Outbound,omitempty" xml:"Outbound,omitempty"`

	// String
	//
	// API服務代碼
	// Required: true
	ServiceID *string `json:"ServiceID" xml:"String"`

	// 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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate added in v0.12.0

Validate validates this p t x service d t o shared specification v3 base display health

type PTXServiceDTOSharedSpecificationV3BaseInbound added in v0.12.0

type PTXServiceDTOSharedSpecificationV3BaseInbound struct {

	// DateTime
	//
	// 檢核時間
	// Required: true
	// Format: date-time
	CheckTime *strfmt.DateTime `json:"CheckTime"`

	// String
	//
	// 檢核失敗原因
	Reason string `json:"Reason,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 檢核結果狀態 : [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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) Validate added in v0.12.0

Validate validates this p t x service d t o shared specification v3 base inbound

type PTXServiceDTOSharedSpecificationV3BaseOutbound added in v0.12.0

type PTXServiceDTOSharedSpecificationV3BaseOutbound struct {

	// DateTime
	//
	// 檢核時間
	// Required: true
	// Format: date-time
	CheckTime *strfmt.DateTime `json:"CheckTime"`

	// String
	//
	// 檢核失敗原因
	Reason string `json:"Reason,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 檢核結果狀態 : [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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate added in v0.12.0

Validate validates this p t x service d t o shared specification v3 base outbound

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL