Documentation
¶
Index ¶
- type PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews
- func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary() ([]byte, error)
- func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary(b []byte) error
- func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV2BaseAuthority
- func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) 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 PTXServiceDTOSharedSpecificationV2BaseNews
- func (m *PTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseNews) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV2BaseOperator
- func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) Validate(formats strfmt.Registry) error
- type PTXServiceDTOSharedSpecificationV2BaseProvider
- func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) MarshalBinary() ([]byte, error)
- func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) UnmarshalBinary(b []byte) error
- func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) Validate(formats strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews ¶ added in v0.8.0
type PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews struct { int64 `json:"Count,omitempty"` // // 資料(陣列) // Required: true Newses []*PTXServiceDTOSharedSpecificationV2BaseNews "json:\"Newses\" xml:\"List`1\"" // // 資料更新週期(秒) // Required: true UpdateInterval *int32 `json:"UpdateInterval"` // // 更新日期時間 // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }Count
PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews NewsList
swagger:model PTX.API.Basic.Model.V2.BasicWrapper[PTX.Service.DTO.Shared.Specification.V2.Base.News]
func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate ¶ added in v0.9.0
func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x API basic model v2 basic wrapper p t x service d t o shared specification v2 base news based on the context it is used
func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary ¶ added in v0.8.0
func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) Validate ¶ added in v0.8.0
func (m *PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) Validate(formats strfmt.Registry) error
Validate validates this p t x API basic model v2 basic wrapper p t x service d t o shared specification v2 base news
type PTXServiceDTOSharedSpecificationV2BaseAuthority ¶ added in v0.8.0
type PTXServiceDTOSharedSpecificationV2BaseAuthority struct { // // 業管機關簡碼 // Required: true AuthorityCode *string `json:"AuthorityCode" xml:"String"` // // 業管機關電子信箱 AuthorityEmail string `json:"AuthorityEmail,omitempty" xml:"String,omitempty"` // // 業管機關代碼 // Required: true AuthorityID *string `json:"AuthorityID" xml:"String"` // // 業管機關名稱 // Required: true AuthorityName struct { PTXServiceDTOSharedSpecificationV2BaseNameType } `json:"AuthorityName" xml:"NameType"` // // 業管機關連絡電話 AuthorityPhone string `json:"AuthorityPhone,omitempty" xml:"String,omitempty"` // // 業管機關網址鏈結 AuthorityURL string `json:"AuthorityUrl,omitempty" xml:"String,omitempty"` // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOSharedSpecificationV2BaseAuthority Authority
業管機關資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Authority
func (*PTXServiceDTOSharedSpecificationV2BaseAuthority) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x service d t o shared specification v2 base authority based on the context it is used
func (*PTXServiceDTOSharedSpecificationV2BaseAuthority) MarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseAuthority) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseAuthority) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BaseNameType ¶ added in v0.8.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.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BaseNews ¶ added in v0.8.0
type PTXServiceDTOSharedSpecificationV2BaseNews struct { // // 相關網站連結 AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"` // // 發布單位 Department string `json:"Department,omitempty" xml:"String,omitempty"` // // 內容描述 // Required: true Description *string `json:"Description" xml:"String"` // Format: date-time EndTime strfmt.DateTime `json:"EndTime,omitempty"` // // 語系 // Required: true Language *string `json:"Language" xml:"String"` // // 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',10:'資料更新',99:'其他'] NewsCategory int64 `json:"NewsCategory,omitempty"` // // 最新消息原單位發布代碼 // Required: true // Format: uuid NewsID *strfmt.UUID `json:"NewsID"` // // 報導網站連結 NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"` // Format: date-time PublishTime strfmt.DateTime `json:"PublishTime,omitempty"` // Format: date-time StartTime strfmt.DateTime `json:"StartTime,omitempty"` // // 消息標題 Title string `json:"Title,omitempty" xml:"String,omitempty"` // // 消息更新時間 // Format: date-time UpdateTime strfmt.DateTime `json:"UpdateTime,omitempty"` }
PTXServiceDTOSharedSpecificationV2BaseNews News
業管機關資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.News
func (*PTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNews) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this p t x service d t o shared specification v2 base news based on context it is used
func (*PTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNews) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BaseOperator ¶ added in v0.8.0
type PTXServiceDTOSharedSpecificationV2BaseOperator struct { // // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB) // Required: true AuthorityCode *string `json:"AuthorityCode" xml:"String"` // // 營運業者簡碼 // Required: true OperatorCode *string `json:"OperatorCode" xml:"String"` // // 營運業者電子信箱 OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"` // // 營運業者代碼 // Required: true OperatorID *string `json:"OperatorID" xml:"String"` // // 營運業者名稱 // Required: true OperatorName struct { PTXServiceDTOSharedSpecificationV2BaseNameType } `json:"OperatorName" xml:"NameType"` // // 營運業者編號[交通部票證資料系統定義] // Required: true OperatorNo *string `json:"OperatorNo" xml:"String"` // // 營運業者連絡電話 OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"` // // 營運業者網址鏈結 OperatorURL string `json:"OperatorUrl,omitempty" xml:"String,omitempty"` // // 資料提供平台代碼 // Required: true ProviderID *string `json:"ProviderID" xml:"String"` // // 訂票連絡電話 ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"` // // 訂票網址鏈結 ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"` // // 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等) SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"` // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOSharedSpecificationV2BaseOperator Operator
營運業者資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Operator
func (*PTXServiceDTOSharedSpecificationV2BaseOperator) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x service d t o shared specification v2 base operator based on the context it is used
func (*PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PTXServiceDTOSharedSpecificationV2BaseProvider ¶ added in v0.8.0
type PTXServiceDTOSharedSpecificationV2BaseProvider struct { // // 資料提供平台簡碼 // Required: true ProviderCode *string `json:"ProviderCode" xml:"String"` // // 資料提供平台電子信箱 ProviderEmail string `json:"ProviderEmail,omitempty" xml:"String,omitempty"` // // 資料提供平台代碼 // Required: true ProviderID *string `json:"ProviderID" xml:"String"` // // 資料提供平台名稱 // Required: true ProviderName struct { PTXServiceDTOSharedSpecificationV2BaseNameType } `json:"ProviderName" xml:"NameType"` // // 資料提供平台連絡電話 ProviderPhone string `json:"ProviderPhone,omitempty" xml:"String,omitempty"` // // 資料提供平台網址鏈結 ProviderURL string `json:"ProviderUrl,omitempty" xml:"String,omitempty"` // // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) // Required: true // Format: date-time UpdateTime *strfmt.DateTime `json:"UpdateTime"` }
PTXServiceDTOSharedSpecificationV2BaseProvider Provider
資料提供平台資料型別
swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Provider
func (*PTXServiceDTOSharedSpecificationV2BaseProvider) ContextValidate ¶ added in v0.9.0
func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this p t x service d t o shared specification v2 base provider based on the context it is used
func (*PTXServiceDTOSharedSpecificationV2BaseProvider) MarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PTXServiceDTOSharedSpecificationV2BaseProvider) UnmarshalBinary ¶ added in v0.8.0
func (m *PTXServiceDTOSharedSpecificationV2BaseProvider) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- p_t_x_api_basic_model_v2_basic_wrapper_p_t_x_service_d_t_o_shared_specification_v2_base_news.go
- p_t_x_service_d_t_o_shared_specification_v2_base_authority.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_news.go
- p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
- p_t_x_service_d_t_o_shared_specification_v2_base_provider.go