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: 6 Imported by: 0

Documentation

Index

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 {

	// count
	Count int64 `json:"Count,omitempty"`

	// Array
	//
	// 資料(陣列)
	// Required: true
	Newses []*PTXServiceDTOSharedSpecificationV2BaseNews "json:\"Newses\" xml:\"List`1\""

	// Int32
	//
	// 資料更新週期(秒)
	// Required: true
	UpdateInterval *int32 `json:"UpdateInterval"`

	// DateTime
	//
	// 更新日期時間
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

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

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

MarshalBinary interface implementation

func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) UnmarshalBinary added in v0.8.0

UnmarshalBinary interface implementation

func (*PTXAPIBasicModelV2BasicWrapperPTXServiceDTOSharedSpecificationV2BaseNews) Validate added in v0.8.0

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 {

	// String
	//
	// 業管機關簡碼
	// Required: true
	AuthorityCode *string `json:"AuthorityCode" xml:"String"`

	// String
	//
	// 業管機關電子信箱
	AuthorityEmail string `json:"AuthorityEmail,omitempty" xml:"String,omitempty"`

	// String
	//
	// 業管機關代碼
	// Required: true
	AuthorityID *string `json:"AuthorityID" xml:"String"`

	// NameType
	//
	// 業管機關名稱
	// Required: true
	AuthorityName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"AuthorityName" xml:"NameType"`

	// String
	//
	// 業管機關連絡電話
	AuthorityPhone string `json:"AuthorityPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 業管機關網址鏈結
	AuthorityURL string `json:"AuthorityUrl,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 資料更新日期時間(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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseAuthority) UnmarshalBinary added in v0.8.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseAuthority) Validate added in v0.8.0

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

type PTXServiceDTOSharedSpecificationV2BaseNameType added in v0.8.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.8.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary added in v0.8.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) Validate added in v0.8.0

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

type PTXServiceDTOSharedSpecificationV2BaseNews added in v0.8.0

type PTXServiceDTOSharedSpecificationV2BaseNews struct {

	// String
	//
	// 相關網站連結
	AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"`

	// String
	//
	// 發布單位
	Department string `json:"Department,omitempty" xml:"String,omitempty"`

	// String
	//
	// 內容描述
	// Required: true
	Description *string `json:"Description" xml:"String"`

	// 結束時間
	// Format: date-time
	EndTime strfmt.DateTime `json:"EndTime,omitempty"`

	// String
	//
	// 語系
	// Required: true
	Language *string `json:"Language" xml:"String"`

	// Int32
	//
	// 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',10:'資料更新',99:'其他']
	NewsCategory int64 `json:"NewsCategory,omitempty"`

	// Guid
	//
	// 最新消息原單位發布代碼
	// Required: true
	// Format: uuid
	NewsID *strfmt.UUID `json:"NewsID"`

	// String
	//
	// 報導網站連結
	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"`

	// String
	//
	// 消息標題
	Title string `json:"Title,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 消息更新時間
	// 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

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

func (*PTXServiceDTOSharedSpecificationV2BaseNews) Validate added in v0.8.0

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

type PTXServiceDTOSharedSpecificationV2BaseOperator added in v0.8.0

type PTXServiceDTOSharedSpecificationV2BaseOperator struct {

	// String
	//
	// 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
	// Required: true
	AuthorityCode *string `json:"AuthorityCode" xml:"String"`

	// String
	//
	// 營運業者簡碼
	// Required: true
	OperatorCode *string `json:"OperatorCode" xml:"String"`

	// String
	//
	// 營運業者電子信箱
	OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// NameType
	//
	// 營運業者名稱
	// Required: true
	OperatorName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"OperatorName" xml:"NameType"`

	// String
	//
	// 營運業者編號[交通部票證資料系統定義]
	// Required: true
	OperatorNo *string `json:"OperatorNo" xml:"String"`

	// String
	//
	// 營運業者連絡電話
	OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者網址鏈結
	OperatorURL string `json:"OperatorUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 資料提供平台代碼
	// Required: true
	ProviderID *string `json:"ProviderID" xml:"String"`

	// String
	//
	// 訂票連絡電話
	ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 訂票網址鏈結
	ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)
	SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 資料更新日期時間(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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary added in v0.8.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) Validate added in v0.8.0

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

type PTXServiceDTOSharedSpecificationV2BaseProvider added in v0.8.0

type PTXServiceDTOSharedSpecificationV2BaseProvider struct {

	// String
	//
	// 資料提供平台簡碼
	// Required: true
	ProviderCode *string `json:"ProviderCode" xml:"String"`

	// String
	//
	// 資料提供平台電子信箱
	ProviderEmail string `json:"ProviderEmail,omitempty" xml:"String,omitempty"`

	// String
	//
	// 資料提供平台代碼
	// Required: true
	ProviderID *string `json:"ProviderID" xml:"String"`

	// NameType
	//
	// 資料提供平台名稱
	// Required: true
	ProviderName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"ProviderName" xml:"NameType"`

	// String
	//
	// 資料提供平台連絡電話
	ProviderPhone string `json:"ProviderPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 資料提供平台網址鏈結
	ProviderURL string `json:"ProviderUrl,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 資料更新日期時間(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

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

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseProvider) UnmarshalBinary added in v0.8.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseProvider) Validate added in v0.8.0

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

Jump to

Keyboard shortcuts

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