diff --git a/bike/v2/client/bike/bike_client.go b/bike/v2/client/bike/bike_client.go
index 0eada2b4..2d927ca2 100644
--- a/bike/v2/client/bike/bike_client.go
+++ b/bike/v2/client/bike/bike_client.go
@@ -39,7 +39,7 @@ type ClientService interface {
/*
BikeAPIAvailability 取得動態指定s 縣市 的公共自行車即時車位資料
- 取得動態指定[縣市]的公共自行車即時車位資料
[更新頻率]2分鐘更新一次
+ 取得動態指定[縣市]的公共自行車即時車位資料
*/
func (a *Client) BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAPIAvailabilityOK, error) {
// TODO: Validate the params before sending
@@ -75,7 +75,7 @@ func (a *Client) BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAP
/*
BikeAPIStation 取得指定s 縣市 的公共自行車租借站位資料
- 取得指定[縣市]的公共自行車租借站位資料
[更新頻率]2分鐘更新一次
+ 取得指定[縣市]的公共自行車租借站位資料
*/
func (a *Client) BikeAPIStation(params *BikeAPIStationParams) (*BikeAPIStationOK, error) {
// TODO: Validate the params before sending
diff --git a/bike/v2/models/p_t_x_service_d_t_o_bike_specification_v2_bike_shape.go b/bike/v2/models/p_t_x_service_d_t_o_bike_specification_v2_bike_shape.go
index f3c5a379..c9a49819 100644
--- a/bike/v2/models/p_t_x_service_d_t_o_bike_specification_v2_bike_shape.go
+++ b/bike/v2/models/p_t_x_service_d_t_o_bike_specification_v2_bike_shape.go
@@ -47,6 +47,12 @@ type PTXServiceDTOBikeSpecificationV2BikeShape struct {
// 自行車道車行方向
Direction string `json:"Direction,omitempty"`
+ // String
+ //
+ // 路線軌跡編碼(encoded polyline)
+ // Required: true
+ EncodedPolyline *string `json:"EncodedPolyline"`
+
// String
//
// 自行車道完工日期時間
@@ -54,7 +60,7 @@ type PTXServiceDTOBikeSpecificationV2BikeShape struct {
// String
//
- // 路線軌跡資料
+ // well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
@@ -98,6 +104,10 @@ func (m *PTXServiceDTOBikeSpecificationV2BikeShape) Validate(formats strfmt.Regi
res = append(res, err)
}
+ if err := m.validateEncodedPolyline(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateGeometry(formats); err != nil {
res = append(res, err)
}
@@ -134,6 +144,15 @@ func (m *PTXServiceDTOBikeSpecificationV2BikeShape) validateCityCode(formats str
return nil
}
+func (m *PTXServiceDTOBikeSpecificationV2BikeShape) validateEncodedPolyline(formats strfmt.Registry) error {
+
+ if err := validate.Required("EncodedPolyline", "body", m.EncodedPolyline); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PTXServiceDTOBikeSpecificationV2BikeShape) validateGeometry(formats strfmt.Registry) error {
if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
diff --git a/bike/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go b/bike/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
index 65354297..33cfe90a 100644
--- a/bike/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
+++ b/bike/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
@@ -19,7 +19,7 @@ type PTXServiceDTOSharedSpecificationV2BasePointType struct {
// String
//
- // 位置雜湊
+ // 地理空間編碼
GeoHash string `json:"GeoHash,omitempty"`
// 位置緯度(WGS84)
diff --git a/bus/v2/client/city_bus/city_bus_api_data_version_responses.go b/bus/v2/client/city_bus/city_bus_api_data_version_responses.go
index 532ba50e..928a24d7 100644
--- a/bus/v2/client/city_bus/city_bus_api_data_version_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_data_version_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIDataVersionOK() *CityBusAPIDataVersionOK {
/*CityBusAPIDataVersionOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIDataVersionOK struct {
- Payload *models.ServiceDTOVersion2BusBusVersion
+ Payload *models.PTXServiceDTOBusSpecificationV2BusVersion
}
func (o *CityBusAPIDataVersionOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DataVersion/City/{City}][%d] cityBusApiDataVersionOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIDataVersionOK) GetPayload() *models.ServiceDTOVersion2BusBusVersion {
+func (o *CityBusAPIDataVersionOK) GetPayload() *models.PTXServiceDTOBusSpecificationV2BusVersion {
return o.Payload
}
func (o *CityBusAPIDataVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion2BusBusVersion)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV2BusVersion)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIDataVersionStatus299() *CityBusAPIDataVersionStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDataVersionStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIDataVersionStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DataVersion/City/{City}][%d] cityBusApiDataVersionStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIDataVersionStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIDataVersionStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDataVersionStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_responses.go b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_responses.go
index f8a7213a..361e52f6 100644
--- a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIDisplayStopOfRoute1OK() *CityBusAPIDisplayStopOfRoute1OK {
/*CityBusAPIDisplayStopOfRoute1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIDisplayStopOfRoute1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusDisplayStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute
}
func (o *CityBusAPIDisplayStopOfRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DisplayStopOfRoute/City/{City}/{RouteName}][%d] cityBusApiDisplayStopOfRoute1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIDisplayStopOfRoute1OK) GetPayload() []*models.ServiceDTOVersion2BusBusDisplayStopOfRoute {
+func (o *CityBusAPIDisplayStopOfRoute1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIDisplayStopOfRoute1Status299() *CityBusAPIDisplayStopOfRoute1S
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDisplayStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIDisplayStopOfRoute1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DisplayStopOfRoute/City/{City}/{RouteName}][%d] cityBusApiDisplayStopOfRoute1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIDisplayStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIDisplayStopOfRoute1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDisplayStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_responses.go b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_responses.go
index 42a88f14..3b8a5b03 100644
--- a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIDisplayStopOfRouteOK() *CityBusAPIDisplayStopOfRouteOK {
/*CityBusAPIDisplayStopOfRouteOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIDisplayStopOfRouteOK struct {
- Payload []*models.ServiceDTOVersion2BusBusDisplayStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute
}
func (o *CityBusAPIDisplayStopOfRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRouteOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIDisplayStopOfRouteOK) GetPayload() []*models.ServiceDTOVersion2BusBusDisplayStopOfRoute {
+func (o *CityBusAPIDisplayStopOfRouteOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIDisplayStopOfRouteStatus299() *CityBusAPIDisplayStopOfRouteSta
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDisplayStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIDisplayStopOfRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRouteStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIDisplayStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIDisplayStopOfRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDisplayStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go
index 39ce6324..c2d98d02 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIEstimatedTimeOfArrival1OK() *CityBusAPIEstimatedTimeOfArrival1
/*CityBusAPIEstimatedTimeOfArrival1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIEstimatedTimeOfArrival1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *CityBusAPIEstimatedTimeOfArrival1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *CityBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrival1Status299() *CityBusAPIEstimatedTimeOfA
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIEstimatedTimeOfArrival1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrival1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go
index 2e301ce0..37a19e46 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIEstimatedTimeOfArrivalOK() *CityBusAPIEstimatedTimeOfArrivalOK
/*CityBusAPIEstimatedTimeOfArrivalOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIEstimatedTimeOfArrivalOK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *CityBusAPIEstimatedTimeOfArrivalOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *CityBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalStatus299() *CityBusAPIEstimatedTimeOfAr
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_responses.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_responses.go
index 13e0f5a9..1c9a6f69 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIEstimatedTimeOfArrivalUdp1OK() *CityBusAPIEstimatedTimeOfArriv
/*CityBusAPIEstimatedTimeOfArrivalUdp1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIEstimatedTimeOfArrivalUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *CityBusAPIEstimatedTimeOfArrivalUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrivalUdp1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *CityBusAPIEstimatedTimeOfArrivalUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalUdp1Status299() *CityBusAPIEstimatedTime
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrivalUdp1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_responses.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_responses.go
index 40821b11..ee43b421 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIEstimatedTimeOfArrivalUDPOK() *CityBusAPIEstimatedTimeOfArriva
/*CityBusAPIEstimatedTimeOfArrivalUDPOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIEstimatedTimeOfArrivalUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *CityBusAPIEstimatedTimeOfArrivalUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalUdpOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *CityBusAPIEstimatedTimeOfArrivalUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalUDPStatus299() *CityBusAPIEstimatedTimeO
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalUdpStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_first_last_trip_info1_responses.go b/bus/v2/client/city_bus/city_bus_api_first_last_trip_info1_responses.go
index c65a190b..312d7f5b 100644
--- a/bus/v2/client/city_bus/city_bus_api_first_last_trip_info1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_first_last_trip_info1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIFirstLastTripInfo1OK() *CityBusAPIFirstLastTripInfo1OK {
/*CityBusAPIFirstLastTripInfo1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIFirstLastTripInfo1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusFirstLastTripInfo
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo
}
func (o *CityBusAPIFirstLastTripInfo1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/FirstLastTripInfo/City/{City}/{RouteName}][%d] cityBusApiFirstLastTripInfo1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIFirstLastTripInfo1OK) GetPayload() []*models.ServiceDTOVersion2BusBusFirstLastTripInfo {
+func (o *CityBusAPIFirstLastTripInfo1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIFirstLastTripInfo1Status299() *CityBusAPIFirstLastTripInfo1Sta
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIFirstLastTripInfo1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIFirstLastTripInfo1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/FirstLastTripInfo/City/{City}/{RouteName}][%d] cityBusApiFirstLastTripInfo1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIFirstLastTripInfo1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIFirstLastTripInfo1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIFirstLastTripInfo1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_first_last_trip_info_responses.go b/bus/v2/client/city_bus/city_bus_api_first_last_trip_info_responses.go
index 556a3cd1..4f503d31 100644
--- a/bus/v2/client/city_bus/city_bus_api_first_last_trip_info_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_first_last_trip_info_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIFirstLastTripInfoOK() *CityBusAPIFirstLastTripInfoOK {
/*CityBusAPIFirstLastTripInfoOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIFirstLastTripInfoOK struct {
- Payload []*models.ServiceDTOVersion2BusBusFirstLastTripInfo
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo
}
func (o *CityBusAPIFirstLastTripInfoOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfoOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIFirstLastTripInfoOK) GetPayload() []*models.ServiceDTOVersion2BusBusFirstLastTripInfo {
+func (o *CityBusAPIFirstLastTripInfoOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIFirstLastTripInfoStatus299() *CityBusAPIFirstLastTripInfoStatu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIFirstLastTripInfoStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIFirstLastTripInfoStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfoStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIFirstLastTripInfoStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIFirstLastTripInfoStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIFirstLastTripInfoStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_news_responses.go b/bus/v2/client/city_bus/city_bus_api_news_responses.go
index 0291e1e9..7aba090c 100644
--- a/bus/v2/client/city_bus/city_bus_api_news_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_news_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPINewsOK() *CityBusAPINewsOK {
/*CityBusAPINewsOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPINewsOK struct {
- Payload []*models.ServiceDTOVersion2BusBusNews
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusNews
}
func (o *CityBusAPINewsOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/News/City/{City}][%d] cityBusApiNewsOK %+v", 200, o.Payload)
}
-func (o *CityBusAPINewsOK) GetPayload() []*models.ServiceDTOVersion2BusBusNews {
+func (o *CityBusAPINewsOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusNews {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPINewsStatus299() *CityBusAPINewsStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPINewsStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/News/City/{City}][%d] cityBusApiNewsStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPINewsStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPINewsStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPINewsStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_operator_responses.go b/bus/v2/client/city_bus/city_bus_api_operator_responses.go
index bfd9a4b4..c235f4f9 100644
--- a/bus/v2/client/city_bus/city_bus_api_operator_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_operator_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIOperatorOK() *CityBusAPIOperatorOK {
/*CityBusAPIOperatorOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIOperatorOK struct {
- Payload []*models.ServiceDTOVersion2BaseOperator
+ Payload []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
}
func (o *CityBusAPIOperatorOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Operator/City/{City}][%d] cityBusApiOperatorOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIOperatorOK) GetPayload() []*models.ServiceDTOVersion2BaseOperator {
+func (o *CityBusAPIOperatorOK) GetPayload() []*models.PTXServiceDTOSharedSpecificationV2BaseOperator {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIOperatorStatus299() *CityBusAPIOperatorStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIOperatorStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Operator/City/{City}][%d] cityBusApiOperatorStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIOperatorStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIOperatorStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIOperatorStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go
index d2d176cf..b6fdb2fd 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeByFrequency1OK() *CityBusAPIRealTimeByFrequency1OK {
/*CityBusAPIRealTimeByFrequency1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeByFrequency1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *CityBusAPIRealTimeByFrequency1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequency1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *CityBusAPIRealTimeByFrequency1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequency1Status299() *CityBusAPIRealTimeByFrequency
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeByFrequency1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequency1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeByFrequency1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequency1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_responses.go
index e132e090..3bcb5dce 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeByFrequencyOK() *CityBusAPIRealTimeByFrequencyOK {
/*CityBusAPIRealTimeByFrequencyOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeByFrequencyOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *CityBusAPIRealTimeByFrequencyOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequencyOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyOK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *CityBusAPIRealTimeByFrequencyOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyStatus299() *CityBusAPIRealTimeByFrequencyS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeByFrequencyStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequencyStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequencyStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_responses.go
index ecb632a9..99c9c16a 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeByFrequencyUdp1OK() *CityBusAPIRealTimeByFrequencyUdp1
/*CityBusAPIRealTimeByFrequencyUdp1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeByFrequencyUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *CityBusAPIRealTimeByFrequencyUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequencyUdp1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *CityBusAPIRealTimeByFrequencyUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyUdp1Status299() *CityBusAPIRealTimeByFreque
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequencyUdp1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_responses.go
index f4ab0431..155c36bd 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeByFrequencyUDPOK() *CityBusAPIRealTimeByFrequencyUDPOK
/*CityBusAPIRealTimeByFrequencyUDPOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeByFrequencyUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *CityBusAPIRealTimeByFrequencyUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/City/{City}][%d] cityBusApiRealTimeByFrequencyUdpOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *CityBusAPIRealTimeByFrequencyUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyUDPStatus299() *CityBusAPIRealTimeByFrequen
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/City/{City}][%d] cityBusApiRealTimeByFrequencyUdpStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_responses.go
index f8d5b38b..fec479ad 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeNearStop1OK() *CityBusAPIRealTimeNearStop1OK {
/*CityBusAPIRealTimeNearStop1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeNearStop1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *CityBusAPIRealTimeNearStop1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStop1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *CityBusAPIRealTimeNearStop1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeNearStop1Status299() *CityBusAPIRealTimeNearStop1Statu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeNearStop1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStop1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeNearStop1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStop1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_responses.go
index 0c388a28..f878cb0f 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeNearStopOK() *CityBusAPIRealTimeNearStopOK {
/*CityBusAPIRealTimeNearStopOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeNearStopOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *CityBusAPIRealTimeNearStopOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStopOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopOK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *CityBusAPIRealTimeNearStopOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopStatus299() *CityBusAPIRealTimeNearStopStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeNearStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStopStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeNearStopStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_responses.go
index ce82a156..58b4cb3e 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeNearStopUdp1OK() *CityBusAPIRealTimeNearStopUdp1OK {
/*CityBusAPIRealTimeNearStopUdp1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeNearStopUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *CityBusAPIRealTimeNearStopUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStopUdp1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *CityBusAPIRealTimeNearStopUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopUdp1Status299() *CityBusAPIRealTimeNearStopUdp
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeNearStopUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStopUdp1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStopUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_responses.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_responses.go
index 65786209..50f6b944 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRealTimeNearStopUDPOK() *CityBusAPIRealTimeNearStopUDPOK {
/*CityBusAPIRealTimeNearStopUDPOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRealTimeNearStopUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *CityBusAPIRealTimeNearStopUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/City/{City}][%d] cityBusApiRealTimeNearStopUdpOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *CityBusAPIRealTimeNearStopUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopUDPStatus299() *CityBusAPIRealTimeNearStopUDPS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRealTimeNearStopUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/City/{City}][%d] cityBusApiRealTimeNearStopUdpStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStopUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_route1_responses.go b/bus/v2/client/city_bus/city_bus_api_route1_responses.go
index 7a921fb2..a3bd54ab 100644
--- a/bus/v2/client/city_bus/city_bus_api_route1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_route1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRoute1OK() *CityBusAPIRoute1OK {
/*CityBusAPIRoute1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRoute1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRoute
}
func (o *CityBusAPIRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/City/{City}/{RouteName}][%d] cityBusApiRoute1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRoute1OK) GetPayload() []*models.ServiceDTOVersion2BusBusRoute {
+func (o *CityBusAPIRoute1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRoute1Status299() *CityBusAPIRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRoute1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/City/{City}/{RouteName}][%d] cityBusApiRoute1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRoute1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_route_fare1_responses.go b/bus/v2/client/city_bus/city_bus_api_route_fare1_responses.go
index ca366c24..4bba2431 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_fare1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_fare1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRouteFare1OK() *CityBusAPIRouteFare1OK {
/*CityBusAPIRouteFare1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRouteFare1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusRouteFare
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteFare
}
func (o *CityBusAPIRouteFare1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/City/{City}/{RouteName}][%d] cityBusApiRouteFare1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRouteFare1OK) GetPayload() []*models.ServiceDTOVersion2BusBusRouteFare {
+func (o *CityBusAPIRouteFare1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteFare {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRouteFare1Status299() *CityBusAPIRouteFare1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteFare1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRouteFare1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/City/{City}/{RouteName}][%d] cityBusApiRouteFare1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRouteFare1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRouteFare1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteFare1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_route_fare_responses.go b/bus/v2/client/city_bus/city_bus_api_route_fare_responses.go
index 5091aad4..691908f9 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_fare_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_fare_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRouteFareOK() *CityBusAPIRouteFareOK {
/*CityBusAPIRouteFareOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRouteFareOK struct {
- Payload []*models.ServiceDTOVersion2BusBusRouteFare
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteFare
}
func (o *CityBusAPIRouteFareOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFareOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRouteFareOK) GetPayload() []*models.ServiceDTOVersion2BusBusRouteFare {
+func (o *CityBusAPIRouteFareOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteFare {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRouteFareStatus299() *CityBusAPIRouteFareStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRouteFareStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFareStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRouteFareStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRouteFareStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteFareStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_route_responses.go b/bus/v2/client/city_bus/city_bus_api_route_responses.go
index 4e729025..e7161ebe 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIRouteOK() *CityBusAPIRouteOK {
/*CityBusAPIRouteOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRouteOK struct {
- Payload []*models.ServiceDTOVersion2BusBusRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRoute
}
func (o *CityBusAPIRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/City/{City}][%d] cityBusApiRouteOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRouteOK) GetPayload() []*models.ServiceDTOVersion2BusBusRoute {
+func (o *CityBusAPIRouteOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIRouteStatus299() *CityBusAPIRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/City/{City}][%d] cityBusApiRouteStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_schedule1_responses.go b/bus/v2/client/city_bus/city_bus_api_schedule1_responses.go
index 00543865..ae241011 100644
--- a/bus/v2/client/city_bus/city_bus_api_schedule1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_schedule1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPISchedule1OK() *CityBusAPISchedule1OK {
/*CityBusAPISchedule1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPISchedule1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusSchedule
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusSchedule
}
func (o *CityBusAPISchedule1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/City/{City}/{RouteName}][%d] cityBusApiSchedule1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPISchedule1OK) GetPayload() []*models.ServiceDTOVersion2BusBusSchedule {
+func (o *CityBusAPISchedule1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusSchedule {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPISchedule1Status299() *CityBusAPISchedule1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPISchedule1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPISchedule1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/City/{City}/{RouteName}][%d] cityBusApiSchedule1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPISchedule1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPISchedule1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPISchedule1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_schedule_responses.go b/bus/v2/client/city_bus/city_bus_api_schedule_responses.go
index 1cb41ba2..ed11e125 100644
--- a/bus/v2/client/city_bus/city_bus_api_schedule_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_schedule_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIScheduleOK() *CityBusAPIScheduleOK {
/*CityBusAPIScheduleOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIScheduleOK struct {
- Payload []*models.ServiceDTOVersion2BusBusSchedule
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusSchedule
}
func (o *CityBusAPIScheduleOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/City/{City}][%d] cityBusApiScheduleOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIScheduleOK) GetPayload() []*models.ServiceDTOVersion2BusBusSchedule {
+func (o *CityBusAPIScheduleOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusSchedule {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIScheduleStatus299() *CityBusAPIScheduleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIScheduleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/City/{City}][%d] cityBusApiScheduleStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIScheduleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIScheduleStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIScheduleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_shape1_responses.go b/bus/v2/client/city_bus/city_bus_api_shape1_responses.go
index 5d5e0883..05dc1366 100644
--- a/bus/v2/client/city_bus/city_bus_api_shape1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_shape1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIShape1OK() *CityBusAPIShape1OK {
/*CityBusAPIShape1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIShape1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusShape
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusShape
}
func (o *CityBusAPIShape1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Shape/City/{City}/{RouteName}][%d] cityBusApiShape1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIShape1OK) GetPayload() []*models.ServiceDTOVersion2BusBusShape {
+func (o *CityBusAPIShape1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusShape {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIShape1Status299() *CityBusAPIShape1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIShape1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIShape1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Shape/City/{City}/{RouteName}][%d] cityBusApiShape1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIShape1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIShape1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIShape1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_shape_responses.go b/bus/v2/client/city_bus/city_bus_api_shape_responses.go
index 866ff4f4..49bcc320 100644
--- a/bus/v2/client/city_bus/city_bus_api_shape_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_shape_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIShapeOK() *CityBusAPIShapeOK {
/*CityBusAPIShapeOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIShapeOK struct {
- Payload []*models.ServiceDTOVersion2BusBusShape
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusShape
}
func (o *CityBusAPIShapeOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Shape/City/{City}][%d] cityBusApiShapeOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIShapeOK) GetPayload() []*models.ServiceDTOVersion2BusBusShape {
+func (o *CityBusAPIShapeOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusShape {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIShapeStatus299() *CityBusAPIShapeStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIShapeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIShapeStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Shape/City/{City}][%d] cityBusApiShapeStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIShapeStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIShapeStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIShapeStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_station_group_responses.go b/bus/v2/client/city_bus/city_bus_api_station_group_responses.go
index 0de7174a..58613d82 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_group_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_group_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIStationGroupOK() *CityBusAPIStationGroupOK {
/*CityBusAPIStationGroupOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIStationGroupOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStationGroup
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStationGroup
}
func (o *CityBusAPIStationGroupOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationGroup/City/{City}][%d] cityBusApiStationGroupOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIStationGroupOK) GetPayload() []*models.ServiceDTOVersion2BusBusStationGroup {
+func (o *CityBusAPIStationGroupOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStationGroup {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIStationGroupStatus299() *CityBusAPIStationGroupStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationGroupStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIStationGroupStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationGroup/City/{City}][%d] cityBusApiStationGroupStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStationGroupStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIStationGroupStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStationGroupStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_station_responses.go b/bus/v2/client/city_bus/city_bus_api_station_responses.go
index e6db0c14..7253ff05 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIStationOK() *CityBusAPIStationOK {
/*CityBusAPIStationOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIStationOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStation
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStation
}
func (o *CityBusAPIStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Station/City/{City}][%d] cityBusApiStationOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIStationOK) GetPayload() []*models.ServiceDTOVersion2BusBusStation {
+func (o *CityBusAPIStationOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStation {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIStationStatus299() *CityBusAPIStationStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIStationStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Station/City/{City}][%d] cityBusApiStationStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStationStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIStationStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStationStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_stop_of_route1_responses.go b/bus/v2/client/city_bus/city_bus_api_stop_of_route1_responses.go
index 918d2111..e94d854b 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_of_route1_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_of_route1_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIStopOfRoute1OK() *CityBusAPIStopOfRoute1OK {
/*CityBusAPIStopOfRoute1OK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIStopOfRoute1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute
}
func (o *CityBusAPIStopOfRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/City/{City}/{RouteName}][%d] cityBusApiStopOfRoute1OK %+v", 200, o.Payload)
}
-func (o *CityBusAPIStopOfRoute1OK) GetPayload() []*models.ServiceDTOVersion2BusBusStopOfRoute {
+func (o *CityBusAPIStopOfRoute1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIStopOfRoute1Status299() *CityBusAPIStopOfRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIStopOfRoute1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/City/{City}/{RouteName}][%d] cityBusApiStopOfRoute1Status299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIStopOfRoute1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_stop_of_route_responses.go b/bus/v2/client/city_bus/city_bus_api_stop_of_route_responses.go
index 6e700e00..1395c155 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_of_route_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_of_route_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIStopOfRouteOK() *CityBusAPIStopOfRouteOK {
/*CityBusAPIStopOfRouteOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIStopOfRouteOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute
}
func (o *CityBusAPIStopOfRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRouteOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIStopOfRouteOK) GetPayload() []*models.ServiceDTOVersion2BusBusStopOfRoute {
+func (o *CityBusAPIStopOfRouteOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIStopOfRouteStatus299() *CityBusAPIStopOfRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIStopOfRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRouteStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIStopOfRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_stop_responses.go b/bus/v2/client/city_bus/city_bus_api_stop_responses.go
index 5fe13356..55fc8233 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIStopOK() *CityBusAPIStopOK {
/*CityBusAPIStopOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIStopOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStop
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStop
}
func (o *CityBusAPIStopOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Stop/City/{City}][%d] cityBusApiStopOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIStopOK) GetPayload() []*models.ServiceDTOVersion2BusBusStop {
+func (o *CityBusAPIStopOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStop {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIStopStatus299() *CityBusAPIStopStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Stop/City/{City}][%d] cityBusApiStopStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIStopStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_api_vehicle_responses.go b/bus/v2/client/city_bus/city_bus_api_vehicle_responses.go
index 0ebfdc06..b1cd0b7d 100644
--- a/bus/v2/client/city_bus/city_bus_api_vehicle_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_vehicle_responses.go
@@ -48,17 +48,17 @@ func NewCityBusAPIVehicleOK() *CityBusAPIVehicleOK {
/*CityBusAPIVehicleOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIVehicleOK struct {
- Payload []*models.ServiceDTOVersion2BusBusVehicleInfo
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusVehicleInfo
}
func (o *CityBusAPIVehicleOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Vehicle/City/{City}][%d] cityBusApiVehicleOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIVehicleOK) GetPayload() []*models.ServiceDTOVersion2BusBusVehicleInfo {
+func (o *CityBusAPIVehicleOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusVehicleInfo {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewCityBusAPIVehicleStatus299() *CityBusAPIVehicleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIVehicleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Vehicle/City/{City}][%d] cityBusApiVehicleStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIVehicleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIVehicleStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIVehicleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/city_bus/city_bus_client.go b/bus/v2/client/city_bus/city_bus_client.go
index 3cf89219..18c2ad94 100644
--- a/bus/v2/client/city_bus/city_bus_client.go
+++ b/bus/v2/client/city_bus/city_bus_client.go
@@ -111,7 +111,7 @@ func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams) (*Ci
ID: "CityBusApi_DataVersion",
Method: "GET",
PathPattern: "/v2/Bus/DataVersion/City/{City}",
- ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
+ ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -148,7 +148,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
ID: "CityBusApi_DisplayStopOfRoute",
Method: "GET",
PathPattern: "/v2/Bus/DisplayStopOfRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -185,7 +185,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRo
ID: "CityBusApi_DisplayStopOfRoute_1",
Method: "GET",
PathPattern: "/v2/Bus/DisplayStopOfRoute/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -211,7 +211,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRo
CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1 批次更新
### 市區公車之預估到站資料(N1) ###
-- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
+- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error) {
@@ -224,7 +224,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
ID: "CityBusApi_EstimatedTimeOfArrival",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -250,7 +250,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 批次更新
### 市區公車之預估到站資料(N1) ###
-- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
+- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error) {
@@ -263,7 +263,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
ID: "CityBusApi_EstimatedTimeOfArrival_1",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -289,7 +289,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
CityBusAPIEstimatedTimeOfArrivalUDP 取得指定s 縣市 的公車預估到站資料 n1 逐筆更新
### 市區公車之預估到站資料(N1) ###
-- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
+- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。
*/
@@ -303,7 +303,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP(params *CityBusAPIEstimated
ID: "CityBusApi_EstimatedTimeOfArrival_UDP",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -329,7 +329,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP(params *CityBusAPIEstimated
CityBusAPIEstimatedTimeOfArrivalUDP1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 逐筆更新
### 市區公車之預估到站資料(N1) ###
-- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
+- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。
*/
@@ -343,7 +343,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP1(params *CityBusAPIEstimate
ID: "CityBusApi_EstimatedTimeOfArrival_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -380,7 +380,7 @@ func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfo
ID: "CityBusApi_FirstLastTripInfo",
Method: "GET",
PathPattern: "/v2/Bus/FirstLastTripInfo/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -417,7 +417,7 @@ func (a *Client) CityBusAPIFirstLastTripInfo1(params *CityBusAPIFirstLastTripInf
ID: "CityBusApi_FirstLastTripInfo_1",
Method: "GET",
PathPattern: "/v2/Bus/FirstLastTripInfo/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -454,7 +454,7 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
ID: "CityBusApi_News",
Method: "GET",
PathPattern: "/v2/Bus/News/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -491,7 +491,7 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
ID: "CityBusApi_Operator",
Method: "GET",
PathPattern: "/v2/Bus/Operator/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -529,7 +529,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
ID: "CityBusApi_RealTimeByFrequency",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -567,7 +567,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
ID: "CityBusApi_RealTimeByFrequency_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -605,7 +605,7 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP(params *CityBusAPIRealTimeByFr
ID: "CityBusApi_RealTimeByFrequency_UDP",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -643,7 +643,7 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP1(params *CityBusAPIRealTimeByF
ID: "CityBusApi_RealTimeByFrequency_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -681,7 +681,7 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
ID: "CityBusApi_RealTimeNearStop",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -719,7 +719,7 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
ID: "CityBusApi_RealTimeNearStop_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -757,7 +757,7 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP(params *CityBusAPIRealTimeNearSto
ID: "CityBusApi_RealTimeNearStop_UDP",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -795,7 +795,7 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP1(params *CityBusAPIRealTimeNearSt
ID: "CityBusApi_RealTimeNearStop_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -832,7 +832,7 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
ID: "CityBusApi_Route",
Method: "GET",
PathPattern: "/v2/Bus/Route/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -869,7 +869,7 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
ID: "CityBusApi_RouteFare",
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -906,7 +906,7 @@ func (a *Client) CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params) (*City
ID: "CityBusApi_RouteFare_1",
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -943,7 +943,7 @@ func (a *Client) CityBusAPIRoute1(params *CityBusAPIRoute1Params) (*CityBusAPIRo
ID: "CityBusApi_Route_1",
Method: "GET",
PathPattern: "/v2/Bus/Route/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -980,7 +980,7 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
ID: "CityBusApi_Schedule",
Method: "GET",
PathPattern: "/v2/Bus/Schedule/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1017,7 +1017,7 @@ func (a *Client) CityBusAPISchedule1(params *CityBusAPISchedule1Params) (*CityBu
ID: "CityBusApi_Schedule_1",
Method: "GET",
PathPattern: "/v2/Bus/Schedule/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1054,7 +1054,7 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
ID: "CityBusApi_Shape",
Method: "GET",
PathPattern: "/v2/Bus/Shape/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1091,7 +1091,7 @@ func (a *Client) CityBusAPIShape1(params *CityBusAPIShape1Params) (*CityBusAPISh
ID: "CityBusApi_Shape_1",
Method: "GET",
PathPattern: "/v2/Bus/Shape/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1128,7 +1128,7 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
ID: "CityBusApi_Station",
Method: "GET",
PathPattern: "/v2/Bus/Station/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1165,7 +1165,7 @@ func (a *Client) CityBusAPIStationGroup(params *CityBusAPIStationGroupParams) (*
ID: "CityBusApi_StationGroup",
Method: "GET",
PathPattern: "/v2/Bus/StationGroup/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1202,7 +1202,7 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
ID: "CityBusApi_Stop",
Method: "GET",
PathPattern: "/v2/Bus/Stop/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1239,7 +1239,7 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
ID: "CityBusApi_StopOfRoute",
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1276,7 +1276,7 @@ func (a *Client) CityBusAPIStopOfRoute1(params *CityBusAPIStopOfRoute1Params) (*
ID: "CityBusApi_StopOfRoute_1",
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1313,7 +1313,7 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
ID: "CityBusApi_Vehicle",
Method: "GET",
PathPattern: "/v2/Bus/Vehicle/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_responses.go
index 9c3422fd..6dddf21c 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_responses.go
@@ -48,23 +48,23 @@ func NewInterCityBusAPIDataVersionOK() *InterCityBusAPIDataVersionOK {
/*InterCityBusAPIDataVersionOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIDataVersionOK struct {
- Payload *models.ServiceDTOVersion2BusBusVersion
+ Payload *models.PTXServiceDTOBusSpecificationV2BusVersion
}
func (o *InterCityBusAPIDataVersionOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DataVersion/InterCity][%d] interCityBusApiDataVersionOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIDataVersionOK) GetPayload() *models.ServiceDTOVersion2BusBusVersion {
+func (o *InterCityBusAPIDataVersionOK) GetPayload() *models.PTXServiceDTOBusSpecificationV2BusVersion {
return o.Payload
}
func (o *InterCityBusAPIDataVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion2BusBusVersion)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV2BusVersion)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewInterCityBusAPIDataVersionStatus299() *InterCityBusAPIDataVersionStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIDataVersionStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIDataVersionStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DataVersion/InterCity][%d] interCityBusApiDataVersionStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIDataVersionStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIDataVersionStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIDataVersionStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_responses.go
index f971aaeb..b50be8e9 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIEstimatedTimeOfArrival1OK() *InterCityBusAPIEstimatedTime
/*InterCityBusAPIEstimatedTimeOfArrival1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIEstimatedTimeOfArrival1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *InterCityBusAPIEstimatedTimeOfArrival1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/InterCity/{RouteName}][%d] interCityBusApiEstimatedTimeOfArrival1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *InterCityBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrival1Status299() *InterCityBusAPIEstima
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/InterCity/{RouteName}][%d] interCityBusApiEstimatedTimeOfArrival1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_responses.go
index 1b7956b7..365fb901 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalOK() *InterCityBusAPIEstimatedTimeO
/*InterCityBusAPIEstimatedTimeOfArrivalOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIEstimatedTimeOfArrivalOK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/InterCity][%d] interCityBusApiEstimatedTimeOfArrivalOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalStatus299() *InterCityBusAPIEstimat
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/InterCity][%d] interCityBusApiEstimatedTimeOfArrivalStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_responses.go
index 71b53419..538667ff 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUdp1OK() *InterCityBusAPIEstimatedT
/*InterCityBusAPIEstimatedTimeOfArrivalUdp1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIEstimatedTimeOfArrivalUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity/{RouteName}][%d] interCityBusApiEstimatedTimeOfArrivalUdp1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUdp1Status299() *InterCityBusAPIEst
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity/{RouteName}][%d] interCityBusApiEstimatedTimeOfArrivalUdp1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_responses.go
index c96c3805..911a96ce 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUDPOK() *InterCityBusAPIEstimatedTi
/*InterCityBusAPIEstimatedTimeOfArrivalUDPOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIEstimatedTimeOfArrivalUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity][%d] interCityBusApiEstimatedTimeOfArrivalUdpOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusN1EstimateTime {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusN1EstimateTime {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUDPStatus299() *InterCityBusAPIEsti
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity][%d] interCityBusApiEstimatedTimeOfArrivalUdpStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_news_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_news_responses.go
index ea4ab044..d0565e4e 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_news_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_news_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPINewsOK() *InterCityBusAPINewsOK {
/*InterCityBusAPINewsOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPINewsOK struct {
- Payload []*models.ServiceDTOVersion2BusBusNews
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusNews
}
func (o *InterCityBusAPINewsOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/News/InterCity][%d] interCityBusApiNewsOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPINewsOK) GetPayload() []*models.ServiceDTOVersion2BusBusNews {
+func (o *InterCityBusAPINewsOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusNews {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPINewsStatus299() *InterCityBusAPINewsStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPINewsStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/News/InterCity][%d] interCityBusApiNewsStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPINewsStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPINewsStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPINewsStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_responses.go
index 21c75315..d1693134 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIOperatorOK() *InterCityBusAPIOperatorOK {
/*InterCityBusAPIOperatorOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIOperatorOK struct {
- Payload []*models.ServiceDTOVersion2BaseOperator
+ Payload []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
}
func (o *InterCityBusAPIOperatorOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Operator/InterCity][%d] interCityBusApiOperatorOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIOperatorOK) GetPayload() []*models.ServiceDTOVersion2BaseOperator {
+func (o *InterCityBusAPIOperatorOK) GetPayload() []*models.PTXServiceDTOSharedSpecificationV2BaseOperator {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIOperatorStatus299() *InterCityBusAPIOperatorStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIOperatorStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Operator/InterCity][%d] interCityBusApiOperatorStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIOperatorStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIOperatorStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIOperatorStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_responses.go
index 53aa830a..a25a22b3 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeByFrequency1OK() *InterCityBusAPIRealTimeByFreque
/*InterCityBusAPIRealTimeByFrequency1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeByFrequency1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *InterCityBusAPIRealTimeByFrequency1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequency1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequency1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *InterCityBusAPIRealTimeByFrequency1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequency1Status299() *InterCityBusAPIRealTimeB
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeByFrequency1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequency1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequency1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeByFrequency1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequency1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_responses.go
index f0497fff..b725c261 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeByFrequencyOK() *InterCityBusAPIRealTimeByFrequen
/*InterCityBusAPIRealTimeByFrequencyOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeByFrequencyOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *InterCityBusAPIRealTimeByFrequencyOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity][%d] interCityBusApiRealTimeByFrequencyOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyOK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *InterCityBusAPIRealTimeByFrequencyOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyStatus299() *InterCityBusAPIRealTimeBy
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeByFrequencyStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity][%d] interCityBusApiRealTimeByFrequencyStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_responses.go
index 6938ce0a..212b3fc6 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeByFrequencyUdp1OK() *InterCityBusAPIRealTimeByFre
/*InterCityBusAPIRealTimeByFrequencyUdp1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeByFrequencyUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *InterCityBusAPIRealTimeByFrequencyUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequencyUdp1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *InterCityBusAPIRealTimeByFrequencyUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyUdp1Status299() *InterCityBusAPIRealTi
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequencyUdp1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_responses.go
index dc3016e8..1e4e8c58 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeByFrequencyUDPOK() *InterCityBusAPIRealTimeByFreq
/*InterCityBusAPIRealTimeByFrequencyUDPOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeByFrequencyUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA1Data
}
func (o *InterCityBusAPIRealTimeByFrequencyUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/InterCity][%d] interCityBusApiRealTimeByFrequencyUdpOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+func (o *InterCityBusAPIRealTimeByFrequencyUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA1Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyUDPStatus299() *InterCityBusAPIRealTim
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/Streaming/InterCity][%d] interCityBusApiRealTimeByFrequencyUdpStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_responses.go
index 87c32473..9acb11c6 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeNearStop1OK() *InterCityBusAPIRealTimeNearStop1OK
/*InterCityBusAPIRealTimeNearStop1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeNearStop1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *InterCityBusAPIRealTimeNearStop1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/InterCity/{RouteName}][%d] interCityBusApiRealTimeNearStop1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStop1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *InterCityBusAPIRealTimeNearStop1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStop1Status299() *InterCityBusAPIRealTimeNear
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeNearStop1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/InterCity/{RouteName}][%d] interCityBusApiRealTimeNearStop1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStop1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeNearStop1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStop1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_responses.go
index 3f2f3ab9..e311c232 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeNearStopOK() *InterCityBusAPIRealTimeNearStopOK {
/*InterCityBusAPIRealTimeNearStopOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeNearStopOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *InterCityBusAPIRealTimeNearStopOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/InterCity][%d] interCityBusApiRealTimeNearStopOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopOK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *InterCityBusAPIRealTimeNearStopOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopStatus299() *InterCityBusAPIRealTimeNearS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeNearStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/InterCity][%d] interCityBusApiRealTimeNearStopStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeNearStopStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_responses.go
index b411ae4d..533f4ea0 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeNearStopUdp1OK() *InterCityBusAPIRealTimeNearStop
/*InterCityBusAPIRealTimeNearStopUdp1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeNearStopUdp1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *InterCityBusAPIRealTimeNearStopUdp1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/InterCity/{RouteName}][%d] interCityBusApiRealTimeNearStopUdp1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopUdp1OK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *InterCityBusAPIRealTimeNearStopUdp1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopUdp1Status299() *InterCityBusAPIRealTimeN
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/InterCity/{RouteName}][%d] interCityBusApiRealTimeNearStopUdp1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_responses.go
index 7b1e5c1f..a8d0df61 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRealTimeNearStopUDPOK() *InterCityBusAPIRealTimeNearStopU
/*InterCityBusAPIRealTimeNearStopUDPOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRealTimeNearStopUDPOK struct {
- Payload []*models.ServiceDTOVersion2BusBusA2Data
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusA2Data
}
func (o *InterCityBusAPIRealTimeNearStopUDPOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/InterCity][%d] interCityBusApiRealTimeNearStopUdpOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopUDPOK) GetPayload() []*models.ServiceDTOVersion2BusBusA2Data {
+func (o *InterCityBusAPIRealTimeNearStopUDPOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusA2Data {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopUDPStatus299() *InterCityBusAPIRealTimeNe
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/Streaming/InterCity][%d] interCityBusApiRealTimeNearStopUdpStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_responses.go
index 1c1df602..8606e746 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRoute1OK() *InterCityBusAPIRoute1OK {
/*InterCityBusAPIRoute1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRoute1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRoute
}
func (o *InterCityBusAPIRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/InterCity/{RouteName}][%d] interCityBusApiRoute1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRoute1OK) GetPayload() []*models.ServiceDTOVersion2BusBusRoute {
+func (o *InterCityBusAPIRoute1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRoute1Status299() *InterCityBusAPIRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRoute1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/InterCity/{RouteName}][%d] interCityBusApiRoute1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRoute1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_responses.go
index 6c121538..2acaf077 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRouteFare1OK() *InterCityBusAPIRouteFare1OK {
/*InterCityBusAPIRouteFare1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRouteFare1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusRouteFare
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteFare
}
func (o *InterCityBusAPIRouteFare1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/InterCity/{RouteName}][%d] interCityBusApiRouteFare1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRouteFare1OK) GetPayload() []*models.ServiceDTOVersion2BusBusRouteFare {
+func (o *InterCityBusAPIRouteFare1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteFare {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRouteFare1Status299() *InterCityBusAPIRouteFare1Status299
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteFare1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRouteFare1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/InterCity/{RouteName}][%d] interCityBusApiRouteFare1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRouteFare1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRouteFare1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteFare1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_responses.go
index 8fc58df7..aab4147e 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRouteFareOK() *InterCityBusAPIRouteFareOK {
/*InterCityBusAPIRouteFareOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRouteFareOK struct {
- Payload []*models.ServiceDTOVersion2BusBusRouteFare
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRouteFare
}
func (o *InterCityBusAPIRouteFareOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/InterCity][%d] interCityBusApiRouteFareOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRouteFareOK) GetPayload() []*models.ServiceDTOVersion2BusBusRouteFare {
+func (o *InterCityBusAPIRouteFareOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRouteFare {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRouteFareStatus299() *InterCityBusAPIRouteFareStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRouteFareStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/InterCity][%d] interCityBusApiRouteFareStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRouteFareStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRouteFareStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteFareStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_responses.go
index be665ed7..9d0fe037 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIRouteOK() *InterCityBusAPIRouteOK {
/*InterCityBusAPIRouteOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIRouteOK struct {
- Payload []*models.ServiceDTOVersion2BusBusRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusRoute
}
func (o *InterCityBusAPIRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/InterCity][%d] interCityBusApiRouteOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIRouteOK) GetPayload() []*models.ServiceDTOVersion2BusBusRoute {
+func (o *InterCityBusAPIRouteOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIRouteStatus299() *InterCityBusAPIRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/InterCity][%d] interCityBusApiRouteStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_responses.go
index b8b2bef2..2a77e549 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPISchedule1OK() *InterCityBusAPISchedule1OK {
/*InterCityBusAPISchedule1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPISchedule1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusSchedule
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusSchedule
}
func (o *InterCityBusAPISchedule1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/InterCity/{RouteName}][%d] interCityBusApiSchedule1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPISchedule1OK) GetPayload() []*models.ServiceDTOVersion2BusBusSchedule {
+func (o *InterCityBusAPISchedule1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusSchedule {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPISchedule1Status299() *InterCityBusAPISchedule1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPISchedule1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPISchedule1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/InterCity/{RouteName}][%d] interCityBusApiSchedule1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPISchedule1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPISchedule1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPISchedule1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_responses.go
index e44a084c..ed4faa45 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIScheduleOK() *InterCityBusAPIScheduleOK {
/*InterCityBusAPIScheduleOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIScheduleOK struct {
- Payload []*models.ServiceDTOVersion2BusBusSchedule
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusSchedule
}
func (o *InterCityBusAPIScheduleOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/InterCity][%d] interCityBusApiScheduleOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIScheduleOK) GetPayload() []*models.ServiceDTOVersion2BusBusSchedule {
+func (o *InterCityBusAPIScheduleOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusSchedule {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIScheduleStatus299() *InterCityBusAPIScheduleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIScheduleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/InterCity][%d] interCityBusApiScheduleStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIScheduleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIScheduleStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIScheduleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_responses.go
index 56952744..61c9325e 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIStationGroupOK() *InterCityBusAPIStationGroupOK {
/*InterCityBusAPIStationGroupOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIStationGroupOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStationGroup
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStationGroup
}
func (o *InterCityBusAPIStationGroupOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationGroup/InterCity][%d] interCityBusApiStationGroupOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIStationGroupOK) GetPayload() []*models.ServiceDTOVersion2BusBusStationGroup {
+func (o *InterCityBusAPIStationGroupOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStationGroup {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIStationGroupStatus299() *InterCityBusAPIStationGroupStatu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStationGroupStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIStationGroupStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationGroup/InterCity][%d] interCityBusApiStationGroupStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStationGroupStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIStationGroupStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStationGroupStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_responses.go
index 4b1dc567..1ec10cb1 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIStationOK() *InterCityBusAPIStationOK {
/*InterCityBusAPIStationOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIStationOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStation
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStation
}
func (o *InterCityBusAPIStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Station/InterCity][%d] interCityBusApiStationOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIStationOK) GetPayload() []*models.ServiceDTOVersion2BusBusStation {
+func (o *InterCityBusAPIStationOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStation {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIStationStatus299() *InterCityBusAPIStationStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIStationStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Station/InterCity][%d] interCityBusApiStationStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStationStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIStationStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStationStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_responses.go
index 4552ffc4..0ea97e88 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIStopOfRoute1OK() *InterCityBusAPIStopOfRoute1OK {
/*InterCityBusAPIStopOfRoute1OK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIStopOfRoute1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute
}
func (o *InterCityBusAPIStopOfRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/InterCity/{RouteName}][%d] interCityBusApiStopOfRoute1OK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIStopOfRoute1OK) GetPayload() []*models.ServiceDTOVersion2BusBusStopOfRoute {
+func (o *InterCityBusAPIStopOfRoute1OK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIStopOfRoute1Status299() *InterCityBusAPIStopOfRoute1Statu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIStopOfRoute1Status299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/InterCity/{RouteName}][%d] interCityBusApiStopOfRoute1Status299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIStopOfRoute1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_responses.go
index 7e9140bb..eea569b1 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIStopOfRouteOK() *InterCityBusAPIStopOfRouteOK {
/*InterCityBusAPIStopOfRouteOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIStopOfRouteOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStopOfRoute
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute
}
func (o *InterCityBusAPIStopOfRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/InterCity][%d] interCityBusApiStopOfRouteOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIStopOfRouteOK) GetPayload() []*models.ServiceDTOVersion2BusBusStopOfRoute {
+func (o *InterCityBusAPIStopOfRouteOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStopOfRoute {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIStopOfRouteStatus299() *InterCityBusAPIStopOfRouteStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIStopOfRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/InterCity][%d] interCityBusApiStopOfRouteStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIStopOfRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_responses.go
index 99d279ee..4bd605d1 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIStopOK() *InterCityBusAPIStopOK {
/*InterCityBusAPIStopOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIStopOK struct {
- Payload []*models.ServiceDTOVersion2BusBusStop
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusStop
}
func (o *InterCityBusAPIStopOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Stop/InterCity][%d] interCityBusApiStopOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIStopOK) GetPayload() []*models.ServiceDTOVersion2BusBusStop {
+func (o *InterCityBusAPIStopOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusStop {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIStopStatus299() *InterCityBusAPIStopStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Stop/InterCity][%d] interCityBusApiStopStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIStopStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_responses.go
index 1f1fad12..3fbf138b 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_responses.go
@@ -48,17 +48,17 @@ func NewInterCityBusAPIVehicleOK() *InterCityBusAPIVehicleOK {
/*InterCityBusAPIVehicleOK handles this case with default header values.
-OK
+Success
*/
type InterCityBusAPIVehicleOK struct {
- Payload []*models.ServiceDTOVersion2BusBusVehicleInfo
+ Payload []*models.PTXServiceDTOBusSpecificationV2BusVehicleInfo
}
func (o *InterCityBusAPIVehicleOK) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Vehicle/InterCity][%d] interCityBusApiVehicleOK %+v", 200, o.Payload)
}
-func (o *InterCityBusAPIVehicleOK) GetPayload() []*models.ServiceDTOVersion2BusBusVehicleInfo {
+func (o *InterCityBusAPIVehicleOK) GetPayload() []*models.PTXServiceDTOBusSpecificationV2BusVehicleInfo {
return o.Payload
}
@@ -82,20 +82,20 @@ func NewInterCityBusAPIVehicleStatus299() *InterCityBusAPIVehicleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *InterCityBusAPIVehicleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Vehicle/InterCity][%d] interCityBusApiVehicleStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIVehicleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *InterCityBusAPIVehicleStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIVehicleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_client.go b/bus/v2/client/inter_city_bus/inter_city_bus_client.go
index 143adc6b..25ff8e87 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_client.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_client.go
@@ -99,7 +99,7 @@ func (a *Client) InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionPa
ID: "InterCityBusApi_DataVersion",
Method: "GET",
PathPattern: "/v2/Bus/DataVersion/InterCity",
- ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
+ ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -138,7 +138,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival(params *InterCityBusAPIEs
ID: "InterCityBusApi_EstimatedTimeOfArrival",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -177,7 +177,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival1(params *InterCityBusAPIE
ID: "InterCityBusApi_EstimatedTimeOfArrival_1",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -217,7 +217,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP(params *InterCityBusAP
ID: "InterCityBusApi_EstimatedTimeOfArrival_UDP",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -257,7 +257,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP1(params *InterCityBusA
ID: "InterCityBusApi_EstimatedTimeOfArrival_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -294,7 +294,7 @@ func (a *Client) InterCityBusAPINews(params *InterCityBusAPINewsParams) (*InterC
ID: "InterCityBusApi_News",
Method: "GET",
PathPattern: "/v2/Bus/News/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -331,7 +331,7 @@ func (a *Client) InterCityBusAPIOperator(params *InterCityBusAPIOperatorParams)
ID: "InterCityBusApi_Operator",
Method: "GET",
PathPattern: "/v2/Bus/Operator/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -369,7 +369,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency(params *InterCityBusAPIRealT
ID: "InterCityBusApi_RealTimeByFrequency",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -407,7 +407,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency1(params *InterCityBusAPIReal
ID: "InterCityBusApi_RealTimeByFrequency_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -445,7 +445,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP(params *InterCityBusAPIRe
ID: "InterCityBusApi_RealTimeByFrequency_UDP",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -483,7 +483,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP1(params *InterCityBusAPIR
ID: "InterCityBusApi_RealTimeByFrequency_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -521,7 +521,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStop(params *InterCityBusAPIRealTime
ID: "InterCityBusApi_RealTimeNearStop",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -559,7 +559,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStop1(params *InterCityBusAPIRealTim
ID: "InterCityBusApi_RealTimeNearStop_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -597,7 +597,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP(params *InterCityBusAPIRealT
ID: "InterCityBusApi_RealTimeNearStop_UDP",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -635,7 +635,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP1(params *InterCityBusAPIReal
ID: "InterCityBusApi_RealTimeNearStop_UDP_1",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -672,7 +672,7 @@ func (a *Client) InterCityBusAPIRoute(params *InterCityBusAPIRouteParams) (*Inte
ID: "InterCityBusApi_Route",
Method: "GET",
PathPattern: "/v2/Bus/Route/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -709,7 +709,7 @@ func (a *Client) InterCityBusAPIRouteFare(params *InterCityBusAPIRouteFareParams
ID: "InterCityBusApi_RouteFare",
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -732,9 +732,9 @@ func (a *Client) InterCityBusAPIRouteFare(params *InterCityBusAPIRouteFareParams
}
/*
- InterCityBusAPIRouteFare1 取得指定s 路線名稱 的公路客運路線資料
+ InterCityBusAPIRouteFare1 取得指定s 路線名稱 的公路客運路線票價資料
- 公路客運之路線資料
+ 公路客運之路線票價資料
*/
func (a *Client) InterCityBusAPIRouteFare1(params *InterCityBusAPIRouteFare1Params) (*InterCityBusAPIRouteFare1OK, *InterCityBusAPIRouteFare1Status299, error) {
// TODO: Validate the params before sending
@@ -746,7 +746,7 @@ func (a *Client) InterCityBusAPIRouteFare1(params *InterCityBusAPIRouteFare1Para
ID: "InterCityBusApi_RouteFare_1",
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -783,7 +783,7 @@ func (a *Client) InterCityBusAPIRoute1(params *InterCityBusAPIRoute1Params) (*In
ID: "InterCityBusApi_Route_1",
Method: "GET",
PathPattern: "/v2/Bus/Route/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -820,7 +820,7 @@ func (a *Client) InterCityBusAPISchedule(params *InterCityBusAPIScheduleParams)
ID: "InterCityBusApi_Schedule",
Method: "GET",
PathPattern: "/v2/Bus/Schedule/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -857,7 +857,7 @@ func (a *Client) InterCityBusAPISchedule1(params *InterCityBusAPISchedule1Params
ID: "InterCityBusApi_Schedule_1",
Method: "GET",
PathPattern: "/v2/Bus/Schedule/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -894,7 +894,7 @@ func (a *Client) InterCityBusAPIStation(params *InterCityBusAPIStationParams) (*
ID: "InterCityBusApi_Station",
Method: "GET",
PathPattern: "/v2/Bus/Station/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -931,7 +931,7 @@ func (a *Client) InterCityBusAPIStationGroup(params *InterCityBusAPIStationGroup
ID: "InterCityBusApi_StationGroup",
Method: "GET",
PathPattern: "/v2/Bus/StationGroup/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -968,7 +968,7 @@ func (a *Client) InterCityBusAPIStop(params *InterCityBusAPIStopParams) (*InterC
ID: "InterCityBusApi_Stop",
Method: "GET",
PathPattern: "/v2/Bus/Stop/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1005,7 +1005,7 @@ func (a *Client) InterCityBusAPIStopOfRoute(params *InterCityBusAPIStopOfRoutePa
ID: "InterCityBusApi_StopOfRoute",
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1042,7 +1042,7 @@ func (a *Client) InterCityBusAPIStopOfRoute1(params *InterCityBusAPIStopOfRoute1
ID: "InterCityBusApi_StopOfRoute_1",
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/InterCity/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1079,7 +1079,7 @@ func (a *Client) InterCityBusAPIVehicle(params *InterCityBusAPIVehicleParams) (*
ID: "InterCityBusApi_Vehicle",
Method: "GET",
PathPattern: "/v2/Bus/Vehicle/InterCity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/bus/v2/client/m_o_t_c_transport_api_v2_client.go b/bus/v2/client/m_o_t_c_transport_api_v2_client.go
index d4fe773d..4a99aa1b 100644
--- a/bus/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/bus/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -23,7 +23,7 @@ const (
DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
- DefaultBasePath string = "/MOTC/"
+ DefaultBasePath string = "/MOTC"
)
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go
similarity index 71%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go
index 3da3e027..6de17661 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a1_data.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusA1Data BusA1Data
+// PTXServiceDTOBusSpecificationV2BusA1Data BusA1Data
//
// 定時車機資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusA1Data
-type ServiceDTOVersion2BusBusA1Data struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusA1Data
+type PTXServiceDTOBusSpecificationV2BusA1Data struct {
// 方位角
Azimuth float64 `json:"Azimuth,omitempty"`
@@ -25,7 +25,9 @@ type ServiceDTOVersion2BusBusA1Data struct {
// PointType
//
// 車輛位置經度
- BusPosition *ServiceDTOVersion2BasePointType `json:"BusPosition,omitempty"`
+ BusPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"BusPosition,omitempty"`
// integer
//
@@ -53,21 +55,31 @@ type ServiceDTOVersion2BusBusA1Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -89,14 +101,20 @@ type ServiceDTOVersion2BusBusA1Data struct {
// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故沒有提供此欄位, 而非公總系統因提供整包資料更新, 故有提供此欄]
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -112,8 +130,8 @@ type ServiceDTOVersion2BusBusA1Data struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 bus bus a1 data
-func (m *ServiceDTOVersion2BusBusA1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus a1 data
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBusPosition(formats); err != nil {
@@ -146,25 +164,16 @@ func (m *ServiceDTOVersion2BusBusA1Data) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validateBusPosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validateBusPosition(formats strfmt.Registry) error {
if swag.IsZero(m.BusPosition) { // not required
return nil
}
- if m.BusPosition != nil {
- if err := m.BusPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("BusPosition")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validateGPSTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validateGPSTime(formats strfmt.Registry) error {
if err := validate.Required("GPSTime", "body", m.GPSTime); err != nil {
return err
@@ -173,7 +182,7 @@ func (m *ServiceDTOVersion2BusBusA1Data) validateGPSTime(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -182,43 +191,25 @@ func (m *ServiceDTOVersion2BusBusA1Data) validatePlateNumb(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA1Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -228,7 +219,7 @@ func (m *ServiceDTOVersion2BusBusA1Data) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusA1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -236,8 +227,8 @@ func (m *ServiceDTOVersion2BusBusA1Data) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusA1Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusA1Data
+func (m *PTXServiceDTOBusSpecificationV2BusA1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusA1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go
similarity index 73%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go
index ec4cf3b2..a0bed1b2 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_a2_data.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusA2Data BusA2Data
+// PTXServiceDTOBusSpecificationV2BusA2Data BusA2Data
//
// 定點車機資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusA2Data
-type ServiceDTOVersion2BusBusA2Data struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusA2Data
+type PTXServiceDTOBusSpecificationV2BusA2Data struct {
// integer
//
@@ -51,21 +51,31 @@ type ServiceDTOVersion2BusBusA2Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
// NameType
//
// 路線名
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -84,28 +94,42 @@ type ServiceDTOVersion2BusBusA2Data struct {
// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故沒有提供此欄位, 而非公總系統因提供整包資料更新, 故有提供此欄]
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // String
+ //
// 地區既用中之站牌代號(為原資料內碼)
StopID string `json:"StopID,omitempty"`
// NameType
//
// 站牌名
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName,omitempty"`
+ // Int32
+ //
// 路線經過站牌之順序
StopSequence int32 `json:"StopSequence,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -121,8 +145,8 @@ type ServiceDTOVersion2BusBusA2Data struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 bus bus a2 data
-func (m *ServiceDTOVersion2BusBusA2Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus a2 data
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -159,7 +183,7 @@ func (m *ServiceDTOVersion2BusBusA2Data) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -168,7 +192,7 @@ func (m *ServiceDTOVersion2BusBusA2Data) validateDirection(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateGPSTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateGPSTime(formats strfmt.Registry) error {
if err := validate.Required("GPSTime", "body", m.GPSTime); err != nil {
return err
@@ -177,7 +201,7 @@ func (m *ServiceDTOVersion2BusBusA2Data) validateGPSTime(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -186,61 +210,34 @@ func (m *ServiceDTOVersion2BusBusA2Data) validatePlateNumb(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusA2Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -250,7 +247,7 @@ func (m *ServiceDTOVersion2BusBusA2Data) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusA2Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -258,8 +255,8 @@ func (m *ServiceDTOVersion2BusBusA2Data) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusA2Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusA2Data
+func (m *PTXServiceDTOBusSpecificationV2BusA2Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusA2Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go
similarity index 53%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go
index d3cb13f6..8dadb65a 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_discount_periods.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusDiscountPeriods BusDiscountPeriods
+// PTXServiceDTOBusSpecificationV2BusDiscountPeriods BusDiscountPeriods
//
// 優惠時段
//
-// swagger:model Service.DTO.Version2.Bus.BusDiscountPeriods
-type ServiceDTOVersion2BusBusDiscountPeriods struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods
+type PTXServiceDTOBusSpecificationV2BusDiscountPeriods struct {
+ // String
+ //
// 結束時間(HH:mm制)
// Required: true
EndTime *string `json:"EndTime"`
@@ -27,15 +29,19 @@ type ServiceDTOVersion2BusBusDiscountPeriods struct {
//
// 營運日型態
// Required: true
- ServiceDay *ServiceDTOVersion2BusServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2ServiceDay
+ } `json:"ServiceDay"`
+ // String
+ //
// 開始時間(HH:mm制)
// Required: true
StartTime *string `json:"StartTime"`
}
-// Validate validates this service d t o version2 bus bus discount periods
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus discount periods
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndTime(formats); err != nil {
@@ -56,7 +62,7 @@ func (m *ServiceDTOVersion2BusBusDiscountPeriods) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -65,25 +71,12 @@ func (m *ServiceDTOVersion2BusBusDiscountPeriods) validateEndTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) validateServiceDay(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -93,7 +86,7 @@ func (m *ServiceDTOVersion2BusBusDiscountPeriods) validateStartTime(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -101,8 +94,8 @@ func (m *ServiceDTOVersion2BusBusDiscountPeriods) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusDiscountPeriods) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusDiscountPeriods
+func (m *PTXServiceDTOBusSpecificationV2BusDiscountPeriods) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusDiscountPeriods
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go
similarity index 64%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go
index 4939d501..7f82f2db 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_display_stop_of_route.go
@@ -14,18 +14,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusDisplayStopOfRoute BusDisplayStopOfRoute
+// PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute BusDisplayStopOfRoute
//
// 顯示用路線站序資料
//
-// swagger:model Service.DTO.Version2.Bus.BusDisplayStopOfRoute
-type ServiceDTOVersion2BusBusDisplayStopOfRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute
+type PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute struct {
// integer
//
// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -34,15 +36,21 @@ type ServiceDTOVersion2BusBusDisplayStopOfRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 所有經過站牌
// Required: true
- Stops []*ServiceDTOVersion2BusStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV2Stop `json:"Stops"`
// DateTime
//
@@ -50,13 +58,15 @@ type ServiceDTOVersion2BusBusDisplayStopOfRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus display stop of route
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus display stop of route
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRouteID(formats); err != nil {
@@ -89,7 +99,7 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -98,25 +108,12 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateRouteID(formats str
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -125,7 +122,7 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateRouteUID(formats st
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -150,7 +147,7 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateStops(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +156,7 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -169,7 +166,7 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) validateVersionID(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -177,8 +174,8 @@ func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusDisplayStopOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusDisplayStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go
similarity index 69%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_fare.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go
index 92b51b41..aa483f5e 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_fare.go
@@ -14,15 +14,17 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusFare BusFare
+// PTXServiceDTOBusSpecificationV2BusFare BusFare
//
// 票票價種類及費率說明
//
-// swagger:model Service.DTO.Version2.Bus.BusFare
-type ServiceDTOVersion2BusBusFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFare
+type PTXServiceDTOBusSpecificationV2BusFare struct {
+ // Array
+ //
// 優惠時段
- DiscountPeriods []*ServiceDTOVersion2BusBusDiscountPeriods `json:"DiscountPeriods"`
+ DiscountPeriods []*PTXServiceDTOBusSpecificationV2BusDiscountPeriods `json:"DiscountPeriods"`
// integer
//
@@ -30,10 +32,14 @@ type ServiceDTOVersion2BusBusFare struct {
// Required: true
FareClass *int32 `json:"FareClass"`
+ // String
+ //
// 票價名稱
FareName string `json:"FareName,omitempty"`
- // 計費價格(新臺幣)
+ // Int32
+ //
+ // 計費價格(新台幣),其中-1表示不提供售票服務
// Required: true
Price *int32 `json:"Price"`
@@ -44,8 +50,8 @@ type ServiceDTOVersion2BusBusFare struct {
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version2 bus bus fare
-func (m *ServiceDTOVersion2BusBusFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus fare
+func (m *PTXServiceDTOBusSpecificationV2BusFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDiscountPeriods(formats); err != nil {
@@ -70,7 +76,7 @@ func (m *ServiceDTOVersion2BusBusFare) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusFare) validateDiscountPeriods(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFare) validateDiscountPeriods(formats strfmt.Registry) error {
if swag.IsZero(m.DiscountPeriods) { // not required
return nil
@@ -95,7 +101,7 @@ func (m *ServiceDTOVersion2BusBusFare) validateDiscountPeriods(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFare) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -104,7 +110,7 @@ func (m *ServiceDTOVersion2BusBusFare) validateFareClass(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusBusFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFare) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -113,7 +119,7 @@ func (m *ServiceDTOVersion2BusBusFare) validatePrice(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFare) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -123,7 +129,7 @@ func (m *ServiceDTOVersion2BusBusFare) validateTicketType(formats strfmt.Registr
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -131,8 +137,8 @@ func (m *ServiceDTOVersion2BusBusFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusFare
+func (m *PTXServiceDTOBusSpecificationV2BusFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go
similarity index 63%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go
index 0099a0a7..9ab58526 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusFirstLastTripInfo BusFirstLastTripInfo
+// PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo BusFirstLastTripInfo
//
// 路線首末班車資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusFirstLastTripInfo
-type ServiceDTOVersion2BusBusFirstLastTripInfo struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo
+type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo struct {
// integer
//
@@ -27,14 +27,20 @@ type ServiceDTOVersion2BusBusFirstLastTripInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 首末班車
// Required: true
- FirstLastTrips []*ServiceDTOVersion2BusFirstLastTrip `json:"FirstLastTrips"`
+ FirstLastTrips []*PTXServiceDTOBusSpecificationV2FirstLastTrip `json:"FirstLastTrips"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -43,12 +49,18 @@ type ServiceDTOVersion2BusBusFirstLastTripInfo struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -57,8 +69,12 @@ type ServiceDTOVersion2BusBusFirstLastTripInfo struct {
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
@@ -69,13 +85,15 @@ type ServiceDTOVersion2BusBusFirstLastTripInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus first last trip info
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus first last trip info
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -128,7 +146,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) Validate(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -137,7 +155,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateDirection(formats st
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateFirstLastTrips(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateFirstLastTrips(formats strfmt.Registry) error {
if err := validate.Required("FirstLastTrips", "body", m.FirstLastTrips); err != nil {
return err
@@ -162,7 +180,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateFirstLastTrips(forma
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -171,7 +189,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateOperatorID(formats s
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -180,25 +198,12 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateRouteID(formats strf
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -207,7 +212,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateRouteUID(formats str
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -216,25 +221,12 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateSubRouteID(formats s
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -243,7 +235,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateSubRouteUID(formats
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -252,7 +244,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateUpdateTime(formats s
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -262,7 +254,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) validateVersionID(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -270,8 +262,8 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusFirstLastTripInfo
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info_service_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go
similarity index 67%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info_service_day.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go
index 2be61821..7701a30f 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_first_last_trip_info_service_day.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_first_last_trip_info_service_day.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay ServiceDay
+// PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay ServiceDay
//
-// swagger:model Service.DTO.Version2.Bus.BusFirstLastTripInfo.ServiceDay
-type ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay
+type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay struct {
// integer
//
@@ -80,8 +80,8 @@ type ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay struct {
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version2 bus bus first last trip info service day
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus first last trip info service day
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -118,7 +118,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -127,7 +127,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateFriday(for
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -136,7 +136,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateMonday(for
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -145,7 +145,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateSaturday(f
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -154,7 +154,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateSunday(for
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -163,7 +163,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateThursday(f
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -172,7 +172,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateTuesday(fo
return nil
}
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -182,7 +182,7 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) validateWednesday(
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -190,8 +190,8 @@ func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay
+func (m *PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
similarity index 64%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
index 0c5eb722..69ec5e61 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
@@ -14,19 +14,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusFrequency BusFrequency
+// PTXServiceDTOBusSpecificationV2BusFrequency BusFrequency
//
-// swagger:model Service.DTO.Version2.Bus.BusFrequency
-type ServiceDTOVersion2BusBusFrequency struct {
+// 發車班距資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFrequency
+type PTXServiceDTOBusSpecificationV2BusFrequency struct {
+ // String
+ //
// 發車班距結束適用時間,格式為: HH:mm
// Required: true
EndTime *string `json:"EndTime"`
+ // Int32
+ //
// 最大班距時間(分鐘)
// Required: true
MaxHeadwayMins *int32 `json:"MaxHeadwayMins"`
+ // Int32
+ //
// 最小班距時間(分鐘)
// Required: true
MinHeadwayMins *int32 `json:"MinHeadwayMins"`
@@ -34,18 +42,24 @@ type ServiceDTOVersion2BusBusFrequency struct {
// ServiceDay
//
// 週內營運日
- ServiceDay *ServiceDTOVersion2BusServiceDay `json:"ServiceDay,omitempty"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2ServiceDay
+ } `json:"ServiceDay,omitempty"`
+ // Array
+ //
// 特殊營運日
- SpecialDays []*ServiceDTOVersion2BusSpecialDay `json:"SpecialDays"`
+ SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"`
+ // String
+ //
// 發車班距起始適用時間,格式為: HH:mm
// Required: true
StartTime *string `json:"StartTime"`
}
-// Validate validates this service d t o version2 bus bus frequency
-func (m *ServiceDTOVersion2BusBusFrequency) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus frequency
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndTime(formats); err != nil {
@@ -78,7 +92,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -87,7 +101,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateEndTime(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateMaxHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateMaxHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MaxHeadwayMins", "body", m.MaxHeadwayMins); err != nil {
return err
@@ -96,7 +110,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateMaxHeadwayMins(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateMinHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateMinHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MinHeadwayMins", "body", m.MinHeadwayMins); err != nil {
return err
@@ -105,25 +119,16 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateMinHeadwayMins(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateServiceDay(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateServiceDay(formats strfmt.Registry) error {
if swag.IsZero(m.ServiceDay) { // not required
return nil
}
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateSpecialDays(formats strfmt.Registry) error {
if swag.IsZero(m.SpecialDays) { // not required
return nil
@@ -148,7 +153,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateSpecialDays(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -158,7 +163,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateStartTime(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFrequency) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -166,8 +171,8 @@ func (m *ServiceDTOVersion2BusBusFrequency) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFrequency) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusFrequency
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusFrequency
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go
similarity index 74%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go
index c17fdcc0..89793519 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_n1_estimate_time.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusN1EstimateTime BusN1EstimateTime
+// PTXServiceDTOBusSpecificationV2BusN1EstimateTime BusN1EstimateTime
//
-// swagger:model Service.DTO.Version2.Bus.BusN1EstimateTime
-type ServiceDTOVersion2BusBusN1EstimateTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime
+type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct {
+ // String
+ //
// 車輛目前所在站牌代碼
CurrentStop string `json:"CurrentStop,omitempty"`
@@ -27,6 +29,8 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
// 系統演算該筆預估到站資料的時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[目前僅公總提供此欄位資訊]
DataTime string `json:"DataTime,omitempty"`
+ // String
+ //
// 車輛目的站牌代碼
DestinationStop string `json:"DestinationStop,omitempty"`
@@ -39,9 +43,11 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
// 到站時間預估(秒) [當StopStatus値為2~4或PlateNumb値為-1時,EstimateTime値為null; 當StopStatus値為1時, EstimateTime値多數為null,僅部分路線因有固定發車時間,故EstimateTime有値; 當StopStatus値為0時,EstimateTime有値。]
EstimateTime int32 `json:"EstimateTime,omitempty"`
+ // Array
+ //
// 到站時間預估
//
- Estimates []*ServiceDTOVersion2BusN1Estimate `json:"Estimates"`
+ Estimates []*PTXServiceDTOBusSpecificationV2N1Estimate `json:"Estimates"`
// 是否為末班車
IsLastBus bool `json:"IsLastBus,omitempty"`
@@ -56,17 +62,25 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
// 下一班公車到達時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
NextBusTime string `json:"NextBusTime,omitempty"`
+ // String
+ //
// 車牌號碼 [値為値為-1時,表示目前該站位無車輛行駛]
PlateNumb string `json:"PlateNumb,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -88,13 +102,17 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
// 車輛距離本站站數
StopCountDown int32 `json:"StopCountDown,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
StopID string `json:"StopID,omitempty"`
// NameType
//
// 站牌名
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName,omitempty"`
// 路線經過站牌之順序
StopSequence int32 `json:"StopSequence,omitempty"`
@@ -104,17 +122,25 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
// 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']
StopStatus int32 `json:"StopStatus,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -130,8 +156,8 @@ type ServiceDTOVersion2BusBusN1EstimateTime struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 bus bus n1 estimate time
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus n1 estimate time
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -164,7 +190,7 @@ func (m *ServiceDTOVersion2BusBusN1EstimateTime) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -173,7 +199,7 @@ func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateDirection(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateEstimates(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateEstimates(formats strfmt.Registry) error {
if swag.IsZero(m.Estimates) { // not required
return nil
@@ -198,61 +224,34 @@ func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateEstimates(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -262,7 +261,7 @@ func (m *ServiceDTOVersion2BusBusN1EstimateTime) validateUpdateTime(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -270,8 +269,8 @@ func (m *ServiceDTOVersion2BusBusN1EstimateTime) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusN1EstimateTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusN1EstimateTime
+func (m *PTXServiceDTOBusSpecificationV2BusN1EstimateTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusN1EstimateTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_news.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go
similarity index 70%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_news.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go
index 3e52f7b3..be280df2 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_news.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_news.go
@@ -12,16 +12,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusNews BusNews
+// PTXServiceDTOBusSpecificationV2BusNews BusNews
//
// 公車最新消息資料
//
-// swagger:model Service.DTO.Version2.Bus.BusNews
-type ServiceDTOVersion2BusBusNews struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusNews
+type PTXServiceDTOBusSpecificationV2BusNews struct {
+ // String
+ //
// 相關網站連結
AttachmentURL string `json:"AttachmentURL,omitempty"`
+ // String
+ //
// 內容描述
// Required: true
Description *string `json:"Description"`
@@ -31,17 +35,25 @@ type ServiceDTOVersion2BusBusNews struct {
// 結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
EndTime string `json:"EndTime,omitempty"`
+ // String
+ //
// 語系
// Required: true
Language *string `json:"Language"`
+ // String
+ //
// 消息類別
NewsCategory string `json:"NewsCategory,omitempty"`
+ // String
+ //
// 最新消息原單位發布代碼
// Required: true
NewsID *string `json:"NewsID"`
+ // String
+ //
// 報導網站連結
NewsURL string `json:"NewsURL,omitempty"`
@@ -56,6 +68,8 @@ type ServiceDTOVersion2BusBusNews struct {
// 開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
@@ -67,8 +81,8 @@ type ServiceDTOVersion2BusBusNews struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 bus bus news
-func (m *ServiceDTOVersion2BusBusNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus news
+func (m *PTXServiceDTOBusSpecificationV2BusNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -101,7 +115,7 @@ func (m *ServiceDTOVersion2BusBusNews) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -110,7 +124,7 @@ func (m *ServiceDTOVersion2BusBusNews) validateDescription(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validateLanguage(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validateLanguage(formats strfmt.Registry) error {
if err := validate.Required("Language", "body", m.Language); err != nil {
return err
@@ -119,7 +133,7 @@ func (m *ServiceDTOVersion2BusBusNews) validateLanguage(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -128,7 +142,7 @@ func (m *ServiceDTOVersion2BusBusNews) validateNewsID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validatePublishTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validatePublishTime(formats strfmt.Registry) error {
if err := validate.Required("PublishTime", "body", m.PublishTime); err != nil {
return err
@@ -137,7 +151,7 @@ func (m *ServiceDTOVersion2BusBusNews) validatePublishTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -146,7 +160,7 @@ func (m *ServiceDTOVersion2BusBusNews) validateTitle(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +170,7 @@ func (m *ServiceDTOVersion2BusBusNews) validateUpdateTime(formats strfmt.Registr
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +178,8 @@ func (m *ServiceDTOVersion2BusBusNews) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusNews
+func (m *PTXServiceDTOBusSpecificationV2BusNews) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go
similarity index 73%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_route.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go
index da47b09d..ff31b082 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_route.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusRoute BusRoute
+// PTXServiceDTOBusSpecificationV2BusRoute BusRoute
//
// 路線資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusRoute
-type ServiceDTOVersion2BusBusRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRoute
+type PTXServiceDTOBusSpecificationV2BusRoute struct {
+ // String
+ //
// 業管機關代碼
// Required: true
AuthorityID *string `json:"AuthorityID"`
@@ -31,46 +33,72 @@ type ServiceDTOVersion2BusBusRoute struct {
// Required: true
BusRouteType *int32 `json:"BusRouteType"`
+ // String
+ //
// 路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
City string `json:"City,omitempty"`
+ // String
+ //
// 路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
CityCode string `json:"CityCode,omitempty"`
+ // String
+ //
// 起站英文名稱
DepartureStopNameEn string `json:"DepartureStopNameEn,omitempty"`
+ // String
+ //
// 起站中文名稱
DepartureStopNameZh string `json:"DepartureStopNameZh,omitempty"`
+ // String
+ //
// 終點站英文名稱
DestinationStopNameEn string `json:"DestinationStopNameEn,omitempty"`
+ // String
+ //
// 終點站中文名稱
DestinationStopNameZh string `json:"DestinationStopNameZh,omitempty"`
+ // String
+ //
// 收費緩衝區英文敘述
FareBufferZoneDescriptionEn string `json:"FareBufferZoneDescriptionEn,omitempty"`
+ // String
+ //
// 收費緩衝區中文敘述
FareBufferZoneDescriptionZh string `json:"FareBufferZoneDescriptionZh,omitempty"`
+ // Boolean
+ //
// 實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)
// Required: true
HasSubRoutes *bool `json:"HasSubRoutes"`
+ // Array
+ //
// 營運業者
// Required: true
- Operators []*ServiceDTOVersion2BusRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV2RouteOperator `json:"Operators"`
+ // String
+ //
// 資料提供平台代碼
// Required: true
ProviderID *string `json:"ProviderID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線簡圖網址
RouteMapImageURL string `json:"RouteMapImageUrl,omitempty"`
@@ -78,18 +106,28 @@ type ServiceDTOVersion2BusBusRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆))
- SubRoutes []*ServiceDTOVersion2BusBusSubRoute `json:"SubRoutes"`
+ SubRoutes []*PTXServiceDTOBusSpecificationV2BusSubRoute `json:"SubRoutes"`
+ // String
+ //
// 票價英文敘述
TicketPriceDescriptionEn string `json:"TicketPriceDescriptionEn,omitempty"`
+ // String
+ //
// 票價中文敘述
TicketPriceDescriptionZh string `json:"TicketPriceDescriptionZh,omitempty"`
@@ -99,13 +137,15 @@ type ServiceDTOVersion2BusBusRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus route
-func (m *ServiceDTOVersion2BusBusRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus route
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityID(formats); err != nil {
@@ -158,7 +198,7 @@ func (m *ServiceDTOVersion2BusBusRoute) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateAuthorityID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateAuthorityID(formats strfmt.Registry) error {
if err := validate.Required("AuthorityID", "body", m.AuthorityID); err != nil {
return err
@@ -167,7 +207,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateAuthorityID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateBusRouteType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateBusRouteType(formats strfmt.Registry) error {
if err := validate.Required("BusRouteType", "body", m.BusRouteType); err != nil {
return err
@@ -176,7 +216,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateBusRouteType(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateHasSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateHasSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("HasSubRoutes", "body", m.HasSubRoutes); err != nil {
return err
@@ -185,7 +225,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateHasSubRoutes(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -210,7 +250,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateOperators(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateProviderID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateProviderID(formats strfmt.Registry) error {
if err := validate.Required("ProviderID", "body", m.ProviderID); err != nil {
return err
@@ -219,7 +259,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateProviderID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -228,25 +268,12 @@ func (m *ServiceDTOVersion2BusBusRoute) validateRouteID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -255,7 +282,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateRouteUID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateSubRoutes(formats strfmt.Registry) error {
if swag.IsZero(m.SubRoutes) { // not required
return nil
@@ -280,7 +307,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateSubRoutes(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -289,7 +316,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateUpdateTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusRoute) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -299,7 +326,7 @@ func (m *ServiceDTOVersion2BusBusRoute) validateVersionID(formats strfmt.Registr
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -307,8 +334,8 @@ func (m *ServiceDTOVersion2BusBusRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusRoute
+func (m *PTXServiceDTOBusSpecificationV2BusRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go
similarity index 70%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go
index 0f3f9ecf..b6b05a6c 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_route_fare.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusRouteFare BusRouteFare
+// PTXServiceDTOBusSpecificationV2BusRouteFare BusRouteFare
//
// 路線票價資料
//
-// swagger:model Service.DTO.Version2.Bus.BusRouteFare
-type ServiceDTOVersion2BusBusRouteFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare
+type PTXServiceDTOBusSpecificationV2BusRouteFare struct {
// integer
//
@@ -39,26 +39,40 @@ type ServiceDTOVersion2BusBusRouteFare struct {
// Required: true
IsFreeBus *int32 `json:"IsFreeBus"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 機關定義路線代號
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線名稱
RouteName string `json:"RouteName,omitempty"`
+ // Array
+ //
// 段次計費
- SectionFares []*ServiceDTOVersion2BusSectionFare `json:"SectionFares"`
+ SectionFares []*PTXServiceDTOBusSpecificationV2SectionFare `json:"SectionFares"`
+ // Array
+ //
// 計費站區間計費
- StageFares []*ServiceDTOVersion2BusBusStageFare `json:"StageFares"`
+ StageFares []*PTXServiceDTOBusSpecificationV2BusStageFare `json:"StageFares"`
+ // String
+ //
// 機關定義附屬路線代碼
SubRouteID string `json:"SubRouteID,omitempty"`
+ // String
+ //
// 附屬路線名稱
SubRouteName string `json:"SubRouteName,omitempty"`
@@ -69,8 +83,8 @@ type ServiceDTOVersion2BusBusRouteFare struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 bus bus route fare
-func (m *ServiceDTOVersion2BusBusRouteFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus route fare
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFarePricingType(formats); err != nil {
@@ -111,7 +125,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateFarePricingType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateFarePricingType(formats strfmt.Registry) error {
if err := validate.Required("FarePricingType", "body", m.FarePricingType); err != nil {
return err
@@ -120,7 +134,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateFarePricingType(formats strf
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateIsForAllSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateIsForAllSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("IsForAllSubRoutes", "body", m.IsForAllSubRoutes); err != nil {
return err
@@ -129,7 +143,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateIsForAllSubRoutes(formats st
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateIsFreeBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateIsFreeBus(formats strfmt.Registry) error {
if err := validate.Required("IsFreeBus", "body", m.IsFreeBus); err != nil {
return err
@@ -138,7 +152,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateIsFreeBus(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -147,7 +161,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateOperatorID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -156,7 +170,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateRouteID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateSectionFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateSectionFares(formats strfmt.Registry) error {
if swag.IsZero(m.SectionFares) { // not required
return nil
@@ -181,7 +195,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateSectionFares(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateStageFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateStageFares(formats strfmt.Registry) error {
if swag.IsZero(m.StageFares) { // not required
return nil
@@ -206,7 +220,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateStageFares(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusRouteFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -216,7 +230,7 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateUpdateTime(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusRouteFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -224,8 +238,8 @@ func (m *ServiceDTOVersion2BusBusRouteFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusRouteFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusRouteFare
+func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusRouteFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go
similarity index 66%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go
index b41b50ea..e47fafdc 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_schedule.go
@@ -14,10 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusSchedule BusSchedule
+// PTXServiceDTOBusSpecificationV2BusSchedule BusSchedule
//
-// swagger:model Service.DTO.Version2.Bus.BusSchedule
-type ServiceDTOVersion2BusBusSchedule struct {
+// 班表資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusSchedule
+type PTXServiceDTOBusSpecificationV2BusSchedule struct {
// integer
//
@@ -25,15 +27,23 @@ type ServiceDTOVersion2BusBusSchedule struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 發車班距
- Frequencys []*ServiceDTOVersion2BusBusFrequency `json:"Frequencys"`
+ Frequencys []*PTXServiceDTOBusSpecificationV2BusFrequency `json:"Frequencys"`
+ // String
+ //
// 營運業者簡碼
OperatorCode string `json:"OperatorCode,omitempty"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -42,12 +52,18 @@ type ServiceDTOVersion2BusBusSchedule struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -56,14 +72,20 @@ type ServiceDTOVersion2BusBusSchedule struct {
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
+ // Array
+ //
// 預定班表
- Timetables []*ServiceDTOVersion2BusBusTimetable `json:"Timetables"`
+ Timetables []*PTXServiceDTOBusSpecificationV2BusTimetable `json:"Timetables"`
// DateTime
//
@@ -71,13 +93,15 @@ type ServiceDTOVersion2BusBusSchedule struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus schedule
-func (m *ServiceDTOVersion2BusBusSchedule) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus schedule
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -130,7 +154,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -139,7 +163,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateDirection(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateFrequencys(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateFrequencys(formats strfmt.Registry) error {
if swag.IsZero(m.Frequencys) { // not required
return nil
@@ -164,7 +188,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateFrequencys(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -173,25 +197,12 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateRouteID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -200,7 +211,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateRouteUID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -209,25 +220,12 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateSubRouteID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -236,7 +234,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateSubRouteUID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateTimetables(formats strfmt.Registry) error {
if swag.IsZero(m.Timetables) { // not required
return nil
@@ -261,7 +259,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateTimetables(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -270,7 +268,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateUpdateTime(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSchedule) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -280,7 +278,7 @@ func (m *ServiceDTOVersion2BusBusSchedule) validateVersionID(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSchedule) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -288,8 +286,8 @@ func (m *ServiceDTOVersion2BusBusSchedule) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSchedule) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusSchedule
+func (m *PTXServiceDTOBusSpecificationV2BusSchedule) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusSchedule
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go
similarity index 61%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_shape.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go
index e4597c00..3dfdb387 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_shape.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusShape BusShape
+// PTXServiceDTOBusSpecificationV2BusShape BusShape
//
// 公車線型資料
//
-// swagger:model Service.DTO.Version2.Bus.BusShape
-type ServiceDTOVersion2BusBusShape struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusShape
+type PTXServiceDTOBusSpecificationV2BusShape struct {
// integer
//
@@ -25,10 +25,20 @@ type ServiceDTOVersion2BusBusShape struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
+ // 路線軌跡編碼(encoded polyline)
+ // Required: true
+ EncodedPolyline *string `json:"EncodedPolyline"`
+
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -37,8 +47,12 @@ type ServiceDTOVersion2BusBusShape struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
@@ -49,19 +63,25 @@ type ServiceDTOVersion2BusBusShape struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus shape
-func (m *ServiceDTOVersion2BusBusShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus shape
+func (m *PTXServiceDTOBusSpecificationV2BusShape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateEncodedPolyline(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateGeometry(formats); err != nil {
res = append(res, err)
}
@@ -92,7 +112,7 @@ func (m *ServiceDTOVersion2BusBusShape) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -101,43 +121,39 @@ func (m *ServiceDTOVersion2BusBusShape) validateDirection(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateEncodedPolyline(formats strfmt.Registry) error {
- if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
+ if err := validate.Required("EncodedPolyline", "body", m.EncodedPolyline); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateGeometry(formats strfmt.Registry) error {
- if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
+ if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateRouteID(formats strfmt.Registry) error {
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
+ if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -146,7 +162,7 @@ func (m *ServiceDTOVersion2BusBusShape) validateRouteUID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -155,7 +171,7 @@ func (m *ServiceDTOVersion2BusBusShape) validateUpdateTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusShape) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -165,7 +181,7 @@ func (m *ServiceDTOVersion2BusBusShape) validateVersionID(formats strfmt.Registr
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -173,8 +189,8 @@ func (m *ServiceDTOVersion2BusBusShape) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusShape
+func (m *PTXServiceDTOBusSpecificationV2BusShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go
similarity index 59%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_stage.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go
index e4feba62..a848c0c0 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage.go
@@ -12,23 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStage BusStage
+// PTXServiceDTOBusSpecificationV2BusStage BusStage
//
// 計費站
//
-// swagger:model Service.DTO.Version2.Bus.BusStage
-type ServiceDTOVersion2BusBusStage struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStage
+type PTXServiceDTOBusSpecificationV2BusStage struct {
+ // String
+ //
// 站牌代碼
// Required: true
StopID *string `json:"StopID"`
+ // String
+ //
// 站牌名稱
StopName string `json:"StopName,omitempty"`
}
-// Validate validates this service d t o version2 bus bus stage
-func (m *ServiceDTOVersion2BusBusStage) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stage
+func (m *PTXServiceDTOBusSpecificationV2BusStage) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -41,7 +45,7 @@ func (m *ServiceDTOVersion2BusBusStage) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BusBusStage) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStage) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -51,7 +55,7 @@ func (m *ServiceDTOVersion2BusBusStage) validateStopID(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStage) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStage) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -59,8 +63,8 @@ func (m *ServiceDTOVersion2BusBusStage) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStage) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStage
+func (m *PTXServiceDTOBusSpecificationV2BusStage) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStage
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go
similarity index 54%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go
index 07901007..333c28e5 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stage_fare.go
@@ -14,18 +14,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStageFare BusStageFare
+// PTXServiceDTOBusSpecificationV2BusStageFare BusStageFare
//
// 此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)
//
-// swagger:model Service.DTO.Version2.Bus.BusStageFare
-type ServiceDTOVersion2BusBusStageFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStageFare
+type PTXServiceDTOBusSpecificationV2BusStageFare struct {
// BusStage
//
// 訖點計費站
// Required: true
- DestinationStage *ServiceDTOVersion2BusBusStage `json:"DestinationStage"`
+ DestinationStage struct {
+ PTXServiceDTOBusSpecificationV2BusStage
+ } `json:"DestinationStage"`
// integer
//
@@ -33,19 +35,23 @@ type ServiceDTOVersion2BusBusStageFare struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 票價內容
// Required: true
- Fares []*ServiceDTOVersion2BusBusFare `json:"Fares"`
+ Fares []*PTXServiceDTOBusSpecificationV2BusFare `json:"Fares"`
// BusStage
//
// 起點計費站
// Required: true
- OriginStage *ServiceDTOVersion2BusBusStage `json:"OriginStage"`
+ OriginStage struct {
+ PTXServiceDTOBusSpecificationV2BusStage
+ } `json:"OriginStage"`
}
-// Validate validates this service d t o version2 bus bus stage fare
-func (m *ServiceDTOVersion2BusBusStageFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stage fare
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStage(formats); err != nil {
@@ -70,25 +76,12 @@ func (m *ServiceDTOVersion2BusBusStageFare) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusStageFare) validateDestinationStage(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStage", "body", m.DestinationStage); err != nil {
- return err
- }
-
- if m.DestinationStage != nil {
- if err := m.DestinationStage.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStage")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) validateDestinationStage(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStageFare) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -97,7 +90,7 @@ func (m *ServiceDTOVersion2BusBusStageFare) validateDirection(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusStageFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -122,26 +115,13 @@ func (m *ServiceDTOVersion2BusBusStageFare) validateFares(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusStageFare) validateOriginStage(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStage", "body", m.OriginStage); err != nil {
- return err
- }
-
- if m.OriginStage != nil {
- if err := m.OriginStage.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStage")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) validateOriginStage(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStageFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +129,8 @@ func (m *ServiceDTOVersion2BusBusStageFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStageFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStageFare
+func (m *PTXServiceDTOBusSpecificationV2BusStageFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStageFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_station.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go
similarity index 62%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_station.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go
index fdc12aae..a3d49883 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_station.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station.go
@@ -14,20 +14,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStation BusStation
+// PTXServiceDTOBusSpecificationV2BusStation BusStation
//
// 站牌/位資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusStation
-type ServiceDTOVersion2BusBusStation struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStation
+type PTXServiceDTOBusSpecificationV2BusStation struct {
+ // String
+ //
// 站位地址
StationAddress string `json:"StationAddress,omitempty"`
+ // String
+ //
// 站牌所屬的組站位ID
// Required: true
StationGroupID *string `json:"StationGroupID"`
+ // String
+ //
// 站位代碼
// Required: true
StationID *string `json:"StationID"`
@@ -36,20 +42,28 @@ type ServiceDTOVersion2BusBusStation struct {
//
// 站位名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
// PointType
//
// 站位位置
// Required: true
- StationPosition *ServiceDTOVersion2BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StationUID *string `json:"StationUID"`
+ // Array
+ //
// 站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料)
- Stops []*ServiceDTOVersion2BusStationStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV2StationStop `json:"Stops"`
// DateTime
//
@@ -57,13 +71,15 @@ type ServiceDTOVersion2BusBusStation struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus station
-func (m *ServiceDTOVersion2BusBusStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus station
+func (m *PTXServiceDTOBusSpecificationV2BusStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationGroupID(formats); err != nil {
@@ -104,7 +120,7 @@ func (m *ServiceDTOVersion2BusBusStation) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStationGroupID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStationGroupID(formats strfmt.Registry) error {
if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
return err
@@ -113,7 +129,7 @@ func (m *ServiceDTOVersion2BusBusStation) validateStationGroupID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -122,43 +138,17 @@ func (m *ServiceDTOVersion2BusBusStation) validateStationID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -167,7 +157,7 @@ func (m *ServiceDTOVersion2BusBusStation) validateStationUID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateStops(formats strfmt.Registry) error {
if swag.IsZero(m.Stops) { // not required
return nil
@@ -192,7 +182,7 @@ func (m *ServiceDTOVersion2BusBusStation) validateStops(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -201,7 +191,7 @@ func (m *ServiceDTOVersion2BusBusStation) validateUpdateTime(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusStation) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -211,7 +201,7 @@ func (m *ServiceDTOVersion2BusBusStation) validateVersionID(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -219,8 +209,8 @@ func (m *ServiceDTOVersion2BusBusStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStation
+func (m *PTXServiceDTOBusSpecificationV2BusStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go
similarity index 55%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go
index 2013ebfa..372c57c2 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_station_group.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStationGroup BusStationGroup
+// PTXServiceDTOBusSpecificationV2BusStationGroup BusStationGroup
//
// 組站位資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusStationGroup
-type ServiceDTOVersion2BusBusStationGroup struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStationGroup
+type PTXServiceDTOBusSpecificationV2BusStationGroup struct {
+ // String
+ //
// 組站位代碼
// Required: true
StationGroupID *string `json:"StationGroupID"`
@@ -27,14 +29,20 @@ type ServiceDTOVersion2BusBusStationGroup struct {
//
// 組站位名稱
// Required: true
- StationGroupName *ServiceDTOVersion2BaseNameType `json:"StationGroupName"`
+ StationGroupName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationGroupName"`
// PointType
//
// 組站位位置
// Required: true
- StationGroupPosition *ServiceDTOVersion2BasePointType `json:"StationGroupPosition"`
+ StationGroupPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StationGroupPosition"`
+ // String
+ //
// 組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StationGroupUID *string `json:"StationGroupUID"`
@@ -45,13 +53,15 @@ type ServiceDTOVersion2BusBusStationGroup struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus station group
-func (m *ServiceDTOVersion2BusBusStationGroup) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus station group
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationGroupID(formats); err != nil {
@@ -84,7 +94,7 @@ func (m *ServiceDTOVersion2BusBusStationGroup) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateStationGroupID(formats strfmt.Registry) error {
if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
return err
@@ -93,43 +103,17 @@ func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupID(formats st
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationGroupName", "body", m.StationGroupName); err != nil {
- return err
- }
-
- if m.StationGroupName != nil {
- if err := m.StationGroupName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationGroupName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateStationGroupName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationGroupPosition", "body", m.StationGroupPosition); err != nil {
- return err
- }
-
- if m.StationGroupPosition != nil {
- if err := m.StationGroupPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationGroupPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateStationGroupPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateStationGroupUID(formats strfmt.Registry) error {
if err := validate.Required("StationGroupUID", "body", m.StationGroupUID); err != nil {
return err
@@ -138,7 +122,7 @@ func (m *ServiceDTOVersion2BusBusStationGroup) validateStationGroupUID(formats s
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -147,7 +131,7 @@ func (m *ServiceDTOVersion2BusBusStationGroup) validateUpdateTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusBusStationGroup) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -157,7 +141,7 @@ func (m *ServiceDTOVersion2BusBusStationGroup) validateVersionID(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStationGroup) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -165,8 +149,8 @@ func (m *ServiceDTOVersion2BusBusStationGroup) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStationGroup) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStationGroup
+func (m *PTXServiceDTOBusSpecificationV2BusStationGroup) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStationGroup
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go
similarity index 67%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_stop.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go
index 3cec669c..1102ab23 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop.go
@@ -12,42 +12,62 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStop BusStop
+// PTXServiceDTOBusSpecificationV2BusStop BusStop
//
// 站牌/位資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusStop
-type ServiceDTOVersion2BusBusStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStop
+type PTXServiceDTOBusSpecificationV2BusStop struct {
+ // String
+ //
// 業管機關代碼
// Required: true
AuthorityID *string `json:"AuthorityID"`
+ // String
+ //
// 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行
Bearing string `json:"Bearing,omitempty"`
+ // String
+ //
// 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
City string `json:"City,omitempty"`
+ // String
+ //
// 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
CityCode string `json:"CityCode,omitempty"`
+ // String
+ //
// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
LocationCityCode string `json:"LocationCityCode,omitempty"`
+ // String
+ //
// 站牌所屬的組站位ID
// Required: true
StationGroupID *string `json:"StationGroupID"`
+ // String
+ //
// 站牌所屬的站位ID
StationID string `json:"StationID,omitempty"`
+ // String
+ //
// 站牌地址
StopAddress string `json:"StopAddress,omitempty"`
+ // String
+ //
// 站牌詳細說明描述
StopDescription string `json:"StopDescription,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -56,14 +76,20 @@ type ServiceDTOVersion2BusBusStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
// PointType
//
// 站牌位置
// Required: true
- StopPosition *ServiceDTOVersion2BasePointType `json:"StopPosition"`
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StopPosition"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
@@ -74,13 +100,15 @@ type ServiceDTOVersion2BusBusStop struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus stop
-func (m *ServiceDTOVersion2BusBusStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stop
+func (m *PTXServiceDTOBusSpecificationV2BusStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityID(formats); err != nil {
@@ -121,7 +149,7 @@ func (m *ServiceDTOVersion2BusBusStop) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateAuthorityID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateAuthorityID(formats strfmt.Registry) error {
if err := validate.Required("AuthorityID", "body", m.AuthorityID); err != nil {
return err
@@ -130,7 +158,7 @@ func (m *ServiceDTOVersion2BusBusStop) validateAuthorityID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateStationGroupID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateStationGroupID(formats strfmt.Registry) error {
if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
return err
@@ -139,7 +167,7 @@ func (m *ServiceDTOVersion2BusBusStop) validateStationGroupID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -148,43 +176,17 @@ func (m *ServiceDTOVersion2BusBusStop) validateStopID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateStopPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
- return err
- }
-
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateStopPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -193,7 +195,7 @@ func (m *ServiceDTOVersion2BusBusStop) validateStopUID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -202,7 +204,7 @@ func (m *ServiceDTOVersion2BusBusStop) validateUpdateTime(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusStop) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -212,7 +214,7 @@ func (m *ServiceDTOVersion2BusBusStop) validateVersionID(formats strfmt.Registry
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -220,8 +222,8 @@ func (m *ServiceDTOVersion2BusBusStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStop
+func (m *PTXServiceDTOBusSpecificationV2BusStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go
similarity index 66%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go
index d27fe4cd..a3828c3a 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_of_route.go
@@ -14,16 +14,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStopOfRoute BusStopOfRoute
+// PTXServiceDTOBusSpecificationV2BusStopOfRoute BusStopOfRoute
//
// 路線站序資料
//
-// swagger:model Service.DTO.Version2.Bus.BusStopOfRoute
-type ServiceDTOVersion2BusBusStopOfRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute
+type PTXServiceDTOBusSpecificationV2BusStopOfRoute struct {
+ // String
+ //
// 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
City string `json:"City,omitempty"`
+ // String
+ //
// 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
CityCode string `json:"CityCode,omitempty"`
@@ -32,9 +36,13 @@ type ServiceDTOVersion2BusBusStopOfRoute struct {
// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
Direction int32 `json:"Direction,omitempty"`
+ // Array
+ //
// 營運業者
- Operators []*ServiceDTOVersion2BusRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV2RouteOperator `json:"Operators"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -43,16 +51,24 @@ type ServiceDTOVersion2BusBusStopOfRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 所有經過站牌
// Required: true
- Stops []*ServiceDTOVersion2BusStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV2Stop `json:"Stops"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -61,8 +77,12 @@ type ServiceDTOVersion2BusBusStopOfRoute struct {
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
@@ -73,13 +93,15 @@ type ServiceDTOVersion2BusBusStopOfRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus stop of route
-func (m *ServiceDTOVersion2BusBusStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stop of route
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperators(formats); err != nil {
@@ -128,7 +150,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateOperators(formats strfmt.Registry) error {
if swag.IsZero(m.Operators) { // not required
return nil
@@ -153,7 +175,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateOperators(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -162,25 +184,12 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateRouteID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -189,7 +198,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateRouteUID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -214,7 +223,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateStops(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -223,25 +232,12 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateSubRouteID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -250,7 +246,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateSubRouteUID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -259,7 +255,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateUpdateTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusStopOfRoute) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -269,7 +265,7 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) validateVersionID(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -277,8 +273,8 @@ func (m *ServiceDTOVersion2BusBusStopOfRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV2BusStopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
similarity index 63%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
index 3ac08fb4..7f68ebdb 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStopTime BusStopTime
+// PTXServiceDTOBusSpecificationV2BusStopTime BusStopTime
//
// 公車停靠時間資料
//
-// swagger:model Service.DTO.Version2.Bus.BusStopTime
-type ServiceDTOVersion2BusBusStopTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStopTime
+type PTXServiceDTOBusSpecificationV2BusStopTime struct {
+ // String
+ //
// 到站時間,格式為:HH:mm
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間,格式為:HH:mm
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -35,19 +41,25 @@ type ServiceDTOVersion2BusBusStopTime struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
+ // Int32
+ //
// 路線經過站牌之順序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version2 bus bus stop time
-func (m *ServiceDTOVersion2BusBusStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stop time
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -80,7 +92,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -89,7 +101,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateArrivalTime(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -98,7 +110,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateDepartureTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -107,25 +119,12 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopID(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -134,7 +133,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopSequence(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -144,7 +143,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopUID(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -152,8 +151,8 @@ func (m *ServiceDTOVersion2BusBusStopTime) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStopTime
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
similarity index 67%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
index 4151f5f8..ec8c4663 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusSubRoute BusSubRoute
+// PTXServiceDTOBusSpecificationV2BusSubRoute BusSubRoute
//
// 附屬路線資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusSubRoute
-type ServiceDTOVersion2BusBusSubRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusSubRoute
+type PTXServiceDTOBusSpecificationV2BusSubRoute struct {
// integer
//
@@ -25,28 +25,44 @@ type ServiceDTOVersion2BusBusSubRoute struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 平日第一班發車時間
FirstBusTime string `json:"FirstBusTime,omitempty"`
+ // String
+ //
// 車頭描述
Headsign string `json:"Headsign,omitempty"`
+ // String
+ //
// 車頭英文描述
HeadsignEn string `json:"HeadsignEn,omitempty"`
+ // String
+ //
// 假日去程第一班發車時間
HolidayFirstBusTime string `json:"HolidayFirstBusTime,omitempty"`
+ // String
+ //
// 假日返程第一班發車時間
HolidayLastBusTime string `json:"HolidayLastBusTime,omitempty"`
+ // String
+ //
// 平日返程第一班發車時間
LastBusTime string `json:"LastBusTime,omitempty"`
+ // Array
+ //
// 營運業者代碼
// Required: true
OperatorIDs []string `json:"OperatorIDs"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -55,15 +71,19 @@ type ServiceDTOVersion2BusBusSubRoute struct {
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
}
-// Validate validates this service d t o version2 bus bus sub route
-func (m *ServiceDTOVersion2BusBusSubRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus sub route
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -92,7 +112,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -101,7 +121,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateDirection(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateOperatorIDs(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateOperatorIDs(formats strfmt.Registry) error {
if err := validate.Required("OperatorIDs", "body", m.OperatorIDs); err != nil {
return err
@@ -110,7 +130,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateOperatorIDs(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -119,25 +139,12 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -147,7 +154,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteUID(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSubRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -155,8 +162,8 @@ func (m *ServiceDTOVersion2BusBusSubRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSubRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusSubRoute
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusSubRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
similarity index 64%
rename from tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
index c2a62822..5adcc4a8 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
@@ -14,29 +14,39 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusTimetable BusTimetable
+// PTXServiceDTOBusSpecificationV2BusTimetable BusTimetable
//
-// swagger:model Service.DTO.Version2.Bus.BusTimetable
-type ServiceDTOVersion2BusBusTimetable struct {
+// 班次資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusTimetable
+type PTXServiceDTOBusSpecificationV2BusTimetable struct {
// ServiceDay
//
// 週內營運日
- ServiceDay *ServiceDTOVersion2BusServiceDay `json:"ServiceDay,omitempty"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2ServiceDay
+ } `json:"ServiceDay,omitempty"`
+ // Array
+ //
// 特殊營運日
- SpecialDays []*ServiceDTOVersion2BusSpecialDay `json:"SpecialDays"`
+ SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"`
+ // Array
+ //
// 公車停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion2BusBusStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTOBusSpecificationV2BusStopTime `json:"StopTimes"`
+ // String
+ //
// 班次代碼,為無意義之編碼
TripID string `json:"TripID,omitempty"`
}
-// Validate validates this service d t o version2 bus bus timetable
-func (m *ServiceDTOVersion2BusBusTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus timetable
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateServiceDay(formats); err != nil {
@@ -57,25 +67,16 @@ func (m *ServiceDTOVersion2BusBusTimetable) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateServiceDay(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateServiceDay(formats strfmt.Registry) error {
if swag.IsZero(m.ServiceDay) { // not required
return nil
}
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateSpecialDays(formats strfmt.Registry) error {
if swag.IsZero(m.SpecialDays) { // not required
return nil
@@ -100,7 +101,7 @@ func (m *ServiceDTOVersion2BusBusTimetable) validateSpecialDays(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -126,7 +127,7 @@ func (m *ServiceDTOVersion2BusBusTimetable) validateStopTimes(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -134,8 +135,8 @@ func (m *ServiceDTOVersion2BusBusTimetable) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusTimetable
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go
similarity index 62%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go
index 242992c2..48e5fe0a 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_vehicle_info.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusVehicleInfo BusVehicleInfo
+// PTXServiceDTOBusSpecificationV2BusVehicleInfo BusVehicleInfo
//
// 公車車輛基本資料
//
-// swagger:model Service.DTO.Version2.Bus.BusVehicleInfo
-type ServiceDTOVersion2BusBusVehicleInfo struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo
+type PTXServiceDTOBusSpecificationV2BusVehicleInfo struct {
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
@@ -31,13 +33,13 @@ type ServiceDTOVersion2BusBusVehicleInfo struct {
// integer
//
- // 車輛種類 : [0:'一般',1:'低地板',2:'復康巴士',3:'小型巴士']
+ // 車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']
// Required: true
VehicleType *int32 `json:"VehicleType"`
}
-// Validate validates this service d t o version2 bus bus vehicle info
-func (m *ServiceDTOVersion2BusBusVehicleInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus vehicle info
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validatePlateNumb(formats); err != nil {
@@ -58,7 +60,7 @@ func (m *ServiceDTOVersion2BusBusVehicleInfo) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusBusVehicleInfo) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -67,7 +69,7 @@ func (m *ServiceDTOVersion2BusBusVehicleInfo) validatePlateNumb(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusVehicleInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -76,7 +78,7 @@ func (m *ServiceDTOVersion2BusBusVehicleInfo) validateUpdateTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusVehicleInfo) validateVehicleType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) validateVehicleType(formats strfmt.Registry) error {
if err := validate.Required("VehicleType", "body", m.VehicleType); err != nil {
return err
@@ -86,7 +88,7 @@ func (m *ServiceDTOVersion2BusBusVehicleInfo) validateVehicleType(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusVehicleInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -94,8 +96,8 @@ func (m *ServiceDTOVersion2BusBusVehicleInfo) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusVehicleInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusVehicleInfo
+func (m *PTXServiceDTOBusSpecificationV2BusVehicleInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusVehicleInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_version.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_version.go
similarity index 66%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_version.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_version.go
index c9c3dbaa..0803129b 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_version.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_version.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusVersion BusVersion
+// PTXServiceDTOBusSpecificationV2BusVersion BusVersion
//
// 公車版本資料型別
//
-// swagger:model Service.DTO.Version2.Bus.BusVersion
-type ServiceDTOVersion2BusBusVersion struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusVersion
+type PTXServiceDTOBusSpecificationV2BusVersion struct {
// DateTime
//
@@ -31,13 +31,15 @@ type ServiceDTOVersion2BusBusVersion struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 bus bus version
-func (m *ServiceDTOVersion2BusBusVersion) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus version
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateUpdateCheckTime(formats); err != nil {
@@ -58,7 +60,7 @@ func (m *ServiceDTOVersion2BusBusVersion) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusBusVersion) validateUpdateCheckTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) validateUpdateCheckTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateCheckTime", "body", m.UpdateCheckTime); err != nil {
return err
@@ -67,7 +69,7 @@ func (m *ServiceDTOVersion2BusBusVersion) validateUpdateCheckTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusBusVersion) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -76,7 +78,7 @@ func (m *ServiceDTOVersion2BusBusVersion) validateUpdateTime(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusVersion) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -86,7 +88,7 @@ func (m *ServiceDTOVersion2BusBusVersion) validateVersionID(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusVersion) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -94,8 +96,8 @@ func (m *ServiceDTOVersion2BusBusVersion) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusVersion) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusVersion
+func (m *PTXServiceDTOBusSpecificationV2BusVersion) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusVersion
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_date_period.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
similarity index 53%
rename from tourism/v2/models/service_d_t_o_version2_bus_date_period.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
index d7237249..c23aecf3 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_date_period.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
@@ -10,25 +10,29 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BusDatePeriod DatePeriod
+// PTXServiceDTOBusSpecificationV2DatePeriod DatePeriod
//
-// swagger:model Service.DTO.Version2.Bus.DatePeriod
-type ServiceDTOVersion2BusDatePeriod struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.DatePeriod
+type PTXServiceDTOBusSpecificationV2DatePeriod struct {
+ // String
+ //
// 營運結束日(格式: yyyy-MM-dd)
EndDate string `json:"EndDate,omitempty"`
+ // String
+ //
// 營運起始日(格式: yyyy-MM-dd)
StartDate string `json:"StartDate,omitempty"`
}
-// Validate validates this service d t o version2 bus date period
-func (m *ServiceDTOVersion2BusDatePeriod) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 date period
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusDatePeriod) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -36,8 +40,8 @@ func (m *ServiceDTOVersion2BusDatePeriod) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusDatePeriod) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusDatePeriod
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2DatePeriod
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_first_last_trip.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go
similarity index 56%
rename from bus/v2/models/service_d_t_o_version2_bus_first_last_trip.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go
index f3f39588..bd7f102f 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_first_last_trip.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_first_last_trip.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusFirstLastTrip FirstLastTrip
+// PTXServiceDTOBusSpecificationV2FirstLastTrip FirstLastTrip
//
// 首末班車資料型別
//
-// swagger:model Service.DTO.Version2.Bus.FirstLastTrip
-type ServiceDTOVersion2BusFirstLastTrip struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip
+type PTXServiceDTOBusSpecificationV2FirstLastTrip struct {
+ // String
+ //
// 頭班車發車時間(HH:mm)
// Required: true
FirstTripDepTime *string `json:"FirstTripDepTime"`
+ // String
+ //
// 末班車發車時間(HH:mm)
// Required: true
LastTripDepTime *string `json:"LastTripDepTime"`
@@ -31,11 +35,13 @@ type ServiceDTOVersion2BusFirstLastTrip struct {
//
// 服務日型態
// Required: true
- ServiceDay *ServiceDTOVersion2BusBusFirstLastTripInfoServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay
+ } `json:"ServiceDay"`
}
-// Validate validates this service d t o version2 bus first last trip
-func (m *ServiceDTOVersion2BusFirstLastTrip) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 first last trip
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFirstTripDepTime(formats); err != nil {
@@ -56,7 +62,7 @@ func (m *ServiceDTOVersion2BusFirstLastTrip) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2BusFirstLastTrip) validateFirstTripDepTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) validateFirstTripDepTime(formats strfmt.Registry) error {
if err := validate.Required("FirstTripDepTime", "body", m.FirstTripDepTime); err != nil {
return err
@@ -65,7 +71,7 @@ func (m *ServiceDTOVersion2BusFirstLastTrip) validateFirstTripDepTime(formats st
return nil
}
-func (m *ServiceDTOVersion2BusFirstLastTrip) validateLastTripDepTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) validateLastTripDepTime(formats strfmt.Registry) error {
if err := validate.Required("LastTripDepTime", "body", m.LastTripDepTime); err != nil {
return err
@@ -74,26 +80,13 @@ func (m *ServiceDTOVersion2BusFirstLastTrip) validateLastTripDepTime(formats str
return nil
}
-func (m *ServiceDTOVersion2BusFirstLastTrip) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) validateServiceDay(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusFirstLastTrip) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -101,8 +94,8 @@ func (m *ServiceDTOVersion2BusFirstLastTrip) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusFirstLastTrip) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusFirstLastTrip
+func (m *PTXServiceDTOBusSpecificationV2FirstLastTrip) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2FirstLastTrip
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go
similarity index 60%
rename from bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go
index b1471a5f..d3990167 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_n1_estimate.go
@@ -10,10 +10,10 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BusN1Estimate Estimate
+// PTXServiceDTOBusSpecificationV2N1Estimate Estimate
//
-// swagger:model Service.DTO.Version2.Bus.N1.Estimate
-type ServiceDTOVersion2BusN1Estimate struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.N1.Estimate
+type PTXServiceDTOBusSpecificationV2N1Estimate struct {
// 車輛之到站時間預估(秒)
EstimateTime int32 `json:"EstimateTime,omitempty"`
@@ -21,6 +21,8 @@ type ServiceDTOVersion2BusN1Estimate struct {
// 是否為末班車
IsLastBus bool `json:"IsLastBus,omitempty"`
+ // String
+ //
// 車輛車牌號碼
PlateNumb string `json:"PlateNumb,omitempty"`
@@ -30,13 +32,13 @@ type ServiceDTOVersion2BusN1Estimate struct {
VehicleStopStatus int32 `json:"VehicleStopStatus,omitempty"`
}
-// Validate validates this service d t o version2 bus n1 estimate
-func (m *ServiceDTOVersion2BusN1Estimate) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 n1 estimate
+func (m *PTXServiceDTOBusSpecificationV2N1Estimate) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusN1Estimate) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2N1Estimate) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -44,8 +46,8 @@ func (m *ServiceDTOVersion2BusN1Estimate) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusN1Estimate) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusN1Estimate
+func (m *PTXServiceDTOBusSpecificationV2N1Estimate) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2N1Estimate
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_route_operator.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
similarity index 58%
rename from bus/v2/models/service_d_t_o_version2_bus_route_operator.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
index b1d5e0a6..bd61ba67 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_route_operator.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusRouteOperator RouteOperator
+// PTXServiceDTOBusSpecificationV2RouteOperator RouteOperator
//
// 營運業者資訊
//
-// swagger:model Service.DTO.Version2.Bus.RouteOperator
-type ServiceDTOVersion2BusRouteOperator struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.RouteOperator
+type PTXServiceDTOBusSpecificationV2RouteOperator struct {
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -31,15 +35,19 @@ type ServiceDTOVersion2BusRouteOperator struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion2BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
}
-// Validate validates this service d t o version2 bus route operator
-func (m *ServiceDTOVersion2BusRouteOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 route operator
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -64,7 +72,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -73,7 +81,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorCode(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -82,25 +90,12 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -110,7 +105,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorNo(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusRouteOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +113,8 @@ func (m *ServiceDTOVersion2BusRouteOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusRouteOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusRouteOperator
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2RouteOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_section_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go
similarity index 65%
rename from bus/v2/models/service_d_t_o_version2_bus_section_fare.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go
index 725b8131..1613ff1d 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_section_fare.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare.go
@@ -14,24 +14,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusSectionFare SectionFare
+// PTXServiceDTOBusSpecificationV2SectionFare SectionFare
//
// 段次計費
//
-// swagger:model Service.DTO.Version2.Bus.SectionFare
-type ServiceDTOVersion2BusSectionFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare
+type PTXServiceDTOBusSpecificationV2SectionFare struct {
+ // Array
+ //
// 緩衝區資訊
// Required: true
- BufferZones []*ServiceDTOVersion2BusSectionFareBufferZone `json:"BufferZones"`
+ BufferZones []*PTXServiceDTOBusSpecificationV2SectionFareBufferZone `json:"BufferZones"`
+ // Array
+ //
// 每段收費資訊
// Required: true
- Fares []*ServiceDTOVersion2BusSectionFareFare `json:"Fares"`
+ Fares []*PTXServiceDTOBusSpecificationV2SectionFareFare `json:"Fares"`
}
-// Validate validates this service d t o version2 bus section fare
-func (m *ServiceDTOVersion2BusSectionFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 section fare
+func (m *PTXServiceDTOBusSpecificationV2SectionFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBufferZones(formats); err != nil {
@@ -48,7 +52,7 @@ func (m *ServiceDTOVersion2BusSectionFare) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusSectionFare) validateBufferZones(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFare) validateBufferZones(formats strfmt.Registry) error {
if err := validate.Required("BufferZones", "body", m.BufferZones); err != nil {
return err
@@ -73,7 +77,7 @@ func (m *ServiceDTOVersion2BusSectionFare) validateBufferZones(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusSectionFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -99,7 +103,7 @@ func (m *ServiceDTOVersion2BusSectionFare) validateFares(formats strfmt.Registry
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SectionFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -107,8 +111,8 @@ func (m *ServiceDTOVersion2BusSectionFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSectionFare
+func (m *PTXServiceDTOBusSpecificationV2SectionFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SectionFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_section_fare_buffer_zone.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go
similarity index 50%
rename from bus/v2/models/service_d_t_o_version2_bus_section_fare_buffer_zone.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go
index 3905c0f7..a1abd424 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_section_fare_buffer_zone.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_buffer_zone.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusSectionFareBufferZone BufferZone
+// PTXServiceDTOBusSpecificationV2SectionFareBufferZone BufferZone
//
-// swagger:model Service.DTO.Version2.Bus.SectionFare.BufferZone
-type ServiceDTOVersion2BusSectionFareBufferZone struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone
+type PTXServiceDTOBusSpecificationV2SectionFareBufferZone struct {
+ // String
+ //
// 收費緩衝區描述
BufferZoneDescription string `json:"BufferZoneDescription,omitempty"`
@@ -30,24 +32,32 @@ type ServiceDTOVersion2BusSectionFareBufferZone struct {
//
// 緩衝區訖點
// Required: true
- FareBufferZoneDestination *ServiceDTOVersion2BusSectionFareStop `json:"FareBufferZoneDestination"`
+ FareBufferZoneDestination struct {
+ PTXServiceDTOBusSpecificationV2SectionFareStop
+ } `json:"FareBufferZoneDestination"`
// Stop
//
// 緩衝區起點
// Required: true
- FareBufferZoneOrigin *ServiceDTOVersion2BusSectionFareStop `json:"FareBufferZoneOrigin"`
+ FareBufferZoneOrigin struct {
+ PTXServiceDTOBusSpecificationV2SectionFareStop
+ } `json:"FareBufferZoneOrigin"`
+ // Int32
+ //
// 緩衝區順序
// Required: true
SectionSequence *int32 `json:"SectionSequence"`
+ // String
+ //
// 緩衝區代號
ZoneID string `json:"ZoneID,omitempty"`
}
-// Validate validates this service d t o version2 bus section fare buffer zone
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 section fare buffer zone
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -72,7 +82,7 @@ func (m *ServiceDTOVersion2BusSectionFareBufferZone) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -81,43 +91,17 @@ func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateDirection(formats s
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateFareBufferZoneDestination(formats strfmt.Registry) error {
-
- if err := validate.Required("FareBufferZoneDestination", "body", m.FareBufferZoneDestination); err != nil {
- return err
- }
-
- if m.FareBufferZoneDestination != nil {
- if err := m.FareBufferZoneDestination.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneDestination")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) validateFareBufferZoneDestination(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateFareBufferZoneOrigin(formats strfmt.Registry) error {
-
- if err := validate.Required("FareBufferZoneOrigin", "body", m.FareBufferZoneOrigin); err != nil {
- return err
- }
-
- if m.FareBufferZoneOrigin != nil {
- if err := m.FareBufferZoneOrigin.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneOrigin")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) validateFareBufferZoneOrigin(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
if err := validate.Required("SectionSequence", "body", m.SectionSequence); err != nil {
return err
@@ -127,7 +111,7 @@ func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateSectionSequence(for
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -135,8 +119,8 @@ func (m *ServiceDTOVersion2BusSectionFareBufferZone) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareBufferZone) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSectionFareBufferZone
+func (m *PTXServiceDTOBusSpecificationV2SectionFareBufferZone) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SectionFareBufferZone
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_section_fare_fare.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go
similarity index 65%
rename from bus/v2/models/service_d_t_o_version2_bus_section_fare_fare.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go
index 18ef33b2..10ba1f4c 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_section_fare_fare.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_fare.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusSectionFareFare Fare
+// PTXServiceDTOBusSpecificationV2SectionFareFare Fare
//
-// swagger:model Service.DTO.Version2.Bus.SectionFare.Fare
-type ServiceDTOVersion2BusSectionFareFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare
+type PTXServiceDTOBusSpecificationV2SectionFareFare struct {
// integer
//
@@ -23,7 +23,9 @@ type ServiceDTOVersion2BusSectionFareFare struct {
// Required: true
FareClass *int32 `json:"FareClass"`
- // 計費價格
+ // Int32
+ //
+ // 計費價格(新台幣),其中-1表示不提供售票服務
// Required: true
Price *int32 `json:"Price"`
@@ -34,8 +36,8 @@ type ServiceDTOVersion2BusSectionFareFare struct {
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version2 bus section fare fare
-func (m *ServiceDTOVersion2BusSectionFareFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 section fare fare
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFareClass(formats); err != nil {
@@ -56,7 +58,7 @@ func (m *ServiceDTOVersion2BusSectionFareFare) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -65,7 +67,7 @@ func (m *ServiceDTOVersion2BusSectionFareFare) validateFareClass(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -74,7 +76,7 @@ func (m *ServiceDTOVersion2BusSectionFareFare) validatePrice(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusSectionFareFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -84,7 +86,7 @@ func (m *ServiceDTOVersion2BusSectionFareFare) validateTicketType(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -92,8 +94,8 @@ func (m *ServiceDTOVersion2BusSectionFareFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSectionFareFare
+func (m *PTXServiceDTOBusSpecificationV2SectionFareFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SectionFareFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go
similarity index 55%
rename from bus/v3/models/service_d_t_o_version3_bus_route_stop.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go
index 1e3377d2..795797f7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_stop.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_section_fare_stop.go
@@ -12,24 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRouteStop Stop
+// PTXServiceDTOBusSpecificationV2SectionFareStop Stop
//
-// swagger:model Service.DTO.Version3.Bus.Route.Stop
-type ServiceDTOVersion3BusRouteStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop
+type PTXServiceDTOBusSpecificationV2SectionFareStop struct {
- // 站牌代碼
+ // String
+ //
+ // 緩衝區站牌代碼
// Required: true
StopID *string `json:"StopID"`
- // NameType
+ // String
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName *string `json:"StopName"`
}
-// Validate validates this service d t o version3 bus route stop
-func (m *ServiceDTOVersion3BusRouteStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 section fare stop
+func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -46,7 +48,7 @@ func (m *ServiceDTOVersion3BusRouteStop) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusRouteStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -55,26 +57,17 @@ func (m *ServiceDTOVersion3BusRouteStop) validateStopID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusRouteStop) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) validateStopName(formats strfmt.Registry) error {
if err := validate.Required("StopName", "body", m.StopName); err != nil {
return err
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -82,8 +75,8 @@ func (m *ServiceDTOVersion3BusRouteStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRouteStop
+func (m *PTXServiceDTOBusSpecificationV2SectionFareStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SectionFareStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_service_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
similarity index 69%
rename from bus/v2/models/service_d_t_o_version2_bus_service_day.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
index a7f38a49..06785263 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_service_day.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
@@ -12,10 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusServiceDay ServiceDay
+// PTXServiceDTOBusSpecificationV2ServiceDay ServiceDay
//
-// swagger:model Service.DTO.Version2.Bus.ServiceDay
-type ServiceDTOVersion2BusServiceDay struct {
+// 週內營運日資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.ServiceDay
+type PTXServiceDTOBusSpecificationV2ServiceDay struct {
// integer
//
@@ -65,8 +67,8 @@ type ServiceDTOVersion2BusServiceDay struct {
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version2 bus service day
-func (m *ServiceDTOVersion2BusServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 service day
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -103,7 +105,7 @@ func (m *ServiceDTOVersion2BusServiceDay) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -112,7 +114,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateFriday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -121,7 +123,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateMonday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -130,7 +132,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateSaturday(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -139,7 +141,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateSunday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -148,7 +150,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateThursday(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -157,7 +159,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateTuesday(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -167,7 +169,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateWednesday(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -175,8 +177,8 @@ func (m *ServiceDTOVersion2BusServiceDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusServiceDay
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2ServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_special_day.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
similarity index 59%
rename from bus/v2/models/service_d_t_o_version2_bus_special_day.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
index 1e6320de..56d4062f 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_special_day.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
@@ -11,19 +11,27 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BusSpecialDay SpecialDay
+// PTXServiceDTOBusSpecificationV2SpecialDay SpecialDay
//
-// swagger:model Service.DTO.Version2.Bus.SpecialDay
-type ServiceDTOVersion2BusSpecialDay struct {
+// 特殊營運日資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SpecialDay
+type PTXServiceDTOBusSpecificationV2SpecialDay struct {
// DatePeriod
//
// 連續特殊日期
- DatePeriod *ServiceDTOVersion2BusDatePeriod `json:"DatePeriod,omitempty"`
+ DatePeriod struct {
+ PTXServiceDTOBusSpecificationV2DatePeriod
+ } `json:"DatePeriod,omitempty"`
+ // Array
+ //
// 不連續特殊日期
Dates []string `json:"Dates"`
+ // String
+ //
// 特殊營運描述
Description string `json:"Description,omitempty"`
@@ -33,8 +41,8 @@ type ServiceDTOVersion2BusSpecialDay struct {
ServiceStatus int32 `json:"ServiceStatus,omitempty"`
}
-// Validate validates this service d t o version2 bus special day
-func (m *ServiceDTOVersion2BusSpecialDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 special day
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDatePeriod(formats); err != nil {
@@ -47,26 +55,17 @@ func (m *ServiceDTOVersion2BusSpecialDay) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusSpecialDay) validateDatePeriod(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) validateDatePeriod(formats strfmt.Registry) error {
if swag.IsZero(m.DatePeriod) { // not required
return nil
}
- if m.DatePeriod != nil {
- if err := m.DatePeriod.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DatePeriod")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSpecialDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -74,8 +73,8 @@ func (m *ServiceDTOVersion2BusSpecialDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSpecialDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSpecialDay
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SpecialDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go
new file mode 100644
index 00000000..526a8779
--- /dev/null
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_station_stop.go
@@ -0,0 +1,159 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV2StationStop StationStop
+//
+// 站牌與路線資料型別
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.StationStop
+type PTXServiceDTOBusSpecificationV2StationStop struct {
+
+ // String
+ //
+ // 地區既用中之路線代碼(為原資料內碼)
+ // Required: true
+ RouteID *string `json:"RouteID"`
+
+ // NameType
+ //
+ // 路線名稱
+ // Required: true
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
+
+ // String
+ //
+ // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
+ // Required: true
+ RouteUID *string `json:"RouteUID"`
+
+ // String
+ //
+ // 地區既用中之站牌代碼(為原資料內碼)
+ // Required: true
+ StopID *string `json:"StopID"`
+
+ // NameType
+ //
+ // 站牌名稱
+ // Required: true
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
+
+ // String
+ //
+ // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
+ // Required: true
+ StopUID *string `json:"StopUID"`
+}
+
+// Validate validates this p t x service d t o bus specification v2 station stop
+func (m *PTXServiceDTOBusSpecificationV2StationStop) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateRouteID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRouteName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRouteUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateRouteID(formats strfmt.Registry) error {
+
+ if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateRouteName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateRouteUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateStopID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopID", "body", m.StopID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateStopName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2StationStop) validateStopUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV2StationStop) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV2StationStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2StationStop
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_stop.go b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go
similarity index 61%
rename from tourism/v2/models/service_d_t_o_version2_bus_stop.go
rename to bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go
index ceeff00a..4e79ce43 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_stop.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go
@@ -12,20 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusStop Stop
+// PTXServiceDTOBusSpecificationV2Stop Stop
//
// 站牌代碼資料
//
-// swagger:model Service.DTO.Version2.Bus.Stop
-type ServiceDTOVersion2BusStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.Stop
+type PTXServiceDTOBusSpecificationV2Stop struct {
+ // String
+ //
// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
LocationCityCode string `json:"LocationCityCode,omitempty"`
+ // String
+ //
// 站牌所屬的組站位ID
// Required: true
StationGroupID *string `json:"StationGroupID"`
+ // String
+ //
// 站牌所屬的站位ID
StationID string `json:"StationID,omitempty"`
@@ -34,6 +40,8 @@ type ServiceDTOVersion2BusStop struct {
// 上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']
StopBoarding int32 `json:"StopBoarding,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -42,25 +50,33 @@ type ServiceDTOVersion2BusStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
// PointType
//
// 站牌位置
// Required: true
- StopPosition *ServiceDTOVersion2BasePointType `json:"StopPosition"`
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StopPosition"`
+ // Int32
+ //
// 路線經過站牌之順序
// Required: true
StopSequence *int32 `json:"StopSequence"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version2 bus stop
-func (m *ServiceDTOVersion2BusStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 stop
+func (m *PTXServiceDTOBusSpecificationV2Stop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationGroupID(formats); err != nil {
@@ -93,7 +109,7 @@ func (m *ServiceDTOVersion2BusStop) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStationGroupID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStationGroupID(formats strfmt.Registry) error {
if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
return err
@@ -102,7 +118,7 @@ func (m *ServiceDTOVersion2BusStop) validateStationGroupID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -111,43 +127,17 @@ func (m *ServiceDTOVersion2BusStop) validateStopID(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStopPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
- return err
- }
-
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -156,7 +146,7 @@ func (m *ServiceDTOVersion2BusStop) validateStopSequence(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusStop) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -166,7 +156,7 @@ func (m *ServiceDTOVersion2BusStop) validateStopUID(formats strfmt.Registry) err
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2Stop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -174,8 +164,8 @@ func (m *ServiceDTOVersion2BusStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusStop
+func (m *PTXServiceDTOBusSpecificationV2Stop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2Stop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_base_name_type.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
similarity index 50%
rename from bus/v2/models/service_d_t_o_version2_base_name_type.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
index 56abdf5a..ae2f0ea5 100644
--- a/bus/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
@@ -10,27 +10,31 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BaseNameType NameType
+// PTXServiceDTOSharedSpecificationV2BaseNameType NameType
//
// 名稱資料型別
//
-// swagger:model Service.DTO.Version2.Base.NameType
-type ServiceDTOVersion2BaseNameType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.NameType
+type PTXServiceDTOSharedSpecificationV2BaseNameType struct {
+ // String
+ //
// 英文名稱
En string `json:"En,omitempty"`
+ // String
+ //
// 中文繁體名稱
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version2 base name type
-func (m *ServiceDTOVersion2BaseNameType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base name type
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +42,8 @@ func (m *ServiceDTOVersion2BaseNameType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseNameType
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseNameType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_base_operator.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
similarity index 65%
rename from rail/v2/models/service_d_t_o_version2_base_operator.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
index 910f2faa..84cf731f 100644
--- a/rail/v2/models/service_d_t_o_version2_base_operator.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
@@ -12,24 +12,32 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BaseOperator Operator
+// PTXServiceDTOSharedSpecificationV2BaseOperator Operator
//
// 營運業者資料型別
//
-// swagger:model Service.DTO.Version2.Base.Operator
-type ServiceDTOVersion2BaseOperator struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Operator
+type PTXServiceDTOSharedSpecificationV2BaseOperator struct {
- // 營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)
+ // String
+ //
+ // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者電子信箱
OperatorEmail string `json:"OperatorEmail,omitempty"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -38,28 +46,44 @@ type ServiceDTOVersion2BaseOperator struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion2BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
+ // String
+ //
// 營運業者連絡電話
OperatorPhone string `json:"OperatorPhone,omitempty"`
+ // String
+ //
// 營運業者網址鏈結
OperatorURL string `json:"OperatorUrl,omitempty"`
+ // String
+ //
// 資料提供平台代碼
// Required: true
ProviderID *string `json:"ProviderID"`
+ // String
+ //
// 訂票連絡電話
ReservationPhone string `json:"ReservationPhone,omitempty"`
+ // String
+ //
// 訂票網址鏈結
ReservationURL string `json:"ReservationUrl,omitempty"`
+ // String
+ //
// 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)
SubAuthorityCode string `json:"SubAuthorityCode,omitempty"`
@@ -70,8 +94,8 @@ type ServiceDTOVersion2BaseOperator struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 base operator
-func (m *ServiceDTOVersion2BaseOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base operator
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -108,7 +132,7 @@ func (m *ServiceDTOVersion2BaseOperator) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -117,7 +141,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateAuthorityCode(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -126,7 +150,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorCode(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -135,25 +159,12 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -162,7 +173,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorNo(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateProviderID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateProviderID(formats strfmt.Registry) error {
if err := validate.Required("ProviderID", "body", m.ProviderID); err != nil {
return err
@@ -171,7 +182,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateProviderID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -181,7 +192,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -189,8 +200,8 @@ func (m *ServiceDTOVersion2BaseOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseOperator
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_base_point_type.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
similarity index 50%
rename from bus/v2/models/service_d_t_o_version2_base_point_type.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
index 171a47ea..33cfe90a 100644
--- a/bus/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
@@ -10,12 +10,17 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BasePointType PointType
+// PTXServiceDTOSharedSpecificationV2BasePointType PointType
//
// 座標資料型別
//
-// swagger:model Service.DTO.Version2.Base.PointType
-type ServiceDTOVersion2BasePointType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.PointType
+type PTXServiceDTOSharedSpecificationV2BasePointType struct {
+
+ // String
+ //
+ // 地理空間編碼
+ GeoHash string `json:"GeoHash,omitempty"`
// 位置緯度(WGS84)
PositionLat float64 `json:"PositionLat,omitempty"`
@@ -24,13 +29,13 @@ type ServiceDTOVersion2BasePointType struct {
PositionLon float64 `json:"PositionLon,omitempty"`
}
-// Validate validates this service d t o version2 base point type
-func (m *ServiceDTOVersion2BasePointType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base point type
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +43,8 @@ func (m *ServiceDTOVersion2BasePointType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BasePointType
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BasePointType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_base_display_health.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
similarity index 54%
rename from bus/v3/models/service_d_t_o_version3_base_display_health.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
index eb4bf9e7..181998f1 100644
--- a/bus/v3/models/service_d_t_o_version3_base_display_health.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
@@ -12,34 +12,42 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseDisplayHealth DisplayHealth
+// PTXServiceDTOSharedSpecificationV3BaseDisplayHealth DisplayHealth
//
// API服務健康狀態
//
-// swagger:model Service.DTO.Version3.Base.DisplayHealth
-type ServiceDTOVersion3BaseDisplayHealth struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth
+type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct {
// Inbound
//
// 本平台資料來源轉入狀態
- Inbound *ServiceDTOVersion3BaseInbound `json:"Inbound,omitempty"`
+ Inbound struct {
+ PTXServiceDTOSharedSpecificationV3BaseInbound
+ } `json:"Inbound,omitempty"`
// Outbound
//
// 本平台API狀態
- Outbound *ServiceDTOVersion3BaseOutbound `json:"Outbound,omitempty"`
+ Outbound struct {
+ PTXServiceDTOSharedSpecificationV3BaseOutbound
+ } `json:"Outbound,omitempty"`
+ // String
+ //
// API服務代碼
// Required: true
ServiceID *string `json:"ServiceID"`
+ // String
+ //
// API服務中文名稱
// Required: true
ServiceName *string `json:"ServiceName"`
}
-// Validate validates this service d t o version3 base display health
-func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base display health
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateInbound(formats); err != nil {
@@ -64,43 +72,25 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
if swag.IsZero(m.Inbound) { // not required
return nil
}
- if m.Inbound != nil {
- if err := m.Inbound.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Inbound")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
if swag.IsZero(m.Outbound) { // not required
return nil
}
- if m.Outbound != nil {
- if err := m.Outbound.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Outbound")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
if err := validate.Required("ServiceID", "body", m.ServiceID); err != nil {
return err
@@ -109,7 +99,7 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
if err := validate.Required("ServiceName", "body", m.ServiceName); err != nil {
return err
@@ -119,7 +109,7 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +117,8 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseDisplayHealth
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version3_base_inbound.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
similarity index 62%
rename from bus/v2/models/service_d_t_o_version3_base_inbound.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
index a12b34a2..a8272315 100644
--- a/bus/v2/models/service_d_t_o_version3_base_inbound.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseInbound Inbound
+// PTXServiceDTOSharedSpecificationV3BaseInbound Inbound
//
// 本平台資料來源轉入狀態
//
-// swagger:model Service.DTO.Version3.Base.Inbound
-type ServiceDTOVersion3BaseInbound struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Inbound
+type PTXServiceDTOSharedSpecificationV3BaseInbound struct {
// DateTime
//
@@ -25,6 +25,8 @@ type ServiceDTOVersion3BaseInbound struct {
// Required: true
CheckTime *string `json:"CheckTime"`
+ // String
+ //
// 檢核失敗原因
Reason string `json:"Reason,omitempty"`
@@ -35,8 +37,8 @@ type ServiceDTOVersion3BaseInbound struct {
Status *int32 `json:"Status"`
}
-// Validate validates this service d t o version3 base inbound
-func (m *ServiceDTOVersion3BaseInbound) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base inbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCheckTime(formats); err != nil {
@@ -53,7 +55,7 @@ func (m *ServiceDTOVersion3BaseInbound) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BaseInbound) validateCheckTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) validateCheckTime(formats strfmt.Registry) error {
if err := validate.Required("CheckTime", "body", m.CheckTime); err != nil {
return err
@@ -62,7 +64,7 @@ func (m *ServiceDTOVersion3BaseInbound) validateCheckTime(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BaseInbound) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -72,7 +74,7 @@ func (m *ServiceDTOVersion3BaseInbound) validateStatus(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseInbound) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -80,8 +82,8 @@ func (m *ServiceDTOVersion3BaseInbound) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseInbound) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseInbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseInbound
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_base_outbound.go b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
similarity index 61%
rename from bus/v3/models/service_d_t_o_version3_base_outbound.go
rename to bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
index a4385337..c5028d96 100644
--- a/bus/v3/models/service_d_t_o_version3_base_outbound.go
+++ b/bus/v2/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseOutbound Outbound
+// PTXServiceDTOSharedSpecificationV3BaseOutbound Outbound
//
// 本平台API狀態
//
-// swagger:model Service.DTO.Version3.Base.Outbound
-type ServiceDTOVersion3BaseOutbound struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Outbound
+type PTXServiceDTOSharedSpecificationV3BaseOutbound struct {
// DateTime
//
@@ -25,6 +25,8 @@ type ServiceDTOVersion3BaseOutbound struct {
// Required: true
CheckTime *string `json:"CheckTime"`
+ // String
+ //
// 檢核失敗原因
Reason string `json:"Reason,omitempty"`
@@ -35,8 +37,8 @@ type ServiceDTOVersion3BaseOutbound struct {
Status *int32 `json:"Status"`
}
-// Validate validates this service d t o version3 base outbound
-func (m *ServiceDTOVersion3BaseOutbound) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base outbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCheckTime(formats); err != nil {
@@ -53,7 +55,7 @@ func (m *ServiceDTOVersion3BaseOutbound) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BaseOutbound) validateCheckTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) validateCheckTime(formats strfmt.Registry) error {
if err := validate.Required("CheckTime", "body", m.CheckTime); err != nil {
return err
@@ -62,7 +64,7 @@ func (m *ServiceDTOVersion3BaseOutbound) validateCheckTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BaseOutbound) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -72,7 +74,7 @@ func (m *ServiceDTOVersion3BaseOutbound) validateStatus(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseOutbound) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -80,8 +82,8 @@ func (m *ServiceDTOVersion3BaseOutbound) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseOutbound) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseOutbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseOutbound
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_section_fare_stop.go b/bus/v2/models/service_d_t_o_version2_bus_section_fare_stop.go
deleted file mode 100644
index 2d92fe18..00000000
--- a/bus/v2/models/service_d_t_o_version2_bus_section_fare_stop.go
+++ /dev/null
@@ -1,67 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2BusSectionFareStop Stop
-//
-// swagger:model Service.DTO.Version2.Bus.SectionFare.Stop
-type ServiceDTOVersion2BusSectionFareStop struct {
-
- // 緩衝區站牌代碼
- // Required: true
- StopID *string `json:"StopID"`
-
- // 站牌名稱
- StopName string `json:"StopName,omitempty"`
-}
-
-// Validate validates this service d t o version2 bus section fare stop
-func (m *ServiceDTOVersion2BusSectionFareStop) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStopID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2BusSectionFareStop) validateStopID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopID", "body", m.StopID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareStop) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSectionFareStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSectionFareStop
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_station_stop.go b/bus/v2/models/service_d_t_o_version2_bus_station_stop.go
deleted file mode 100644
index 941cbe68..00000000
--- a/bus/v2/models/service_d_t_o_version2_bus_station_stop.go
+++ /dev/null
@@ -1,117 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2BusStationStop StationStop
-//
-// 站牌與路線資料型別
-//
-// swagger:model Service.DTO.Version2.Bus.StationStop
-type ServiceDTOVersion2BusStationStop struct {
-
- // 地區既用中之路線代碼(為原資料內碼)
- RouteID string `json:"RouteID,omitempty"`
-
- // NameType
- //
- // 路線名稱
- // Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
-
- // 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
- RouteUID string `json:"RouteUID,omitempty"`
-
- // 地區既用中之站牌代碼(為原資料內碼)
- StopID string `json:"StopID,omitempty"`
-
- // NameType
- //
- // 站牌名稱
- // Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
-
- // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
- StopUID string `json:"StopUID,omitempty"`
-}
-
-// Validate validates this service d t o version2 bus station stop
-func (m *ServiceDTOVersion2BusStationStop) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateRouteName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopName(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStationStop) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStationStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStationStop) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStationStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusStationStop
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_stop.go b/bus/v2/models/service_d_t_o_version2_bus_stop.go
deleted file mode 100644
index ceeff00a..00000000
--- a/bus/v2/models/service_d_t_o_version2_bus_stop.go
+++ /dev/null
@@ -1,184 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2BusStop Stop
-//
-// 站牌代碼資料
-//
-// swagger:model Service.DTO.Version2.Bus.Stop
-type ServiceDTOVersion2BusStop struct {
-
- // 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
- LocationCityCode string `json:"LocationCityCode,omitempty"`
-
- // 站牌所屬的組站位ID
- // Required: true
- StationGroupID *string `json:"StationGroupID"`
-
- // 站牌所屬的站位ID
- StationID string `json:"StationID,omitempty"`
-
- // integer
- //
- // 上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']
- StopBoarding int32 `json:"StopBoarding,omitempty"`
-
- // 地區既用中之站牌代碼(為原資料內碼)
- // Required: true
- StopID *string `json:"StopID"`
-
- // NameType
- //
- // 站牌名稱
- // Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
-
- // PointType
- //
- // 站牌位置
- // Required: true
- StopPosition *ServiceDTOVersion2BasePointType `json:"StopPosition"`
-
- // 路線經過站牌之順序
- // Required: true
- StopSequence *int32 `json:"StopSequence"`
-
- // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
- // Required: true
- StopUID *string `json:"StopUID"`
-}
-
-// Validate validates this service d t o version2 bus stop
-func (m *ServiceDTOVersion2BusStop) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStationGroupID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopPosition(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopSequence(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopUID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStationGroupID(formats strfmt.Registry) error {
-
- if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStopID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopID", "body", m.StopID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStopPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
- return err
- }
-
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStopSequence(formats strfmt.Registry) error {
-
- if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2BusStop) validateStopUID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStop) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusStop
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_alert_parameters.go b/bus/v3/client/city_bus/city_bus_api_alert_parameters.go
index ad5290f6..d3fd42ef 100644
--- a/bus/v3/client/city_bus/city_bus_api_alert_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_alert_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIAlertParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPIAlertParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api alert params
-func (o *CityBusAPIAlertParams) WithDollarCount(dollarCount *string) *CityBusAPIAlertParams {
+func (o *CityBusAPIAlertParams) WithDollarCount(dollarCount *bool) *CityBusAPIAlertParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api alert params
-func (o *CityBusAPIAlertParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIAlertParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPIAlertParams) WriteToRequest(r runtime.ClientRequest, reg strf
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_alert_responses.go b/bus/v3/client/city_bus/city_bus_api_alert_responses.go
index 3d08cf90..471a7282 100644
--- a/bus/v3/client/city_bus/city_bus_api_alert_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_alert_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIAlertOK() *CityBusAPIAlertOK {
/*CityBusAPIAlertOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIAlertOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusAlert
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert
}
func (o *CityBusAPIAlertOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Alert/City/{City}][%d] cityBusApiAlertOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIAlertOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusAlert {
+func (o *CityBusAPIAlertOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert {
return o.Payload
}
func (o *CityBusAPIAlertOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusAlert)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIAlertStatus299() *CityBusAPIAlertStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIAlertStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIAlertStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Alert/City/{City}][%d] cityBusApiAlertStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIAlertStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIAlertStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIAlertStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_daily_time_table_parameters.go b/bus/v3/client/city_bus/city_bus_api_daily_time_table_parameters.go
index 3cace527..97f79fa5 100644
--- a/bus/v3/client/city_bus/city_bus_api_daily_time_table_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_daily_time_table_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIDailyTimeTableParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPIDailyTimeTableParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api daily time table params
-func (o *CityBusAPIDailyTimeTableParams) WithDollarCount(dollarCount *string) *CityBusAPIDailyTimeTableParams {
+func (o *CityBusAPIDailyTimeTableParams) WithDollarCount(dollarCount *bool) *CityBusAPIDailyTimeTableParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api daily time table params
-func (o *CityBusAPIDailyTimeTableParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIDailyTimeTableParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPIDailyTimeTableParams) WriteToRequest(r runtime.ClientRequest,
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_daily_time_table_responses.go b/bus/v3/client/city_bus/city_bus_api_daily_time_table_responses.go
index 8571d762..cf167b09 100644
--- a/bus/v3/client/city_bus/city_bus_api_daily_time_table_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_daily_time_table_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIDailyTimeTableOK() *CityBusAPIDailyTimeTableOK {
/*CityBusAPIDailyTimeTableOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIDailyTimeTableOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable
}
func (o *CityBusAPIDailyTimeTableOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/DailyTimeTable/City/{City}][%d] cityBusApiDailyTimeTableOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIDailyTimeTableOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable {
+func (o *CityBusAPIDailyTimeTableOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable {
return o.Payload
}
func (o *CityBusAPIDailyTimeTableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIDailyTimeTableStatus299() *CityBusAPIDailyTimeTableStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDailyTimeTableStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIDailyTimeTableStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/DailyTimeTable/City/{City}][%d] cityBusApiDailyTimeTableStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIDailyTimeTableStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIDailyTimeTableStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDailyTimeTableStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_depot_parameters.go b/bus/v3/client/city_bus/city_bus_api_depot_parameters.go
index f36221ba..645b86ff 100644
--- a/bus/v3/client/city_bus/city_bus_api_depot_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_depot_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIDepotParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type CityBusAPIDepotParams struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -158,13 +163,13 @@ func (o *CityBusAPIDepotParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api depot params
-func (o *CityBusAPIDepotParams) WithDollarCount(dollarCount *string) *CityBusAPIDepotParams {
+func (o *CityBusAPIDepotParams) WithDollarCount(dollarCount *bool) *CityBusAPIDepotParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api depot params
-func (o *CityBusAPIDepotParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIDepotParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -223,6 +228,17 @@ func (o *CityBusAPIDepotParams) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api depot params
+func (o *CityBusAPIDepotParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *CityBusAPIDepotParams {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api depot params
+func (o *CityBusAPIDepotParams) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
// WithDollarTop adds the dollarTop to the city bus Api depot params
func (o *CityBusAPIDepotParams) WithDollarTop(dollarTop *int64) *CityBusAPIDepotParams {
o.SetDollarTop(dollarTop)
@@ -267,11 +283,11 @@ func (o *CityBusAPIDepotParams) WriteToRequest(r runtime.ClientRequest, reg strf
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -353,6 +369,22 @@ func (o *CityBusAPIDepotParams) WriteToRequest(r runtime.ClientRequest, reg strf
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/bus/v3/client/city_bus/city_bus_api_depot_responses.go b/bus/v3/client/city_bus/city_bus_api_depot_responses.go
index 7e337c4c..2d86adab 100644
--- a/bus/v3/client/city_bus/city_bus_api_depot_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_depot_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIDepotOK() *CityBusAPIDepotOK {
/*CityBusAPIDepotOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIDepotOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusDepot
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot
}
func (o *CityBusAPIDepotOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Depot/City/{City}][%d] cityBusApiDepotOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIDepotOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusDepot {
+func (o *CityBusAPIDepotOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot {
return o.Payload
}
func (o *CityBusAPIDepotOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusDepot)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIDepotStatus299() *CityBusAPIDepotStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDepotStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIDepotStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Depot/City/{City}][%d] cityBusApiDepotStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIDepotStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIDepotStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDepotStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_display_stop_of_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_parameters.go
similarity index 59%
rename from bus/v3/client/city_bus/city_bus_api_display_stop_of_route_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_parameters.go
index d5e61435..15678ae7 100644
--- a/bus/v3/client/city_bus/city_bus_api_display_stop_of_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIDisplayStopOfRouteParams creates a new CityBusAPIDisplayStopOfRouteParams object
+// NewCityBusAPIDisplayStopOfRoute2Params creates a new CityBusAPIDisplayStopOfRoute2Params object
// with the default values initialized.
-func NewCityBusAPIDisplayStopOfRouteParams() *CityBusAPIDisplayStopOfRouteParams {
+func NewCityBusAPIDisplayStopOfRoute2Params() *CityBusAPIDisplayStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIDisplayStopOfRouteParams{
+ return &CityBusAPIDisplayStopOfRoute2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIDisplayStopOfRouteParamsWithTimeout creates a new CityBusAPIDisplayStopOfRouteParams object
+// NewCityBusAPIDisplayStopOfRoute2ParamsWithTimeout creates a new CityBusAPIDisplayStopOfRoute2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIDisplayStopOfRouteParamsWithTimeout(timeout time.Duration) *CityBusAPIDisplayStopOfRouteParams {
+func NewCityBusAPIDisplayStopOfRoute2ParamsWithTimeout(timeout time.Duration) *CityBusAPIDisplayStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIDisplayStopOfRouteParams{
+ return &CityBusAPIDisplayStopOfRoute2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIDisplayStopOfRouteParamsWithContext creates a new CityBusAPIDisplayStopOfRouteParams object
+// NewCityBusAPIDisplayStopOfRoute2ParamsWithContext creates a new CityBusAPIDisplayStopOfRoute2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIDisplayStopOfRouteParamsWithContext(ctx context.Context) *CityBusAPIDisplayStopOfRouteParams {
+func NewCityBusAPIDisplayStopOfRoute2ParamsWithContext(ctx context.Context) *CityBusAPIDisplayStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIDisplayStopOfRouteParams{
+ return &CityBusAPIDisplayStopOfRoute2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIDisplayStopOfRouteParamsWithHTTPClient creates a new CityBusAPIDisplayStopOfRouteParams object
+// NewCityBusAPIDisplayStopOfRoute2ParamsWithHTTPClient creates a new CityBusAPIDisplayStopOfRoute2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIDisplayStopOfRouteParamsWithHTTPClient(client *http.Client) *CityBusAPIDisplayStopOfRouteParams {
+func NewCityBusAPIDisplayStopOfRoute2ParamsWithHTTPClient(client *http.Client) *CityBusAPIDisplayStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIDisplayStopOfRouteParams{
+ return &CityBusAPIDisplayStopOfRoute2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIDisplayStopOfRouteParams contains all the parameters to send to the API endpoint
-for the city bus Api display stop of route operation typically these are written to a http.Request
+/*CityBusAPIDisplayStopOfRoute2Params contains all the parameters to send to the API endpoint
+for the city bus Api display stop of route 2 operation typically these are written to a http.Request
*/
-type CityBusAPIDisplayStopOfRouteParams struct {
+type CityBusAPIDisplayStopOfRoute2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIDisplayStopOfRouteParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithTimeout(timeout time.Duration) *CityBusAPIDisplayStopOfRouteParams {
+// WithTimeout adds the timeout to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithTimeout(timeout time.Duration) *CityBusAPIDisplayStopOfRoute2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithContext(ctx context.Context) *CityBusAPIDisplayStopOfRouteParams {
+// WithContext adds the context to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithContext(ctx context.Context) *CityBusAPIDisplayStopOfRoute2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithHTTPClient(client *http.Client) *CityBusAPIDisplayStopOfRouteParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithHTTPClient(client *http.Client) *CityBusAPIDisplayStopOfRoute2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarCount(dollarCount *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarCount adds the dollarCount to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarCount(dollarCount *bool) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarFilter(dollarFilter *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarFormat(dollarFormat string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarFormat(dollarFormat string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarSelect(dollarSelect *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarSkip(dollarSkip *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithDollarTop(dollarTop *int64) *CityBusAPIDisplayStopOfRouteParams {
+// WithDollarTop adds the dollarTop to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithDollarTop(dollarTop *int64) *CityBusAPIDisplayStopOfRoute2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithCity(city string) *CityBusAPIDisplayStopOfRouteParams {
+// WithCity adds the city to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithCity(city string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) WithHealth(health *string) *CityBusAPIDisplayStopOfRouteParams {
+// WithHealth adds the health to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) WithHealth(health *string) *CityBusAPIDisplayStopOfRoute2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api display stop of route params
-func (o *CityBusAPIDisplayStopOfRouteParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api display stop of route 2 params
+func (o *CityBusAPIDisplayStopOfRoute2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIDisplayStopOfRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIDisplayStopOfRoute2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIDisplayStopOfRouteParams) WriteToRequest(r runtime.ClientRequ
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_responses.go b/bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_responses.go
new file mode 100644
index 00000000..df408ae1
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_display_stop_of_route2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIDisplayStopOfRoute2Reader is a Reader for the CityBusAPIDisplayStopOfRoute2 structure.
+type CityBusAPIDisplayStopOfRoute2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIDisplayStopOfRoute2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIDisplayStopOfRoute2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIDisplayStopOfRoute2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIDisplayStopOfRoute2OK creates a CityBusAPIDisplayStopOfRoute2OK with default headers values
+func NewCityBusAPIDisplayStopOfRoute2OK() *CityBusAPIDisplayStopOfRoute2OK {
+ return &CityBusAPIDisplayStopOfRoute2OK{}
+}
+
+/*CityBusAPIDisplayStopOfRoute2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIDisplayStopOfRoute2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRoute2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute {
+ return o.Payload
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIDisplayStopOfRoute2Status299 creates a CityBusAPIDisplayStopOfRoute2Status299 with default headers values
+func NewCityBusAPIDisplayStopOfRoute2Status299() *CityBusAPIDisplayStopOfRoute2Status299 {
+ return &CityBusAPIDisplayStopOfRoute2Status299{}
+}
+
+/*CityBusAPIDisplayStopOfRoute2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIDisplayStopOfRoute2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRoute2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIDisplayStopOfRoute2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_display_stop_of_route_responses.go b/bus/v3/client/city_bus/city_bus_api_display_stop_of_route_responses.go
deleted file mode 100644
index 0d09d924..00000000
--- a/bus/v3/client/city_bus/city_bus_api_display_stop_of_route_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIDisplayStopOfRouteReader is a Reader for the CityBusAPIDisplayStopOfRoute structure.
-type CityBusAPIDisplayStopOfRouteReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIDisplayStopOfRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIDisplayStopOfRouteOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIDisplayStopOfRouteStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIDisplayStopOfRouteOK creates a CityBusAPIDisplayStopOfRouteOK with default headers values
-func NewCityBusAPIDisplayStopOfRouteOK() *CityBusAPIDisplayStopOfRouteOK {
- return &CityBusAPIDisplayStopOfRouteOK{}
-}
-
-/*CityBusAPIDisplayStopOfRouteOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIDisplayStopOfRouteOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute
-}
-
-func (o *CityBusAPIDisplayStopOfRouteOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRouteOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIDisplayStopOfRouteOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute {
- return o.Payload
-}
-
-func (o *CityBusAPIDisplayStopOfRouteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIDisplayStopOfRouteStatus299 creates a CityBusAPIDisplayStopOfRouteStatus299 with default headers values
-func NewCityBusAPIDisplayStopOfRouteStatus299() *CityBusAPIDisplayStopOfRouteStatus299 {
- return &CityBusAPIDisplayStopOfRouteStatus299{}
-}
-
-/*CityBusAPIDisplayStopOfRouteStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIDisplayStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIDisplayStopOfRouteStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/DisplayStopOfRoute/City/{City}][%d] cityBusApiDisplayStopOfRouteStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIDisplayStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIDisplayStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go
deleted file mode 100644
index e515b700..00000000
--- a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIEstimatedTimeOfArrival1Reader is a Reader for the CityBusAPIEstimatedTimeOfArrival1 structure.
-type CityBusAPIEstimatedTimeOfArrival1Reader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIEstimatedTimeOfArrival1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIEstimatedTimeOfArrival1OK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIEstimatedTimeOfArrival1Status299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIEstimatedTimeOfArrival1OK creates a CityBusAPIEstimatedTimeOfArrival1OK with default headers values
-func NewCityBusAPIEstimatedTimeOfArrival1OK() *CityBusAPIEstimatedTimeOfArrival1OK {
- return &CityBusAPIEstimatedTimeOfArrival1OK{}
-}
-
-/*CityBusAPIEstimatedTimeOfArrival1OK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIEstimatedTimeOfArrival1OK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1OK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival1OK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1OK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data {
- return o.Payload
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIEstimatedTimeOfArrival1Status299 creates a CityBusAPIEstimatedTimeOfArrival1Status299 with default headers values
-func NewCityBusAPIEstimatedTimeOfArrival1Status299() *CityBusAPIEstimatedTimeOfArrival1Status299 {
- return &CityBusAPIEstimatedTimeOfArrival1Status299{}
-}
-
-/*CityBusAPIEstimatedTimeOfArrival1Status299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1Status299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival1Status299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrival1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_parameters.go
similarity index 58%
rename from bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_parameters.go
index f434f9fb..dc741519 100644
--- a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIEstimatedTimeOfArrivalParams creates a new CityBusAPIEstimatedTimeOfArrivalParams object
+// NewCityBusAPIEstimatedTimeOfArrival2Params creates a new CityBusAPIEstimatedTimeOfArrival2Params object
// with the default values initialized.
-func NewCityBusAPIEstimatedTimeOfArrivalParams() *CityBusAPIEstimatedTimeOfArrivalParams {
+func NewCityBusAPIEstimatedTimeOfArrival2Params() *CityBusAPIEstimatedTimeOfArrival2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrivalParams{
+ return &CityBusAPIEstimatedTimeOfArrival2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIEstimatedTimeOfArrivalParamsWithTimeout creates a new CityBusAPIEstimatedTimeOfArrivalParams object
+// NewCityBusAPIEstimatedTimeOfArrival2ParamsWithTimeout creates a new CityBusAPIEstimatedTimeOfArrival2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIEstimatedTimeOfArrivalParamsWithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrivalParams {
+func NewCityBusAPIEstimatedTimeOfArrival2ParamsWithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrivalParams{
+ return &CityBusAPIEstimatedTimeOfArrival2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIEstimatedTimeOfArrivalParamsWithContext creates a new CityBusAPIEstimatedTimeOfArrivalParams object
+// NewCityBusAPIEstimatedTimeOfArrival2ParamsWithContext creates a new CityBusAPIEstimatedTimeOfArrival2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIEstimatedTimeOfArrivalParamsWithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrivalParams {
+func NewCityBusAPIEstimatedTimeOfArrival2ParamsWithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrivalParams{
+ return &CityBusAPIEstimatedTimeOfArrival2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIEstimatedTimeOfArrivalParamsWithHTTPClient creates a new CityBusAPIEstimatedTimeOfArrivalParams object
+// NewCityBusAPIEstimatedTimeOfArrival2ParamsWithHTTPClient creates a new CityBusAPIEstimatedTimeOfArrival2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIEstimatedTimeOfArrivalParamsWithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrivalParams {
+func NewCityBusAPIEstimatedTimeOfArrival2ParamsWithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrivalParams{
+ return &CityBusAPIEstimatedTimeOfArrival2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIEstimatedTimeOfArrivalParams contains all the parameters to send to the API endpoint
-for the city bus Api estimated time of arrival operation typically these are written to a http.Request
+/*CityBusAPIEstimatedTimeOfArrival2Params contains all the parameters to send to the API endpoint
+for the city bus Api estimated time of arrival 2 operation typically these are written to a http.Request
*/
-type CityBusAPIEstimatedTimeOfArrivalParams struct {
+type CityBusAPIEstimatedTimeOfArrival2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIEstimatedTimeOfArrivalParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithTimeout adds the timeout to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithContext adds the context to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarCount(dollarCount *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarCount adds the dollarCount to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarCount(dollarCount *bool) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarFilter(dollarFilter *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarFormat(dollarFormat string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarFormat(dollarFormat string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarSelect(dollarSelect *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarSkip(dollarSkip *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithDollarTop(dollarTop *int64) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithDollarTop adds the dollarTop to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithDollarTop(dollarTop *int64) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithCity(city string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithCity adds the city to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithCity(city string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WithHealth(health *string) *CityBusAPIEstimatedTimeOfArrivalParams {
+// WithHealth adds the health to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WithHealth(health *string) *CityBusAPIEstimatedTimeOfArrival2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api estimated time of arrival params
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api estimated time of arrival 2 params
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIEstimatedTimeOfArrivalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIEstimatedTimeOfArrival2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIEstimatedTimeOfArrivalParams) WriteToRequest(r runtime.Client
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_responses.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_responses.go
new file mode 100644
index 00000000..ff848659
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIEstimatedTimeOfArrival2Reader is a Reader for the CityBusAPIEstimatedTimeOfArrival2 structure.
+type CityBusAPIEstimatedTimeOfArrival2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIEstimatedTimeOfArrival2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIEstimatedTimeOfArrival2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIEstimatedTimeOfArrival2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIEstimatedTimeOfArrival2OK creates a CityBusAPIEstimatedTimeOfArrival2OK with default headers values
+func NewCityBusAPIEstimatedTimeOfArrival2OK() *CityBusAPIEstimatedTimeOfArrival2OK {
+ return &CityBusAPIEstimatedTimeOfArrival2OK{}
+}
+
+/*CityBusAPIEstimatedTimeOfArrival2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIEstimatedTimeOfArrival2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrival2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIEstimatedTimeOfArrival2Status299 creates a CityBusAPIEstimatedTimeOfArrival2Status299 with default headers values
+func NewCityBusAPIEstimatedTimeOfArrival2Status299() *CityBusAPIEstimatedTimeOfArrival2Status299 {
+ return &CityBusAPIEstimatedTimeOfArrival2Status299{}
+}
+
+/*CityBusAPIEstimatedTimeOfArrival2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIEstimatedTimeOfArrival2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrival2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_parameters.go
similarity index 61%
rename from bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_parameters.go
index 74c86699..d5404c97 100644
--- a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIEstimatedTimeOfArrival1Params creates a new CityBusAPIEstimatedTimeOfArrival1Params object
+// NewCityBusAPIEstimatedTimeOfArrival3Params creates a new CityBusAPIEstimatedTimeOfArrival3Params object
// with the default values initialized.
-func NewCityBusAPIEstimatedTimeOfArrival1Params() *CityBusAPIEstimatedTimeOfArrival1Params {
+func NewCityBusAPIEstimatedTimeOfArrival3Params() *CityBusAPIEstimatedTimeOfArrival3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrival1Params{
+ return &CityBusAPIEstimatedTimeOfArrival3Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIEstimatedTimeOfArrival1ParamsWithTimeout creates a new CityBusAPIEstimatedTimeOfArrival1Params object
+// NewCityBusAPIEstimatedTimeOfArrival3ParamsWithTimeout creates a new CityBusAPIEstimatedTimeOfArrival3Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIEstimatedTimeOfArrival1ParamsWithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival1Params {
+func NewCityBusAPIEstimatedTimeOfArrival3ParamsWithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrival1Params{
+ return &CityBusAPIEstimatedTimeOfArrival3Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIEstimatedTimeOfArrival1ParamsWithContext creates a new CityBusAPIEstimatedTimeOfArrival1Params object
+// NewCityBusAPIEstimatedTimeOfArrival3ParamsWithContext creates a new CityBusAPIEstimatedTimeOfArrival3Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIEstimatedTimeOfArrival1ParamsWithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival1Params {
+func NewCityBusAPIEstimatedTimeOfArrival3ParamsWithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrival1Params{
+ return &CityBusAPIEstimatedTimeOfArrival3Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIEstimatedTimeOfArrival1ParamsWithHTTPClient creates a new CityBusAPIEstimatedTimeOfArrival1Params object
+// NewCityBusAPIEstimatedTimeOfArrival3ParamsWithHTTPClient creates a new CityBusAPIEstimatedTimeOfArrival3Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIEstimatedTimeOfArrival1ParamsWithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival1Params {
+func NewCityBusAPIEstimatedTimeOfArrival3ParamsWithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIEstimatedTimeOfArrival1Params{
+ return &CityBusAPIEstimatedTimeOfArrival3Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIEstimatedTimeOfArrival1Params contains all the parameters to send to the API endpoint
-for the city bus Api estimated time of arrival 1 operation typically these are written to a http.Request
+/*CityBusAPIEstimatedTimeOfArrival3Params contains all the parameters to send to the API endpoint
+for the city bus Api estimated time of arrival 3 operation typically these are written to a http.Request
*/
-type CityBusAPIEstimatedTimeOfArrival1Params struct {
+type CityBusAPIEstimatedTimeOfArrival3Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -129,151 +129,151 @@ type CityBusAPIEstimatedTimeOfArrival1Params struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithTimeout adds the timeout to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithTimeout(timeout time.Duration) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithContext adds the context to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithContext(ctx context.Context) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithHTTPClient(client *http.Client) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarCount(dollarCount *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarCount adds the dollarCount to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarCount(dollarCount *bool) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarFilter(dollarFilter *string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarFormat(dollarFormat string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarFormat(dollarFormat string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarSelect(dollarSelect *string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarSkip(dollarSkip *string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithDollarTop(dollarTop *int64) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithDollarTop adds the dollarTop to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithDollarTop(dollarTop *int64) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithCity(city string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithCity adds the city to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithCity(city string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetCity(city string) {
+// SetCity adds the city to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetCity(city string) {
o.City = city
}
-// WithRouteName adds the routeName to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithRouteName(routeName string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithRouteName adds the routeName to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithRouteName(routeName string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetRouteName(routeName)
return o
}
-// SetRouteName adds the routeName to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetRouteName(routeName string) {
+// SetRouteName adds the routeName to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetRouteName(routeName string) {
o.RouteName = routeName
}
-// WithHealth adds the health to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WithHealth(health *string) *CityBusAPIEstimatedTimeOfArrival1Params {
+// WithHealth adds the health to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WithHealth(health *string) *CityBusAPIEstimatedTimeOfArrival3Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api estimated time of arrival 1 params
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api estimated time of arrival 3 params
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIEstimatedTimeOfArrival1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIEstimatedTimeOfArrival3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -283,11 +283,11 @@ func (o *CityBusAPIEstimatedTimeOfArrival1Params) WriteToRequest(r runtime.Clien
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_responses.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_responses.go
new file mode 100644
index 00000000..b58733d0
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival3_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIEstimatedTimeOfArrival3Reader is a Reader for the CityBusAPIEstimatedTimeOfArrival3 structure.
+type CityBusAPIEstimatedTimeOfArrival3Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIEstimatedTimeOfArrival3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIEstimatedTimeOfArrival3OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIEstimatedTimeOfArrival3Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIEstimatedTimeOfArrival3OK creates a CityBusAPIEstimatedTimeOfArrival3OK with default headers values
+func NewCityBusAPIEstimatedTimeOfArrival3OK() *CityBusAPIEstimatedTimeOfArrival3OK {
+ return &CityBusAPIEstimatedTimeOfArrival3OK{}
+}
+
+/*CityBusAPIEstimatedTimeOfArrival3OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIEstimatedTimeOfArrival3OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival3OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIEstimatedTimeOfArrival3Status299 creates a CityBusAPIEstimatedTimeOfArrival3Status299 with default headers values
+func NewCityBusAPIEstimatedTimeOfArrival3Status299() *CityBusAPIEstimatedTimeOfArrival3Status299 {
+ return &CityBusAPIEstimatedTimeOfArrival3Status299{}
+}
+
+/*CityBusAPIEstimatedTimeOfArrival3Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIEstimatedTimeOfArrival3Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}][%d] cityBusApiEstimatedTimeOfArrival3Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIEstimatedTimeOfArrival3Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go
deleted file mode 100644
index 23ae4abb..00000000
--- a/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIEstimatedTimeOfArrivalReader is a Reader for the CityBusAPIEstimatedTimeOfArrival structure.
-type CityBusAPIEstimatedTimeOfArrivalReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIEstimatedTimeOfArrivalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIEstimatedTimeOfArrivalOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIEstimatedTimeOfArrivalStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIEstimatedTimeOfArrivalOK creates a CityBusAPIEstimatedTimeOfArrivalOK with default headers values
-func NewCityBusAPIEstimatedTimeOfArrivalOK() *CityBusAPIEstimatedTimeOfArrivalOK {
- return &CityBusAPIEstimatedTimeOfArrivalOK{}
-}
-
-/*CityBusAPIEstimatedTimeOfArrivalOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIEstimatedTimeOfArrivalOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data {
- return o.Payload
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusN1Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIEstimatedTimeOfArrivalStatus299 creates a CityBusAPIEstimatedTimeOfArrivalStatus299 with default headers values
-func NewCityBusAPIEstimatedTimeOfArrivalStatus299() *CityBusAPIEstimatedTimeOfArrivalStatus299 {
- return &CityBusAPIEstimatedTimeOfArrivalStatus299{}
-}
-
-/*CityBusAPIEstimatedTimeOfArrivalStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/EstimatedTimeOfArrival/City/{City}][%d] cityBusApiEstimatedTimeOfArrivalStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIEstimatedTimeOfArrivalStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_parameters.go b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_first_last_trip_info_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_parameters.go
index d11b61c6..c51e09aa 100644
--- a/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIFirstLastTripInfoParams creates a new CityBusAPIFirstLastTripInfoParams object
+// NewCityBusAPIFirstLastTripInfo2Params creates a new CityBusAPIFirstLastTripInfo2Params object
// with the default values initialized.
-func NewCityBusAPIFirstLastTripInfoParams() *CityBusAPIFirstLastTripInfoParams {
+func NewCityBusAPIFirstLastTripInfo2Params() *CityBusAPIFirstLastTripInfo2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIFirstLastTripInfoParams{
+ return &CityBusAPIFirstLastTripInfo2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIFirstLastTripInfoParamsWithTimeout creates a new CityBusAPIFirstLastTripInfoParams object
+// NewCityBusAPIFirstLastTripInfo2ParamsWithTimeout creates a new CityBusAPIFirstLastTripInfo2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIFirstLastTripInfoParamsWithTimeout(timeout time.Duration) *CityBusAPIFirstLastTripInfoParams {
+func NewCityBusAPIFirstLastTripInfo2ParamsWithTimeout(timeout time.Duration) *CityBusAPIFirstLastTripInfo2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIFirstLastTripInfoParams{
+ return &CityBusAPIFirstLastTripInfo2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIFirstLastTripInfoParamsWithContext creates a new CityBusAPIFirstLastTripInfoParams object
+// NewCityBusAPIFirstLastTripInfo2ParamsWithContext creates a new CityBusAPIFirstLastTripInfo2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIFirstLastTripInfoParamsWithContext(ctx context.Context) *CityBusAPIFirstLastTripInfoParams {
+func NewCityBusAPIFirstLastTripInfo2ParamsWithContext(ctx context.Context) *CityBusAPIFirstLastTripInfo2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIFirstLastTripInfoParams{
+ return &CityBusAPIFirstLastTripInfo2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIFirstLastTripInfoParamsWithHTTPClient creates a new CityBusAPIFirstLastTripInfoParams object
+// NewCityBusAPIFirstLastTripInfo2ParamsWithHTTPClient creates a new CityBusAPIFirstLastTripInfo2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIFirstLastTripInfoParamsWithHTTPClient(client *http.Client) *CityBusAPIFirstLastTripInfoParams {
+func NewCityBusAPIFirstLastTripInfo2ParamsWithHTTPClient(client *http.Client) *CityBusAPIFirstLastTripInfo2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIFirstLastTripInfoParams{
+ return &CityBusAPIFirstLastTripInfo2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIFirstLastTripInfoParams contains all the parameters to send to the API endpoint
-for the city bus Api first last trip info operation typically these are written to a http.Request
+/*CityBusAPIFirstLastTripInfo2Params contains all the parameters to send to the API endpoint
+for the city bus Api first last trip info 2 operation typically these are written to a http.Request
*/
-type CityBusAPIFirstLastTripInfoParams struct {
+type CityBusAPIFirstLastTripInfo2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIFirstLastTripInfoParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithTimeout(timeout time.Duration) *CityBusAPIFirstLastTripInfoParams {
+// WithTimeout adds the timeout to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithTimeout(timeout time.Duration) *CityBusAPIFirstLastTripInfo2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithContext(ctx context.Context) *CityBusAPIFirstLastTripInfoParams {
+// WithContext adds the context to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithContext(ctx context.Context) *CityBusAPIFirstLastTripInfo2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithHTTPClient(client *http.Client) *CityBusAPIFirstLastTripInfoParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithHTTPClient(client *http.Client) *CityBusAPIFirstLastTripInfo2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarCount(dollarCount *string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarCount adds the dollarCount to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarCount(dollarCount *bool) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarFilter(dollarFilter *string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarFormat(dollarFormat string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarFormat(dollarFormat string) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarSelect(dollarSelect *string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarSkip(dollarSkip *string) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithDollarTop(dollarTop *int64) *CityBusAPIFirstLastTripInfoParams {
+// WithDollarTop adds the dollarTop to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithDollarTop(dollarTop *int64) *CityBusAPIFirstLastTripInfo2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithCity(city string) *CityBusAPIFirstLastTripInfoParams {
+// WithCity adds the city to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithCity(city string) *CityBusAPIFirstLastTripInfo2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) WithHealth(health *string) *CityBusAPIFirstLastTripInfoParams {
+// WithHealth adds the health to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) WithHealth(health *string) *CityBusAPIFirstLastTripInfo2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api first last trip info params
-func (o *CityBusAPIFirstLastTripInfoParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api first last trip info 2 params
+func (o *CityBusAPIFirstLastTripInfo2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIFirstLastTripInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIFirstLastTripInfo2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIFirstLastTripInfoParams) WriteToRequest(r runtime.ClientReque
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_responses.go b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_responses.go
new file mode 100644
index 00000000..fa19aded
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIFirstLastTripInfo2Reader is a Reader for the CityBusAPIFirstLastTripInfo2 structure.
+type CityBusAPIFirstLastTripInfo2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIFirstLastTripInfo2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIFirstLastTripInfo2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIFirstLastTripInfo2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIFirstLastTripInfo2OK creates a CityBusAPIFirstLastTripInfo2OK with default headers values
+func NewCityBusAPIFirstLastTripInfo2OK() *CityBusAPIFirstLastTripInfo2OK {
+ return &CityBusAPIFirstLastTripInfo2OK{}
+}
+
+/*CityBusAPIFirstLastTripInfo2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIFirstLastTripInfo2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo
+}
+
+func (o *CityBusAPIFirstLastTripInfo2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfo2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIFirstLastTripInfo2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo {
+ return o.Payload
+}
+
+func (o *CityBusAPIFirstLastTripInfo2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIFirstLastTripInfo2Status299 creates a CityBusAPIFirstLastTripInfo2Status299 with default headers values
+func NewCityBusAPIFirstLastTripInfo2Status299() *CityBusAPIFirstLastTripInfo2Status299 {
+ return &CityBusAPIFirstLastTripInfo2Status299{}
+}
+
+/*CityBusAPIFirstLastTripInfo2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIFirstLastTripInfo2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIFirstLastTripInfo2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfo2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIFirstLastTripInfo2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIFirstLastTripInfo2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_responses.go b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_responses.go
deleted file mode 100644
index 0d6f4808..00000000
--- a/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIFirstLastTripInfoReader is a Reader for the CityBusAPIFirstLastTripInfo structure.
-type CityBusAPIFirstLastTripInfoReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIFirstLastTripInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIFirstLastTripInfoOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIFirstLastTripInfoStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIFirstLastTripInfoOK creates a CityBusAPIFirstLastTripInfoOK with default headers values
-func NewCityBusAPIFirstLastTripInfoOK() *CityBusAPIFirstLastTripInfoOK {
- return &CityBusAPIFirstLastTripInfoOK{}
-}
-
-/*CityBusAPIFirstLastTripInfoOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIFirstLastTripInfoOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo
-}
-
-func (o *CityBusAPIFirstLastTripInfoOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfoOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIFirstLastTripInfoOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo {
- return o.Payload
-}
-
-func (o *CityBusAPIFirstLastTripInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIFirstLastTripInfoStatus299 creates a CityBusAPIFirstLastTripInfoStatus299 with default headers values
-func NewCityBusAPIFirstLastTripInfoStatus299() *CityBusAPIFirstLastTripInfoStatus299 {
- return &CityBusAPIFirstLastTripInfoStatus299{}
-}
-
-/*CityBusAPIFirstLastTripInfoStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIFirstLastTripInfoStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIFirstLastTripInfoStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/FirstLastTripInfo/City/{City}][%d] cityBusApiFirstLastTripInfoStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIFirstLastTripInfoStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIFirstLastTripInfoStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_network_parameters.go b/bus/v3/client/city_bus/city_bus_api_network_parameters.go
index bcce8020..3848a9e7 100644
--- a/bus/v3/client/city_bus/city_bus_api_network_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_network_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPINetworkParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPINetworkParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api network params
-func (o *CityBusAPINetworkParams) WithDollarCount(dollarCount *string) *CityBusAPINetworkParams {
+func (o *CityBusAPINetworkParams) WithDollarCount(dollarCount *bool) *CityBusAPINetworkParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api network params
-func (o *CityBusAPINetworkParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPINetworkParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPINetworkParams) WriteToRequest(r runtime.ClientRequest, reg st
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_network_responses.go b/bus/v3/client/city_bus/city_bus_api_network_responses.go
index 19fe83b7..686ad31c 100644
--- a/bus/v3/client/city_bus/city_bus_api_network_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_network_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPINetworkOK() *CityBusAPINetworkOK {
/*CityBusAPINetworkOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPINetworkOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusNetwork
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network
}
func (o *CityBusAPINetworkOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Network/City/{City}][%d] cityBusApiNetworkOK %+v", 200, o.Payload)
}
-func (o *CityBusAPINetworkOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusNetwork {
+func (o *CityBusAPINetworkOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network {
return o.Payload
}
func (o *CityBusAPINetworkOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusNetwork)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPINetworkStatus299() *CityBusAPINetworkStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPINetworkStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPINetworkStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/Network/City/{City}][%d] cityBusApiNetworkStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPINetworkStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPINetworkStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPINetworkStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_news_parameters.go b/bus/v3/client/city_bus/city_bus_api_news1_parameters.go
similarity index 58%
rename from bus/v3/client/city_bus/city_bus_api_news_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_news1_parameters.go
index 26cd9160..ec84dc5b 100644
--- a/bus/v3/client/city_bus/city_bus_api_news_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_news1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPINewsParams creates a new CityBusAPINewsParams object
+// NewCityBusAPINews1Params creates a new CityBusAPINews1Params object
// with the default values initialized.
-func NewCityBusAPINewsParams() *CityBusAPINewsParams {
+func NewCityBusAPINews1Params() *CityBusAPINews1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPINewsParams{
+ return &CityBusAPINews1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPINewsParamsWithTimeout creates a new CityBusAPINewsParams object
+// NewCityBusAPINews1ParamsWithTimeout creates a new CityBusAPINews1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPINewsParamsWithTimeout(timeout time.Duration) *CityBusAPINewsParams {
+func NewCityBusAPINews1ParamsWithTimeout(timeout time.Duration) *CityBusAPINews1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPINewsParams{
+ return &CityBusAPINews1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPINewsParamsWithContext creates a new CityBusAPINewsParams object
+// NewCityBusAPINews1ParamsWithContext creates a new CityBusAPINews1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPINewsParamsWithContext(ctx context.Context) *CityBusAPINewsParams {
+func NewCityBusAPINews1ParamsWithContext(ctx context.Context) *CityBusAPINews1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPINewsParams{
+ return &CityBusAPINews1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPINewsParamsWithHTTPClient creates a new CityBusAPINewsParams object
+// NewCityBusAPINews1ParamsWithHTTPClient creates a new CityBusAPINews1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPINewsParamsWithHTTPClient(client *http.Client) *CityBusAPINewsParams {
+func NewCityBusAPINews1ParamsWithHTTPClient(client *http.Client) *CityBusAPINews1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPINewsParams{
+ return &CityBusAPINews1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPINewsParams contains all the parameters to send to the API endpoint
-for the city bus Api news operation typically these are written to a http.Request
+/*CityBusAPINews1Params contains all the parameters to send to the API endpoint
+for the city bus Api news 1 operation typically these are written to a http.Request
*/
-type CityBusAPINewsParams struct {
+type CityBusAPINews1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPINewsParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api news params
-func (o *CityBusAPINewsParams) WithTimeout(timeout time.Duration) *CityBusAPINewsParams {
+// WithTimeout adds the timeout to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithTimeout(timeout time.Duration) *CityBusAPINews1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api news params
-func (o *CityBusAPINewsParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api news params
-func (o *CityBusAPINewsParams) WithContext(ctx context.Context) *CityBusAPINewsParams {
+// WithContext adds the context to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithContext(ctx context.Context) *CityBusAPINews1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api news params
-func (o *CityBusAPINewsParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api news params
-func (o *CityBusAPINewsParams) WithHTTPClient(client *http.Client) *CityBusAPINewsParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithHTTPClient(client *http.Client) *CityBusAPINews1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api news params
-func (o *CityBusAPINewsParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarCount(dollarCount *string) *CityBusAPINewsParams {
+// WithDollarCount adds the dollarCount to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarCount(dollarCount *bool) *CityBusAPINews1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarFilter(dollarFilter *string) *CityBusAPINewsParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarFilter(dollarFilter *string) *CityBusAPINews1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarFormat(dollarFormat string) *CityBusAPINewsParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarFormat(dollarFormat string) *CityBusAPINews1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPINewsParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPINews1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarSelect(dollarSelect *string) *CityBusAPINewsParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarSelect(dollarSelect *string) *CityBusAPINews1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarSkip(dollarSkip *string) *CityBusAPINewsParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarSkip(dollarSkip *string) *CityBusAPINews1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api news params
-func (o *CityBusAPINewsParams) WithDollarTop(dollarTop *int64) *CityBusAPINewsParams {
+// WithDollarTop adds the dollarTop to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithDollarTop(dollarTop *int64) *CityBusAPINews1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api news params
-func (o *CityBusAPINewsParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api news params
-func (o *CityBusAPINewsParams) WithCity(city string) *CityBusAPINewsParams {
+// WithCity adds the city to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithCity(city string) *CityBusAPINews1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api news params
-func (o *CityBusAPINewsParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api news params
-func (o *CityBusAPINewsParams) WithHealth(health *string) *CityBusAPINewsParams {
+// WithHealth adds the health to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) WithHealth(health *string) *CityBusAPINews1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api news params
-func (o *CityBusAPINewsParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api news 1 params
+func (o *CityBusAPINews1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPINewsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPINews1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPINewsParams) WriteToRequest(r runtime.ClientRequest, reg strfm
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_news1_responses.go b/bus/v3/client/city_bus/city_bus_api_news1_responses.go
new file mode 100644
index 00000000..214e1f14
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_news1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPINews1Reader is a Reader for the CityBusAPINews1 structure.
+type CityBusAPINews1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPINews1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPINews1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPINews1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPINews1OK creates a CityBusAPINews1OK with default headers values
+func NewCityBusAPINews1OK() *CityBusAPINews1OK {
+ return &CityBusAPINews1OK{}
+}
+
+/*CityBusAPINews1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPINews1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News
+}
+
+func (o *CityBusAPINews1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/News/City/{City}][%d] cityBusApiNews1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPINews1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News {
+ return o.Payload
+}
+
+func (o *CityBusAPINews1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPINews1Status299 creates a CityBusAPINews1Status299 with default headers values
+func NewCityBusAPINews1Status299() *CityBusAPINews1Status299 {
+ return &CityBusAPINews1Status299{}
+}
+
+/*CityBusAPINews1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPINews1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPINews1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/News/City/{City}][%d] cityBusApiNews1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPINews1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPINews1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_news_responses.go b/bus/v3/client/city_bus/city_bus_api_news_responses.go
deleted file mode 100644
index 8d8eea77..00000000
--- a/bus/v3/client/city_bus/city_bus_api_news_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPINewsReader is a Reader for the CityBusAPINews structure.
-type CityBusAPINewsReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPINewsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPINewsOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPINewsStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPINewsOK creates a CityBusAPINewsOK with default headers values
-func NewCityBusAPINewsOK() *CityBusAPINewsOK {
- return &CityBusAPINewsOK{}
-}
-
-/*CityBusAPINewsOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPINewsOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusNews
-}
-
-func (o *CityBusAPINewsOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/News/City/{City}][%d] cityBusApiNewsOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPINewsOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusNews {
- return o.Payload
-}
-
-func (o *CityBusAPINewsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusNews)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPINewsStatus299 creates a CityBusAPINewsStatus299 with default headers values
-func NewCityBusAPINewsStatus299() *CityBusAPINewsStatus299 {
- return &CityBusAPINewsStatus299{}
-}
-
-/*CityBusAPINewsStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPINewsStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/News/City/{City}][%d] cityBusApiNewsStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPINewsStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPINewsStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_operator_parameters.go b/bus/v3/client/city_bus/city_bus_api_operator1_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_operator_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_operator1_parameters.go
index 35b63b6d..2e6338cb 100644
--- a/bus/v3/client/city_bus/city_bus_api_operator_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_operator1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIOperatorParams creates a new CityBusAPIOperatorParams object
+// NewCityBusAPIOperator1Params creates a new CityBusAPIOperator1Params object
// with the default values initialized.
-func NewCityBusAPIOperatorParams() *CityBusAPIOperatorParams {
+func NewCityBusAPIOperator1Params() *CityBusAPIOperator1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIOperatorParams{
+ return &CityBusAPIOperator1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIOperatorParamsWithTimeout creates a new CityBusAPIOperatorParams object
+// NewCityBusAPIOperator1ParamsWithTimeout creates a new CityBusAPIOperator1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIOperatorParamsWithTimeout(timeout time.Duration) *CityBusAPIOperatorParams {
+func NewCityBusAPIOperator1ParamsWithTimeout(timeout time.Duration) *CityBusAPIOperator1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIOperatorParams{
+ return &CityBusAPIOperator1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIOperatorParamsWithContext creates a new CityBusAPIOperatorParams object
+// NewCityBusAPIOperator1ParamsWithContext creates a new CityBusAPIOperator1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIOperatorParamsWithContext(ctx context.Context) *CityBusAPIOperatorParams {
+func NewCityBusAPIOperator1ParamsWithContext(ctx context.Context) *CityBusAPIOperator1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIOperatorParams{
+ return &CityBusAPIOperator1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIOperatorParamsWithHTTPClient creates a new CityBusAPIOperatorParams object
+// NewCityBusAPIOperator1ParamsWithHTTPClient creates a new CityBusAPIOperator1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIOperatorParamsWithHTTPClient(client *http.Client) *CityBusAPIOperatorParams {
+func NewCityBusAPIOperator1ParamsWithHTTPClient(client *http.Client) *CityBusAPIOperator1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIOperatorParams{
+ return &CityBusAPIOperator1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIOperatorParams contains all the parameters to send to the API endpoint
-for the city bus Api operator operation typically these are written to a http.Request
+/*CityBusAPIOperator1Params contains all the parameters to send to the API endpoint
+for the city bus Api operator 1 operation typically these are written to a http.Request
*/
-type CityBusAPIOperatorParams struct {
+type CityBusAPIOperator1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIOperatorParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithTimeout(timeout time.Duration) *CityBusAPIOperatorParams {
+// WithTimeout adds the timeout to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithTimeout(timeout time.Duration) *CityBusAPIOperator1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithContext(ctx context.Context) *CityBusAPIOperatorParams {
+// WithContext adds the context to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithContext(ctx context.Context) *CityBusAPIOperator1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithHTTPClient(client *http.Client) *CityBusAPIOperatorParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithHTTPClient(client *http.Client) *CityBusAPIOperator1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarCount(dollarCount *string) *CityBusAPIOperatorParams {
+// WithDollarCount adds the dollarCount to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarCount(dollarCount *bool) *CityBusAPIOperator1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarFilter(dollarFilter *string) *CityBusAPIOperatorParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIOperator1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarFormat(dollarFormat string) *CityBusAPIOperatorParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarFormat(dollarFormat string) *CityBusAPIOperator1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIOperatorParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIOperator1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarSelect(dollarSelect *string) *CityBusAPIOperatorParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIOperator1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarSkip(dollarSkip *string) *CityBusAPIOperatorParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIOperator1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithDollarTop(dollarTop *int64) *CityBusAPIOperatorParams {
+// WithDollarTop adds the dollarTop to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithDollarTop(dollarTop *int64) *CityBusAPIOperator1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithCity(city string) *CityBusAPIOperatorParams {
+// WithCity adds the city to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithCity(city string) *CityBusAPIOperator1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) WithHealth(health *string) *CityBusAPIOperatorParams {
+// WithHealth adds the health to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) WithHealth(health *string) *CityBusAPIOperator1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api operator params
-func (o *CityBusAPIOperatorParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api operator 1 params
+func (o *CityBusAPIOperator1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIOperatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIOperator1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIOperatorParams) WriteToRequest(r runtime.ClientRequest, reg s
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_operator1_responses.go b/bus/v3/client/city_bus/city_bus_api_operator1_responses.go
new file mode 100644
index 00000000..dc898d60
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_operator1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIOperator1Reader is a Reader for the CityBusAPIOperator1 structure.
+type CityBusAPIOperator1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIOperator1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIOperator1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIOperator1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIOperator1OK creates a CityBusAPIOperator1OK with default headers values
+func NewCityBusAPIOperator1OK() *CityBusAPIOperator1OK {
+ return &CityBusAPIOperator1OK{}
+}
+
+/*CityBusAPIOperator1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIOperator1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator
+}
+
+func (o *CityBusAPIOperator1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Operator/City/{City}][%d] cityBusApiOperator1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIOperator1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator {
+ return o.Payload
+}
+
+func (o *CityBusAPIOperator1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIOperator1Status299 creates a CityBusAPIOperator1Status299 with default headers values
+func NewCityBusAPIOperator1Status299() *CityBusAPIOperator1Status299 {
+ return &CityBusAPIOperator1Status299{}
+}
+
+/*CityBusAPIOperator1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIOperator1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIOperator1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Operator/City/{City}][%d] cityBusApiOperator1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIOperator1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIOperator1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_operator_responses.go b/bus/v3/client/city_bus/city_bus_api_operator_responses.go
deleted file mode 100644
index 53fb3f2e..00000000
--- a/bus/v3/client/city_bus/city_bus_api_operator_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIOperatorReader is a Reader for the CityBusAPIOperator structure.
-type CityBusAPIOperatorReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIOperatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIOperatorOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIOperatorStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIOperatorOK creates a CityBusAPIOperatorOK with default headers values
-func NewCityBusAPIOperatorOK() *CityBusAPIOperatorOK {
- return &CityBusAPIOperatorOK{}
-}
-
-/*CityBusAPIOperatorOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIOperatorOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusOperator
-}
-
-func (o *CityBusAPIOperatorOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Operator/City/{City}][%d] cityBusApiOperatorOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIOperatorOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusOperator {
- return o.Payload
-}
-
-func (o *CityBusAPIOperatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusOperator)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIOperatorStatus299 creates a CityBusAPIOperatorStatus299 with default headers values
-func NewCityBusAPIOperatorStatus299() *CityBusAPIOperatorStatus299 {
- return &CityBusAPIOperatorStatus299{}
-}
-
-/*CityBusAPIOperatorStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIOperatorStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Operator/City/{City}][%d] cityBusApiOperatorStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIOperatorStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIOperatorStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go
deleted file mode 100644
index e655d327..00000000
--- a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRealTimeByFrequency1Reader is a Reader for the CityBusAPIRealTimeByFrequency1 structure.
-type CityBusAPIRealTimeByFrequency1Reader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRealTimeByFrequency1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRealTimeByFrequency1OK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRealTimeByFrequency1Status299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRealTimeByFrequency1OK creates a CityBusAPIRealTimeByFrequency1OK with default headers values
-func NewCityBusAPIRealTimeByFrequency1OK() *CityBusAPIRealTimeByFrequency1OK {
- return &CityBusAPIRealTimeByFrequency1OK{}
-}
-
-/*CityBusAPIRealTimeByFrequency1OK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRealTimeByFrequency1OK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data
-}
-
-func (o *CityBusAPIRealTimeByFrequency1OK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency1OK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeByFrequency1OK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeByFrequency1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRealTimeByFrequency1Status299 creates a CityBusAPIRealTimeByFrequency1Status299 with default headers values
-func NewCityBusAPIRealTimeByFrequency1Status299() *CityBusAPIRealTimeByFrequency1Status299 {
- return &CityBusAPIRealTimeByFrequency1Status299{}
-}
-
-/*CityBusAPIRealTimeByFrequency1Status299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRealTimeByFrequency1Status299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency1Status299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeByFrequency1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeByFrequency1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_parameters.go
similarity index 54%
rename from bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_parameters.go
index e5fafdea..87bfcaa4 100644
--- a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRealTimeByFrequencyParams creates a new CityBusAPIRealTimeByFrequencyParams object
+// NewCityBusAPIRealTimeByFrequency2Params creates a new CityBusAPIRealTimeByFrequency2Params object
// with the default values initialized.
-func NewCityBusAPIRealTimeByFrequencyParams() *CityBusAPIRealTimeByFrequencyParams {
+func NewCityBusAPIRealTimeByFrequency2Params() *CityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequencyParams{
+ return &CityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRealTimeByFrequencyParamsWithTimeout creates a new CityBusAPIRealTimeByFrequencyParams object
+// NewCityBusAPIRealTimeByFrequency2ParamsWithTimeout creates a new CityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRealTimeByFrequencyParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequencyParams {
+func NewCityBusAPIRealTimeByFrequency2ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequencyParams{
+ return &CityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRealTimeByFrequencyParamsWithContext creates a new CityBusAPIRealTimeByFrequencyParams object
+// NewCityBusAPIRealTimeByFrequency2ParamsWithContext creates a new CityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRealTimeByFrequencyParamsWithContext(ctx context.Context) *CityBusAPIRealTimeByFrequencyParams {
+func NewCityBusAPIRealTimeByFrequency2ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequencyParams{
+ return &CityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRealTimeByFrequencyParamsWithHTTPClient creates a new CityBusAPIRealTimeByFrequencyParams object
+// NewCityBusAPIRealTimeByFrequency2ParamsWithHTTPClient creates a new CityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRealTimeByFrequencyParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequencyParams {
+func NewCityBusAPIRealTimeByFrequency2ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequencyParams{
+ return &CityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRealTimeByFrequencyParams contains all the parameters to send to the API endpoint
-for the city bus Api real time by frequency operation typically these are written to a http.Request
+/*CityBusAPIRealTimeByFrequency2Params contains all the parameters to send to the API endpoint
+for the city bus Api real time by frequency 2 operation typically these are written to a http.Request
*/
-type CityBusAPIRealTimeByFrequencyParams struct {
+type CityBusAPIRealTimeByFrequency2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type CityBusAPIRealTimeByFrequencyParams struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -124,140 +129,151 @@ type CityBusAPIRealTimeByFrequencyParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequencyParams {
+// WithTimeout adds the timeout to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithContext(ctx context.Context) *CityBusAPIRealTimeByFrequencyParams {
+// WithContext adds the context to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequencyParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarCount(dollarCount *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarCount adds the dollarCount to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarCount(dollarCount *bool) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeByFrequencyParams {
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *CityBusAPIRealTimeByFrequency2Params {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
+// WithDollarTop adds the dollarTop to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeByFrequency2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithCity(city string) *CityBusAPIRealTimeByFrequencyParams {
+// WithCity adds the city to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithCity(city string) *CityBusAPIRealTimeByFrequency2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) WithHealth(health *string) *CityBusAPIRealTimeByFrequencyParams {
+// WithHealth adds the health to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) WithHealth(health *string) *CityBusAPIRealTimeByFrequency2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api real time by frequency params
-func (o *CityBusAPIRealTimeByFrequencyParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api real time by frequency 2 params
+func (o *CityBusAPIRealTimeByFrequency2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRealTimeByFrequencyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRealTimeByFrequency2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +283,11 @@ func (o *CityBusAPIRealTimeByFrequencyParams) WriteToRequest(r runtime.ClientReq
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -353,6 +369,22 @@ func (o *CityBusAPIRealTimeByFrequencyParams) WriteToRequest(r runtime.ClientReq
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_responses.go
new file mode 100644
index 00000000..b0861808
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRealTimeByFrequency2Reader is a Reader for the CityBusAPIRealTimeByFrequency2 structure.
+type CityBusAPIRealTimeByFrequency2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRealTimeByFrequency2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRealTimeByFrequency2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRealTimeByFrequency2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRealTimeByFrequency2OK creates a CityBusAPIRealTimeByFrequency2OK with default headers values
+func NewCityBusAPIRealTimeByFrequency2OK() *CityBusAPIRealTimeByFrequency2OK {
+ return &CityBusAPIRealTimeByFrequency2OK{}
+}
+
+/*CityBusAPIRealTimeByFrequency2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRealTimeByFrequency2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data
+}
+
+func (o *CityBusAPIRealTimeByFrequency2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequency2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeByFrequency2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeByFrequency2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRealTimeByFrequency2Status299 creates a CityBusAPIRealTimeByFrequency2Status299 with default headers values
+func NewCityBusAPIRealTimeByFrequency2Status299() *CityBusAPIRealTimeByFrequency2Status299 {
+ return &CityBusAPIRealTimeByFrequency2Status299{}
+}
+
+/*CityBusAPIRealTimeByFrequency2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRealTimeByFrequency2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRealTimeByFrequency2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequency2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeByFrequency2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeByFrequency2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_parameters.go
similarity index 57%
rename from bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_parameters.go
index 3277f1aa..31997627 100644
--- a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRealTimeByFrequency1Params creates a new CityBusAPIRealTimeByFrequency1Params object
+// NewCityBusAPIRealTimeByFrequency3Params creates a new CityBusAPIRealTimeByFrequency3Params object
// with the default values initialized.
-func NewCityBusAPIRealTimeByFrequency1Params() *CityBusAPIRealTimeByFrequency1Params {
+func NewCityBusAPIRealTimeByFrequency3Params() *CityBusAPIRealTimeByFrequency3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequency1Params{
+ return &CityBusAPIRealTimeByFrequency3Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRealTimeByFrequency1ParamsWithTimeout creates a new CityBusAPIRealTimeByFrequency1Params object
+// NewCityBusAPIRealTimeByFrequency3ParamsWithTimeout creates a new CityBusAPIRealTimeByFrequency3Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRealTimeByFrequency1ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency1Params {
+func NewCityBusAPIRealTimeByFrequency3ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequency1Params{
+ return &CityBusAPIRealTimeByFrequency3Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRealTimeByFrequency1ParamsWithContext creates a new CityBusAPIRealTimeByFrequency1Params object
+// NewCityBusAPIRealTimeByFrequency3ParamsWithContext creates a new CityBusAPIRealTimeByFrequency3Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRealTimeByFrequency1ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency1Params {
+func NewCityBusAPIRealTimeByFrequency3ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequency1Params{
+ return &CityBusAPIRealTimeByFrequency3Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRealTimeByFrequency1ParamsWithHTTPClient creates a new CityBusAPIRealTimeByFrequency1Params object
+// NewCityBusAPIRealTimeByFrequency3ParamsWithHTTPClient creates a new CityBusAPIRealTimeByFrequency3Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRealTimeByFrequency1ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency1Params {
+func NewCityBusAPIRealTimeByFrequency3ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeByFrequency1Params{
+ return &CityBusAPIRealTimeByFrequency3Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRealTimeByFrequency1Params contains all the parameters to send to the API endpoint
-for the city bus Api real time by frequency 1 operation typically these are written to a http.Request
+/*CityBusAPIRealTimeByFrequency3Params contains all the parameters to send to the API endpoint
+for the city bus Api real time by frequency 3 operation typically these are written to a http.Request
*/
-type CityBusAPIRealTimeByFrequency1Params struct {
+type CityBusAPIRealTimeByFrequency3Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type CityBusAPIRealTimeByFrequency1Params struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -129,151 +134,162 @@ type CityBusAPIRealTimeByFrequency1Params struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency1Params {
+// WithTimeout adds the timeout to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeByFrequency3Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency1Params {
+// WithContext adds the context to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithContext(ctx context.Context) *CityBusAPIRealTimeByFrequency3Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency1Params {
+// WithHTTPClient adds the HTTPClient to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeByFrequency3Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarCount(dollarCount *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarCount adds the dollarCount to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarCount(dollarCount *bool) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarFilter adds the dollarFilter to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarFormat adds the dollarFormat to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarSelect adds the dollarSelect to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarSkip adds the dollarSkip to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeByFrequency1Params {
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *CityBusAPIRealTimeByFrequency3Params {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
+// WithDollarTop adds the dollarTop to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeByFrequency3Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithCity(city string) *CityBusAPIRealTimeByFrequency1Params {
+// WithCity adds the city to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithCity(city string) *CityBusAPIRealTimeByFrequency3Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetCity(city string) {
+// SetCity adds the city to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetCity(city string) {
o.City = city
}
-// WithRouteName adds the routeName to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithRouteName(routeName string) *CityBusAPIRealTimeByFrequency1Params {
+// WithRouteName adds the routeName to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithRouteName(routeName string) *CityBusAPIRealTimeByFrequency3Params {
o.SetRouteName(routeName)
return o
}
-// SetRouteName adds the routeName to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetRouteName(routeName string) {
+// SetRouteName adds the routeName to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetRouteName(routeName string) {
o.RouteName = routeName
}
-// WithHealth adds the health to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) WithHealth(health *string) *CityBusAPIRealTimeByFrequency1Params {
+// WithHealth adds the health to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) WithHealth(health *string) *CityBusAPIRealTimeByFrequency3Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api real time by frequency 1 params
-func (o *CityBusAPIRealTimeByFrequency1Params) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api real time by frequency 3 params
+func (o *CityBusAPIRealTimeByFrequency3Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRealTimeByFrequency1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRealTimeByFrequency3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -283,11 +299,11 @@ func (o *CityBusAPIRealTimeByFrequency1Params) WriteToRequest(r runtime.ClientRe
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -369,6 +385,22 @@ func (o *CityBusAPIRealTimeByFrequency1Params) WriteToRequest(r runtime.ClientRe
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_responses.go
new file mode 100644
index 00000000..e084cda1
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency3_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRealTimeByFrequency3Reader is a Reader for the CityBusAPIRealTimeByFrequency3 structure.
+type CityBusAPIRealTimeByFrequency3Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRealTimeByFrequency3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRealTimeByFrequency3OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRealTimeByFrequency3Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRealTimeByFrequency3OK creates a CityBusAPIRealTimeByFrequency3OK with default headers values
+func NewCityBusAPIRealTimeByFrequency3OK() *CityBusAPIRealTimeByFrequency3OK {
+ return &CityBusAPIRealTimeByFrequency3OK{}
+}
+
+/*CityBusAPIRealTimeByFrequency3OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRealTimeByFrequency3OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data
+}
+
+func (o *CityBusAPIRealTimeByFrequency3OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency3OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeByFrequency3OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeByFrequency3OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRealTimeByFrequency3Status299 creates a CityBusAPIRealTimeByFrequency3Status299 with default headers values
+func NewCityBusAPIRealTimeByFrequency3Status299() *CityBusAPIRealTimeByFrequency3Status299 {
+ return &CityBusAPIRealTimeByFrequency3Status299{}
+}
+
+/*CityBusAPIRealTimeByFrequency3Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRealTimeByFrequency3Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRealTimeByFrequency3Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}][%d] cityBusApiRealTimeByFrequency3Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeByFrequency3Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeByFrequency3Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_responses.go
deleted file mode 100644
index 7056646a..00000000
--- a/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRealTimeByFrequencyReader is a Reader for the CityBusAPIRealTimeByFrequency structure.
-type CityBusAPIRealTimeByFrequencyReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRealTimeByFrequencyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRealTimeByFrequencyOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRealTimeByFrequencyStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRealTimeByFrequencyOK creates a CityBusAPIRealTimeByFrequencyOK with default headers values
-func NewCityBusAPIRealTimeByFrequencyOK() *CityBusAPIRealTimeByFrequencyOK {
- return &CityBusAPIRealTimeByFrequencyOK{}
-}
-
-/*CityBusAPIRealTimeByFrequencyOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRealTimeByFrequencyOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data
-}
-
-func (o *CityBusAPIRealTimeByFrequencyOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequencyOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeByFrequencyOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeByFrequencyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusA1Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRealTimeByFrequencyStatus299 creates a CityBusAPIRealTimeByFrequencyStatus299 with default headers values
-func NewCityBusAPIRealTimeByFrequencyStatus299() *CityBusAPIRealTimeByFrequencyStatus299 {
- return &CityBusAPIRealTimeByFrequencyStatus299{}
-}
-
-/*CityBusAPIRealTimeByFrequencyStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRealTimeByFrequencyStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeByFrequency/City/{City}][%d] cityBusApiRealTimeByFrequencyStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeByFrequencyStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_responses.go
deleted file mode 100644
index 2fece85f..00000000
--- a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRealTimeNearStop1Reader is a Reader for the CityBusAPIRealTimeNearStop1 structure.
-type CityBusAPIRealTimeNearStop1Reader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRealTimeNearStop1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRealTimeNearStop1OK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRealTimeNearStop1Status299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRealTimeNearStop1OK creates a CityBusAPIRealTimeNearStop1OK with default headers values
-func NewCityBusAPIRealTimeNearStop1OK() *CityBusAPIRealTimeNearStop1OK {
- return &CityBusAPIRealTimeNearStop1OK{}
-}
-
-/*CityBusAPIRealTimeNearStop1OK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRealTimeNearStop1OK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data
-}
-
-func (o *CityBusAPIRealTimeNearStop1OK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop1OK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeNearStop1OK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeNearStop1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRealTimeNearStop1Status299 creates a CityBusAPIRealTimeNearStop1Status299 with default headers values
-func NewCityBusAPIRealTimeNearStop1Status299() *CityBusAPIRealTimeNearStop1Status299 {
- return &CityBusAPIRealTimeNearStop1Status299{}
-}
-
-/*CityBusAPIRealTimeNearStop1Status299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRealTimeNearStop1Status299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop1Status299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeNearStop1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeNearStop1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_parameters.go
index a8d150f4..c3f7b975 100644
--- a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRealTimeNearStopParams creates a new CityBusAPIRealTimeNearStopParams object
+// NewCityBusAPIRealTimeNearStop2Params creates a new CityBusAPIRealTimeNearStop2Params object
// with the default values initialized.
-func NewCityBusAPIRealTimeNearStopParams() *CityBusAPIRealTimeNearStopParams {
+func NewCityBusAPIRealTimeNearStop2Params() *CityBusAPIRealTimeNearStop2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStopParams{
+ return &CityBusAPIRealTimeNearStop2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRealTimeNearStopParamsWithTimeout creates a new CityBusAPIRealTimeNearStopParams object
+// NewCityBusAPIRealTimeNearStop2ParamsWithTimeout creates a new CityBusAPIRealTimeNearStop2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRealTimeNearStopParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStopParams {
+func NewCityBusAPIRealTimeNearStop2ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStopParams{
+ return &CityBusAPIRealTimeNearStop2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRealTimeNearStopParamsWithContext creates a new CityBusAPIRealTimeNearStopParams object
+// NewCityBusAPIRealTimeNearStop2ParamsWithContext creates a new CityBusAPIRealTimeNearStop2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRealTimeNearStopParamsWithContext(ctx context.Context) *CityBusAPIRealTimeNearStopParams {
+func NewCityBusAPIRealTimeNearStop2ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeNearStop2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStopParams{
+ return &CityBusAPIRealTimeNearStop2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRealTimeNearStopParamsWithHTTPClient creates a new CityBusAPIRealTimeNearStopParams object
+// NewCityBusAPIRealTimeNearStop2ParamsWithHTTPClient creates a new CityBusAPIRealTimeNearStop2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRealTimeNearStopParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStopParams {
+func NewCityBusAPIRealTimeNearStop2ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStopParams{
+ return &CityBusAPIRealTimeNearStop2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRealTimeNearStopParams contains all the parameters to send to the API endpoint
-for the city bus Api real time near stop operation typically these are written to a http.Request
+/*CityBusAPIRealTimeNearStop2Params contains all the parameters to send to the API endpoint
+for the city bus Api real time near stop 2 operation typically these are written to a http.Request
*/
-type CityBusAPIRealTimeNearStopParams struct {
+type CityBusAPIRealTimeNearStop2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIRealTimeNearStopParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStopParams {
+// WithTimeout adds the timeout to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithContext(ctx context.Context) *CityBusAPIRealTimeNearStopParams {
+// WithContext adds the context to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithContext(ctx context.Context) *CityBusAPIRealTimeNearStop2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStopParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarCount(dollarCount *string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarCount adds the dollarCount to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarCount(dollarCount *bool) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeNearStopParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeNearStopParams {
+// WithDollarTop adds the dollarTop to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeNearStop2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithCity(city string) *CityBusAPIRealTimeNearStopParams {
+// WithCity adds the city to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithCity(city string) *CityBusAPIRealTimeNearStop2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) WithHealth(health *string) *CityBusAPIRealTimeNearStopParams {
+// WithHealth adds the health to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) WithHealth(health *string) *CityBusAPIRealTimeNearStop2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api real time near stop params
-func (o *CityBusAPIRealTimeNearStopParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api real time near stop 2 params
+func (o *CityBusAPIRealTimeNearStop2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRealTimeNearStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRealTimeNearStop2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIRealTimeNearStopParams) WriteToRequest(r runtime.ClientReques
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_responses.go
new file mode 100644
index 00000000..df879882
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRealTimeNearStop2Reader is a Reader for the CityBusAPIRealTimeNearStop2 structure.
+type CityBusAPIRealTimeNearStop2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRealTimeNearStop2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRealTimeNearStop2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRealTimeNearStop2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRealTimeNearStop2OK creates a CityBusAPIRealTimeNearStop2OK with default headers values
+func NewCityBusAPIRealTimeNearStop2OK() *CityBusAPIRealTimeNearStop2OK {
+ return &CityBusAPIRealTimeNearStop2OK{}
+}
+
+/*CityBusAPIRealTimeNearStop2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRealTimeNearStop2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data
+}
+
+func (o *CityBusAPIRealTimeNearStop2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStop2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeNearStop2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeNearStop2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRealTimeNearStop2Status299 creates a CityBusAPIRealTimeNearStop2Status299 with default headers values
+func NewCityBusAPIRealTimeNearStop2Status299() *CityBusAPIRealTimeNearStop2Status299 {
+ return &CityBusAPIRealTimeNearStop2Status299{}
+}
+
+/*CityBusAPIRealTimeNearStop2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRealTimeNearStop2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRealTimeNearStop2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStop2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeNearStop2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeNearStop2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_parameters.go
similarity index 63%
rename from bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_parameters.go
index b782f272..495d443e 100644
--- a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRealTimeNearStop1Params creates a new CityBusAPIRealTimeNearStop1Params object
+// NewCityBusAPIRealTimeNearStop3Params creates a new CityBusAPIRealTimeNearStop3Params object
// with the default values initialized.
-func NewCityBusAPIRealTimeNearStop1Params() *CityBusAPIRealTimeNearStop1Params {
+func NewCityBusAPIRealTimeNearStop3Params() *CityBusAPIRealTimeNearStop3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStop1Params{
+ return &CityBusAPIRealTimeNearStop3Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRealTimeNearStop1ParamsWithTimeout creates a new CityBusAPIRealTimeNearStop1Params object
+// NewCityBusAPIRealTimeNearStop3ParamsWithTimeout creates a new CityBusAPIRealTimeNearStop3Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRealTimeNearStop1ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop1Params {
+func NewCityBusAPIRealTimeNearStop3ParamsWithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStop1Params{
+ return &CityBusAPIRealTimeNearStop3Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRealTimeNearStop1ParamsWithContext creates a new CityBusAPIRealTimeNearStop1Params object
+// NewCityBusAPIRealTimeNearStop3ParamsWithContext creates a new CityBusAPIRealTimeNearStop3Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRealTimeNearStop1ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeNearStop1Params {
+func NewCityBusAPIRealTimeNearStop3ParamsWithContext(ctx context.Context) *CityBusAPIRealTimeNearStop3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStop1Params{
+ return &CityBusAPIRealTimeNearStop3Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRealTimeNearStop1ParamsWithHTTPClient creates a new CityBusAPIRealTimeNearStop1Params object
+// NewCityBusAPIRealTimeNearStop3ParamsWithHTTPClient creates a new CityBusAPIRealTimeNearStop3Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRealTimeNearStop1ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop1Params {
+func NewCityBusAPIRealTimeNearStop3ParamsWithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop3Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRealTimeNearStop1Params{
+ return &CityBusAPIRealTimeNearStop3Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRealTimeNearStop1Params contains all the parameters to send to the API endpoint
-for the city bus Api real time near stop 1 operation typically these are written to a http.Request
+/*CityBusAPIRealTimeNearStop3Params contains all the parameters to send to the API endpoint
+for the city bus Api real time near stop 3 operation typically these are written to a http.Request
*/
-type CityBusAPIRealTimeNearStop1Params struct {
+type CityBusAPIRealTimeNearStop3Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -129,151 +129,151 @@ type CityBusAPIRealTimeNearStop1Params struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop1Params {
+// WithTimeout adds the timeout to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithTimeout(timeout time.Duration) *CityBusAPIRealTimeNearStop3Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithContext(ctx context.Context) *CityBusAPIRealTimeNearStop1Params {
+// WithContext adds the context to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithContext(ctx context.Context) *CityBusAPIRealTimeNearStop3Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop1Params {
+// WithHTTPClient adds the HTTPClient to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithHTTPClient(client *http.Client) *CityBusAPIRealTimeNearStop3Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarCount(dollarCount *string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarCount adds the dollarCount to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarCount(dollarCount *bool) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarFilter adds the dollarFilter to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarFormat adds the dollarFormat to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarFormat(dollarFormat string) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarSelect adds the dollarSelect to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarSkip adds the dollarSkip to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeNearStop1Params {
+// WithDollarTop adds the dollarTop to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithDollarTop(dollarTop *int64) *CityBusAPIRealTimeNearStop3Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithCity(city string) *CityBusAPIRealTimeNearStop1Params {
+// WithCity adds the city to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithCity(city string) *CityBusAPIRealTimeNearStop3Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetCity(city string) {
+// SetCity adds the city to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetCity(city string) {
o.City = city
}
-// WithRouteName adds the routeName to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithRouteName(routeName string) *CityBusAPIRealTimeNearStop1Params {
+// WithRouteName adds the routeName to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithRouteName(routeName string) *CityBusAPIRealTimeNearStop3Params {
o.SetRouteName(routeName)
return o
}
-// SetRouteName adds the routeName to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetRouteName(routeName string) {
+// SetRouteName adds the routeName to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetRouteName(routeName string) {
o.RouteName = routeName
}
-// WithHealth adds the health to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) WithHealth(health *string) *CityBusAPIRealTimeNearStop1Params {
+// WithHealth adds the health to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) WithHealth(health *string) *CityBusAPIRealTimeNearStop3Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api real time near stop 1 params
-func (o *CityBusAPIRealTimeNearStop1Params) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api real time near stop 3 params
+func (o *CityBusAPIRealTimeNearStop3Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRealTimeNearStop1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRealTimeNearStop3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -283,11 +283,11 @@ func (o *CityBusAPIRealTimeNearStop1Params) WriteToRequest(r runtime.ClientReque
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_responses.go
new file mode 100644
index 00000000..78f92361
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop3_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRealTimeNearStop3Reader is a Reader for the CityBusAPIRealTimeNearStop3 structure.
+type CityBusAPIRealTimeNearStop3Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRealTimeNearStop3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRealTimeNearStop3OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRealTimeNearStop3Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRealTimeNearStop3OK creates a CityBusAPIRealTimeNearStop3OK with default headers values
+func NewCityBusAPIRealTimeNearStop3OK() *CityBusAPIRealTimeNearStop3OK {
+ return &CityBusAPIRealTimeNearStop3OK{}
+}
+
+/*CityBusAPIRealTimeNearStop3OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRealTimeNearStop3OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data
+}
+
+func (o *CityBusAPIRealTimeNearStop3OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop3OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeNearStop3OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeNearStop3OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRealTimeNearStop3Status299 creates a CityBusAPIRealTimeNearStop3Status299 with default headers values
+func NewCityBusAPIRealTimeNearStop3Status299() *CityBusAPIRealTimeNearStop3Status299 {
+ return &CityBusAPIRealTimeNearStop3Status299{}
+}
+
+/*CityBusAPIRealTimeNearStop3Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRealTimeNearStop3Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRealTimeNearStop3Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}/{RouteName}][%d] cityBusApiRealTimeNearStop3Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRealTimeNearStop3Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRealTimeNearStop3Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_responses.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_responses.go
deleted file mode 100644
index f4af3b9e..00000000
--- a/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRealTimeNearStopReader is a Reader for the CityBusAPIRealTimeNearStop structure.
-type CityBusAPIRealTimeNearStopReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRealTimeNearStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRealTimeNearStopOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRealTimeNearStopStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRealTimeNearStopOK creates a CityBusAPIRealTimeNearStopOK with default headers values
-func NewCityBusAPIRealTimeNearStopOK() *CityBusAPIRealTimeNearStopOK {
- return &CityBusAPIRealTimeNearStopOK{}
-}
-
-/*CityBusAPIRealTimeNearStopOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRealTimeNearStopOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data
-}
-
-func (o *CityBusAPIRealTimeNearStopOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStopOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeNearStopOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeNearStopOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusA2Data)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRealTimeNearStopStatus299 creates a CityBusAPIRealTimeNearStopStatus299 with default headers values
-func NewCityBusAPIRealTimeNearStopStatus299() *CityBusAPIRealTimeNearStopStatus299 {
- return &CityBusAPIRealTimeNearStopStatus299{}
-}
-
-/*CityBusAPIRealTimeNearStopStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRealTimeNearStopStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RealTimeNearStop/City/{City}][%d] cityBusApiRealTimeNearStopStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRealTimeNearStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRealTimeNearStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_route2_parameters.go
similarity index 59%
rename from bus/v3/client/city_bus/city_bus_api_route_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_route2_parameters.go
index f435e449..cfbb991f 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_route2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRouteParams creates a new CityBusAPIRouteParams object
+// NewCityBusAPIRoute2Params creates a new CityBusAPIRoute2Params object
// with the default values initialized.
-func NewCityBusAPIRouteParams() *CityBusAPIRouteParams {
+func NewCityBusAPIRoute2Params() *CityBusAPIRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteParams{
+ return &CityBusAPIRoute2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRouteParamsWithTimeout creates a new CityBusAPIRouteParams object
+// NewCityBusAPIRoute2ParamsWithTimeout creates a new CityBusAPIRoute2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRouteParamsWithTimeout(timeout time.Duration) *CityBusAPIRouteParams {
+func NewCityBusAPIRoute2ParamsWithTimeout(timeout time.Duration) *CityBusAPIRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteParams{
+ return &CityBusAPIRoute2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRouteParamsWithContext creates a new CityBusAPIRouteParams object
+// NewCityBusAPIRoute2ParamsWithContext creates a new CityBusAPIRoute2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRouteParamsWithContext(ctx context.Context) *CityBusAPIRouteParams {
+func NewCityBusAPIRoute2ParamsWithContext(ctx context.Context) *CityBusAPIRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteParams{
+ return &CityBusAPIRoute2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRouteParamsWithHTTPClient creates a new CityBusAPIRouteParams object
+// NewCityBusAPIRoute2ParamsWithHTTPClient creates a new CityBusAPIRoute2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRouteParamsWithHTTPClient(client *http.Client) *CityBusAPIRouteParams {
+func NewCityBusAPIRoute2ParamsWithHTTPClient(client *http.Client) *CityBusAPIRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteParams{
+ return &CityBusAPIRoute2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRouteParams contains all the parameters to send to the API endpoint
-for the city bus Api route operation typically these are written to a http.Request
+/*CityBusAPIRoute2Params contains all the parameters to send to the API endpoint
+for the city bus Api route 2 operation typically these are written to a http.Request
*/
-type CityBusAPIRouteParams struct {
+type CityBusAPIRoute2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIRouteParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithTimeout(timeout time.Duration) *CityBusAPIRouteParams {
+// WithTimeout adds the timeout to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithTimeout(timeout time.Duration) *CityBusAPIRoute2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithContext(ctx context.Context) *CityBusAPIRouteParams {
+// WithContext adds the context to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithContext(ctx context.Context) *CityBusAPIRoute2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithHTTPClient(client *http.Client) *CityBusAPIRouteParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithHTTPClient(client *http.Client) *CityBusAPIRoute2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarCount(dollarCount *string) *CityBusAPIRouteParams {
+// WithDollarCount adds the dollarCount to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarCount(dollarCount *bool) *CityBusAPIRoute2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRoute2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarFormat(dollarFormat string) *CityBusAPIRouteParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarFormat(dollarFormat string) *CityBusAPIRoute2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRouteParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRoute2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarSelect(dollarSelect *string) *CityBusAPIRouteParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRoute2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarSkip(dollarSkip *string) *CityBusAPIRouteParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRoute2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithDollarTop(dollarTop *int64) *CityBusAPIRouteParams {
+// WithDollarTop adds the dollarTop to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithDollarTop(dollarTop *int64) *CityBusAPIRoute2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithCity(city string) *CityBusAPIRouteParams {
+// WithCity adds the city to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithCity(city string) *CityBusAPIRoute2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api route params
-func (o *CityBusAPIRouteParams) WithHealth(health *string) *CityBusAPIRouteParams {
+// WithHealth adds the health to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) WithHealth(health *string) *CityBusAPIRoute2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api route params
-func (o *CityBusAPIRouteParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api route 2 params
+func (o *CityBusAPIRoute2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRoute2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIRouteParams) WriteToRequest(r runtime.ClientRequest, reg strf
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_route2_responses.go b/bus/v3/client/city_bus/city_bus_api_route2_responses.go
new file mode 100644
index 00000000..ee9a71e9
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_route2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRoute2Reader is a Reader for the CityBusAPIRoute2 structure.
+type CityBusAPIRoute2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRoute2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRoute2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRoute2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRoute2OK creates a CityBusAPIRoute2OK with default headers values
+func NewCityBusAPIRoute2OK() *CityBusAPIRoute2OK {
+ return &CityBusAPIRoute2OK{}
+}
+
+/*CityBusAPIRoute2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRoute2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route
+}
+
+func (o *CityBusAPIRoute2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Route/City/{City}][%d] cityBusApiRoute2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRoute2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route {
+ return o.Payload
+}
+
+func (o *CityBusAPIRoute2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRoute2Status299 creates a CityBusAPIRoute2Status299 with default headers values
+func NewCityBusAPIRoute2Status299() *CityBusAPIRoute2Status299 {
+ return &CityBusAPIRoute2Status299{}
+}
+
+/*CityBusAPIRoute2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRoute2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRoute2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Route/City/{City}][%d] cityBusApiRoute2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRoute2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRoute2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_fare2_parameters.go
similarity index 59%
rename from bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_route_fare2_parameters.go
index 45913304..760c3be0 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_fare2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIRouteFareParams creates a new CityBusAPIRouteFareParams object
+// NewCityBusAPIRouteFare2Params creates a new CityBusAPIRouteFare2Params object
// with the default values initialized.
-func NewCityBusAPIRouteFareParams() *CityBusAPIRouteFareParams {
+func NewCityBusAPIRouteFare2Params() *CityBusAPIRouteFare2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteFareParams{
+ return &CityBusAPIRouteFare2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIRouteFareParamsWithTimeout creates a new CityBusAPIRouteFareParams object
+// NewCityBusAPIRouteFare2ParamsWithTimeout creates a new CityBusAPIRouteFare2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIRouteFareParamsWithTimeout(timeout time.Duration) *CityBusAPIRouteFareParams {
+func NewCityBusAPIRouteFare2ParamsWithTimeout(timeout time.Duration) *CityBusAPIRouteFare2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteFareParams{
+ return &CityBusAPIRouteFare2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIRouteFareParamsWithContext creates a new CityBusAPIRouteFareParams object
+// NewCityBusAPIRouteFare2ParamsWithContext creates a new CityBusAPIRouteFare2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIRouteFareParamsWithContext(ctx context.Context) *CityBusAPIRouteFareParams {
+func NewCityBusAPIRouteFare2ParamsWithContext(ctx context.Context) *CityBusAPIRouteFare2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteFareParams{
+ return &CityBusAPIRouteFare2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIRouteFareParamsWithHTTPClient creates a new CityBusAPIRouteFareParams object
+// NewCityBusAPIRouteFare2ParamsWithHTTPClient creates a new CityBusAPIRouteFare2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIRouteFareParamsWithHTTPClient(client *http.Client) *CityBusAPIRouteFareParams {
+func NewCityBusAPIRouteFare2ParamsWithHTTPClient(client *http.Client) *CityBusAPIRouteFare2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIRouteFareParams{
+ return &CityBusAPIRouteFare2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIRouteFareParams contains all the parameters to send to the API endpoint
-for the city bus Api route fare operation typically these are written to a http.Request
+/*CityBusAPIRouteFare2Params contains all the parameters to send to the API endpoint
+for the city bus Api route fare 2 operation typically these are written to a http.Request
*/
-type CityBusAPIRouteFareParams struct {
+type CityBusAPIRouteFare2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIRouteFareParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithTimeout(timeout time.Duration) *CityBusAPIRouteFareParams {
+// WithTimeout adds the timeout to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithTimeout(timeout time.Duration) *CityBusAPIRouteFare2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithContext(ctx context.Context) *CityBusAPIRouteFareParams {
+// WithContext adds the context to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithContext(ctx context.Context) *CityBusAPIRouteFare2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithHTTPClient(client *http.Client) *CityBusAPIRouteFareParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithHTTPClient(client *http.Client) *CityBusAPIRouteFare2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarCount(dollarCount *string) *CityBusAPIRouteFareParams {
+// WithDollarCount adds the dollarCount to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarCount(dollarCount *bool) *CityBusAPIRouteFare2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteFareParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIRouteFare2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarFormat(dollarFormat string) *CityBusAPIRouteFareParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarFormat(dollarFormat string) *CityBusAPIRouteFare2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRouteFareParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIRouteFare2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarSelect(dollarSelect *string) *CityBusAPIRouteFareParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIRouteFare2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarSkip(dollarSkip *string) *CityBusAPIRouteFareParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIRouteFare2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithDollarTop(dollarTop *int64) *CityBusAPIRouteFareParams {
+// WithDollarTop adds the dollarTop to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithDollarTop(dollarTop *int64) *CityBusAPIRouteFare2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithCity(city string) *CityBusAPIRouteFareParams {
+// WithCity adds the city to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithCity(city string) *CityBusAPIRouteFare2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) WithHealth(health *string) *CityBusAPIRouteFareParams {
+// WithHealth adds the health to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) WithHealth(health *string) *CityBusAPIRouteFare2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api route fare params
-func (o *CityBusAPIRouteFareParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api route fare 2 params
+func (o *CityBusAPIRouteFare2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIRouteFareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIRouteFare2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIRouteFareParams) WriteToRequest(r runtime.ClientRequest, reg
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_route_fare2_responses.go b/bus/v3/client/city_bus/city_bus_api_route_fare2_responses.go
new file mode 100644
index 00000000..bfbb3e39
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_route_fare2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIRouteFare2Reader is a Reader for the CityBusAPIRouteFare2 structure.
+type CityBusAPIRouteFare2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIRouteFare2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIRouteFare2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIRouteFare2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIRouteFare2OK creates a CityBusAPIRouteFare2OK with default headers values
+func NewCityBusAPIRouteFare2OK() *CityBusAPIRouteFare2OK {
+ return &CityBusAPIRouteFare2OK{}
+}
+
+/*CityBusAPIRouteFare2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIRouteFare2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare
+}
+
+func (o *CityBusAPIRouteFare2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFare2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIRouteFare2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare {
+ return o.Payload
+}
+
+func (o *CityBusAPIRouteFare2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIRouteFare2Status299 creates a CityBusAPIRouteFare2Status299 with default headers values
+func NewCityBusAPIRouteFare2Status299() *CityBusAPIRouteFare2Status299 {
+ return &CityBusAPIRouteFare2Status299{}
+}
+
+/*CityBusAPIRouteFare2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIRouteFare2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIRouteFare2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFare2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIRouteFare2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIRouteFare2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_route_fare_responses.go b/bus/v3/client/city_bus/city_bus_api_route_fare_responses.go
deleted file mode 100644
index 421c1a48..00000000
--- a/bus/v3/client/city_bus/city_bus_api_route_fare_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRouteFareReader is a Reader for the CityBusAPIRouteFare structure.
-type CityBusAPIRouteFareReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRouteFareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRouteFareOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRouteFareStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRouteFareOK creates a CityBusAPIRouteFareOK with default headers values
-func NewCityBusAPIRouteFareOK() *CityBusAPIRouteFareOK {
- return &CityBusAPIRouteFareOK{}
-}
-
-/*CityBusAPIRouteFareOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRouteFareOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare
-}
-
-func (o *CityBusAPIRouteFareOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFareOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRouteFareOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare {
- return o.Payload
-}
-
-func (o *CityBusAPIRouteFareOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRouteFareStatus299 creates a CityBusAPIRouteFareStatus299 with default headers values
-func NewCityBusAPIRouteFareStatus299() *CityBusAPIRouteFareStatus299 {
- return &CityBusAPIRouteFareStatus299{}
-}
-
-/*CityBusAPIRouteFareStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRouteFareStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/RouteFare/City/{City}][%d] cityBusApiRouteFareStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRouteFareStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRouteFareStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go
index e8b9eb64..a43ab537 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIRouteNetworkParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPIRouteNetworkParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api route network params
-func (o *CityBusAPIRouteNetworkParams) WithDollarCount(dollarCount *string) *CityBusAPIRouteNetworkParams {
+func (o *CityBusAPIRouteNetworkParams) WithDollarCount(dollarCount *bool) *CityBusAPIRouteNetworkParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api route network params
-func (o *CityBusAPIRouteNetworkParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIRouteNetworkParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPIRouteNetworkParams) WriteToRequest(r runtime.ClientRequest, r
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_route_network_responses.go b/bus/v3/client/city_bus/city_bus_api_route_network_responses.go
index e595f412..7a86caf8 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_network_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_network_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIRouteNetworkOK() *CityBusAPIRouteNetworkOK {
/*CityBusAPIRouteNetworkOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIRouteNetworkOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork
}
func (o *CityBusAPIRouteNetworkOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIRouteNetworkOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork {
+func (o *CityBusAPIRouteNetworkOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork {
return o.Payload
}
func (o *CityBusAPIRouteNetworkOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIRouteNetworkStatus299() *CityBusAPIRouteNetworkStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteNetworkStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIRouteNetworkStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/RouteNetwork/City/{City}][%d] cityBusApiRouteNetworkStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIRouteNetworkStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIRouteNetworkStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteNetworkStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_route_responses.go b/bus/v3/client/city_bus/city_bus_api_route_responses.go
deleted file mode 100644
index f3f49f8c..00000000
--- a/bus/v3/client/city_bus/city_bus_api_route_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIRouteReader is a Reader for the CityBusAPIRoute structure.
-type CityBusAPIRouteReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIRouteOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIRouteStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIRouteOK creates a CityBusAPIRouteOK with default headers values
-func NewCityBusAPIRouteOK() *CityBusAPIRouteOK {
- return &CityBusAPIRouteOK{}
-}
-
-/*CityBusAPIRouteOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIRouteOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusRoute
-}
-
-func (o *CityBusAPIRouteOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Route/City/{City}][%d] cityBusApiRouteOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIRouteOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusRoute {
- return o.Payload
-}
-
-func (o *CityBusAPIRouteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusRoute)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIRouteStatus299 creates a CityBusAPIRouteStatus299 with default headers values
-func NewCityBusAPIRouteStatus299() *CityBusAPIRouteStatus299 {
- return &CityBusAPIRouteStatus299{}
-}
-
-/*CityBusAPIRouteStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIRouteStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Route/City/{City}][%d] cityBusApiRouteStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_parameters.go b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_parameters.go
index 433b5010..fd129bf9 100644
--- a/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIS2STravelTimeParams creates a new CityBusAPIS2STravelTimeParams object
+// NewCityBusAPIS2STravelTime1Params creates a new CityBusAPIS2STravelTime1Params object
// with the default values initialized.
-func NewCityBusAPIS2STravelTimeParams() *CityBusAPIS2STravelTimeParams {
+func NewCityBusAPIS2STravelTime1Params() *CityBusAPIS2STravelTime1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIS2STravelTimeParams{
+ return &CityBusAPIS2STravelTime1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIS2STravelTimeParamsWithTimeout creates a new CityBusAPIS2STravelTimeParams object
+// NewCityBusAPIS2STravelTime1ParamsWithTimeout creates a new CityBusAPIS2STravelTime1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIS2STravelTimeParamsWithTimeout(timeout time.Duration) *CityBusAPIS2STravelTimeParams {
+func NewCityBusAPIS2STravelTime1ParamsWithTimeout(timeout time.Duration) *CityBusAPIS2STravelTime1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIS2STravelTimeParams{
+ return &CityBusAPIS2STravelTime1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIS2STravelTimeParamsWithContext creates a new CityBusAPIS2STravelTimeParams object
+// NewCityBusAPIS2STravelTime1ParamsWithContext creates a new CityBusAPIS2STravelTime1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIS2STravelTimeParamsWithContext(ctx context.Context) *CityBusAPIS2STravelTimeParams {
+func NewCityBusAPIS2STravelTime1ParamsWithContext(ctx context.Context) *CityBusAPIS2STravelTime1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIS2STravelTimeParams{
+ return &CityBusAPIS2STravelTime1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIS2STravelTimeParamsWithHTTPClient creates a new CityBusAPIS2STravelTimeParams object
+// NewCityBusAPIS2STravelTime1ParamsWithHTTPClient creates a new CityBusAPIS2STravelTime1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIS2STravelTimeParamsWithHTTPClient(client *http.Client) *CityBusAPIS2STravelTimeParams {
+func NewCityBusAPIS2STravelTime1ParamsWithHTTPClient(client *http.Client) *CityBusAPIS2STravelTime1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIS2STravelTimeParams{
+ return &CityBusAPIS2STravelTime1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIS2STravelTimeParams contains all the parameters to send to the API endpoint
-for the city bus Api s2 s travel time operation typically these are written to a http.Request
+/*CityBusAPIS2STravelTime1Params contains all the parameters to send to the API endpoint
+for the city bus Api s2 s travel time 1 operation typically these are written to a http.Request
*/
-type CityBusAPIS2STravelTimeParams struct {
+type CityBusAPIS2STravelTime1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIS2STravelTimeParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithTimeout(timeout time.Duration) *CityBusAPIS2STravelTimeParams {
+// WithTimeout adds the timeout to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithTimeout(timeout time.Duration) *CityBusAPIS2STravelTime1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithContext(ctx context.Context) *CityBusAPIS2STravelTimeParams {
+// WithContext adds the context to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithContext(ctx context.Context) *CityBusAPIS2STravelTime1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithHTTPClient(client *http.Client) *CityBusAPIS2STravelTimeParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithHTTPClient(client *http.Client) *CityBusAPIS2STravelTime1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarCount(dollarCount *string) *CityBusAPIS2STravelTimeParams {
+// WithDollarCount adds the dollarCount to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarCount(dollarCount *bool) *CityBusAPIS2STravelTime1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarFilter(dollarFilter *string) *CityBusAPIS2STravelTimeParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIS2STravelTime1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarFormat(dollarFormat string) *CityBusAPIS2STravelTimeParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarFormat(dollarFormat string) *CityBusAPIS2STravelTime1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIS2STravelTimeParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIS2STravelTime1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarSelect(dollarSelect *string) *CityBusAPIS2STravelTimeParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIS2STravelTime1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarSkip(dollarSkip *string) *CityBusAPIS2STravelTimeParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIS2STravelTime1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithDollarTop(dollarTop *int64) *CityBusAPIS2STravelTimeParams {
+// WithDollarTop adds the dollarTop to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithDollarTop(dollarTop *int64) *CityBusAPIS2STravelTime1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithCity(city string) *CityBusAPIS2STravelTimeParams {
+// WithCity adds the city to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithCity(city string) *CityBusAPIS2STravelTime1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) WithHealth(health *string) *CityBusAPIS2STravelTimeParams {
+// WithHealth adds the health to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) WithHealth(health *string) *CityBusAPIS2STravelTime1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api s2 s travel time params
-func (o *CityBusAPIS2STravelTimeParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api s2 s travel time 1 params
+func (o *CityBusAPIS2STravelTime1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIS2STravelTimeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIS2STravelTime1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIS2STravelTimeParams) WriteToRequest(r runtime.ClientRequest,
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_responses.go b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_responses.go
new file mode 100644
index 00000000..217e8b4c
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIS2STravelTime1Reader is a Reader for the CityBusAPIS2STravelTime1 structure.
+type CityBusAPIS2STravelTime1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIS2STravelTime1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIS2STravelTime1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIS2STravelTime1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIS2STravelTime1OK creates a CityBusAPIS2STravelTime1OK with default headers values
+func NewCityBusAPIS2STravelTime1OK() *CityBusAPIS2STravelTime1OK {
+ return &CityBusAPIS2STravelTime1OK{}
+}
+
+/*CityBusAPIS2STravelTime1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIS2STravelTime1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime
+}
+
+func (o *CityBusAPIS2STravelTime1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/S2STravelTime/City/{City}][%d] cityBusApiS2STravelTime1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIS2STravelTime1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime {
+ return o.Payload
+}
+
+func (o *CityBusAPIS2STravelTime1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIS2STravelTime1Status299 creates a CityBusAPIS2STravelTime1Status299 with default headers values
+func NewCityBusAPIS2STravelTime1Status299() *CityBusAPIS2STravelTime1Status299 {
+ return &CityBusAPIS2STravelTime1Status299{}
+}
+
+/*CityBusAPIS2STravelTime1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIS2STravelTime1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIS2STravelTime1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/S2STravelTime/City/{City}][%d] cityBusApiS2STravelTime1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIS2STravelTime1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIS2STravelTime1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_responses.go b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_responses.go
deleted file mode 100644
index b17b9082..00000000
--- a/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIS2STravelTimeReader is a Reader for the CityBusAPIS2STravelTime structure.
-type CityBusAPIS2STravelTimeReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIS2STravelTimeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIS2STravelTimeOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIS2STravelTimeStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIS2STravelTimeOK creates a CityBusAPIS2STravelTimeOK with default headers values
-func NewCityBusAPIS2STravelTimeOK() *CityBusAPIS2STravelTimeOK {
- return &CityBusAPIS2STravelTimeOK{}
-}
-
-/*CityBusAPIS2STravelTimeOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIS2STravelTimeOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime
-}
-
-func (o *CityBusAPIS2STravelTimeOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/S2STravelTime/City/{City}][%d] cityBusApiS2STravelTimeOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIS2STravelTimeOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime {
- return o.Payload
-}
-
-func (o *CityBusAPIS2STravelTimeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIS2STravelTimeStatus299 creates a CityBusAPIS2STravelTimeStatus299 with default headers values
-func NewCityBusAPIS2STravelTimeStatus299() *CityBusAPIS2STravelTimeStatus299 {
- return &CityBusAPIS2STravelTimeStatus299{}
-}
-
-/*CityBusAPIS2STravelTimeStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIS2STravelTimeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIS2STravelTimeStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/S2STravelTime/City/{City}][%d] cityBusApiS2STravelTimeStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIS2STravelTimeStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIS2STravelTimeStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_schedule_parameters.go b/bus/v3/client/city_bus/city_bus_api_schedule2_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_schedule_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_schedule2_parameters.go
index 00695e77..b3d0edcb 100644
--- a/bus/v3/client/city_bus/city_bus_api_schedule_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_schedule2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIScheduleParams creates a new CityBusAPIScheduleParams object
+// NewCityBusAPISchedule2Params creates a new CityBusAPISchedule2Params object
// with the default values initialized.
-func NewCityBusAPIScheduleParams() *CityBusAPIScheduleParams {
+func NewCityBusAPISchedule2Params() *CityBusAPISchedule2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIScheduleParams{
+ return &CityBusAPISchedule2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIScheduleParamsWithTimeout creates a new CityBusAPIScheduleParams object
+// NewCityBusAPISchedule2ParamsWithTimeout creates a new CityBusAPISchedule2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIScheduleParamsWithTimeout(timeout time.Duration) *CityBusAPIScheduleParams {
+func NewCityBusAPISchedule2ParamsWithTimeout(timeout time.Duration) *CityBusAPISchedule2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIScheduleParams{
+ return &CityBusAPISchedule2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIScheduleParamsWithContext creates a new CityBusAPIScheduleParams object
+// NewCityBusAPISchedule2ParamsWithContext creates a new CityBusAPISchedule2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIScheduleParamsWithContext(ctx context.Context) *CityBusAPIScheduleParams {
+func NewCityBusAPISchedule2ParamsWithContext(ctx context.Context) *CityBusAPISchedule2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIScheduleParams{
+ return &CityBusAPISchedule2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIScheduleParamsWithHTTPClient creates a new CityBusAPIScheduleParams object
+// NewCityBusAPISchedule2ParamsWithHTTPClient creates a new CityBusAPISchedule2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIScheduleParamsWithHTTPClient(client *http.Client) *CityBusAPIScheduleParams {
+func NewCityBusAPISchedule2ParamsWithHTTPClient(client *http.Client) *CityBusAPISchedule2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIScheduleParams{
+ return &CityBusAPISchedule2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIScheduleParams contains all the parameters to send to the API endpoint
-for the city bus Api schedule operation typically these are written to a http.Request
+/*CityBusAPISchedule2Params contains all the parameters to send to the API endpoint
+for the city bus Api schedule 2 operation typically these are written to a http.Request
*/
-type CityBusAPIScheduleParams struct {
+type CityBusAPISchedule2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIScheduleParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithTimeout(timeout time.Duration) *CityBusAPIScheduleParams {
+// WithTimeout adds the timeout to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithTimeout(timeout time.Duration) *CityBusAPISchedule2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithContext(ctx context.Context) *CityBusAPIScheduleParams {
+// WithContext adds the context to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithContext(ctx context.Context) *CityBusAPISchedule2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithHTTPClient(client *http.Client) *CityBusAPIScheduleParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithHTTPClient(client *http.Client) *CityBusAPISchedule2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarCount(dollarCount *string) *CityBusAPIScheduleParams {
+// WithDollarCount adds the dollarCount to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarCount(dollarCount *bool) *CityBusAPISchedule2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarFilter(dollarFilter *string) *CityBusAPIScheduleParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarFilter(dollarFilter *string) *CityBusAPISchedule2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarFormat(dollarFormat string) *CityBusAPIScheduleParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarFormat(dollarFormat string) *CityBusAPISchedule2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIScheduleParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPISchedule2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarSelect(dollarSelect *string) *CityBusAPIScheduleParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarSelect(dollarSelect *string) *CityBusAPISchedule2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarSkip(dollarSkip *string) *CityBusAPIScheduleParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarSkip(dollarSkip *string) *CityBusAPISchedule2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithDollarTop(dollarTop *int64) *CityBusAPIScheduleParams {
+// WithDollarTop adds the dollarTop to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithDollarTop(dollarTop *int64) *CityBusAPISchedule2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithCity(city string) *CityBusAPIScheduleParams {
+// WithCity adds the city to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithCity(city string) *CityBusAPISchedule2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) WithHealth(health *string) *CityBusAPIScheduleParams {
+// WithHealth adds the health to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) WithHealth(health *string) *CityBusAPISchedule2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api schedule params
-func (o *CityBusAPIScheduleParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api schedule 2 params
+func (o *CityBusAPISchedule2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIScheduleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPISchedule2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIScheduleParams) WriteToRequest(r runtime.ClientRequest, reg s
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_schedule2_responses.go b/bus/v3/client/city_bus/city_bus_api_schedule2_responses.go
new file mode 100644
index 00000000..9f203205
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_schedule2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPISchedule2Reader is a Reader for the CityBusAPISchedule2 structure.
+type CityBusAPISchedule2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPISchedule2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPISchedule2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPISchedule2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPISchedule2OK creates a CityBusAPISchedule2OK with default headers values
+func NewCityBusAPISchedule2OK() *CityBusAPISchedule2OK {
+ return &CityBusAPISchedule2OK{}
+}
+
+/*CityBusAPISchedule2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPISchedule2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule
+}
+
+func (o *CityBusAPISchedule2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Schedule/City/{City}][%d] cityBusApiSchedule2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPISchedule2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule {
+ return o.Payload
+}
+
+func (o *CityBusAPISchedule2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPISchedule2Status299 creates a CityBusAPISchedule2Status299 with default headers values
+func NewCityBusAPISchedule2Status299() *CityBusAPISchedule2Status299 {
+ return &CityBusAPISchedule2Status299{}
+}
+
+/*CityBusAPISchedule2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPISchedule2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPISchedule2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Schedule/City/{City}][%d] cityBusApiSchedule2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPISchedule2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPISchedule2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_schedule_responses.go b/bus/v3/client/city_bus/city_bus_api_schedule_responses.go
deleted file mode 100644
index 83a81078..00000000
--- a/bus/v3/client/city_bus/city_bus_api_schedule_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIScheduleReader is a Reader for the CityBusAPISchedule structure.
-type CityBusAPIScheduleReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIScheduleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIScheduleOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIScheduleStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIScheduleOK creates a CityBusAPIScheduleOK with default headers values
-func NewCityBusAPIScheduleOK() *CityBusAPIScheduleOK {
- return &CityBusAPIScheduleOK{}
-}
-
-/*CityBusAPIScheduleOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIScheduleOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusSchedule
-}
-
-func (o *CityBusAPIScheduleOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Schedule/City/{City}][%d] cityBusApiScheduleOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIScheduleOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusSchedule {
- return o.Payload
-}
-
-func (o *CityBusAPIScheduleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusSchedule)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIScheduleStatus299 creates a CityBusAPIScheduleStatus299 with default headers values
-func NewCityBusAPIScheduleStatus299() *CityBusAPIScheduleStatus299 {
- return &CityBusAPIScheduleStatus299{}
-}
-
-/*CityBusAPIScheduleStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIScheduleStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Schedule/City/{City}][%d] cityBusApiScheduleStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIScheduleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIScheduleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_shape_parameters.go b/bus/v3/client/city_bus/city_bus_api_shape2_parameters.go
similarity index 59%
rename from bus/v3/client/city_bus/city_bus_api_shape_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_shape2_parameters.go
index ac08ae40..b355ac79 100644
--- a/bus/v3/client/city_bus/city_bus_api_shape_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_shape2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIShapeParams creates a new CityBusAPIShapeParams object
+// NewCityBusAPIShape2Params creates a new CityBusAPIShape2Params object
// with the default values initialized.
-func NewCityBusAPIShapeParams() *CityBusAPIShapeParams {
+func NewCityBusAPIShape2Params() *CityBusAPIShape2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIShapeParams{
+ return &CityBusAPIShape2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIShapeParamsWithTimeout creates a new CityBusAPIShapeParams object
+// NewCityBusAPIShape2ParamsWithTimeout creates a new CityBusAPIShape2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIShapeParamsWithTimeout(timeout time.Duration) *CityBusAPIShapeParams {
+func NewCityBusAPIShape2ParamsWithTimeout(timeout time.Duration) *CityBusAPIShape2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIShapeParams{
+ return &CityBusAPIShape2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIShapeParamsWithContext creates a new CityBusAPIShapeParams object
+// NewCityBusAPIShape2ParamsWithContext creates a new CityBusAPIShape2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIShapeParamsWithContext(ctx context.Context) *CityBusAPIShapeParams {
+func NewCityBusAPIShape2ParamsWithContext(ctx context.Context) *CityBusAPIShape2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIShapeParams{
+ return &CityBusAPIShape2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIShapeParamsWithHTTPClient creates a new CityBusAPIShapeParams object
+// NewCityBusAPIShape2ParamsWithHTTPClient creates a new CityBusAPIShape2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIShapeParamsWithHTTPClient(client *http.Client) *CityBusAPIShapeParams {
+func NewCityBusAPIShape2ParamsWithHTTPClient(client *http.Client) *CityBusAPIShape2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIShapeParams{
+ return &CityBusAPIShape2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIShapeParams contains all the parameters to send to the API endpoint
-for the city bus Api shape operation typically these are written to a http.Request
+/*CityBusAPIShape2Params contains all the parameters to send to the API endpoint
+for the city bus Api shape 2 operation typically these are written to a http.Request
*/
-type CityBusAPIShapeParams struct {
+type CityBusAPIShape2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIShapeParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithTimeout(timeout time.Duration) *CityBusAPIShapeParams {
+// WithTimeout adds the timeout to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithTimeout(timeout time.Duration) *CityBusAPIShape2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithContext(ctx context.Context) *CityBusAPIShapeParams {
+// WithContext adds the context to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithContext(ctx context.Context) *CityBusAPIShape2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithHTTPClient(client *http.Client) *CityBusAPIShapeParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithHTTPClient(client *http.Client) *CityBusAPIShape2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarCount(dollarCount *string) *CityBusAPIShapeParams {
+// WithDollarCount adds the dollarCount to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarCount(dollarCount *bool) *CityBusAPIShape2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarFilter(dollarFilter *string) *CityBusAPIShapeParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIShape2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarFormat(dollarFormat string) *CityBusAPIShapeParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarFormat(dollarFormat string) *CityBusAPIShape2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIShapeParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIShape2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarSelect(dollarSelect *string) *CityBusAPIShapeParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIShape2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarSkip(dollarSkip *string) *CityBusAPIShapeParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIShape2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithDollarTop(dollarTop *int64) *CityBusAPIShapeParams {
+// WithDollarTop adds the dollarTop to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithDollarTop(dollarTop *int64) *CityBusAPIShape2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithCity(city string) *CityBusAPIShapeParams {
+// WithCity adds the city to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithCity(city string) *CityBusAPIShape2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api shape params
-func (o *CityBusAPIShapeParams) WithHealth(health *string) *CityBusAPIShapeParams {
+// WithHealth adds the health to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) WithHealth(health *string) *CityBusAPIShape2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api shape params
-func (o *CityBusAPIShapeParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api shape 2 params
+func (o *CityBusAPIShape2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIShapeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIShape2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIShapeParams) WriteToRequest(r runtime.ClientRequest, reg strf
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_shape2_responses.go b/bus/v3/client/city_bus/city_bus_api_shape2_responses.go
new file mode 100644
index 00000000..dcef69ec
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_shape2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIShape2Reader is a Reader for the CityBusAPIShape2 structure.
+type CityBusAPIShape2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIShape2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIShape2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIShape2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIShape2OK creates a CityBusAPIShape2OK with default headers values
+func NewCityBusAPIShape2OK() *CityBusAPIShape2OK {
+ return &CityBusAPIShape2OK{}
+}
+
+/*CityBusAPIShape2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIShape2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape
+}
+
+func (o *CityBusAPIShape2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Shape/City/{City}][%d] cityBusApiShape2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIShape2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape {
+ return o.Payload
+}
+
+func (o *CityBusAPIShape2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIShape2Status299 creates a CityBusAPIShape2Status299 with default headers values
+func NewCityBusAPIShape2Status299() *CityBusAPIShape2Status299 {
+ return &CityBusAPIShape2Status299{}
+}
+
+/*CityBusAPIShape2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIShape2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIShape2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Shape/City/{City}][%d] cityBusApiShape2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIShape2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIShape2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_shape_responses.go b/bus/v3/client/city_bus/city_bus_api_shape_responses.go
deleted file mode 100644
index b6dbcc9d..00000000
--- a/bus/v3/client/city_bus/city_bus_api_shape_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIShapeReader is a Reader for the CityBusAPIShape structure.
-type CityBusAPIShapeReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIShapeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIShapeOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIShapeStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIShapeOK creates a CityBusAPIShapeOK with default headers values
-func NewCityBusAPIShapeOK() *CityBusAPIShapeOK {
- return &CityBusAPIShapeOK{}
-}
-
-/*CityBusAPIShapeOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIShapeOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusShape
-}
-
-func (o *CityBusAPIShapeOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Shape/City/{City}][%d] cityBusApiShapeOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIShapeOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusShape {
- return o.Payload
-}
-
-func (o *CityBusAPIShapeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusShape)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIShapeStatus299 creates a CityBusAPIShapeStatus299 with default headers values
-func NewCityBusAPIShapeStatus299() *CityBusAPIShapeStatus299 {
- return &CityBusAPIShapeStatus299{}
-}
-
-/*CityBusAPIShapeStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIShapeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIShapeStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Shape/City/{City}][%d] cityBusApiShapeStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIShapeStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIShapeStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_station_parameters.go b/bus/v3/client/city_bus/city_bus_api_station1_parameters.go
similarity index 54%
rename from bus/v3/client/city_bus/city_bus_api_station_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_station1_parameters.go
index c424feea..98a57236 100644
--- a/bus/v3/client/city_bus/city_bus_api_station_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_station1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIStationParams creates a new CityBusAPIStationParams object
+// NewCityBusAPIStation1Params creates a new CityBusAPIStation1Params object
// with the default values initialized.
-func NewCityBusAPIStationParams() *CityBusAPIStationParams {
+func NewCityBusAPIStation1Params() *CityBusAPIStation1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStationParams{
+ return &CityBusAPIStation1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIStationParamsWithTimeout creates a new CityBusAPIStationParams object
+// NewCityBusAPIStation1ParamsWithTimeout creates a new CityBusAPIStation1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIStationParamsWithTimeout(timeout time.Duration) *CityBusAPIStationParams {
+func NewCityBusAPIStation1ParamsWithTimeout(timeout time.Duration) *CityBusAPIStation1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStationParams{
+ return &CityBusAPIStation1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIStationParamsWithContext creates a new CityBusAPIStationParams object
+// NewCityBusAPIStation1ParamsWithContext creates a new CityBusAPIStation1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIStationParamsWithContext(ctx context.Context) *CityBusAPIStationParams {
+func NewCityBusAPIStation1ParamsWithContext(ctx context.Context) *CityBusAPIStation1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStationParams{
+ return &CityBusAPIStation1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIStationParamsWithHTTPClient creates a new CityBusAPIStationParams object
+// NewCityBusAPIStation1ParamsWithHTTPClient creates a new CityBusAPIStation1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIStationParamsWithHTTPClient(client *http.Client) *CityBusAPIStationParams {
+func NewCityBusAPIStation1ParamsWithHTTPClient(client *http.Client) *CityBusAPIStation1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStationParams{
+ return &CityBusAPIStation1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIStationParams contains all the parameters to send to the API endpoint
-for the city bus Api station operation typically these are written to a http.Request
+/*CityBusAPIStation1Params contains all the parameters to send to the API endpoint
+for the city bus Api station 1 operation typically these are written to a http.Request
*/
-type CityBusAPIStationParams struct {
+type CityBusAPIStation1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type CityBusAPIStationParams struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -124,140 +129,151 @@ type CityBusAPIStationParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api station params
-func (o *CityBusAPIStationParams) WithTimeout(timeout time.Duration) *CityBusAPIStationParams {
+// WithTimeout adds the timeout to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithTimeout(timeout time.Duration) *CityBusAPIStation1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api station params
-func (o *CityBusAPIStationParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api station params
-func (o *CityBusAPIStationParams) WithContext(ctx context.Context) *CityBusAPIStationParams {
+// WithContext adds the context to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithContext(ctx context.Context) *CityBusAPIStation1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api station params
-func (o *CityBusAPIStationParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api station params
-func (o *CityBusAPIStationParams) WithHTTPClient(client *http.Client) *CityBusAPIStationParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithHTTPClient(client *http.Client) *CityBusAPIStation1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api station params
-func (o *CityBusAPIStationParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarCount(dollarCount *string) *CityBusAPIStationParams {
+// WithDollarCount adds the dollarCount to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarCount(dollarCount *bool) *CityBusAPIStation1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarFilter(dollarFilter *string) *CityBusAPIStationParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIStation1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarFormat(dollarFormat string) *CityBusAPIStationParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarFormat(dollarFormat string) *CityBusAPIStation1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStationParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStation1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarSelect(dollarSelect *string) *CityBusAPIStationParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIStation1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarSkip(dollarSkip *string) *CityBusAPIStationParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIStation1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api station params
-func (o *CityBusAPIStationParams) WithDollarTop(dollarTop *int64) *CityBusAPIStationParams {
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *CityBusAPIStation1Params {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
+// WithDollarTop adds the dollarTop to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithDollarTop(dollarTop *int64) *CityBusAPIStation1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api station params
-func (o *CityBusAPIStationParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api station params
-func (o *CityBusAPIStationParams) WithCity(city string) *CityBusAPIStationParams {
+// WithCity adds the city to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithCity(city string) *CityBusAPIStation1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api station params
-func (o *CityBusAPIStationParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api station params
-func (o *CityBusAPIStationParams) WithHealth(health *string) *CityBusAPIStationParams {
+// WithHealth adds the health to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) WithHealth(health *string) *CityBusAPIStation1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api station params
-func (o *CityBusAPIStationParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api station 1 params
+func (o *CityBusAPIStation1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIStation1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +283,11 @@ func (o *CityBusAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg st
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -353,6 +369,22 @@ func (o *CityBusAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg st
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/bus/v3/client/city_bus/city_bus_api_station1_responses.go b/bus/v3/client/city_bus/city_bus_api_station1_responses.go
new file mode 100644
index 00000000..1453ff48
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_station1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIStation1Reader is a Reader for the CityBusAPIStation1 structure.
+type CityBusAPIStation1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIStation1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIStation1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIStation1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIStation1OK creates a CityBusAPIStation1OK with default headers values
+func NewCityBusAPIStation1OK() *CityBusAPIStation1OK {
+ return &CityBusAPIStation1OK{}
+}
+
+/*CityBusAPIStation1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIStation1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station
+}
+
+func (o *CityBusAPIStation1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Station/City/{City}][%d] cityBusApiStation1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIStation1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station {
+ return o.Payload
+}
+
+func (o *CityBusAPIStation1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIStation1Status299 creates a CityBusAPIStation1Status299 with default headers values
+func NewCityBusAPIStation1Status299() *CityBusAPIStation1Status299 {
+ return &CityBusAPIStation1Status299{}
+}
+
+/*CityBusAPIStation1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIStation1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIStation1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Station/City/{City}][%d] cityBusApiStation1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIStation1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIStation1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_station_responses.go b/bus/v3/client/city_bus/city_bus_api_station_responses.go
deleted file mode 100644
index 5972f2cf..00000000
--- a/bus/v3/client/city_bus/city_bus_api_station_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIStationReader is a Reader for the CityBusAPIStation structure.
-type CityBusAPIStationReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIStationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIStationOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIStationStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIStationOK creates a CityBusAPIStationOK with default headers values
-func NewCityBusAPIStationOK() *CityBusAPIStationOK {
- return &CityBusAPIStationOK{}
-}
-
-/*CityBusAPIStationOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIStationOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusStation
-}
-
-func (o *CityBusAPIStationOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Station/City/{City}][%d] cityBusApiStationOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIStationOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusStation {
- return o.Payload
-}
-
-func (o *CityBusAPIStationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusStation)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIStationStatus299 creates a CityBusAPIStationStatus299 with default headers values
-func NewCityBusAPIStationStatus299() *CityBusAPIStationStatus299 {
- return &CityBusAPIStationStatus299{}
-}
-
-/*CityBusAPIStationStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIStationStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Station/City/{City}][%d] cityBusApiStationStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIStationStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIStationStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_stop_parameters.go b/bus/v3/client/city_bus/city_bus_api_stop1_parameters.go
similarity index 53%
rename from bus/v3/client/city_bus/city_bus_api_stop_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_stop1_parameters.go
index 16d8d72a..f6a54fa5 100644
--- a/bus/v3/client/city_bus/city_bus_api_stop_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_stop1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIStopParams creates a new CityBusAPIStopParams object
+// NewCityBusAPIStop1Params creates a new CityBusAPIStop1Params object
// with the default values initialized.
-func NewCityBusAPIStopParams() *CityBusAPIStopParams {
+func NewCityBusAPIStop1Params() *CityBusAPIStop1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopParams{
+ return &CityBusAPIStop1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIStopParamsWithTimeout creates a new CityBusAPIStopParams object
+// NewCityBusAPIStop1ParamsWithTimeout creates a new CityBusAPIStop1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIStopParamsWithTimeout(timeout time.Duration) *CityBusAPIStopParams {
+func NewCityBusAPIStop1ParamsWithTimeout(timeout time.Duration) *CityBusAPIStop1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopParams{
+ return &CityBusAPIStop1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIStopParamsWithContext creates a new CityBusAPIStopParams object
+// NewCityBusAPIStop1ParamsWithContext creates a new CityBusAPIStop1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIStopParamsWithContext(ctx context.Context) *CityBusAPIStopParams {
+func NewCityBusAPIStop1ParamsWithContext(ctx context.Context) *CityBusAPIStop1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopParams{
+ return &CityBusAPIStop1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIStopParamsWithHTTPClient creates a new CityBusAPIStopParams object
+// NewCityBusAPIStop1ParamsWithHTTPClient creates a new CityBusAPIStop1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIStopParamsWithHTTPClient(client *http.Client) *CityBusAPIStopParams {
+func NewCityBusAPIStop1ParamsWithHTTPClient(client *http.Client) *CityBusAPIStop1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopParams{
+ return &CityBusAPIStop1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIStopParams contains all the parameters to send to the API endpoint
-for the city bus Api stop operation typically these are written to a http.Request
+/*CityBusAPIStop1Params contains all the parameters to send to the API endpoint
+for the city bus Api stop 1 operation typically these are written to a http.Request
*/
-type CityBusAPIStopParams struct {
+type CityBusAPIStop1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type CityBusAPIStopParams struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -124,140 +129,151 @@ type CityBusAPIStopParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithTimeout(timeout time.Duration) *CityBusAPIStopParams {
+// WithTimeout adds the timeout to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithTimeout(timeout time.Duration) *CityBusAPIStop1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithContext(ctx context.Context) *CityBusAPIStopParams {
+// WithContext adds the context to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithContext(ctx context.Context) *CityBusAPIStop1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithHTTPClient(client *http.Client) *CityBusAPIStopParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithHTTPClient(client *http.Client) *CityBusAPIStop1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarCount(dollarCount *string) *CityBusAPIStopParams {
+// WithDollarCount adds the dollarCount to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarCount(dollarCount *bool) *CityBusAPIStop1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarFilter(dollarFilter *string) *CityBusAPIStopParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIStop1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarFormat(dollarFormat string) *CityBusAPIStopParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarFormat(dollarFormat string) *CityBusAPIStop1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStopParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStop1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarSelect(dollarSelect *string) *CityBusAPIStopParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIStop1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarSkip(dollarSkip *string) *CityBusAPIStopParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIStop1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithDollarTop(dollarTop *int64) *CityBusAPIStopParams {
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *CityBusAPIStop1Params {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
+// WithDollarTop adds the dollarTop to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithDollarTop(dollarTop *int64) *CityBusAPIStop1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithCity(city string) *CityBusAPIStopParams {
+// WithCity adds the city to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithCity(city string) *CityBusAPIStop1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api stop params
-func (o *CityBusAPIStopParams) WithHealth(health *string) *CityBusAPIStopParams {
+// WithHealth adds the health to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) WithHealth(health *string) *CityBusAPIStop1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api stop params
-func (o *CityBusAPIStopParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api stop 1 params
+func (o *CityBusAPIStop1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIStop1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +283,11 @@ func (o *CityBusAPIStopParams) WriteToRequest(r runtime.ClientRequest, reg strfm
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -353,6 +369,22 @@ func (o *CityBusAPIStopParams) WriteToRequest(r runtime.ClientRequest, reg strfm
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/bus/v3/client/city_bus/city_bus_api_stop1_responses.go b/bus/v3/client/city_bus/city_bus_api_stop1_responses.go
new file mode 100644
index 00000000..e59913a1
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_stop1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIStop1Reader is a Reader for the CityBusAPIStop1 structure.
+type CityBusAPIStop1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIStop1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIStop1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIStop1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIStop1OK creates a CityBusAPIStop1OK with default headers values
+func NewCityBusAPIStop1OK() *CityBusAPIStop1OK {
+ return &CityBusAPIStop1OK{}
+}
+
+/*CityBusAPIStop1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIStop1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop
+}
+
+func (o *CityBusAPIStop1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Stop/City/{City}][%d] cityBusApiStop1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIStop1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop {
+ return o.Payload
+}
+
+func (o *CityBusAPIStop1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIStop1Status299 creates a CityBusAPIStop1Status299 with default headers values
+func NewCityBusAPIStop1Status299() *CityBusAPIStop1Status299 {
+ return &CityBusAPIStop1Status299{}
+}
+
+/*CityBusAPIStop1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIStop1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIStop1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Stop/City/{City}][%d] cityBusApiStop1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIStop1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIStop1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_stop_of_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_stop_of_route2_parameters.go
similarity index 62%
rename from bus/v3/client/city_bus/city_bus_api_stop_of_route_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_stop_of_route2_parameters.go
index c2a6fce6..01c3079d 100644
--- a/bus/v3/client/city_bus/city_bus_api_stop_of_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_stop_of_route2_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIStopOfRouteParams creates a new CityBusAPIStopOfRouteParams object
+// NewCityBusAPIStopOfRoute2Params creates a new CityBusAPIStopOfRoute2Params object
// with the default values initialized.
-func NewCityBusAPIStopOfRouteParams() *CityBusAPIStopOfRouteParams {
+func NewCityBusAPIStopOfRoute2Params() *CityBusAPIStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopOfRouteParams{
+ return &CityBusAPIStopOfRoute2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIStopOfRouteParamsWithTimeout creates a new CityBusAPIStopOfRouteParams object
+// NewCityBusAPIStopOfRoute2ParamsWithTimeout creates a new CityBusAPIStopOfRoute2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIStopOfRouteParamsWithTimeout(timeout time.Duration) *CityBusAPIStopOfRouteParams {
+func NewCityBusAPIStopOfRoute2ParamsWithTimeout(timeout time.Duration) *CityBusAPIStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopOfRouteParams{
+ return &CityBusAPIStopOfRoute2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIStopOfRouteParamsWithContext creates a new CityBusAPIStopOfRouteParams object
+// NewCityBusAPIStopOfRoute2ParamsWithContext creates a new CityBusAPIStopOfRoute2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIStopOfRouteParamsWithContext(ctx context.Context) *CityBusAPIStopOfRouteParams {
+func NewCityBusAPIStopOfRoute2ParamsWithContext(ctx context.Context) *CityBusAPIStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopOfRouteParams{
+ return &CityBusAPIStopOfRoute2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIStopOfRouteParamsWithHTTPClient creates a new CityBusAPIStopOfRouteParams object
+// NewCityBusAPIStopOfRoute2ParamsWithHTTPClient creates a new CityBusAPIStopOfRoute2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIStopOfRouteParamsWithHTTPClient(client *http.Client) *CityBusAPIStopOfRouteParams {
+func NewCityBusAPIStopOfRoute2ParamsWithHTTPClient(client *http.Client) *CityBusAPIStopOfRoute2Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIStopOfRouteParams{
+ return &CityBusAPIStopOfRoute2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIStopOfRouteParams contains all the parameters to send to the API endpoint
-for the city bus Api stop of route operation typically these are written to a http.Request
+/*CityBusAPIStopOfRoute2Params contains all the parameters to send to the API endpoint
+for the city bus Api stop of route 2 operation typically these are written to a http.Request
*/
-type CityBusAPIStopOfRouteParams struct {
+type CityBusAPIStopOfRoute2Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIStopOfRouteParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithTimeout(timeout time.Duration) *CityBusAPIStopOfRouteParams {
+// WithTimeout adds the timeout to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithTimeout(timeout time.Duration) *CityBusAPIStopOfRoute2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithContext(ctx context.Context) *CityBusAPIStopOfRouteParams {
+// WithContext adds the context to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithContext(ctx context.Context) *CityBusAPIStopOfRoute2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithHTTPClient(client *http.Client) *CityBusAPIStopOfRouteParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithHTTPClient(client *http.Client) *CityBusAPIStopOfRoute2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarCount(dollarCount *string) *CityBusAPIStopOfRouteParams {
+// WithDollarCount adds the dollarCount to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarCount(dollarCount *bool) *CityBusAPIStopOfRoute2Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarFilter(dollarFilter *string) *CityBusAPIStopOfRouteParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarFilter(dollarFilter *string) *CityBusAPIStopOfRoute2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarFormat(dollarFormat string) *CityBusAPIStopOfRouteParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarFormat(dollarFormat string) *CityBusAPIStopOfRoute2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStopOfRouteParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIStopOfRoute2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarSelect(dollarSelect *string) *CityBusAPIStopOfRouteParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarSelect(dollarSelect *string) *CityBusAPIStopOfRoute2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarSkip(dollarSkip *string) *CityBusAPIStopOfRouteParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarSkip(dollarSkip *string) *CityBusAPIStopOfRoute2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithDollarTop(dollarTop *int64) *CityBusAPIStopOfRouteParams {
+// WithDollarTop adds the dollarTop to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithDollarTop(dollarTop *int64) *CityBusAPIStopOfRoute2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithCity(city string) *CityBusAPIStopOfRouteParams {
+// WithCity adds the city to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithCity(city string) *CityBusAPIStopOfRoute2Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) WithHealth(health *string) *CityBusAPIStopOfRouteParams {
+// WithHealth adds the health to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) WithHealth(health *string) *CityBusAPIStopOfRoute2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api stop of route params
-func (o *CityBusAPIStopOfRouteParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api stop of route 2 params
+func (o *CityBusAPIStopOfRoute2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIStopOfRouteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIStopOfRoute2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIStopOfRouteParams) WriteToRequest(r runtime.ClientRequest, re
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_stop_of_route2_responses.go b/bus/v3/client/city_bus/city_bus_api_stop_of_route2_responses.go
new file mode 100644
index 00000000..6b7a8f8f
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_stop_of_route2_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIStopOfRoute2Reader is a Reader for the CityBusAPIStopOfRoute2 structure.
+type CityBusAPIStopOfRoute2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIStopOfRoute2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIStopOfRoute2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIStopOfRoute2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIStopOfRoute2OK creates a CityBusAPIStopOfRoute2OK with default headers values
+func NewCityBusAPIStopOfRoute2OK() *CityBusAPIStopOfRoute2OK {
+ return &CityBusAPIStopOfRoute2OK{}
+}
+
+/*CityBusAPIStopOfRoute2OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIStopOfRoute2OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute
+}
+
+func (o *CityBusAPIStopOfRoute2OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRoute2OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIStopOfRoute2OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute {
+ return o.Payload
+}
+
+func (o *CityBusAPIStopOfRoute2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIStopOfRoute2Status299 creates a CityBusAPIStopOfRoute2Status299 with default headers values
+func NewCityBusAPIStopOfRoute2Status299() *CityBusAPIStopOfRoute2Status299 {
+ return &CityBusAPIStopOfRoute2Status299{}
+}
+
+/*CityBusAPIStopOfRoute2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIStopOfRoute2Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIStopOfRoute2Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRoute2Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIStopOfRoute2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIStopOfRoute2Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_stop_of_route_responses.go b/bus/v3/client/city_bus/city_bus_api_stop_of_route_responses.go
deleted file mode 100644
index a8484f6c..00000000
--- a/bus/v3/client/city_bus/city_bus_api_stop_of_route_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIStopOfRouteReader is a Reader for the CityBusAPIStopOfRoute structure.
-type CityBusAPIStopOfRouteReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIStopOfRouteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIStopOfRouteOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIStopOfRouteStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIStopOfRouteOK creates a CityBusAPIStopOfRouteOK with default headers values
-func NewCityBusAPIStopOfRouteOK() *CityBusAPIStopOfRouteOK {
- return &CityBusAPIStopOfRouteOK{}
-}
-
-/*CityBusAPIStopOfRouteOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIStopOfRouteOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute
-}
-
-func (o *CityBusAPIStopOfRouteOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRouteOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIStopOfRouteOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute {
- return o.Payload
-}
-
-func (o *CityBusAPIStopOfRouteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIStopOfRouteStatus299 creates a CityBusAPIStopOfRouteStatus299 with default headers values
-func NewCityBusAPIStopOfRouteStatus299() *CityBusAPIStopOfRouteStatus299 {
- return &CityBusAPIStopOfRouteStatus299{}
-}
-
-/*CityBusAPIStopOfRouteStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIStopOfRouteStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/StopOfRoute/City/{City}][%d] cityBusApiStopOfRouteStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_stop_responses.go b/bus/v3/client/city_bus/city_bus_api_stop_responses.go
deleted file mode 100644
index a6eea172..00000000
--- a/bus/v3/client/city_bus/city_bus_api_stop_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIStopReader is a Reader for the CityBusAPIStop structure.
-type CityBusAPIStopReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIStopOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIStopStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIStopOK creates a CityBusAPIStopOK with default headers values
-func NewCityBusAPIStopOK() *CityBusAPIStopOK {
- return &CityBusAPIStopOK{}
-}
-
-/*CityBusAPIStopOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIStopOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusStop
-}
-
-func (o *CityBusAPIStopOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Stop/City/{City}][%d] cityBusApiStopOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIStopOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusStop {
- return o.Payload
-}
-
-func (o *CityBusAPIStopOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusStop)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIStopStatus299 creates a CityBusAPIStopStatus299 with default headers values
-func NewCityBusAPIStopStatus299() *CityBusAPIStopStatus299 {
- return &CityBusAPIStopStatus299{}
-}
-
-/*CityBusAPIStopStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIStopStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Stop/City/{City}][%d] cityBusApiStopStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_sub_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_sub_route_parameters.go
index 9acaedc5..0ae0bab5 100644
--- a/bus/v3/client/city_bus/city_bus_api_sub_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_sub_route_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPISubRouteParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPISubRouteParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api sub route params
-func (o *CityBusAPISubRouteParams) WithDollarCount(dollarCount *string) *CityBusAPISubRouteParams {
+func (o *CityBusAPISubRouteParams) WithDollarCount(dollarCount *bool) *CityBusAPISubRouteParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api sub route params
-func (o *CityBusAPISubRouteParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPISubRouteParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPISubRouteParams) WriteToRequest(r runtime.ClientRequest, reg s
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_sub_route_responses.go b/bus/v3/client/city_bus/city_bus_api_sub_route_responses.go
index 078b18d3..172a9e47 100644
--- a/bus/v3/client/city_bus/city_bus_api_sub_route_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_sub_route_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPISubRouteOK() *CityBusAPISubRouteOK {
/*CityBusAPISubRouteOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPISubRouteOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute
}
func (o *CityBusAPISubRouteOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/SubRoute/City/{City}][%d] cityBusApiSubRouteOK %+v", 200, o.Payload)
}
-func (o *CityBusAPISubRouteOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute {
+func (o *CityBusAPISubRouteOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute {
return o.Payload
}
func (o *CityBusAPISubRouteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPISubRouteStatus299() *CityBusAPISubRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPISubRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPISubRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/SubRoute/City/{City}][%d] cityBusApiSubRouteStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPISubRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPISubRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPISubRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_parameters.go b/bus/v3/client/city_bus/city_bus_api_vehicle1_parameters.go
similarity index 60%
rename from bus/v3/client/city_bus/city_bus_api_vehicle_parameters.go
rename to bus/v3/client/city_bus/city_bus_api_vehicle1_parameters.go
index 79711119..d70e5490 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle1_parameters.go
@@ -17,67 +17,67 @@ import (
"github.com/go-openapi/swag"
)
-// NewCityBusAPIVehicleParams creates a new CityBusAPIVehicleParams object
+// NewCityBusAPIVehicle1Params creates a new CityBusAPIVehicle1Params object
// with the default values initialized.
-func NewCityBusAPIVehicleParams() *CityBusAPIVehicleParams {
+func NewCityBusAPIVehicle1Params() *CityBusAPIVehicle1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIVehicleParams{
+ return &CityBusAPIVehicle1Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewCityBusAPIVehicleParamsWithTimeout creates a new CityBusAPIVehicleParams object
+// NewCityBusAPIVehicle1ParamsWithTimeout creates a new CityBusAPIVehicle1Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewCityBusAPIVehicleParamsWithTimeout(timeout time.Duration) *CityBusAPIVehicleParams {
+func NewCityBusAPIVehicle1ParamsWithTimeout(timeout time.Duration) *CityBusAPIVehicle1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIVehicleParams{
+ return &CityBusAPIVehicle1Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewCityBusAPIVehicleParamsWithContext creates a new CityBusAPIVehicleParams object
+// NewCityBusAPIVehicle1ParamsWithContext creates a new CityBusAPIVehicle1Params object
// with the default values initialized, and the ability to set a context for a request
-func NewCityBusAPIVehicleParamsWithContext(ctx context.Context) *CityBusAPIVehicleParams {
+func NewCityBusAPIVehicle1ParamsWithContext(ctx context.Context) *CityBusAPIVehicle1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIVehicleParams{
+ return &CityBusAPIVehicle1Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewCityBusAPIVehicleParamsWithHTTPClient creates a new CityBusAPIVehicleParams object
+// NewCityBusAPIVehicle1ParamsWithHTTPClient creates a new CityBusAPIVehicle1Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewCityBusAPIVehicleParamsWithHTTPClient(client *http.Client) *CityBusAPIVehicleParams {
+func NewCityBusAPIVehicle1ParamsWithHTTPClient(client *http.Client) *CityBusAPIVehicle1Params {
var (
dollarTopDefault = int64(30)
)
- return &CityBusAPIVehicleParams{
+ return &CityBusAPIVehicle1Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*CityBusAPIVehicleParams contains all the parameters to send to the API endpoint
-for the city bus Api vehicle operation typically these are written to a http.Request
+/*CityBusAPIVehicle1Params contains all the parameters to send to the API endpoint
+for the city bus Api vehicle 1 operation typically these are written to a http.Request
*/
-type CityBusAPIVehicleParams struct {
+type CityBusAPIVehicle1Params struct {
/*DollarCount
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -124,140 +124,140 @@ type CityBusAPIVehicleParams struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithTimeout(timeout time.Duration) *CityBusAPIVehicleParams {
+// WithTimeout adds the timeout to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithTimeout(timeout time.Duration) *CityBusAPIVehicle1Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithContext(ctx context.Context) *CityBusAPIVehicleParams {
+// WithContext adds the context to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithContext(ctx context.Context) *CityBusAPIVehicle1Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetContext(ctx context.Context) {
+// SetContext adds the context to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithHTTPClient(client *http.Client) *CityBusAPIVehicleParams {
+// WithHTTPClient adds the HTTPClient to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithHTTPClient(client *http.Client) *CityBusAPIVehicle1Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarCount adds the dollarCount to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarCount(dollarCount *string) *CityBusAPIVehicleParams {
+// WithDollarCount adds the dollarCount to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarCount(dollarCount *bool) *CityBusAPIVehicle1Params {
o.SetDollarCount(dollarCount)
return o
}
-// SetDollarCount adds the dollarCount to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarCount(dollarCount *string) {
+// SetDollarCount adds the dollarCount to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
-// WithDollarFilter adds the dollarFilter to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarFilter(dollarFilter *string) *CityBusAPIVehicleParams {
+// WithDollarFilter adds the dollarFilter to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarFilter(dollarFilter *string) *CityBusAPIVehicle1Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarFormat(dollarFormat string) *CityBusAPIVehicleParams {
+// WithDollarFormat adds the dollarFormat to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarFormat(dollarFormat string) *CityBusAPIVehicle1Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarOrderby(dollarOrderby *string) *CityBusAPIVehicleParams {
+// WithDollarOrderby adds the dollarOrderby to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarOrderby(dollarOrderby *string) *CityBusAPIVehicle1Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarSelect(dollarSelect *string) *CityBusAPIVehicleParams {
+// WithDollarSelect adds the dollarSelect to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarSelect(dollarSelect *string) *CityBusAPIVehicle1Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarSkip(dollarSkip *string) *CityBusAPIVehicleParams {
+// WithDollarSkip adds the dollarSkip to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarSkip(dollarSkip *string) *CityBusAPIVehicle1Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarTop adds the dollarTop to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithDollarTop(dollarTop *int64) *CityBusAPIVehicleParams {
+// WithDollarTop adds the dollarTop to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithDollarTop(dollarTop *int64) *CityBusAPIVehicle1Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithCity adds the city to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithCity(city string) *CityBusAPIVehicleParams {
+// WithCity adds the city to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithCity(city string) *CityBusAPIVehicle1Params {
o.SetCity(city)
return o
}
-// SetCity adds the city to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetCity(city string) {
+// SetCity adds the city to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetCity(city string) {
o.City = city
}
-// WithHealth adds the health to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) WithHealth(health *string) *CityBusAPIVehicleParams {
+// WithHealth adds the health to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) WithHealth(health *string) *CityBusAPIVehicle1Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the city bus Api vehicle params
-func (o *CityBusAPIVehicleParams) SetHealth(health *string) {
+// SetHealth adds the health to the city bus Api vehicle 1 params
+func (o *CityBusAPIVehicle1Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *CityBusAPIVehicleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *CityBusAPIVehicle1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
@@ -267,11 +267,11 @@ func (o *CityBusAPIVehicleParams) WriteToRequest(r runtime.ClientRequest, reg st
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle1_responses.go b/bus/v3/client/city_bus/city_bus_api_vehicle1_responses.go
new file mode 100644
index 00000000..f6ceab14
--- /dev/null
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle1_responses.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package city_bus
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/bus/v3/models"
+)
+
+// CityBusAPIVehicle1Reader is a Reader for the CityBusAPIVehicle1 structure.
+type CityBusAPIVehicle1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CityBusAPIVehicle1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewCityBusAPIVehicle1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewCityBusAPIVehicle1Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewCityBusAPIVehicle1OK creates a CityBusAPIVehicle1OK with default headers values
+func NewCityBusAPIVehicle1OK() *CityBusAPIVehicle1OK {
+ return &CityBusAPIVehicle1OK{}
+}
+
+/*CityBusAPIVehicle1OK handles this case with default header values.
+
+Success
+*/
+type CityBusAPIVehicle1OK struct {
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle
+}
+
+func (o *CityBusAPIVehicle1OK) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Vehicle/City/{City}][%d] cityBusApiVehicle1OK %+v", 200, o.Payload)
+}
+
+func (o *CityBusAPIVehicle1OK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle {
+ return o.Payload
+}
+
+func (o *CityBusAPIVehicle1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCityBusAPIVehicle1Status299 creates a CityBusAPIVehicle1Status299 with default headers values
+func NewCityBusAPIVehicle1Status299() *CityBusAPIVehicle1Status299 {
+ return &CityBusAPIVehicle1Status299{}
+}
+
+/*CityBusAPIVehicle1Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type CityBusAPIVehicle1Status299 struct {
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
+}
+
+func (o *CityBusAPIVehicle1Status299) Error() string {
+ return fmt.Sprintf("[GET /v3/Bus/Vehicle/City/{City}][%d] cityBusApiVehicle1Status299 %+v", 299, o.Payload)
+}
+
+func (o *CityBusAPIVehicle1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *CityBusAPIVehicle1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_depot_parameters.go b/bus/v3/client/city_bus/city_bus_api_vehicle_depot_parameters.go
index 47afd6e3..b8415635 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_depot_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_depot_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIVehicleDepotParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPIVehicleDepotParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api vehicle depot params
-func (o *CityBusAPIVehicleDepotParams) WithDollarCount(dollarCount *string) *CityBusAPIVehicleDepotParams {
+func (o *CityBusAPIVehicleDepotParams) WithDollarCount(dollarCount *bool) *CityBusAPIVehicleDepotParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api vehicle depot params
-func (o *CityBusAPIVehicleDepotParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIVehicleDepotParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPIVehicleDepotParams) WriteToRequest(r runtime.ClientRequest, r
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_depot_responses.go b/bus/v3/client/city_bus/city_bus_api_vehicle_depot_responses.go
index b2f1e1ba..f1a894c0 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_depot_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_depot_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIVehicleDepotOK() *CityBusAPIVehicleDepotOK {
/*CityBusAPIVehicleDepotOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIVehicleDepotOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot
}
func (o *CityBusAPIVehicleDepotOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/VehicleDepot/City/{City}][%d] cityBusApiVehicleDepotOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIVehicleDepotOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot {
+func (o *CityBusAPIVehicleDepotOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot {
return o.Payload
}
func (o *CityBusAPIVehicleDepotOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIVehicleDepotStatus299() *CityBusAPIVehicleDepotStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleDepotStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIVehicleDepotStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/VehicleDepot/City/{City}][%d] cityBusApiVehicleDepotStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIVehicleDepotStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIVehicleDepotStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIVehicleDepotStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_responses.go b/bus/v3/client/city_bus/city_bus_api_vehicle_responses.go
deleted file mode 100644
index 5c018b4a..00000000
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_responses.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package city_bus
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/minchao/go-ptx/bus/v3/models"
-)
-
-// CityBusAPIVehicleReader is a Reader for the CityBusAPIVehicle structure.
-type CityBusAPIVehicleReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CityBusAPIVehicleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewCityBusAPIVehicleOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewCityBusAPIVehicleStatus299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
- }
-}
-
-// NewCityBusAPIVehicleOK creates a CityBusAPIVehicleOK with default headers values
-func NewCityBusAPIVehicleOK() *CityBusAPIVehicleOK {
- return &CityBusAPIVehicleOK{}
-}
-
-/*CityBusAPIVehicleOK handles this case with default header values.
-
-OK
-*/
-type CityBusAPIVehicleOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicle
-}
-
-func (o *CityBusAPIVehicleOK) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Vehicle/City/{City}][%d] cityBusApiVehicleOK %+v", 200, o.Payload)
-}
-
-func (o *CityBusAPIVehicleOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicle {
- return o.Payload
-}
-
-func (o *CityBusAPIVehicleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicle)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCityBusAPIVehicleStatus299 creates a CityBusAPIVehicleStatus299 with default headers values
-func NewCityBusAPIVehicleStatus299() *CityBusAPIVehicleStatus299 {
- return &CityBusAPIVehicleStatus299{}
-}
-
-/*CityBusAPIVehicleStatus299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type CityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
-}
-
-func (o *CityBusAPIVehicleStatus299) Error() string {
- return fmt.Sprintf("[GET /v3/Bus/Vehicle/City/{City}][%d] cityBusApiVehicleStatus299 %+v", 299, o.Payload)
-}
-
-func (o *CityBusAPIVehicleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
- return o.Payload
-}
-
-func (o *CityBusAPIVehicleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_vehicle_route_parameters.go
index a8c044bc..fb4b7294 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_route_parameters.go
@@ -77,7 +77,7 @@ type CityBusAPIVehicleRouteParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *CityBusAPIVehicleRouteParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the city bus Api vehicle route params
-func (o *CityBusAPIVehicleRouteParams) WithDollarCount(dollarCount *string) *CityBusAPIVehicleRouteParams {
+func (o *CityBusAPIVehicleRouteParams) WithDollarCount(dollarCount *bool) *CityBusAPIVehicleRouteParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the city bus Api vehicle route params
-func (o *CityBusAPIVehicleRouteParams) SetDollarCount(dollarCount *string) {
+func (o *CityBusAPIVehicleRouteParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *CityBusAPIVehicleRouteParams) WriteToRequest(r runtime.ClientRequest, r
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/bus/v3/client/city_bus/city_bus_api_vehicle_route_responses.go b/bus/v3/client/city_bus/city_bus_api_vehicle_route_responses.go
index 32c5411f..f1607197 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_route_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_route_responses.go
@@ -48,23 +48,23 @@ func NewCityBusAPIVehicleRouteOK() *CityBusAPIVehicleRouteOK {
/*CityBusAPIVehicleRouteOK handles this case with default header values.
-OK
+Success
*/
type CityBusAPIVehicleRouteOK struct {
- Payload *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute
+ Payload *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute
}
func (o *CityBusAPIVehicleRouteOK) Error() string {
return fmt.Sprintf("[GET /v3/Bus/VehicleRoute/City/{City}][%d] cityBusApiVehicleRouteOK %+v", 200, o.Payload)
}
-func (o *CityBusAPIVehicleRouteOK) GetPayload() *models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute {
+func (o *CityBusAPIVehicleRouteOK) GetPayload() *models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute {
return o.Payload
}
func (o *CityBusAPIVehicleRouteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute)
+ o.Payload = new(models.PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
@@ -84,20 +84,20 @@ func NewCityBusAPIVehicleRouteStatus299() *CityBusAPIVehicleRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseDisplayHealth
+ Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
func (o *CityBusAPIVehicleRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v3/Bus/VehicleRoute/City/{City}][%d] cityBusApiVehicleRouteStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIVehicleRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+func (o *CityBusAPIVehicleRouteStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIVehicleRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
+ o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/bus/v3/client/city_bus/city_bus_client.go b/bus/v3/client/city_bus/city_bus_client.go
index 623de9e3..2d88f75c 100644
--- a/bus/v3/client/city_bus/city_bus_client.go
+++ b/bus/v3/client/city_bus/city_bus_client.go
@@ -33,54 +33,54 @@ type ClientService interface {
CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepotOK, *CityBusAPIDepotStatus299, error)
- CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error)
+ CityBusAPIDisplayStopOfRoute2(params *CityBusAPIDisplayStopOfRoute2Params) (*CityBusAPIDisplayStopOfRoute2OK, *CityBusAPIDisplayStopOfRoute2Status299, error)
- CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error)
+ CityBusAPIEstimatedTimeOfArrival2(params *CityBusAPIEstimatedTimeOfArrival2Params) (*CityBusAPIEstimatedTimeOfArrival2OK, *CityBusAPIEstimatedTimeOfArrival2Status299, error)
- CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error)
+ CityBusAPIEstimatedTimeOfArrival3(params *CityBusAPIEstimatedTimeOfArrival3Params) (*CityBusAPIEstimatedTimeOfArrival3OK, *CityBusAPIEstimatedTimeOfArrival3Status299, error)
- CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfoParams) (*CityBusAPIFirstLastTripInfoOK, *CityBusAPIFirstLastTripInfoStatus299, error)
+ CityBusAPIFirstLastTripInfo2(params *CityBusAPIFirstLastTripInfo2Params) (*CityBusAPIFirstLastTripInfo2OK, *CityBusAPIFirstLastTripInfo2Status299, error)
CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPINetworkOK, *CityBusAPINetworkStatus299, error)
- CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error)
+ CityBusAPINews1(params *CityBusAPINews1Params) (*CityBusAPINews1OK, *CityBusAPINews1Status299, error)
- CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error)
+ CityBusAPIOperator1(params *CityBusAPIOperator1Params) (*CityBusAPIOperator1OK, *CityBusAPIOperator1Status299, error)
- CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error)
+ CityBusAPIRealTimeByFrequency2(params *CityBusAPIRealTimeByFrequency2Params) (*CityBusAPIRealTimeByFrequency2OK, *CityBusAPIRealTimeByFrequency2Status299, error)
- CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error)
+ CityBusAPIRealTimeByFrequency3(params *CityBusAPIRealTimeByFrequency3Params) (*CityBusAPIRealTimeByFrequency3OK, *CityBusAPIRealTimeByFrequency3Status299, error)
- CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error)
+ CityBusAPIRealTimeNearStop2(params *CityBusAPIRealTimeNearStop2Params) (*CityBusAPIRealTimeNearStop2OK, *CityBusAPIRealTimeNearStop2Status299, error)
- CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error)
+ CityBusAPIRealTimeNearStop3(params *CityBusAPIRealTimeNearStop3Params) (*CityBusAPIRealTimeNearStop3OK, *CityBusAPIRealTimeNearStop3Status299, error)
- CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error)
-
- CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error)
+ CityBusAPIRouteFare2(params *CityBusAPIRouteFare2Params) (*CityBusAPIRouteFare2OK, *CityBusAPIRouteFare2Status299, error)
CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error)
- CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams) (*CityBusAPIS2STravelTimeOK, *CityBusAPIS2STravelTimeStatus299, error)
+ CityBusAPIRoute2(params *CityBusAPIRoute2Params) (*CityBusAPIRoute2OK, *CityBusAPIRoute2Status299, error)
- CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error)
+ CityBusAPIS2STravelTime1(params *CityBusAPIS2STravelTime1Params) (*CityBusAPIS2STravelTime1OK, *CityBusAPIS2STravelTime1Status299, error)
- CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error)
+ CityBusAPISchedule2(params *CityBusAPISchedule2Params) (*CityBusAPISchedule2OK, *CityBusAPISchedule2Status299, error)
- CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error)
+ CityBusAPIShape2(params *CityBusAPIShape2Params) (*CityBusAPIShape2OK, *CityBusAPIShape2Status299, error)
- CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error)
+ CityBusAPIStation1(params *CityBusAPIStation1Params) (*CityBusAPIStation1OK, *CityBusAPIStation1Status299, error)
- CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error)
+ CityBusAPIStopOfRoute2(params *CityBusAPIStopOfRoute2Params) (*CityBusAPIStopOfRoute2OK, *CityBusAPIStopOfRoute2Status299, error)
- CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusAPISubRouteOK, *CityBusAPISubRouteStatus299, error)
+ CityBusAPIStop1(params *CityBusAPIStop1Params) (*CityBusAPIStop1OK, *CityBusAPIStop1Status299, error)
- CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error)
+ CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusAPISubRouteOK, *CityBusAPISubRouteStatus299, error)
CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*CityBusAPIVehicleDepotOK, *CityBusAPIVehicleDepotStatus299, error)
CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*CityBusAPIVehicleRouteOK, *CityBusAPIVehicleRouteStatus299, error)
+ CityBusAPIVehicle1(params *CityBusAPIVehicle1Params) (*CityBusAPIVehicle1OK, *CityBusAPIVehicle1Status299, error)
+
SetTransport(transport runtime.ClientTransport)
}
@@ -99,7 +99,7 @@ func (a *Client) CityBusAPIAlert(params *CityBusAPIAlertParams) (*CityBusAPIAler
ID: "CityBusApi_Alert",
Method: "GET",
PathPattern: "/v3/Bus/Alert/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -134,7 +134,7 @@ func (a *Client) CityBusAPIDailyTimeTable(params *CityBusAPIDailyTimeTableParams
ID: "CityBusApi_DailyTimeTable",
Method: "GET",
PathPattern: "/v3/Bus/DailyTimeTable/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -169,7 +169,7 @@ func (a *Client) CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepo
ID: "CityBusApi_Depot",
Method: "GET",
PathPattern: "/v3/Bus/Depot/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -192,23 +192,23 @@ func (a *Client) CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepo
}
/*
- CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料
+ CityBusAPIDisplayStopOfRoute2 取得指定s 縣市 的市區公車顯示用路線站序資料
*/
-func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error) {
+func (a *Client) CityBusAPIDisplayStopOfRoute2(params *CityBusAPIDisplayStopOfRoute2Params) (*CityBusAPIDisplayStopOfRoute2OK, *CityBusAPIDisplayStopOfRoute2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIDisplayStopOfRouteParams()
+ params = NewCityBusAPIDisplayStopOfRoute2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_DisplayStopOfRoute",
+ ID: "CityBusApi_DisplayStopOfRoute_2",
Method: "GET",
PathPattern: "/v3/Bus/DisplayStopOfRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIDisplayStopOfRouteReader{formats: a.formats},
+ Reader: &CityBusAPIDisplayStopOfRoute2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -216,9 +216,9 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIDisplayStopOfRouteOK:
+ case *CityBusAPIDisplayStopOfRoute2OK:
return value, nil, nil
- case *CityBusAPIDisplayStopOfRouteStatus299:
+ case *CityBusAPIDisplayStopOfRoute2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -227,25 +227,25 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
}
/*
- CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1
+ CityBusAPIEstimatedTimeOfArrival2 取得指定s 縣市 的公車預估到站資料 n1
- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
+ [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
*/
-func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error) {
+func (a *Client) CityBusAPIEstimatedTimeOfArrival2(params *CityBusAPIEstimatedTimeOfArrival2Params) (*CityBusAPIEstimatedTimeOfArrival2OK, *CityBusAPIEstimatedTimeOfArrival2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIEstimatedTimeOfArrivalParams()
+ params = NewCityBusAPIEstimatedTimeOfArrival2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_EstimatedTimeOfArrival",
+ ID: "CityBusApi_EstimatedTimeOfArrival_2",
Method: "GET",
PathPattern: "/v3/Bus/EstimatedTimeOfArrival/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIEstimatedTimeOfArrivalReader{formats: a.formats},
+ Reader: &CityBusAPIEstimatedTimeOfArrival2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -253,9 +253,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIEstimatedTimeOfArrivalOK:
+ case *CityBusAPIEstimatedTimeOfArrival2OK:
return value, nil, nil
- case *CityBusAPIEstimatedTimeOfArrivalStatus299:
+ case *CityBusAPIEstimatedTimeOfArrival2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -264,25 +264,25 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
}
/*
- CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1
+ CityBusAPIEstimatedTimeOfArrival3 取得指定s 縣市 路線名稱 的公車預估到站資料 n1
- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
+ [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
*/
-func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error) {
+func (a *Client) CityBusAPIEstimatedTimeOfArrival3(params *CityBusAPIEstimatedTimeOfArrival3Params) (*CityBusAPIEstimatedTimeOfArrival3OK, *CityBusAPIEstimatedTimeOfArrival3Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIEstimatedTimeOfArrival1Params()
+ params = NewCityBusAPIEstimatedTimeOfArrival3Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_EstimatedTimeOfArrival_1",
+ ID: "CityBusApi_EstimatedTimeOfArrival_3",
Method: "GET",
PathPattern: "/v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIEstimatedTimeOfArrival1Reader{formats: a.formats},
+ Reader: &CityBusAPIEstimatedTimeOfArrival3Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -290,9 +290,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIEstimatedTimeOfArrival1OK:
+ case *CityBusAPIEstimatedTimeOfArrival3OK:
return value, nil, nil
- case *CityBusAPIEstimatedTimeOfArrival1Status299:
+ case *CityBusAPIEstimatedTimeOfArrival3Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -301,23 +301,23 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
}
/*
- CityBusAPIFirstLastTripInfo 取得指定s 縣市 的市區公車路線定期首末班車資料
+ CityBusAPIFirstLastTripInfo2 取得指定s 縣市 的市區公車路線定期首末班車資料
*/
-func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfoParams) (*CityBusAPIFirstLastTripInfoOK, *CityBusAPIFirstLastTripInfoStatus299, error) {
+func (a *Client) CityBusAPIFirstLastTripInfo2(params *CityBusAPIFirstLastTripInfo2Params) (*CityBusAPIFirstLastTripInfo2OK, *CityBusAPIFirstLastTripInfo2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIFirstLastTripInfoParams()
+ params = NewCityBusAPIFirstLastTripInfo2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_FirstLastTripInfo",
+ ID: "CityBusApi_FirstLastTripInfo_2",
Method: "GET",
PathPattern: "/v3/Bus/FirstLastTripInfo/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIFirstLastTripInfoReader{formats: a.formats},
+ Reader: &CityBusAPIFirstLastTripInfo2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -325,9 +325,9 @@ func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfo
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIFirstLastTripInfoOK:
+ case *CityBusAPIFirstLastTripInfo2OK:
return value, nil, nil
- case *CityBusAPIFirstLastTripInfoStatus299:
+ case *CityBusAPIFirstLastTripInfo2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -348,7 +348,7 @@ func (a *Client) CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPI
ID: "CityBusApi_Network",
Method: "GET",
PathPattern: "/v3/Bus/Network/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -371,25 +371,25 @@ func (a *Client) CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPI
}
/*
- CityBusAPINews 取得指定s 縣市 的公車最新消息
+ CityBusAPINews1 取得指定s 縣市 的公車最新消息
市區公車之最新消息
*/
-func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error) {
+func (a *Client) CityBusAPINews1(params *CityBusAPINews1Params) (*CityBusAPINews1OK, *CityBusAPINews1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPINewsParams()
+ params = NewCityBusAPINews1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_News",
+ ID: "CityBusApi_News_1",
Method: "GET",
PathPattern: "/v3/Bus/News/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPINewsReader{formats: a.formats},
+ Reader: &CityBusAPINews1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -397,9 +397,9 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPINewsOK:
+ case *CityBusAPINews1OK:
return value, nil, nil
- case *CityBusAPINewsStatus299:
+ case *CityBusAPINews1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -408,23 +408,23 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
}
/*
- CityBusAPIOperator 取得指定s 縣市 的市區公車營運業者資料
+ CityBusAPIOperator1 取得指定s 縣市 的市區公車營運業者資料
*/
-func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error) {
+func (a *Client) CityBusAPIOperator1(params *CityBusAPIOperator1Params) (*CityBusAPIOperator1OK, *CityBusAPIOperator1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIOperatorParams()
+ params = NewCityBusAPIOperator1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Operator",
+ ID: "CityBusApi_Operator_1",
Method: "GET",
PathPattern: "/v3/Bus/Operator/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIOperatorReader{formats: a.formats},
+ Reader: &CityBusAPIOperator1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -432,9 +432,9 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIOperatorOK:
+ case *CityBusAPIOperator1OK:
return value, nil, nil
- case *CityBusAPIOperatorStatus299:
+ case *CityBusAPIOperator1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -443,25 +443,25 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
}
/*
- CityBusAPIRealTimeByFrequency 取得指定s 縣市 的公車動態定時資料 a1
+ CityBusAPIRealTimeByFrequency2 取得指定s 縣市 的公車動態定時資料 a1
市區公車之定時資料(A1)
*/
-func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error) {
+func (a *Client) CityBusAPIRealTimeByFrequency2(params *CityBusAPIRealTimeByFrequency2Params) (*CityBusAPIRealTimeByFrequency2OK, *CityBusAPIRealTimeByFrequency2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRealTimeByFrequencyParams()
+ params = NewCityBusAPIRealTimeByFrequency2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RealTimeByFrequency",
+ ID: "CityBusApi_RealTimeByFrequency_2",
Method: "GET",
PathPattern: "/v3/Bus/RealTimeByFrequency/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRealTimeByFrequencyReader{formats: a.formats},
+ Reader: &CityBusAPIRealTimeByFrequency2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -469,9 +469,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRealTimeByFrequencyOK:
+ case *CityBusAPIRealTimeByFrequency2OK:
return value, nil, nil
- case *CityBusAPIRealTimeByFrequencyStatus299:
+ case *CityBusAPIRealTimeByFrequency2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -480,25 +480,25 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
}
/*
- CityBusAPIRealTimeByFrequency1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1
+ CityBusAPIRealTimeByFrequency3 取得指定s 縣市 路線名稱 的公車動態定時資料 a1
市區公車之定時資料(A1)
*/
-func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error) {
+func (a *Client) CityBusAPIRealTimeByFrequency3(params *CityBusAPIRealTimeByFrequency3Params) (*CityBusAPIRealTimeByFrequency3OK, *CityBusAPIRealTimeByFrequency3Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRealTimeByFrequency1Params()
+ params = NewCityBusAPIRealTimeByFrequency3Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RealTimeByFrequency_1",
+ ID: "CityBusApi_RealTimeByFrequency_3",
Method: "GET",
PathPattern: "/v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRealTimeByFrequency1Reader{formats: a.formats},
+ Reader: &CityBusAPIRealTimeByFrequency3Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -506,9 +506,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRealTimeByFrequency1OK:
+ case *CityBusAPIRealTimeByFrequency3OK:
return value, nil, nil
- case *CityBusAPIRealTimeByFrequency1Status299:
+ case *CityBusAPIRealTimeByFrequency3Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -517,25 +517,25 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
}
/*
- CityBusAPIRealTimeNearStop 取得指定s 縣市 的公車動態定點資料 a2
+ CityBusAPIRealTimeNearStop2 取得指定s 縣市 的公車動態定點資料 a2
市區公車之定點資料(A2)
*/
-func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error) {
+func (a *Client) CityBusAPIRealTimeNearStop2(params *CityBusAPIRealTimeNearStop2Params) (*CityBusAPIRealTimeNearStop2OK, *CityBusAPIRealTimeNearStop2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRealTimeNearStopParams()
+ params = NewCityBusAPIRealTimeNearStop2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RealTimeNearStop",
+ ID: "CityBusApi_RealTimeNearStop_2",
Method: "GET",
PathPattern: "/v3/Bus/RealTimeNearStop/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRealTimeNearStopReader{formats: a.formats},
+ Reader: &CityBusAPIRealTimeNearStop2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -543,9 +543,9 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRealTimeNearStopOK:
+ case *CityBusAPIRealTimeNearStop2OK:
return value, nil, nil
- case *CityBusAPIRealTimeNearStopStatus299:
+ case *CityBusAPIRealTimeNearStop2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -554,25 +554,25 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
}
/*
- CityBusAPIRealTimeNearStop1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2
+ CityBusAPIRealTimeNearStop3 取得指定s 縣市 路線名稱 的公車動態定點資料 a2
市區公車之定點資料(A2)
*/
-func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error) {
+func (a *Client) CityBusAPIRealTimeNearStop3(params *CityBusAPIRealTimeNearStop3Params) (*CityBusAPIRealTimeNearStop3OK, *CityBusAPIRealTimeNearStop3Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRealTimeNearStop1Params()
+ params = NewCityBusAPIRealTimeNearStop3Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RealTimeNearStop_1",
+ ID: "CityBusApi_RealTimeNearStop_3",
Method: "GET",
PathPattern: "/v3/Bus/RealTimeNearStop/City/{City}/{RouteName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRealTimeNearStop1Reader{formats: a.formats},
+ Reader: &CityBusAPIRealTimeNearStop3Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -580,9 +580,9 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRealTimeNearStop1OK:
+ case *CityBusAPIRealTimeNearStop3OK:
return value, nil, nil
- case *CityBusAPIRealTimeNearStop1Status299:
+ case *CityBusAPIRealTimeNearStop3Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -591,25 +591,23 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
}
/*
- CityBusAPIRoute 取得指定s 縣市 的市區公車路線資料
-
- 市區公車之路線資料
+ CityBusAPIRouteFare2 取得指定s 縣市 的市區公車路線票價資料
*/
-func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error) {
+func (a *Client) CityBusAPIRouteFare2(params *CityBusAPIRouteFare2Params) (*CityBusAPIRouteFare2OK, *CityBusAPIRouteFare2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRouteParams()
+ params = NewCityBusAPIRouteFare2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Route",
+ ID: "CityBusApi_RouteFare_2",
Method: "GET",
- PathPattern: "/v3/Bus/Route/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/RouteFare/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRouteReader{formats: a.formats},
+ Reader: &CityBusAPIRouteFare2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -617,9 +615,9 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRouteOK:
+ case *CityBusAPIRouteFare2OK:
return value, nil, nil
- case *CityBusAPIRouteStatus299:
+ case *CityBusAPIRouteFare2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -628,23 +626,23 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
}
/*
- CityBusAPIRouteFare 取得指定s 縣市 的市區公車路線票價資料
+ CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料
*/
-func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error) {
+func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRouteFareParams()
+ params = NewCityBusAPIRouteNetworkParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RouteFare",
+ ID: "CityBusApi_RouteNetwork",
Method: "GET",
- PathPattern: "/v3/Bus/RouteFare/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/RouteNetwork/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRouteFareReader{formats: a.formats},
+ Reader: &CityBusAPIRouteNetworkReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -652,9 +650,9 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRouteFareOK:
+ case *CityBusAPIRouteNetworkOK:
return value, nil, nil
- case *CityBusAPIRouteFareStatus299:
+ case *CityBusAPIRouteNetworkStatus299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -663,23 +661,25 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
}
/*
- CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料
+ CityBusAPIRoute2 取得指定s 縣市 的市區公車路線資料
+
+ 市區公車之路線資料
*/
-func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) {
+func (a *Client) CityBusAPIRoute2(params *CityBusAPIRoute2Params) (*CityBusAPIRoute2OK, *CityBusAPIRoute2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIRouteNetworkParams()
+ params = NewCityBusAPIRoute2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_RouteNetwork",
+ ID: "CityBusApi_Route_2",
Method: "GET",
- PathPattern: "/v3/Bus/RouteNetwork/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/Route/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIRouteNetworkReader{formats: a.formats},
+ Reader: &CityBusAPIRoute2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -687,9 +687,9 @@ func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIRouteNetworkOK:
+ case *CityBusAPIRoute2OK:
return value, nil, nil
- case *CityBusAPIRouteNetworkStatus299:
+ case *CityBusAPIRoute2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -698,23 +698,23 @@ func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*
}
/*
- CityBusAPIS2STravelTime 取得指定s 縣市 的市區公車路線站間旅行時間基本資料
+ CityBusAPIS2STravelTime1 取得指定s 縣市 的市區公車路線站間旅行時間基本資料
*/
-func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams) (*CityBusAPIS2STravelTimeOK, *CityBusAPIS2STravelTimeStatus299, error) {
+func (a *Client) CityBusAPIS2STravelTime1(params *CityBusAPIS2STravelTime1Params) (*CityBusAPIS2STravelTime1OK, *CityBusAPIS2STravelTime1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIS2STravelTimeParams()
+ params = NewCityBusAPIS2STravelTime1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_S2STravelTime",
+ ID: "CityBusApi_S2STravelTime_1",
Method: "GET",
PathPattern: "/v3/Bus/S2STravelTime/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIS2STravelTimeReader{formats: a.formats},
+ Reader: &CityBusAPIS2STravelTime1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -722,9 +722,9 @@ func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams)
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIS2STravelTimeOK:
+ case *CityBusAPIS2STravelTime1OK:
return value, nil, nil
- case *CityBusAPIS2STravelTimeStatus299:
+ case *CityBusAPIS2STravelTime1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -733,23 +733,23 @@ func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams)
}
/*
- CityBusAPISchedule 取得指定s 縣市 的市區公車定期營運班表
+ CityBusAPISchedule2 取得指定s 縣市 的市區公車定期營運班表
*/
-func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error) {
+func (a *Client) CityBusAPISchedule2(params *CityBusAPISchedule2Params) (*CityBusAPISchedule2OK, *CityBusAPISchedule2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIScheduleParams()
+ params = NewCityBusAPISchedule2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Schedule",
+ ID: "CityBusApi_Schedule_2",
Method: "GET",
PathPattern: "/v3/Bus/Schedule/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIScheduleReader{formats: a.formats},
+ Reader: &CityBusAPISchedule2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -757,9 +757,9 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIScheduleOK:
+ case *CityBusAPISchedule2OK:
return value, nil, nil
- case *CityBusAPIScheduleStatus299:
+ case *CityBusAPISchedule2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -768,23 +768,23 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
}
/*
- CityBusAPIShape 取得指定s 縣市 的市區公車空間線型資料
+ CityBusAPIShape2 取得指定s 縣市 的市區公車空間線型資料
*/
-func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error) {
+func (a *Client) CityBusAPIShape2(params *CityBusAPIShape2Params) (*CityBusAPIShape2OK, *CityBusAPIShape2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIShapeParams()
+ params = NewCityBusAPIShape2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Shape",
+ ID: "CityBusApi_Shape_2",
Method: "GET",
PathPattern: "/v3/Bus/Shape/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIShapeReader{formats: a.formats},
+ Reader: &CityBusAPIShape2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -792,9 +792,9 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIShapeOK:
+ case *CityBusAPIShape2OK:
return value, nil, nil
- case *CityBusAPIShapeStatus299:
+ case *CityBusAPIShape2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -803,23 +803,23 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
}
/*
- CityBusAPIStation 取得指定s 縣市 的市區公車站位資料
+ CityBusAPIStation1 取得指定s 縣市 的市區公車站位資料
*/
-func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error) {
+func (a *Client) CityBusAPIStation1(params *CityBusAPIStation1Params) (*CityBusAPIStation1OK, *CityBusAPIStation1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIStationParams()
+ params = NewCityBusAPIStation1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Station",
+ ID: "CityBusApi_Station_1",
Method: "GET",
PathPattern: "/v3/Bus/Station/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIStationReader{formats: a.formats},
+ Reader: &CityBusAPIStation1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -827,9 +827,9 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIStationOK:
+ case *CityBusAPIStation1OK:
return value, nil, nil
- case *CityBusAPIStationStatus299:
+ case *CityBusAPIStation1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -838,23 +838,25 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
}
/*
- CityBusAPIStop 取得指定s 縣市 的市區公車站牌資料
+ CityBusAPIStopOfRoute2 取得指定s 縣市 的市區公車路線站序資料
+
+ 市區公車之路線站序資料
*/
-func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error) {
+func (a *Client) CityBusAPIStopOfRoute2(params *CityBusAPIStopOfRoute2Params) (*CityBusAPIStopOfRoute2OK, *CityBusAPIStopOfRoute2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIStopParams()
+ params = NewCityBusAPIStopOfRoute2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Stop",
+ ID: "CityBusApi_StopOfRoute_2",
Method: "GET",
- PathPattern: "/v3/Bus/Stop/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/StopOfRoute/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIStopReader{formats: a.formats},
+ Reader: &CityBusAPIStopOfRoute2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -862,9 +864,9 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIStopOK:
+ case *CityBusAPIStopOfRoute2OK:
return value, nil, nil
- case *CityBusAPIStopStatus299:
+ case *CityBusAPIStopOfRoute2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -873,25 +875,23 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
}
/*
- CityBusAPIStopOfRoute 取得指定s 縣市 的市區公車路線站序資料
-
- 市區公車之路線站序資料
+ CityBusAPIStop1 取得指定s 縣市 的市區公車站牌資料
*/
-func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error) {
+func (a *Client) CityBusAPIStop1(params *CityBusAPIStop1Params) (*CityBusAPIStop1OK, *CityBusAPIStop1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIStopOfRouteParams()
+ params = NewCityBusAPIStop1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_StopOfRoute",
+ ID: "CityBusApi_Stop_1",
Method: "GET",
- PathPattern: "/v3/Bus/StopOfRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/Stop/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIStopOfRouteReader{formats: a.formats},
+ Reader: &CityBusAPIStop1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -899,9 +899,9 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIStopOfRouteOK:
+ case *CityBusAPIStop1OK:
return value, nil, nil
- case *CityBusAPIStopOfRouteStatus299:
+ case *CityBusAPIStop1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -924,7 +924,7 @@ func (a *Client) CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusA
ID: "CityBusApi_SubRoute",
Method: "GET",
PathPattern: "/v3/Bus/SubRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -947,23 +947,23 @@ func (a *Client) CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusA
}
/*
- CityBusAPIVehicle 取得指定s 縣市 的市區公車車輛基本資料
+ CityBusAPIVehicleDepot 取得指定s 縣市 的市區公車車輛所屬的營業站基本資料
*/
-func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error) {
+func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*CityBusAPIVehicleDepotOK, *CityBusAPIVehicleDepotStatus299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIVehicleParams()
+ params = NewCityBusAPIVehicleDepotParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_Vehicle",
+ ID: "CityBusApi_VehicleDepot",
Method: "GET",
- PathPattern: "/v3/Bus/Vehicle/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/VehicleDepot/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIVehicleReader{formats: a.formats},
+ Reader: &CityBusAPIVehicleDepotReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -971,9 +971,9 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIVehicleOK:
+ case *CityBusAPIVehicleDepotOK:
return value, nil, nil
- case *CityBusAPIVehicleStatus299:
+ case *CityBusAPIVehicleDepotStatus299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -982,23 +982,23 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
}
/*
- CityBusAPIVehicleDepot 取得指定s 縣市 的市區公車車輛所屬的營業站基本資料
+ CityBusAPIVehicleRoute 取得指定s 縣市 的市區公車車輛所屬路線資料
*/
-func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*CityBusAPIVehicleDepotOK, *CityBusAPIVehicleDepotStatus299, error) {
+func (a *Client) CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*CityBusAPIVehicleRouteOK, *CityBusAPIVehicleRouteStatus299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIVehicleDepotParams()
+ params = NewCityBusAPIVehicleRouteParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_VehicleDepot",
+ ID: "CityBusApi_VehicleRoute",
Method: "GET",
- PathPattern: "/v3/Bus/VehicleDepot/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/VehicleRoute/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIVehicleDepotReader{formats: a.formats},
+ Reader: &CityBusAPIVehicleRouteReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -1006,9 +1006,9 @@ func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIVehicleDepotOK:
+ case *CityBusAPIVehicleRouteOK:
return value, nil, nil
- case *CityBusAPIVehicleDepotStatus299:
+ case *CityBusAPIVehicleRouteStatus299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -1017,23 +1017,23 @@ func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*
}
/*
- CityBusAPIVehicleRoute 取得指定s 縣市 的市區公車車輛所屬路線資料
+ CityBusAPIVehicle1 取得指定s 縣市 的市區公車車輛基本資料
*/
-func (a *Client) CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*CityBusAPIVehicleRouteOK, *CityBusAPIVehicleRouteStatus299, error) {
+func (a *Client) CityBusAPIVehicle1(params *CityBusAPIVehicle1Params) (*CityBusAPIVehicle1OK, *CityBusAPIVehicle1Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewCityBusAPIVehicleRouteParams()
+ params = NewCityBusAPIVehicle1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "CityBusApi_VehicleRoute",
+ ID: "CityBusApi_Vehicle_1",
Method: "GET",
- PathPattern: "/v3/Bus/VehicleRoute/City/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ PathPattern: "/v3/Bus/Vehicle/City/{City}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &CityBusAPIVehicleRouteReader{formats: a.formats},
+ Reader: &CityBusAPIVehicle1Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -1041,9 +1041,9 @@ func (a *Client) CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*
return nil, nil, err
}
switch value := result.(type) {
- case *CityBusAPIVehicleRouteOK:
+ case *CityBusAPIVehicle1OK:
return value, nil, nil
- case *CityBusAPIVehicleRouteStatus299:
+ case *CityBusAPIVehicle1Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
diff --git a/bus/v3/client/m_o_t_c_transport_api_v3_client.go b/bus/v3/client/m_o_t_c_transport_api_v3_client.go
index 3c2c3985..c8c8869f 100644
--- a/bus/v3/client/m_o_t_c_transport_api_v3_client.go
+++ b/bus/v3/client/m_o_t_c_transport_api_v3_client.go
@@ -22,7 +22,7 @@ const (
DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
- DefaultBasePath string = "/MOTC/"
+ DefaultBasePath string = "/MOTC"
)
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
diff --git a/bus/v3/models/service_d_t_o_version3_bus_a1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
similarity index 67%
rename from bus/v3/models/service_d_t_o_version3_bus_a1_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
index 7197ab6e..9b485e61 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_a1_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusA1Data A1Data
+// PTXServiceDTOBusSpecificationV3A1Data A1Data
//
-// swagger:model Service.DTO.Version3.Bus.A1Data
-type ServiceDTOVersion3BusA1Data struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.A1Data
+type PTXServiceDTOBusSpecificationV3A1Data struct {
+ // Double
+ //
// 方位角
// Required: true
Azimuth *float64 `json:"Azimuth"`
@@ -25,7 +27,9 @@ type ServiceDTOVersion3BusA1Data struct {
//
// 車輛位置經度
// Required: true
- BusPosition *ServiceDTOVersion3BasePointType `json:"BusPosition"`
+ BusPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"BusPosition"`
// integer
//
@@ -60,10 +64,14 @@ type ServiceDTOVersion3BusA1Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -71,8 +79,12 @@ type ServiceDTOVersion3BusA1Data struct {
// NameType
//
// 營運業者名稱
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName,omitempty"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
@@ -83,6 +95,8 @@ type ServiceDTOVersion3BusA1Data struct {
// Required: true
RecTime *string `json:"RecTime"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -90,23 +104,35 @@ type ServiceDTOVersion3BusA1Data struct {
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
+ // Double
+ //
// 行駛速度(kph)
// Required: true
Speed *float64 `json:"Speed"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -116,6 +142,8 @@ type ServiceDTOVersion3BusA1Data struct {
// Required: true
TransTime *string `json:"TransTime"`
+ // String
+ //
// 班次代碼
TripID string `json:"TripID,omitempty"`
@@ -125,8 +153,8 @@ type ServiceDTOVersion3BusA1Data struct {
VehicleType int32 `json:"VehicleType,omitempty"`
}
-// Validate validates this service d t o version3 bus a1 data
-func (m *ServiceDTOVersion3BusA1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 a1 data
+func (m *PTXServiceDTOBusSpecificationV3A1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAzimuth(formats); err != nil {
@@ -195,7 +223,7 @@ func (m *ServiceDTOVersion3BusA1Data) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateAzimuth(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateAzimuth(formats strfmt.Registry) error {
if err := validate.Required("Azimuth", "body", m.Azimuth); err != nil {
return err
@@ -204,25 +232,12 @@ func (m *ServiceDTOVersion3BusA1Data) validateAzimuth(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateBusPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("BusPosition", "body", m.BusPosition); err != nil {
- return err
- }
-
- if m.BusPosition != nil {
- if err := m.BusPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("BusPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateBusPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateBusStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateBusStatus(formats strfmt.Registry) error {
if err := validate.Required("BusStatus", "body", m.BusStatus); err != nil {
return err
@@ -231,7 +246,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateBusStatus(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -240,7 +255,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateDirection(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateDutyStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateDutyStatus(formats strfmt.Registry) error {
if err := validate.Required("DutyStatus", "body", m.DutyStatus); err != nil {
return err
@@ -249,7 +264,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateDutyStatus(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -258,7 +273,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateOperatorCode(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -267,25 +282,16 @@ func (m *ServiceDTOVersion3BusA1Data) validateOperatorID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateOperatorName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateOperatorName(formats strfmt.Registry) error {
if swag.IsZero(m.OperatorName) { // not required
return nil
}
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -294,7 +300,7 @@ func (m *ServiceDTOVersion3BusA1Data) validatePlateNumb(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateRecTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateRecTime(formats strfmt.Registry) error {
if err := validate.Required("RecTime", "body", m.RecTime); err != nil {
return err
@@ -303,7 +309,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateRecTime(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -312,25 +318,16 @@ func (m *ServiceDTOVersion3BusA1Data) validateRouteID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateSpeed(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateSpeed(formats strfmt.Registry) error {
if err := validate.Required("Speed", "body", m.Speed); err != nil {
return err
@@ -339,25 +336,16 @@ func (m *ServiceDTOVersion3BusA1Data) validateSpeed(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA1Data) validateTransTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) validateTransTime(formats strfmt.Registry) error {
if err := validate.Required("TransTime", "body", m.TransTime); err != nil {
return err
@@ -367,7 +355,7 @@ func (m *ServiceDTOVersion3BusA1Data) validateTransTime(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusA1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3A1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -375,8 +363,8 @@ func (m *ServiceDTOVersion3BusA1Data) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusA1Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusA1Data
+func (m *PTXServiceDTOBusSpecificationV3A1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3A1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_a2_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
similarity index 69%
rename from bus/v3/models/service_d_t_o_version3_bus_a2_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
index d86dfbdf..a77dceb7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_a2_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusA2Data A2Data
+// PTXServiceDTOBusSpecificationV3A2Data A2Data
//
-// swagger:model Service.DTO.Version3.Bus.A2Data
-type ServiceDTOVersion3BusA2Data struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.A2Data
+type PTXServiceDTOBusSpecificationV3A2Data struct {
// integer
//
@@ -54,10 +54,14 @@ type ServiceDTOVersion3BusA2Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -65,8 +69,12 @@ type ServiceDTOVersion3BusA2Data struct {
// NameType
//
// 營運業者名稱
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName,omitempty"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
@@ -77,6 +85,8 @@ type ServiceDTOVersion3BusA2Data struct {
// Required: true
RecTime *string `json:"RecTime"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -84,11 +94,17 @@ type ServiceDTOVersion3BusA2Data struct {
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
+ // String
+ //
// 地區既用中之站牌代號(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -96,19 +112,29 @@ type ServiceDTOVersion3BusA2Data struct {
// NameType
//
// 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -118,6 +144,8 @@ type ServiceDTOVersion3BusA2Data struct {
// Required: true
TransTime *string `json:"TransTime"`
+ // String
+ //
// 班次代碼
TripID string `json:"TripID,omitempty"`
@@ -127,8 +155,8 @@ type ServiceDTOVersion3BusA2Data struct {
VehicleType int32 `json:"VehicleType,omitempty"`
}
-// Validate validates this service d t o version3 bus a2 data
-func (m *ServiceDTOVersion3BusA2Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 a2 data
+func (m *PTXServiceDTOBusSpecificationV3A2Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateA2EventType(formats); err != nil {
@@ -189,7 +217,7 @@ func (m *ServiceDTOVersion3BusA2Data) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateA2EventType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateA2EventType(formats strfmt.Registry) error {
if err := validate.Required("A2EventType", "body", m.A2EventType); err != nil {
return err
@@ -198,7 +226,7 @@ func (m *ServiceDTOVersion3BusA2Data) validateA2EventType(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -207,7 +235,7 @@ func (m *ServiceDTOVersion3BusA2Data) validateDirection(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -216,7 +244,7 @@ func (m *ServiceDTOVersion3BusA2Data) validateOperatorCode(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -225,25 +253,16 @@ func (m *ServiceDTOVersion3BusA2Data) validateOperatorID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateOperatorName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateOperatorName(formats strfmt.Registry) error {
if swag.IsZero(m.OperatorName) { // not required
return nil
}
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -252,7 +271,7 @@ func (m *ServiceDTOVersion3BusA2Data) validatePlateNumb(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateRecTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateRecTime(formats strfmt.Registry) error {
if err := validate.Required("RecTime", "body", m.RecTime); err != nil {
return err
@@ -261,7 +280,7 @@ func (m *ServiceDTOVersion3BusA2Data) validateRecTime(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -270,25 +289,16 @@ func (m *ServiceDTOVersion3BusA2Data) validateRouteID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -297,43 +307,25 @@ func (m *ServiceDTOVersion3BusA2Data) validateStopID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusA2Data) validateTransTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) validateTransTime(formats strfmt.Registry) error {
if err := validate.Required("TransTime", "body", m.TransTime); err != nil {
return err
@@ -343,7 +335,7 @@ func (m *ServiceDTOVersion3BusA2Data) validateTransTime(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusA2Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3A2Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -351,8 +343,8 @@ func (m *ServiceDTOVersion3BusA2Data) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusA2Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusA2Data
+func (m *PTXServiceDTOBusSpecificationV3A2Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3A2Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_alert.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go
similarity index 66%
rename from bus/v3/models/service_d_t_o_version3_bus_alert.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go
index 6a8cbbee..88d20423 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_alert.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_alert.go
@@ -12,21 +12,29 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusAlert Alert
+// PTXServiceDTOBusSpecificationV3Alert Alert
//
-// swagger:model Service.DTO.Version3.Bus.Alert
-type ServiceDTOVersion3BusAlert struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Alert
+type PTXServiceDTOBusSpecificationV3Alert struct {
+ // String
+ //
// 通阻事件原單位發布代碼
// Required: true
AlertID *string `json:"AlertID"`
+ // String
+ //
// 詳細描述網站連結
AlertURL string `json:"AlertURL,omitempty"`
+ // String
+ //
// 事件描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 影響方向
Direction string `json:"Direction,omitempty"`
@@ -44,7 +52,9 @@ type ServiceDTOVersion3BusAlert struct {
//
// 通阻影響範圍
// Required: true
- Scope *ServiceDTOVersion3BusScope `json:"Scope"`
+ Scope struct {
+ PTXServiceDTOBusSpecificationV3Scope
+ } `json:"Scope"`
// DateTime
//
@@ -56,12 +66,14 @@ type ServiceDTOVersion3BusAlert struct {
// 開始日期時間
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 通阻標題
Title string `json:"Title,omitempty"`
}
-// Validate validates this service d t o version3 bus alert
-func (m *ServiceDTOVersion3BusAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 alert
+func (m *PTXServiceDTOBusSpecificationV3Alert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlertID(formats); err != nil {
@@ -78,7 +90,7 @@ func (m *ServiceDTOVersion3BusAlert) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusAlert) validateAlertID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Alert) validateAlertID(formats strfmt.Registry) error {
if err := validate.Required("AlertID", "body", m.AlertID); err != nil {
return err
@@ -87,26 +99,13 @@ func (m *ServiceDTOVersion3BusAlert) validateAlertID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusAlert) validateScope(formats strfmt.Registry) error {
-
- if err := validate.Required("Scope", "body", m.Scope); err != nil {
- return err
- }
-
- if m.Scope != nil {
- if err := m.Scope.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Scope")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Alert) validateScope(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Alert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -114,8 +113,8 @@ func (m *ServiceDTOVersion3BusAlert) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusAlert) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusAlert
+func (m *PTXServiceDTOBusSpecificationV3Alert) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Alert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
similarity index 65%
rename from bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
index 358d1cfc..c7bfaa2a 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusDailyTimeTable DailyTimeTable
+// PTXServiceDTOBusSpecificationV3DailyTimeTable DailyTimeTable
//
// 每日時刻表資料
//
-// swagger:model Service.DTO.Version3.Bus.DailyTimeTable
-type ServiceDTOVersion3BusDailyTimeTable struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable
+type PTXServiceDTOBusSpecificationV3DailyTimeTable struct {
// DateTime
//
@@ -33,14 +33,20 @@ type ServiceDTOVersion3BusDailyTimeTable struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -49,12 +55,18 @@ type ServiceDTOVersion3BusDailyTimeTable struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -62,17 +74,23 @@ type ServiceDTOVersion3BusDailyTimeTable struct {
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
+ // Array
+ //
// 預定班表
- Timetables []*ServiceDTOVersion3BusTimeTable `json:"Timetables"`
+ Timetables []*PTXServiceDTOBusSpecificationV3TimeTable `json:"Timetables"`
}
-// Validate validates this service d t o version3 bus daily time table
-func (m *ServiceDTOVersion3BusDailyTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 daily time table
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDate(formats); err != nil {
@@ -121,7 +139,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateDate(formats strfmt.Registry) error {
if err := validate.Required("Date", "body", m.Date); err != nil {
return err
@@ -130,7 +148,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateDate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -139,7 +157,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateDirection(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -148,7 +166,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateOperatorCode(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -157,7 +175,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateOperatorID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -166,25 +184,12 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateRouteID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -193,7 +198,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateRouteUID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -202,25 +207,16 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateSubRouteID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusDailyTimeTable) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) validateTimetables(formats strfmt.Registry) error {
if swag.IsZero(m.Timetables) { // not required
return nil
@@ -246,7 +242,7 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) validateTimetables(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDailyTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -254,8 +250,8 @@ func (m *ServiceDTOVersion3BusDailyTimeTable) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDailyTimeTable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusDailyTimeTable
+func (m *PTXServiceDTOBusSpecificationV3DailyTimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3DailyTimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go
similarity index 57%
rename from bus/v3/models/service_d_t_o_version3_bus_depot.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go
index 1212a656..d1ac07ad 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_depot.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_depot.go
@@ -12,15 +12,19 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusDepot Depot
+// PTXServiceDTOBusSpecificationV3Depot Depot
//
-// swagger:model Service.DTO.Version3.Bus.Depot
-type ServiceDTOVersion3BusDepot struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Depot
+type PTXServiceDTOBusSpecificationV3Depot struct {
+ // String
+ //
// 營業所地址
// Required: true
DepotAddress *string `json:"DepotAddress"`
+ // String
+ //
// 營業所代碼
// Required: true
DepotID *string `json:"DepotID"`
@@ -29,8 +33,12 @@ type ServiceDTOVersion3BusDepot struct {
//
// 營業所名稱
// Required: true
- DepotName *ServiceDTOVersion3BaseNameType `json:"DepotName"`
+ DepotName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DepotName"`
+ // String
+ //
// 營業所電話
// Required: true
DepotPhone *string `json:"DepotPhone"`
@@ -39,15 +47,19 @@ type ServiceDTOVersion3BusDepot struct {
//
// 營業所位置
// Required: true
- DepotPosition *ServiceDTOVersion3BasePointType `json:"DepotPosition"`
+ DepotPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"DepotPosition"`
+ // String
+ //
// 營業所唯一識別代碼,規則為 {業管機關簡碼} + {DepotID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
DepotUID *string `json:"DepotUID"`
}
-// Validate validates this service d t o version3 bus depot
-func (m *ServiceDTOVersion3BusDepot) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 depot
+func (m *PTXServiceDTOBusSpecificationV3Depot) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepotAddress(formats); err != nil {
@@ -80,7 +92,7 @@ func (m *ServiceDTOVersion3BusDepot) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotAddress(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotAddress(formats strfmt.Registry) error {
if err := validate.Required("DepotAddress", "body", m.DepotAddress); err != nil {
return err
@@ -89,7 +101,7 @@ func (m *ServiceDTOVersion3BusDepot) validateDepotAddress(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotID(formats strfmt.Registry) error {
if err := validate.Required("DepotID", "body", m.DepotID); err != nil {
return err
@@ -98,25 +110,12 @@ func (m *ServiceDTOVersion3BusDepot) validateDepotID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotName(formats strfmt.Registry) error {
-
- if err := validate.Required("DepotName", "body", m.DepotName); err != nil {
- return err
- }
-
- if m.DepotName != nil {
- if err := m.DepotName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DepotName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotPhone(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotPhone(formats strfmt.Registry) error {
if err := validate.Required("DepotPhone", "body", m.DepotPhone); err != nil {
return err
@@ -125,25 +124,12 @@ func (m *ServiceDTOVersion3BusDepot) validateDepotPhone(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("DepotPosition", "body", m.DepotPosition); err != nil {
- return err
- }
-
- if m.DepotPosition != nil {
- if err := m.DepotPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DepotPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDepot) validateDepotUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Depot) validateDepotUID(formats strfmt.Registry) error {
if err := validate.Required("DepotUID", "body", m.DepotUID); err != nil {
return err
@@ -153,7 +139,7 @@ func (m *ServiceDTOVersion3BusDepot) validateDepotUID(formats strfmt.Registry) e
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDepot) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Depot) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -161,8 +147,8 @@ func (m *ServiceDTOVersion3BusDepot) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDepot) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusDepot
+func (m *PTXServiceDTOBusSpecificationV3Depot) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Depot
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
similarity index 62%
rename from bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
index 48172f55..9535a381 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
@@ -14,10 +14,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusDisplayStopOfRoute DisplayStopOfRoute
+// PTXServiceDTOBusSpecificationV3DisplayStopOfRoute DisplayStopOfRoute
//
-// swagger:model Service.DTO.Version3.Bus.DisplayStopOfRoute
-type ServiceDTOVersion3BusDisplayStopOfRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute
+type PTXServiceDTOBusSpecificationV3DisplayStopOfRoute struct {
// integer
//
@@ -25,6 +25,8 @@ type ServiceDTOVersion3BusDisplayStopOfRoute struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -33,19 +35,25 @@ type ServiceDTOVersion3BusDisplayStopOfRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 路線站序資料
// Required: true
- Stops []*ServiceDTOVersion3BusDisplayStopOfRouteStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop `json:"Stops"`
}
-// Validate validates this service d t o version3 bus display stop of route
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 display stop of route
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -74,7 +82,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -83,7 +91,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateDirection(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -92,25 +100,12 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateRouteID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -119,7 +114,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateRouteUID(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -145,7 +140,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) validateStops(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -153,8 +148,8 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRoute) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDisplayStopOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusDisplayStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3DisplayStopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go
index 8a97f288..16a6e1b7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route_stop.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusDisplayStopOfRouteStop Stop
+// PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop Stop
//
// 路線站序資料
//
-// swagger:model Service.DTO.Version3.Bus.DisplayStopOfRoute.Stop
-type ServiceDTOVersion3BusDisplayStopOfRouteStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop
+type PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop struct {
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -27,25 +29,33 @@ type ServiceDTOVersion3BusDisplayStopOfRouteStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
// PointType
//
// 站牌位置
// Required: true
- StopPosition *ServiceDTOVersion3BasePointType `json:"StopPosition"`
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"StopPosition"`
+ // Int32
+ //
// 路線經過站牌之順序
// Required: true
StopSequence *int32 `json:"StopSequence"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version3 bus display stop of route stop
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 display stop of route stop
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -74,7 +84,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -83,43 +93,17 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopID(formats str
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
- return err
- }
-
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) validateStopPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -128,7 +112,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopSequence(forma
return nil
}
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -138,7 +122,7 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) validateStopUID(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -146,8 +130,8 @@ func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusDisplayStopOfRouteStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusDisplayStopOfRouteStop
+func (m *PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3DisplayStopOfRouteStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
similarity index 55%
rename from bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
index 71bac87a..e23a086e 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
@@ -14,23 +14,31 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusFirstLastTripInfo FirstLastTripInfo
+// PTXServiceDTOBusSpecificationV3FirstLastTripInfo FirstLastTripInfo
//
-// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo
-type ServiceDTOVersion3BusFirstLastTripInfo struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo
+type PTXServiceDTOBusSpecificationV3FirstLastTripInfo struct {
// integer
//
// 車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
- Direction int32 `json:"Direction,omitempty"`
+ // Required: true
+ Direction *int32 `json:"Direction"`
+ // Array
+ //
// 路線首末班車資訊
// Required: true
- FirstLastTrips []*ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip `json:"FirstLastTrips"`
+ FirstLastTrips []*PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip `json:"FirstLastTrips"`
+ // String
+ //
// 營運業者代碼
- OperatorID string `json:"OperatorID,omitempty"`
+ // Required: true
+ OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -39,32 +47,50 @@ type ServiceDTOVersion3BusFirstLastTripInfo struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
}
-// Validate validates this service d t o version3 bus first last trip info
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 first last trip info
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateDirection(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateFirstLastTrips(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateOperatorID(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRouteID(formats); err != nil {
res = append(res, err)
}
@@ -87,7 +113,16 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfo) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateFirstLastTrips(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateDirection(formats strfmt.Registry) error {
+
+ if err := validate.Required("Direction", "body", m.Direction); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateFirstLastTrips(formats strfmt.Registry) error {
if err := validate.Required("FirstLastTrips", "body", m.FirstLastTrips); err != nil {
return err
@@ -112,34 +147,30 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateFirstLastTrips(formats
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateOperatorID(formats strfmt.Registry) error {
- if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
+ if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateRouteID(formats strfmt.Registry) error {
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
+ if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -148,26 +179,17 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateRouteUID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -175,8 +197,8 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfo) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusFirstLastTripInfo
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3FirstLastTripInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go
similarity index 51%
rename from bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go
index e261e1ee..c43f7d7f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_first_last_trip.go
@@ -12,15 +12,19 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip FirstLastTrip
+// PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip FirstLastTrip
//
-// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo.FirstLastTrip
-type ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip
+type PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip struct {
+ // String
+ //
// 頭班車發車時間(HH:mm)
// Required: true
FirstTripDepTime *string `json:"FirstTripDepTime"`
+ // String
+ //
// 末班車發車時間(HH:mm)
// Required: true
LastTripDepTime *string `json:"LastTripDepTime"`
@@ -29,11 +33,13 @@ type ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip struct {
//
// 服務日型態
// Required: true
- ServiceDay *ServiceDTOVersion3BusFirstLastTripInfoServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay
+ } `json:"ServiceDay"`
}
-// Validate validates this service d t o version3 bus first last trip info first last trip
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 first last trip info first last trip
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFirstTripDepTime(formats); err != nil {
@@ -54,7 +60,7 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) validateFirstTripDepTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) validateFirstTripDepTime(formats strfmt.Registry) error {
if err := validate.Required("FirstTripDepTime", "body", m.FirstTripDepTime); err != nil {
return err
@@ -63,7 +69,7 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) validateFirstTripD
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) validateLastTripDepTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) validateLastTripDepTime(formats strfmt.Registry) error {
if err := validate.Required("LastTripDepTime", "body", m.LastTripDepTime); err != nil {
return err
@@ -72,26 +78,13 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) validateLastTripDe
return nil
}
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) validateServiceDay(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -99,8 +92,8 @@ func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3FirstLastTripInfoFirstLastTrip
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go
similarity index 71%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go
index e9e9fd6a..455c6cd7 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info_service_day.go
@@ -12,23 +12,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay ServiceDay
+// PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay ServiceDay
//
-// 服務日型態
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.ServiceDay
-type ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay
+type PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay struct {
- // 假日後一日營運與否
- DayAfterHoliday bool `json:"DayAfterHoliday,omitempty"`
+ // 國定假日後一日營運與否
+ DayAfterNationalHoliday bool `json:"DayAfterNationalHoliday,omitempty"`
- // 假日前一日營運與否
- DayBeforeHoliday bool `json:"DayBeforeHoliday,omitempty"`
+ // 國定假日前一日營運與否
+ DayBeforeNationalHoliday bool `json:"DayBeforeNationalHoliday,omitempty"`
+ // Boolean
+ //
// 星期五營運與否
// Required: true
Friday *bool `json:"Friday"`
+ // Boolean
+ //
// 星期一營運與否
// Required: true
Monday *bool `json:"Monday"`
@@ -36,21 +38,31 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay struct {
// 國定假日營運與否
NationalHolidays bool `json:"NationalHolidays,omitempty"`
+ // Boolean
+ //
// 星期六營運與否
// Required: true
Saturday *bool `json:"Saturday"`
+ // String
+ //
// 服務日標籤
ServiceTag string `json:"ServiceTag,omitempty"`
+ // Boolean
+ //
// 星期日營運與否
// Required: true
Sunday *bool `json:"Sunday"`
+ // Boolean
+ //
// 星期四營運與否
// Required: true
Thursday *bool `json:"Thursday"`
+ // Boolean
+ //
// 星期二營運與否
// Required: true
Tuesday *bool `json:"Tuesday"`
@@ -58,13 +70,15 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay struct {
// 颱風停止上班上課期間營運與否
TyphoonDay bool `json:"TyphoonDay,omitempty"`
+ // Boolean
+ //
// 星期三營運與否
// Required: true
Wednesday *bool `json:"Wednesday"`
}
-// Validate validates this service d t o version3 rail t r a general station timetable service day
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 first last trip info service day
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -101,7 +115,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) Validate(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -110,7 +124,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateFri
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -119,7 +133,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateMon
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -128,7 +142,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateSat
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -137,7 +151,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateSun
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -146,7 +160,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateThu
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -155,7 +169,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateTue
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -165,7 +179,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) validateWed
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -173,8 +187,8 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) MarshalBina
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay
+func (m *PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3FirstLastTripInfoServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_n1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
similarity index 68%
rename from bus/v3/models/service_d_t_o_version3_bus_n1_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
index 8a12a5e1..1819ed90 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_n1_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusN1Data N1Data
+// PTXServiceDTOBusSpecificationV3N1Data N1Data
//
-// swagger:model Service.DTO.Version3.Bus.N1Data
-type ServiceDTOVersion3BusN1Data struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.N1Data
+type PTXServiceDTOBusSpecificationV3N1Data struct {
+ // String
+ //
// 車輛目前所在站牌代碼
CurrentStop string `json:"CurrentStop,omitempty"`
@@ -25,13 +27,17 @@ type ServiceDTOVersion3BusN1Data struct {
// 系統演算該筆預估到站資料的時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
DataTime string `json:"DataTime,omitempty"`
+ // String
+ //
// 迄點站站牌ID代碼
DestinationStopID string `json:"DestinationStopID,omitempty"`
// NameType
//
// 迄點站站牌名稱
- DestinationStopName *ServiceDTOVersion3BaseNameType `json:"DestinationStopName,omitempty"`
+ DestinationStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStopName,omitempty"`
// integer
//
@@ -45,6 +51,8 @@ type ServiceDTOVersion3BusN1Data struct {
// 是否為末班車
IsLastBus bool `json:"IsLastBus,omitempty"`
+ // String
+ //
// 車牌號碼 [値為値為-1時,表示目前該站牌無車輛行駛]
PlateNumb string `json:"PlateNumb,omitempty"`
@@ -54,6 +62,8 @@ type ServiceDTOVersion3BusN1Data struct {
// Required: true
RecTime *string `json:"RecTime"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -61,17 +71,25 @@ type ServiceDTOVersion3BusN1Data struct {
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
+ // String
+ //
// 預排班表時間
ScheduledTime string `json:"ScheduledTime,omitempty"`
// 路線經過站牌之順序
StopCountDown int32 `json:"StopCountDown,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -79,24 +97,34 @@ type ServiceDTOVersion3BusN1Data struct {
// NameType
//
// 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
// integer
//
// 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']
StopStatus int32 `json:"StopStatus,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
@@ -107,8 +135,8 @@ type ServiceDTOVersion3BusN1Data struct {
TransTime *string `json:"TransTime"`
}
-// Validate validates this service d t o version3 bus n1 data
-func (m *ServiceDTOVersion3BusN1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 n1 data
+func (m *PTXServiceDTOBusSpecificationV3N1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStopName(formats); err != nil {
@@ -153,25 +181,16 @@ func (m *ServiceDTOVersion3BusN1Data) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateDestinationStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateDestinationStopName(formats strfmt.Registry) error {
if swag.IsZero(m.DestinationStopName) { // not required
return nil
}
- if m.DestinationStopName != nil {
- if err := m.DestinationStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -180,7 +199,7 @@ func (m *ServiceDTOVersion3BusN1Data) validateDirection(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateRecTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateRecTime(formats strfmt.Registry) error {
if err := validate.Required("RecTime", "body", m.RecTime); err != nil {
return err
@@ -189,7 +208,7 @@ func (m *ServiceDTOVersion3BusN1Data) validateRecTime(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -198,25 +217,16 @@ func (m *ServiceDTOVersion3BusN1Data) validateRouteID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -225,43 +235,25 @@ func (m *ServiceDTOVersion3BusN1Data) validateStopID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusN1Data) validateTransTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) validateTransTime(formats strfmt.Registry) error {
if err := validate.Required("TransTime", "body", m.TransTime); err != nil {
return err
@@ -271,7 +263,7 @@ func (m *ServiceDTOVersion3BusN1Data) validateTransTime(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusN1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3N1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -279,8 +271,8 @@ func (m *ServiceDTOVersion3BusN1Data) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusN1Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusN1Data
+func (m *PTXServiceDTOBusSpecificationV3N1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3N1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_network.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go
index 6a2a1d73..2d2a8e7d 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network.go
@@ -14,14 +14,18 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusNetwork Network
+// PTXServiceDTOBusSpecificationV3Network Network
//
-// swagger:model Service.DTO.Version3.Bus.Network
-type ServiceDTOVersion3BusNetwork struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Network
+type PTXServiceDTOBusSpecificationV3Network struct {
+ // Array
+ //
// 適地性路網圖資網址URL
- LBSMapURLs []*ServiceDTOVersion3BusNetworkLBSMapURL `json:"LBSMapURLs"`
+ LBSMapURLs []*PTXServiceDTOBusSpecificationV3NetworkLBSMapURL `json:"LBSMapURLs"`
+ // String
+ //
// 公車路網代碼
// Required: true
NetworkID *string `json:"NetworkID"`
@@ -30,17 +34,21 @@ type ServiceDTOVersion3BusNetwork struct {
//
// 路網圖網址URL
// Required: true
- NetworkMapURL *ServiceDTOVersion3BusNetworkMapURL `json:"NetworkMapURL"`
+ NetworkMapURL struct {
+ PTXServiceDTOBusSpecificationV3NetworkMapURL
+ } `json:"NetworkMapURL"`
// NameType
//
// 路網名稱
// Required: true
- NetworkName *ServiceDTOVersion3BaseNameType `json:"NetworkName"`
+ NetworkName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"NetworkName"`
}
-// Validate validates this service d t o version3 bus network
-func (m *ServiceDTOVersion3BusNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 network
+func (m *PTXServiceDTOBusSpecificationV3Network) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLBSMapURLs(formats); err != nil {
@@ -65,7 +73,7 @@ func (m *ServiceDTOVersion3BusNetwork) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusNetwork) validateLBSMapURLs(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Network) validateLBSMapURLs(formats strfmt.Registry) error {
if swag.IsZero(m.LBSMapURLs) { // not required
return nil
@@ -90,7 +98,7 @@ func (m *ServiceDTOVersion3BusNetwork) validateLBSMapURLs(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusNetwork) validateNetworkID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Network) validateNetworkID(formats strfmt.Registry) error {
if err := validate.Required("NetworkID", "body", m.NetworkID); err != nil {
return err
@@ -99,44 +107,18 @@ func (m *ServiceDTOVersion3BusNetwork) validateNetworkID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusNetwork) validateNetworkMapURL(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkMapURL", "body", m.NetworkMapURL); err != nil {
- return err
- }
-
- if m.NetworkMapURL != nil {
- if err := m.NetworkMapURL.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkMapURL")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Network) validateNetworkMapURL(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusNetwork) validateNetworkName(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkName", "body", m.NetworkName); err != nil {
- return err
- }
-
- if m.NetworkName != nil {
- if err := m.NetworkName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Network) validateNetworkName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Network) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -144,8 +126,8 @@ func (m *ServiceDTOVersion3BusNetwork) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusNetwork
+func (m *PTXServiceDTOBusSpecificationV3Network) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Network
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go
index 53b3ad6e..3cd3259e 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_l_b_s_map_url.go
@@ -11,28 +11,36 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusNetworkLBSMapURL LBSMapURL
+// PTXServiceDTOBusSpecificationV3NetworkLBSMapURL LBSMapURL
//
-// swagger:model Service.DTO.Version3.Bus.Network.LBSMapURL
-type ServiceDTOVersion3BusNetworkLBSMapURL struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL
+type PTXServiceDTOBusSpecificationV3NetworkLBSMapURL struct {
+ // String
+ //
// 路網圖網址URL(英文版)
En string `json:"En,omitempty"`
// PointType
//
// 適地性圖資貼放的位置
- LBSLocation *ServiceDTOVersion3BasePointType `json:"LBSLocation,omitempty"`
+ LBSLocation struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"LBSLocation,omitempty"`
+ // String
+ //
// 路網圖
MapName string `json:"MapName,omitempty"`
+ // String
+ //
// 路網圖網址URL(中文版)
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version3 bus network l b s map URL
-func (m *ServiceDTOVersion3BusNetworkLBSMapURL) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 network l b s map URL
+func (m *PTXServiceDTOBusSpecificationV3NetworkLBSMapURL) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLBSLocation(formats); err != nil {
@@ -45,26 +53,17 @@ func (m *ServiceDTOVersion3BusNetworkLBSMapURL) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusNetworkLBSMapURL) validateLBSLocation(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3NetworkLBSMapURL) validateLBSLocation(formats strfmt.Registry) error {
if swag.IsZero(m.LBSLocation) { // not required
return nil
}
- if m.LBSLocation != nil {
- if err := m.LBSLocation.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LBSLocation")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetworkLBSMapURL) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3NetworkLBSMapURL) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -72,8 +71,8 @@ func (m *ServiceDTOVersion3BusNetworkLBSMapURL) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetworkLBSMapURL) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusNetworkLBSMapURL
+func (m *PTXServiceDTOBusSpecificationV3NetworkLBSMapURL) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3NetworkLBSMapURL
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_network_map_url.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go
index d51c703f..7a6ca8fe 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_network_map_url.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusNetworkMapURL NetworkMapURL
+// PTXServiceDTOBusSpecificationV3NetworkMapURL NetworkMapURL
//
-// swagger:model Service.DTO.Version3.Bus.NetworkMapURL
-type ServiceDTOVersion3BusNetworkMapURL struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL
+type PTXServiceDTOBusSpecificationV3NetworkMapURL struct {
+ // String
+ //
// 路網圖名稱
// Required: true
MapName *string `json:"MapName"`
@@ -25,11 +27,13 @@ type ServiceDTOVersion3BusNetworkMapURL struct {
//
// 路網圖網址URL
// Required: true
- MapNameURL *ServiceDTOVersion3BaseNameType `json:"MapNameURL"`
+ MapNameURL struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"MapNameURL"`
}
-// Validate validates this service d t o version3 bus network map URL
-func (m *ServiceDTOVersion3BusNetworkMapURL) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 network map URL
+func (m *PTXServiceDTOBusSpecificationV3NetworkMapURL) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateMapName(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion3BusNetworkMapURL) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusNetworkMapURL) validateMapName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3NetworkMapURL) validateMapName(formats strfmt.Registry) error {
if err := validate.Required("MapName", "body", m.MapName); err != nil {
return err
@@ -55,26 +59,13 @@ func (m *ServiceDTOVersion3BusNetworkMapURL) validateMapName(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusNetworkMapURL) validateMapNameURL(formats strfmt.Registry) error {
-
- if err := validate.Required("MapNameURL", "body", m.MapNameURL); err != nil {
- return err
- }
-
- if m.MapNameURL != nil {
- if err := m.MapNameURL.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("MapNameURL")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3NetworkMapURL) validateMapNameURL(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetworkMapURL) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3NetworkMapURL) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -82,8 +73,8 @@ func (m *ServiceDTOVersion3BusNetworkMapURL) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNetworkMapURL) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusNetworkMapURL
+func (m *PTXServiceDTOBusSpecificationV3NetworkMapURL) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3NetworkMapURL
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_news.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go
similarity index 71%
rename from bus/v3/models/service_d_t_o_version3_bus_news.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go
index 5e13f8ef..898e9019 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_news.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_news.go
@@ -12,17 +12,23 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusNews News
+// PTXServiceDTOBusSpecificationV3News News
//
-// swagger:model Service.DTO.Version3.Bus.News
-type ServiceDTOVersion3BusNews struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.News
+type PTXServiceDTOBusSpecificationV3News struct {
+ // String
+ //
// 相關網站連結
AttachmentURL string `json:"AttachmentURL,omitempty"`
+ // String
+ //
// 發布單位
Department string `json:"Department,omitempty"`
+ // String
+ //
// 內容描述
// Required: true
Description *string `json:"Description"`
@@ -32,18 +38,26 @@ type ServiceDTOVersion3BusNews struct {
// 結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
EndTime string `json:"EndTime,omitempty"`
+ // String
+ //
// 語系
// Required: true
Language *string `json:"Language"`
+ // String
+ //
// 消息類別= ['1: 最新消息', '2: 新聞稿', '3: 營運資訊', '4: 轉乘資訊', '5: 活動訊息', '6: 系統公告', '99: 其他']
// Required: true
NewsCategory *string `json:"NewsCategory"`
+ // String
+ //
// 最新消息原單位發布代碼
// Required: true
NewsID *string `json:"NewsID"`
+ // String
+ //
// 報導網站連結
NewsURL string `json:"NewsURL,omitempty"`
@@ -63,13 +77,15 @@ type ServiceDTOVersion3BusNews struct {
// 開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
}
-// Validate validates this service d t o version3 bus news
-func (m *ServiceDTOVersion3BusNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 news
+func (m *PTXServiceDTOBusSpecificationV3News) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -102,7 +118,7 @@ func (m *ServiceDTOVersion3BusNews) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -111,7 +127,7 @@ func (m *ServiceDTOVersion3BusNews) validateDescription(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusNews) validateLanguage(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validateLanguage(formats strfmt.Registry) error {
if err := validate.Required("Language", "body", m.Language); err != nil {
return err
@@ -120,7 +136,7 @@ func (m *ServiceDTOVersion3BusNews) validateLanguage(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusNews) validateNewsCategory(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validateNewsCategory(formats strfmt.Registry) error {
if err := validate.Required("NewsCategory", "body", m.NewsCategory); err != nil {
return err
@@ -129,7 +145,7 @@ func (m *ServiceDTOVersion3BusNews) validateNewsCategory(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -138,7 +154,7 @@ func (m *ServiceDTOVersion3BusNews) validateNewsID(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion3BusNews) validatePublishTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validatePublishTime(formats strfmt.Registry) error {
if err := validate.Required("PublishTime", "body", m.PublishTime); err != nil {
return err
@@ -147,7 +163,7 @@ func (m *ServiceDTOVersion3BusNews) validatePublishTime(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3News) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -157,7 +173,7 @@ func (m *ServiceDTOVersion3BusNews) validateTitle(formats strfmt.Registry) error
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3News) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -165,8 +181,8 @@ func (m *ServiceDTOVersion3BusNews) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusNews
+func (m *PTXServiceDTOBusSpecificationV3News) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3News
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go
similarity index 67%
rename from bus/v3/models/service_d_t_o_version3_bus_operator.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go
index 863acc04..73b746f7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_operator.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_operator.go
@@ -12,26 +12,36 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusOperator Operator
+// PTXServiceDTOBusSpecificationV3Operator Operator
//
-// swagger:model Service.DTO.Version3.Bus.Operator
-type ServiceDTOVersion3BusOperator struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Operator
+type PTXServiceDTOBusSpecificationV3Operator struct {
+ // String
+ //
// 營運業者票價查詢網站連結
FareURL string `json:"FareURL,omitempty"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者電子信箱
// Required: true
OperatorEmail *string `json:"OperatorEmail"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 營運業者Logo網址
OperatorLogoURL string `json:"OperatorLogoURL,omitempty"`
@@ -39,31 +49,45 @@ type ServiceDTOVersion3BusOperator struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
OperatorNo string `json:"OperatorNo,omitempty"`
+ // String
+ //
// 營運業者連絡電話
// Required: true
OperatorPhone *string `json:"OperatorPhone"`
+ // String
+ //
// 營運業者網址鏈結
// Required: true
OperatorURL *string `json:"OperatorUrl"`
+ // String
+ //
// 訂票連絡電話
ReservationPhone string `json:"ReservationPhone,omitempty"`
+ // String
+ //
// 訂票網址鏈結
ReservationURL string `json:"ReservationUrl,omitempty"`
+ // String
+ //
// 營運業者所屬業管子機關簡碼
SubAuthorityCode string `json:"SubAuthorityCode,omitempty"`
}
-// Validate validates this service d t o version3 bus operator
-func (m *ServiceDTOVersion3BusOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 operator
+func (m *PTXServiceDTOBusSpecificationV3Operator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -96,7 +120,7 @@ func (m *ServiceDTOVersion3BusOperator) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -105,7 +129,7 @@ func (m *ServiceDTOVersion3BusOperator) validateOperatorCode(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorEmail(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorEmail(formats strfmt.Registry) error {
if err := validate.Required("OperatorEmail", "body", m.OperatorEmail); err != nil {
return err
@@ -114,7 +138,7 @@ func (m *ServiceDTOVersion3BusOperator) validateOperatorEmail(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -123,25 +147,12 @@ func (m *ServiceDTOVersion3BusOperator) validateOperatorID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorPhone(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorPhone(formats strfmt.Registry) error {
if err := validate.Required("OperatorPhone", "body", m.OperatorPhone); err != nil {
return err
@@ -150,7 +161,7 @@ func (m *ServiceDTOVersion3BusOperator) validateOperatorPhone(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusOperator) validateOperatorURL(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Operator) validateOperatorURL(formats strfmt.Registry) error {
if err := validate.Required("OperatorUrl", "body", m.OperatorURL); err != nil {
return err
@@ -160,7 +171,7 @@ func (m *ServiceDTOVersion3BusOperator) validateOperatorURL(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Operator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -168,8 +179,8 @@ func (m *ServiceDTOVersion3BusOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusOperator
+func (m *PTXServiceDTOBusSpecificationV3Operator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Operator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go
similarity index 50%
rename from bus/v3/models/service_d_t_o_version3_bus_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go
index 0deefbc8..eb3c8886 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route.go
@@ -14,60 +14,82 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRoute Route
+// PTXServiceDTOBusSpecificationV3Route Route
//
// 路線資料型別
//
-// swagger:model Service.DTO.Version3.Bus.Route
-type ServiceDTOVersion3BusRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Route
+type PTXServiceDTOBusSpecificationV3Route struct {
// NameType
//
// 路線起站名稱
// Required: true
- DepartureStopName *ServiceDTOVersion3BaseNameType `json:"DepartureStopName"`
+ DepartureStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DepartureStopName"`
// NameType
//
// 路線迄站名稱
// Required: true
- DestinationStopName *ServiceDTOVersion3BaseNameType `json:"DestinationStopName"`
+ DestinationStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStopName"`
// Stop
//
// 終點站牌
// Required: true
- EndStop *ServiceDTOVersion3BusRouteStop `json:"EndStop"`
+ EndStop struct {
+ PTXServiceDTOBusSpecificationV3RouteStop
+ } `json:"EndStop"`
// NameType
//
// 計費緩衝區敘述
- FareBufferZoneDescription *ServiceDTOVersion3BaseNameType `json:"FareBufferZoneDescription,omitempty"`
+ FareBufferZoneDescription struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"FareBufferZoneDescription,omitempty"`
+ // String
+ //
// 收費資訊說明網址
FareURL string `json:"FareURL,omitempty"`
+ // Boolean
+ //
// 實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)
// Required: true
HasSubRoutes *bool `json:"HasSubRoutes"`
+ // Boolean
+ //
// 是否為環狀線
// Required: true
IsCircular *bool `json:"IsCircular"`
+ // String
+ //
// 路線公車動態資訊網址
LiveBusURL string `json:"LiveBusURL,omitempty"`
+ // Array
+ //
// 營運業者
// Required: true
- Operators []*ServiceDTOVersion3BusRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV3RouteOperator `json:"Operators"`
+ // String
+ //
// 路線描述
RouteDescription string `json:"RouteDescription,omitempty"`
// 路線旅行長度
RouteDistance float32 `json:"RouteDistance,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -75,8 +97,12 @@ type ServiceDTOVersion3BusRoute struct {
// NameType
//
// 路線長名稱
- RouteLongName *ServiceDTOVersion3BaseNameType `json:"RouteLongName,omitempty"`
+ RouteLongName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteLongName,omitempty"`
+ // String
+ //
// 路線簡圖網址
RouteMapImageURL string `json:"RouteMapImageURL,omitempty"`
@@ -84,7 +110,9 @@ type ServiceDTOVersion3BusRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
// integer
//
@@ -92,10 +120,14 @@ type ServiceDTOVersion3BusRoute struct {
// Required: true
RouteType *int32 `json:"RouteType"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 路線資訊說明網址
RouteURL string `json:"RouteURL,omitempty"`
@@ -103,23 +135,29 @@ type ServiceDTOVersion3BusRoute struct {
//
// 公車路線服務類型
// Required: true
- ServiceType *ServiceDTOVersion3BusServiceType `json:"ServiceType"`
+ ServiceType struct {
+ PTXServiceDTOBusSpecificationV3ServiceType
+ } `json:"ServiceType"`
// Stop
//
// 起始站牌
// Required: true
- StartStop *ServiceDTOVersion3BusRouteStop `json:"StartStop"`
+ StartStop struct {
+ PTXServiceDTOBusSpecificationV3RouteStop
+ } `json:"StartStop"`
// NameType
//
// 票價描述
// Required: true
- TicketPriceDescription *ServiceDTOVersion3BaseNameType `json:"TicketPriceDescription"`
+ TicketPriceDescription struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TicketPriceDescription"`
}
-// Validate validates this service d t o version3 bus route
-func (m *ServiceDTOVersion3BusRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route
+func (m *PTXServiceDTOBusSpecificationV3Route) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepartureStopName(formats); err != nil {
@@ -188,79 +226,31 @@ func (m *ServiceDTOVersion3BusRoute) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateDepartureStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("DepartureStopName", "body", m.DepartureStopName); err != nil {
- return err
- }
-
- if m.DepartureStopName != nil {
- if err := m.DepartureStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DepartureStopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateDepartureStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateDestinationStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStopName", "body", m.DestinationStopName); err != nil {
- return err
- }
-
- if m.DestinationStopName != nil {
- if err := m.DestinationStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateDestinationStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateEndStop(formats strfmt.Registry) error {
-
- if err := validate.Required("EndStop", "body", m.EndStop); err != nil {
- return err
- }
-
- if m.EndStop != nil {
- if err := m.EndStop.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndStop")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateEndStop(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateFareBufferZoneDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateFareBufferZoneDescription(formats strfmt.Registry) error {
if swag.IsZero(m.FareBufferZoneDescription) { // not required
return nil
}
- if m.FareBufferZoneDescription != nil {
- if err := m.FareBufferZoneDescription.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneDescription")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateHasSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateHasSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("HasSubRoutes", "body", m.HasSubRoutes); err != nil {
return err
@@ -269,7 +259,7 @@ func (m *ServiceDTOVersion3BusRoute) validateHasSubRoutes(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateIsCircular(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateIsCircular(formats strfmt.Registry) error {
if err := validate.Required("IsCircular", "body", m.IsCircular); err != nil {
return err
@@ -278,7 +268,7 @@ func (m *ServiceDTOVersion3BusRoute) validateIsCircular(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -303,7 +293,7 @@ func (m *ServiceDTOVersion3BusRoute) validateOperators(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -312,43 +302,21 @@ func (m *ServiceDTOVersion3BusRoute) validateRouteID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateRouteLongName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateRouteLongName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteLongName) { // not required
return nil
}
- if m.RouteLongName != nil {
- if err := m.RouteLongName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteLongName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateRouteType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateRouteType(formats strfmt.Registry) error {
if err := validate.Required("RouteType", "body", m.RouteType); err != nil {
return err
@@ -357,7 +325,7 @@ func (m *ServiceDTOVersion3BusRoute) validateRouteType(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Route) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -366,62 +334,23 @@ func (m *ServiceDTOVersion3BusRoute) validateRouteUID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateServiceType(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceType", "body", m.ServiceType); err != nil {
- return err
- }
-
- if m.ServiceType != nil {
- if err := m.ServiceType.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceType")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateServiceType(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateStartStop(formats strfmt.Registry) error {
-
- if err := validate.Required("StartStop", "body", m.StartStop); err != nil {
- return err
- }
-
- if m.StartStop != nil {
- if err := m.StartStop.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartStop")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateStartStop(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRoute) validateTicketPriceDescription(formats strfmt.Registry) error {
-
- if err := validate.Required("TicketPriceDescription", "body", m.TicketPriceDescription); err != nil {
- return err
- }
-
- if m.TicketPriceDescription != nil {
- if err := m.TicketPriceDescription.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TicketPriceDescription")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Route) validateTicketPriceDescription(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Route) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -429,8 +358,8 @@ func (m *ServiceDTOVersion3BusRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRoute
+func (m *PTXServiceDTOBusSpecificationV3Route) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Route
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
similarity index 69%
rename from bus/v3/models/service_d_t_o_version3_bus_route_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
index 83a86069..a0bc47d7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
@@ -14,10 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRouteFare RouteFare
+// PTXServiceDTOBusSpecificationV3RouteFare RouteFare
//
-// swagger:model Service.DTO.Version3.Bus.RouteFare
-type ServiceDTOVersion3BusRouteFare struct {
+// 每日時刻表資料
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare
+type PTXServiceDTOBusSpecificationV3RouteFare struct {
// integer
//
@@ -37,12 +39,18 @@ type ServiceDTOVersion3BusRouteFare struct {
// Required: true
IsFreeBus *int32 `json:"IsFreeBus"`
+ // Array
+ //
// 起迄站間計費
- ODFares []*ServiceDTOVersion3BusODFare `json:"ODFares"`
+ ODFares []*PTXServiceDTOBusSpecificationV3RouteFareODFare `json:"ODFares"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -50,32 +58,46 @@ type ServiceDTOVersion3BusRouteFare struct {
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 段次計費
- SectionFares []*ServiceDTOVersion3BusSectionFare `json:"SectionFares"`
+ SectionFares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFare `json:"SectionFares"`
+ // Array
+ //
// 計費站區間計費
- StageFares []*ServiceDTOVersion3BusStageFare `json:"StageFares"`
+ StageFares []*PTXServiceDTOBusSpecificationV3RouteFareStageFare `json:"StageFares"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
}
-// Validate validates this service d t o version3 bus route fare
-func (m *ServiceDTOVersion3BusRouteFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFarePricingType(formats); err != nil {
@@ -124,7 +146,7 @@ func (m *ServiceDTOVersion3BusRouteFare) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateFarePricingType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateFarePricingType(formats strfmt.Registry) error {
if err := validate.Required("FarePricingType", "body", m.FarePricingType); err != nil {
return err
@@ -133,7 +155,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateFarePricingType(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateIsForAllSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateIsForAllSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("IsForAllSubRoutes", "body", m.IsForAllSubRoutes); err != nil {
return err
@@ -142,7 +164,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateIsForAllSubRoutes(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateIsFreeBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateIsFreeBus(formats strfmt.Registry) error {
if err := validate.Required("IsFreeBus", "body", m.IsFreeBus); err != nil {
return err
@@ -151,7 +173,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateIsFreeBus(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateODFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateODFares(formats strfmt.Registry) error {
if swag.IsZero(m.ODFares) { // not required
return nil
@@ -176,7 +198,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateODFares(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -185,25 +207,16 @@ func (m *ServiceDTOVersion3BusRouteFare) validateRouteID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -212,7 +225,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateRouteUID(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateSectionFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateSectionFares(formats strfmt.Registry) error {
if swag.IsZero(m.SectionFares) { // not required
return nil
@@ -237,7 +250,7 @@ func (m *ServiceDTOVersion3BusRouteFare) validateSectionFares(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateStageFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateStageFares(formats strfmt.Registry) error {
if swag.IsZero(m.StageFares) { // not required
return nil
@@ -262,26 +275,17 @@ func (m *ServiceDTOVersion3BusRouteFare) validateStageFares(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusRouteFare) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -289,8 +293,8 @@ func (m *ServiceDTOVersion3BusRouteFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRouteFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go
index 15f70dd3..cb3a27f7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare.go
@@ -14,16 +14,18 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusODFare ODFare
+// PTXServiceDTOBusSpecificationV3RouteFareODFare ODFare
//
-// swagger:model Service.DTO.Version3.Bus.ODFare
-type ServiceDTOVersion3BusODFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare
+type PTXServiceDTOBusSpecificationV3RouteFareODFare struct {
// OD
//
// 計費迄點
// Required: true
- DestinationStops *ServiceDTOVersion3BusODFareOD `json:"DestinationStops"`
+ DestinationStops struct {
+ PTXServiceDTOBusSpecificationV3RouteFareODFareOD
+ } `json:"DestinationStops"`
// integer
//
@@ -31,19 +33,23 @@ type ServiceDTOVersion3BusODFare struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 計費價格
// Required: true
- Fares []*ServiceDTOVersion3BusODFareFare `json:"Fares"`
+ Fares []*PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD `json:"Fares"`
// OD
//
// 計費起點
// Required: true
- OriginStops *ServiceDTOVersion3BusODFareOD `json:"OriginStops"`
+ OriginStops struct {
+ PTXServiceDTOBusSpecificationV3RouteFareODFareOD
+ } `json:"OriginStops"`
}
-// Validate validates this service d t o version3 bus o d fare
-func (m *ServiceDTOVersion3BusODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare o d fare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStops(formats); err != nil {
@@ -68,25 +74,12 @@ func (m *ServiceDTOVersion3BusODFare) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusODFare) validateDestinationStops(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStops", "body", m.DestinationStops); err != nil {
- return err
- }
-
- if m.DestinationStops != nil {
- if err := m.DestinationStops.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStops")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) validateDestinationStops(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusODFare) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -95,7 +88,7 @@ func (m *ServiceDTOVersion3BusODFare) validateDirection(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusODFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -120,26 +113,13 @@ func (m *ServiceDTOVersion3BusODFare) validateFares(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusODFare) validateOriginStops(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStops", "body", m.OriginStops); err != nil {
- return err
- }
-
- if m.OriginStops != nil {
- if err := m.OriginStops.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStops")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) validateOriginStops(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -147,8 +127,8 @@ func (m *ServiceDTOVersion3BusODFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusODFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go
similarity index 63%
rename from bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go
index 408340cd..15574792 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_fare_o_d.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusODFareFare Fare
+// PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD FareOD
//
-// swagger:model Service.DTO.Version3.Bus.ODFare.Fare
-type ServiceDTOVersion3BusODFareFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD
+type PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD struct {
// integer
//
@@ -23,7 +23,7 @@ type ServiceDTOVersion3BusODFareFare struct {
// Required: true
FareClass *int32 `json:"FareClass"`
- // 計費價格
+ // String
// Required: true
Price *string `json:"Price"`
@@ -34,8 +34,8 @@ type ServiceDTOVersion3BusODFareFare struct {
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version3 bus o d fare fare
-func (m *ServiceDTOVersion3BusODFareFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare o d fare fare o d
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFareClass(formats); err != nil {
@@ -56,7 +56,7 @@ func (m *ServiceDTOVersion3BusODFareFare) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion3BusODFareFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -65,7 +65,7 @@ func (m *ServiceDTOVersion3BusODFareFare) validateFareClass(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusODFareFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -74,7 +74,7 @@ func (m *ServiceDTOVersion3BusODFareFare) validatePrice(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusODFareFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -84,7 +84,7 @@ func (m *ServiceDTOVersion3BusODFareFare) validateTicketType(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFareFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -92,8 +92,8 @@ func (m *ServiceDTOVersion3BusODFareFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFareFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusODFareFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareODFareFareOD
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go
index 9cd59feb..0d78ec42 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_o_d_fare_o_d.go
@@ -12,27 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusODFareOD OD
+// PTXServiceDTOBusSpecificationV3RouteFareODFareOD OD
//
-// swagger:model Service.DTO.Version3.Bus.ODFare.OD
-type ServiceDTOVersion3BusODFareOD struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD
+type PTXServiceDTOBusSpecificationV3RouteFareODFareOD struct {
- // 計費起點站牌代碼
+ // String
// Required: true
StopID *string `json:"StopID"`
// NameType
- //
- // 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
- // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
+ // String
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version3 bus o d fare o d
-func (m *ServiceDTOVersion3BusODFareOD) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare o d fare o d
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -53,7 +53,7 @@ func (m *ServiceDTOVersion3BusODFareOD) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusODFareOD) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -62,25 +62,16 @@ func (m *ServiceDTOVersion3BusODFareOD) validateStopID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusODFareOD) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusODFareOD) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -90,7 +81,7 @@ func (m *ServiceDTOVersion3BusODFareOD) validateStopUID(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFareOD) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -98,8 +89,8 @@ func (m *ServiceDTOVersion3BusODFareOD) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusODFareOD) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusODFareOD
+func (m *PTXServiceDTOBusSpecificationV3RouteFareODFareOD) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareODFareOD
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go
similarity index 62%
rename from bus/v3/models/service_d_t_o_version3_bus_section_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go
index 3ce68961..97dbbb6a 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare.go
@@ -14,22 +14,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSectionFare SectionFare
+// PTXServiceDTOBusSpecificationV3RouteFareSectionFare SectionFare
//
-// swagger:model Service.DTO.Version3.Bus.SectionFare
-type ServiceDTOVersion3BusSectionFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare
+type PTXServiceDTOBusSpecificationV3RouteFareSectionFare struct {
+ // Array
+ //
// 緩衝區資訊
// Required: true
- BufferZones []*ServiceDTOVersion3BusSectionFareBufferZone `json:"BufferZones"`
+ BufferZones []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone `json:"BufferZones"`
+ // Array
+ //
// 每段收費資訊
// Required: true
- Fares []*ServiceDTOVersion3BusSectionFareFare `json:"Fares"`
+ Fares []*PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection `json:"Fares"`
}
-// Validate validates this service d t o version3 bus section fare
-func (m *ServiceDTOVersion3BusSectionFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare section fare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBufferZones(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion3BusSectionFare) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusSectionFare) validateBufferZones(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFare) validateBufferZones(formats strfmt.Registry) error {
if err := validate.Required("BufferZones", "body", m.BufferZones); err != nil {
return err
@@ -71,7 +75,7 @@ func (m *ServiceDTOVersion3BusSectionFare) validateBufferZones(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion3BusSectionFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -97,7 +101,7 @@ func (m *ServiceDTOVersion3BusSectionFare) validateFares(formats strfmt.Registry
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -105,8 +109,8 @@ func (m *ServiceDTOVersion3BusSectionFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSectionFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareSectionFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go
new file mode 100644
index 00000000..e08efd0b
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_buffer_zone.go
@@ -0,0 +1,119 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone BufferZone
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone
+type PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone struct {
+
+ // String
+ BufferZoneDescription string `json:"BufferZoneDescription,omitempty"`
+
+ // integer
+ //
+ // 公車路線去返程列舉值,其中迴圈表示該路線去程終點站不休息直接返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
+ // Required: true
+ Direction *int32 `json:"Direction"`
+
+ // FareBufferZone
+ // Required: true
+ FareBufferZoneDestination struct {
+ PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone
+ } `json:"FareBufferZoneDestination"`
+
+ // FareBufferZone
+ // Required: true
+ FareBufferZoneOrigin struct {
+ PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone
+ } `json:"FareBufferZoneOrigin"`
+
+ // String
+ // Required: true
+ SectionSequence *string `json:"SectionSequence"`
+
+ // String
+ ZoneID string `json:"ZoneID,omitempty"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 route fare section fare buffer zone
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDirection(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFareBufferZoneDestination(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFareBufferZoneOrigin(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSectionSequence(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) validateDirection(formats strfmt.Registry) error {
+
+ if err := validate.Required("Direction", "body", m.Direction); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) validateFareBufferZoneDestination(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) validateFareBufferZoneOrigin(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
+
+ if err := validate.Required("SectionSequence", "body", m.SectionSequence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareSectionFareBufferZone
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go
new file mode 100644
index 00000000..5b399dec
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_buffer_zone.go
@@ -0,0 +1,99 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone FareBufferZone
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone
+type PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone struct {
+
+ // String
+ // Required: true
+ StopID *string `json:"StopID"`
+
+ // NameType
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
+
+ // String
+ // Required: true
+ StopUID *string `json:"StopUID"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 route fare section fare fare buffer zone
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStopID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) validateStopID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopID", "body", m.StopID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) validateStopName(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.StopName) { // not required
+ return nil
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) validateStopUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareBufferZone
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go
similarity index 61%
rename from bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go
index 7d23dbf4..1daefca4 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_section_fare_fare_section.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSectionFareFare Fare
+// PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection FareSection
//
-// swagger:model Service.DTO.Version3.Bus.SectionFare.Fare
-type ServiceDTOVersion3BusSectionFareFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection
+type PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection struct {
// integer
//
@@ -23,7 +23,7 @@ type ServiceDTOVersion3BusSectionFareFare struct {
// Required: true
FareClass *int32 `json:"FareClass"`
- // 計費價格
+ // String
// Required: true
Price *string `json:"Price"`
@@ -34,8 +34,8 @@ type ServiceDTOVersion3BusSectionFareFare struct {
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version3 bus section fare fare
-func (m *ServiceDTOVersion3BusSectionFareFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare section fare fare section
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFareClass(formats); err != nil {
@@ -56,7 +56,7 @@ func (m *ServiceDTOVersion3BusSectionFareFare) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -65,7 +65,7 @@ func (m *ServiceDTOVersion3BusSectionFareFare) validateFareClass(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -74,7 +74,7 @@ func (m *ServiceDTOVersion3BusSectionFareFare) validatePrice(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -84,7 +84,7 @@ func (m *ServiceDTOVersion3BusSectionFareFare) validateTicketType(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -92,8 +92,8 @@ func (m *ServiceDTOVersion3BusSectionFareFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSectionFareFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareSectionFareFareSection
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_stage_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go
index e6cfc658..1ad4cb0b 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare.go
@@ -14,16 +14,18 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStageFare StageFare
+// PTXServiceDTOBusSpecificationV3RouteFareStageFare StageFare
//
-// swagger:model Service.DTO.Version3.Bus.StageFare
-type ServiceDTOVersion3BusStageFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare
+type PTXServiceDTOBusSpecificationV3RouteFareStageFare struct {
// Stage
//
// 訖點計費站
// Required: true
- DestinationStage *ServiceDTOVersion3BusStageFareStage `json:"DestinationStage"`
+ DestinationStage struct {
+ PTXServiceDTOBusSpecificationV3RouteFareStageFareStage
+ } `json:"DestinationStage"`
// integer
//
@@ -31,19 +33,23 @@ type ServiceDTOVersion3BusStageFare struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 票價內容
// Required: true
- Fares []*ServiceDTOVersion3BusStageFareFare `json:"Fares"`
+ Fares []*PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage `json:"Fares"`
// Stage
//
// 起點計費站
// Required: true
- OriginStage *ServiceDTOVersion3BusStageFareStage `json:"OriginStage"`
+ OriginStage struct {
+ PTXServiceDTOBusSpecificationV3RouteFareStageFareStage
+ } `json:"OriginStage"`
}
-// Validate validates this service d t o version3 bus stage fare
-func (m *ServiceDTOVersion3BusStageFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare stage fare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStage(formats); err != nil {
@@ -68,25 +74,12 @@ func (m *ServiceDTOVersion3BusStageFare) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusStageFare) validateDestinationStage(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStage", "body", m.DestinationStage); err != nil {
- return err
- }
-
- if m.DestinationStage != nil {
- if err := m.DestinationStage.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStage")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) validateDestinationStage(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStageFare) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -95,7 +88,7 @@ func (m *ServiceDTOVersion3BusStageFare) validateDirection(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusStageFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -120,26 +113,13 @@ func (m *ServiceDTOVersion3BusStageFare) validateFares(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusStageFare) validateOriginStage(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStage", "body", m.OriginStage); err != nil {
- return err
- }
-
- if m.OriginStage != nil {
- if err := m.OriginStage.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStage")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) validateOriginStage(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -147,8 +127,8 @@ func (m *ServiceDTOVersion3BusStageFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStageFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareStageFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go
new file mode 100644
index 00000000..2dc154b4
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_discount_period.go
@@ -0,0 +1,96 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod DiscountPeriod
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod
+type PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod struct {
+
+ // String
+ // Required: true
+ EndTime *string `json:"EndTime"`
+
+ // ServiceDay
+ // Required: true
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay
+ } `json:"ServiceDay"`
+
+ // String
+ // Required: true
+ StartTime *string `json:"StartTime"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 route fare stage fare discount period
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateEndTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateServiceDay(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStartTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) validateEndTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) validateServiceDay(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) validateStartTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go
similarity index 64%
rename from bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go
index ec6c7c8c..ecb9a108 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_fare_stage.go
@@ -14,26 +14,24 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStageFareFare Fare
+// PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage FareStage
//
-// 票價內容
-//
-// swagger:model Service.DTO.Version3.Bus.StageFare.Fare
-type ServiceDTOVersion3BusStageFareFare struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage
+type PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage struct {
- // 優惠時段
- DiscountPeriods []*ServiceDTOVersion3BusStageFareDiscountPeriod `json:"DiscountPeriods"`
+ // Array
+ DiscountPeriods []*PTXServiceDTOBusSpecificationV3RouteFareStageFareDiscountPeriod `json:"DiscountPeriods"`
// integer
//
// 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']
FareClass int32 `json:"FareClass,omitempty"`
- // 票價名稱
+ // String
// Required: true
FareName *string `json:"FareName"`
- // 計費價格
+ // String
Price string `json:"Price,omitempty"`
// integer
@@ -43,8 +41,8 @@ type ServiceDTOVersion3BusStageFareFare struct {
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version3 bus stage fare fare
-func (m *ServiceDTOVersion3BusStageFareFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare stage fare fare stage
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDiscountPeriods(formats); err != nil {
@@ -65,7 +63,7 @@ func (m *ServiceDTOVersion3BusStageFareFare) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusStageFareFare) validateDiscountPeriods(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) validateDiscountPeriods(formats strfmt.Registry) error {
if swag.IsZero(m.DiscountPeriods) { // not required
return nil
@@ -90,7 +88,7 @@ func (m *ServiceDTOVersion3BusStageFareFare) validateDiscountPeriods(formats str
return nil
}
-func (m *ServiceDTOVersion3BusStageFareFare) validateFareName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) validateFareName(formats strfmt.Registry) error {
if err := validate.Required("FareName", "body", m.FareName); err != nil {
return err
@@ -99,7 +97,7 @@ func (m *ServiceDTOVersion3BusStageFareFare) validateFareName(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusStageFareFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -109,7 +107,7 @@ func (m *ServiceDTOVersion3BusStageFareFare) validateTicketType(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -117,8 +115,8 @@ func (m *ServiceDTOVersion3BusStageFareFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStageFareFare
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareStageFareFareStage
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go
similarity index 60%
rename from bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go
index ab409a22..76a899c7 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_service_day.go
@@ -12,82 +12,80 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStageFareServiceDay ServiceDay
+// PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay ServiceDay
//
-// 服務日型態
-//
-// swagger:model Service.DTO.Version3.Bus.StageFare.ServiceDay
-type ServiceDTOVersion3BusStageFareServiceDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay
+type PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay struct {
// integer
//
- // 假日後一日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
DayAfterHoliday int32 `json:"DayAfterHoliday,omitempty"`
// integer
//
- // 假日前一日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
DayBeforeHoliday int32 `json:"DayBeforeHoliday,omitempty"`
// integer
//
- // 星期五是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Friday *int32 `json:"Friday"`
// integer
//
- // 星期一是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Monday *int32 `json:"Monday"`
// integer
//
- // 國定假日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
NationalHolidays int32 `json:"NationalHolidays,omitempty"`
// integer
//
- // 星期六是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Saturday *int32 `json:"Saturday"`
- // 服務日標籤
+ // String
// Required: true
ServiceTag *string `json:"ServiceTag"`
// integer
//
- // 星期日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Sunday *int32 `json:"Sunday"`
// integer
//
- // 星期四是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Thursday *int32 `json:"Thursday"`
// integer
//
- // 星期二是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Tuesday *int32 `json:"Tuesday"`
// integer
//
- // 颱風停止上班上課期間是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
TyphoonDay int32 `json:"TyphoonDay,omitempty"`
// integer
//
- // 星期三是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version3 bus stage fare service day
-func (m *ServiceDTOVersion3BusStageFareServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route fare stage fare service day
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -128,7 +126,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -137,7 +135,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateFriday(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -146,7 +144,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateMonday(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -155,7 +153,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateSaturday(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateServiceTag(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateServiceTag(formats strfmt.Registry) error {
if err := validate.Required("ServiceTag", "body", m.ServiceTag); err != nil {
return err
@@ -164,7 +162,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateServiceTag(formats st
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -173,7 +171,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateSunday(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -182,7 +180,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateThursday(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -191,7 +189,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateTuesday(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusStageFareServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -201,7 +199,7 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) validateWednesday(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -209,8 +207,8 @@ func (m *ServiceDTOVersion3BusStageFareServiceDay) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStageFareServiceDay
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareStageFareServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go
new file mode 100644
index 00000000..f84a0aa9
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_fare_stage_fare_stage.go
@@ -0,0 +1,85 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV3RouteFareStageFareStage Stage
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage
+type PTXServiceDTOBusSpecificationV3RouteFareStageFareStage struct {
+
+ // String
+ StopID string `json:"StopID,omitempty"`
+
+ // NameType
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
+
+ // String
+ // Required: true
+ StopUID *string `json:"StopUID"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 route fare stage fare stage
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareStage) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStopName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareStage) validateStopName(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.StopName) { // not required
+ return nil
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareStage) validateStopUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareStage) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3RouteFareStageFareStage) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteFareStageFareStage
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go
similarity index 61%
rename from bus/v3/models/service_d_t_o_version3_bus_route_network.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go
index b445f5ea..6d119b31 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_network.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRouteNetwork RouteNetwork
+// PTXServiceDTOBusSpecificationV3RouteNetwork RouteNetwork
//
-// swagger:model Service.DTO.Version3.Bus.RouteNetwork
-type ServiceDTOVersion3BusRouteNetwork struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteNetwork
+type PTXServiceDTOBusSpecificationV3RouteNetwork struct {
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -27,19 +29,25 @@ type ServiceDTOVersion3BusRouteNetwork struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 站間線段序號
// Required: true
- Segments []*ServiceDTOVersion3BusRouteNetworkSegment `json:"Segments"`
+ Segments []*PTXServiceDTOBusSpecificationV3RouteNetworkSegment `json:"Segments"`
}
-// Validate validates this service d t o version3 bus route network
-func (m *ServiceDTOVersion3BusRouteNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route network
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRouteID(formats); err != nil {
@@ -64,7 +72,7 @@ func (m *ServiceDTOVersion3BusRouteNetwork) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetwork) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -73,25 +81,12 @@ func (m *ServiceDTOVersion3BusRouteNetwork) validateRouteID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetwork) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetwork) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -100,7 +95,7 @@ func (m *ServiceDTOVersion3BusRouteNetwork) validateRouteUID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetwork) validateSegments(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) validateSegments(formats strfmt.Registry) error {
if err := validate.Required("Segments", "body", m.Segments); err != nil {
return err
@@ -126,7 +121,7 @@ func (m *ServiceDTOVersion3BusRouteNetwork) validateSegments(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -134,8 +129,8 @@ func (m *ServiceDTOVersion3BusRouteNetwork) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRouteNetwork
+func (m *PTXServiceDTOBusSpecificationV3RouteNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go
similarity index 61%
rename from bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go
index fbb63790..4b10a58f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_network_segment.go
@@ -12,30 +12,38 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRouteNetworkSegment Segment
+// PTXServiceDTOBusSpecificationV3RouteNetworkSegment Segment
//
-// swagger:model Service.DTO.Version3.Bus.RouteNetwork.Segment
-type ServiceDTOVersion3BusRouteNetworkSegment struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment
+type PTXServiceDTOBusSpecificationV3RouteNetworkSegment struct {
+ // Single
+ //
// 站間線段距離
// Required: true
Distance *float32 `json:"Distance"`
+ // String
+ //
// 表BusStop唯一碼(起點站牌)
// Required: true
FromStopID *string `json:"FromStopID"`
+ // Single
+ //
// 站間線段序號
// Required: true
Sequence *float32 `json:"Sequence"`
+ // String
+ //
// 表BusStop唯一碼(迄點站牌)
// Required: true
ToStopID *string `json:"ToStopID"`
}
-// Validate validates this service d t o version3 bus route network segment
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route network segment
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDistance(formats); err != nil {
@@ -60,7 +68,7 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) validateDistance(formats strfmt.Registry) error {
if err := validate.Required("Distance", "body", m.Distance); err != nil {
return err
@@ -69,7 +77,7 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateDistance(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateFromStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) validateFromStopID(formats strfmt.Registry) error {
if err := validate.Required("FromStopID", "body", m.FromStopID); err != nil {
return err
@@ -78,7 +86,7 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateFromStopID(formats st
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -87,7 +95,7 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateSequence(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateToStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) validateToStopID(formats strfmt.Registry) error {
if err := validate.Required("ToStopID", "body", m.ToStopID); err != nil {
return err
@@ -97,7 +105,7 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) validateToStopID(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -105,8 +113,8 @@ func (m *ServiceDTOVersion3BusRouteNetworkSegment) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteNetworkSegment) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRouteNetworkSegment
+func (m *PTXServiceDTOBusSpecificationV3RouteNetworkSegment) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteNetworkSegment
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go
similarity index 59%
rename from bus/v3/models/service_d_t_o_version3_bus_route_operator.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go
index f8d55c2d..097d50ec 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_operator.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_operator.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusRouteOperator Operator
+// PTXServiceDTOBusSpecificationV3RouteOperator Operator
//
// 營運業者資訊
//
-// swagger:model Service.DTO.Version3.Bus.Route.Operator
-type ServiceDTOVersion3BusRouteOperator struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Route+Operator
+type PTXServiceDTOBusSpecificationV3RouteOperator struct {
+ // String
+ //
// 平台代碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -31,15 +35,19 @@ type ServiceDTOVersion3BusRouteOperator struct {
//
// 營運業者代碼
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
}
-// Validate validates this service d t o version3 bus route operator
-func (m *ServiceDTOVersion3BusRouteOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route operator
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -64,7 +72,7 @@ func (m *ServiceDTOVersion3BusRouteOperator) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -73,7 +81,7 @@ func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorCode(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -82,25 +90,12 @@ func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -110,7 +105,7 @@ func (m *ServiceDTOVersion3BusRouteOperator) validateOperatorNo(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +113,8 @@ func (m *ServiceDTOVersion3BusRouteOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusRouteOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusRouteOperator
+func (m *PTXServiceDTOBusSpecificationV3RouteOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go
similarity index 51%
rename from bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go
index b191b133..d179f001 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_route_stop.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSubRouteStop Stop
+// PTXServiceDTOBusSpecificationV3RouteStop Stop
//
-// swagger:model Service.DTO.Version3.Bus.SubRoute.Stop
-type ServiceDTOVersion3BusSubRouteStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Route+Stop
+type PTXServiceDTOBusSpecificationV3RouteStop struct {
+ // String
+ //
// 站牌代碼
// Required: true
StopID *string `json:"StopID"`
@@ -25,11 +27,13 @@ type ServiceDTOVersion3BusSubRouteStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
}
-// Validate validates this service d t o version3 bus sub route stop
-func (m *ServiceDTOVersion3BusSubRouteStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 route stop
+func (m *PTXServiceDTOBusSpecificationV3RouteStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion3BusSubRouteStop) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3RouteStop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -55,26 +59,13 @@ func (m *ServiceDTOVersion3BusSubRouteStop) validateStopID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3RouteStop) validateStopName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRouteStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3RouteStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -82,8 +73,8 @@ func (m *ServiceDTOVersion3BusSubRouteStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRouteStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSubRouteStop
+func (m *PTXServiceDTOBusSpecificationV3RouteStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3RouteStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
similarity index 67%
rename from bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
index 9651a275..a89e880f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
@@ -14,32 +14,42 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusS2STravelTime S2STravelTime
+// PTXServiceDTOBusSpecificationV3S2STravelTime S2STravelTime
//
-// swagger:model Service.DTO.Version3.Bus.S2STravelTime
-type ServiceDTOVersion3BusS2STravelTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.S2STravelTime
+type PTXServiceDTOBusSpecificationV3S2STravelTime struct {
+ // String
+ //
// 路線代碼
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 附屬路線代碼
SubRouteID string `json:"SubRouteID,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
+ // Array
+ //
// 站間運行時間資訊
// Required: true
- TravelTimes []*ServiceDTOVersion3BusS2STravelTimeTravelTime `json:"TravelTimes"`
+ TravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime `json:"TravelTimes"`
}
-// Validate validates this service d t o version3 bus s2 s travel time
-func (m *ServiceDTOVersion3BusS2STravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 s2 s travel time
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRouteID(formats); err != nil {
@@ -60,7 +70,7 @@ func (m *ServiceDTOVersion3BusS2STravelTime) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTime) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -69,7 +79,7 @@ func (m *ServiceDTOVersion3BusS2STravelTime) validateRouteID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTime) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -78,7 +88,7 @@ func (m *ServiceDTOVersion3BusS2STravelTime) validateRouteUID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
if err := validate.Required("TravelTimes", "body", m.TravelTimes); err != nil {
return err
@@ -104,7 +114,7 @@ func (m *ServiceDTOVersion3BusS2STravelTime) validateTravelTimes(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusS2STravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -112,8 +122,8 @@ func (m *ServiceDTOVersion3BusS2STravelTime) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusS2STravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusS2STravelTime
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3S2STravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go
similarity index 61%
rename from bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go
index c466bf85..0d09a315 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time_travel_time.go
@@ -12,38 +12,50 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusS2STravelTimeTravelTime TravelTime
+// PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime TravelTime
//
-// swagger:model Service.DTO.Version3.Bus.S2STravelTime.TravelTime
-type ServiceDTOVersion3BusS2STravelTimeTravelTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime
+type PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime struct {
+ // Single
+ //
// 站間距離
// Required: true
Distance *float32 `json:"Distance"`
+ // String
+ //
// 起站站牌代碼
// Required: true
FromStopID *string `json:"FromStopID"`
+ // Int32
+ //
// 站間預估行駛時間
// Required: true
RunTime *int32 `json:"RunTime"`
+ // Int32
+ //
// 站間序號
// Required: true
Sequence *int32 `json:"Sequence"`
+ // Int32
+ //
// 起站停靠時間
// Required: true
StopTime *int32 `json:"StopTime"`
+ // String
+ //
// 迄站站牌代碼
// Required: true
ToStopID *string `json:"ToStopID"`
}
-// Validate validates this service d t o version3 bus s2 s travel time travel time
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 s2 s travel time travel time
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDistance(formats); err != nil {
@@ -76,7 +88,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) Validate(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateDistance(formats strfmt.Registry) error {
if err := validate.Required("Distance", "body", m.Distance); err != nil {
return err
@@ -85,7 +97,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateDistance(formats
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateFromStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateFromStopID(formats strfmt.Registry) error {
if err := validate.Required("FromStopID", "body", m.FromStopID); err != nil {
return err
@@ -94,7 +106,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateFromStopID(format
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateRunTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateRunTime(formats strfmt.Registry) error {
if err := validate.Required("RunTime", "body", m.RunTime); err != nil {
return err
@@ -103,7 +115,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateRunTime(formats s
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -112,7 +124,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateSequence(formats
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateStopTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateStopTime(formats strfmt.Registry) error {
if err := validate.Required("StopTime", "body", m.StopTime); err != nil {
return err
@@ -121,7 +133,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateStopTime(formats
return nil
}
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateToStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) validateToStopID(formats strfmt.Registry) error {
if err := validate.Required("ToStopID", "body", m.ToStopID); err != nil {
return err
@@ -131,7 +143,7 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) validateToStopID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -139,8 +151,8 @@ func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusS2STravelTimeTravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusS2STravelTimeTravelTime
+func (m *PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3S2STravelTimeTravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go
similarity index 66%
rename from bus/v3/models/service_d_t_o_version3_bus_schedule.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go
index 18af3aec..b622ce8a 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSchedule Schedule
+// PTXServiceDTOBusSpecificationV3Schedule Schedule
//
// 營運班表資料
//
-// swagger:model Service.DTO.Version3.Bus.Schedule
-type ServiceDTOVersion3BusSchedule struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule
+type PTXServiceDTOBusSpecificationV3Schedule struct {
// integer
//
@@ -27,14 +27,20 @@ type ServiceDTOVersion3BusSchedule struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -43,15 +49,23 @@ type ServiceDTOVersion3BusSchedule struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 營運班表說明網址
ScheduleURL string `json:"ScheduleURL,omitempty"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -59,17 +73,23 @@ type ServiceDTOVersion3BusSchedule struct {
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
+ // Array
+ //
// 預定時刻表
- Timetables []*ServiceDTOVersion3BusScheduleTimeTable `json:"Timetables"`
+ Timetables []*PTXServiceDTOBusSpecificationV3ScheduleTimeTable `json:"Timetables"`
}
-// Validate validates this service d t o version3 bus schedule
-func (m *ServiceDTOVersion3BusSchedule) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 schedule
+func (m *PTXServiceDTOBusSpecificationV3Schedule) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -114,7 +134,7 @@ func (m *ServiceDTOVersion3BusSchedule) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -123,7 +143,7 @@ func (m *ServiceDTOVersion3BusSchedule) validateDirection(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -132,7 +152,7 @@ func (m *ServiceDTOVersion3BusSchedule) validateOperatorCode(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -141,7 +161,7 @@ func (m *ServiceDTOVersion3BusSchedule) validateOperatorID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -150,25 +170,12 @@ func (m *ServiceDTOVersion3BusSchedule) validateRouteID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -177,7 +184,7 @@ func (m *ServiceDTOVersion3BusSchedule) validateRouteUID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -186,25 +193,16 @@ func (m *ServiceDTOVersion3BusSchedule) validateSubRouteID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSchedule) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) validateTimetables(formats strfmt.Registry) error {
if swag.IsZero(m.Timetables) { // not required
return nil
@@ -230,7 +228,7 @@ func (m *ServiceDTOVersion3BusSchedule) validateTimetables(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSchedule) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Schedule) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -238,8 +236,8 @@ func (m *ServiceDTOVersion3BusSchedule) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSchedule) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSchedule
+func (m *PTXServiceDTOBusSpecificationV3Schedule) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Schedule
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go
similarity index 57%
rename from bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go
index 64f1dfd9..101e7a56 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_date_period.go
@@ -12,22 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusScheduleDatePeriod DatePeriod
+// PTXServiceDTOBusSpecificationV3ScheduleDatePeriod DatePeriod
//
-// swagger:model Service.DTO.Version3.Bus.Schedule.DatePeriod
-type ServiceDTOVersion3BusScheduleDatePeriod struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod
+type PTXServiceDTOBusSpecificationV3ScheduleDatePeriod struct {
+ // String
+ //
// 結束日期
// Required: true
EndDate *string `json:"EndDate"`
+ // String
+ //
// 開始日期
// Required: true
StartDate *string `json:"StartDate"`
}
-// Validate validates this service d t o version3 bus schedule date period
-func (m *ServiceDTOVersion3BusScheduleDatePeriod) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 schedule date period
+func (m *PTXServiceDTOBusSpecificationV3ScheduleDatePeriod) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndDate(formats); err != nil {
@@ -44,7 +48,7 @@ func (m *ServiceDTOVersion3BusScheduleDatePeriod) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusScheduleDatePeriod) validateEndDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleDatePeriod) validateEndDate(formats strfmt.Registry) error {
if err := validate.Required("EndDate", "body", m.EndDate); err != nil {
return err
@@ -53,7 +57,7 @@ func (m *ServiceDTOVersion3BusScheduleDatePeriod) validateEndDate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3BusScheduleDatePeriod) validateStartDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleDatePeriod) validateStartDate(formats strfmt.Registry) error {
if err := validate.Required("StartDate", "body", m.StartDate); err != nil {
return err
@@ -63,7 +67,7 @@ func (m *ServiceDTOVersion3BusScheduleDatePeriod) validateStartDate(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleDatePeriod) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleDatePeriod) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -71,8 +75,8 @@ func (m *ServiceDTOVersion3BusScheduleDatePeriod) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleDatePeriod) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleDatePeriod
+func (m *PTXServiceDTOBusSpecificationV3ScheduleDatePeriod) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScheduleDatePeriod
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go
new file mode 100644
index 00000000..f49070a3
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_service_day.go
@@ -0,0 +1,100 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTOBusSpecificationV3ScheduleServiceDay ServiceDay
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay
+type PTXServiceDTOBusSpecificationV3ScheduleServiceDay struct {
+
+ // integer
+ //
+ // 國定假日後一日營運與否 : [0:'否',1:'是']
+ DayAfterHoliday int32 `json:"DayAfterHoliday,omitempty"`
+
+ // integer
+ //
+ // 國定假日前一日營運與否 : [0:'否',1:'是']
+ DayBeforeHoliday int32 `json:"DayBeforeHoliday,omitempty"`
+
+ // integer
+ //
+ // 星期五營運與否 : [0:'否',1:'是']
+ Friday int32 `json:"Friday,omitempty"`
+
+ // integer
+ //
+ // 星期一營運與否 : [0:'否',1:'是']
+ Monday int32 `json:"Monday,omitempty"`
+
+ // integer
+ //
+ // 國定假日營運與否 : [0:'否',1:'是']
+ NationalHolidays int32 `json:"NationalHolidays,omitempty"`
+
+ // integer
+ //
+ // 星期六營運與否 : [0:'否',1:'是']
+ Saturday int32 `json:"Saturday,omitempty"`
+
+ // String
+ //
+ // 服務日標籤
+ ServiceTag string `json:"ServiceTag,omitempty"`
+
+ // integer
+ //
+ // 星期日營運與否 : [0:'否',1:'是']
+ Sunday int32 `json:"Sunday,omitempty"`
+
+ // integer
+ //
+ // 星期四營運與否 : [0:'否',1:'是']
+ Thursday int32 `json:"Thursday,omitempty"`
+
+ // integer
+ //
+ // 星期二營運與否 : [0:'否',1:'是']
+ Tuesday int32 `json:"Tuesday,omitempty"`
+
+ // integer
+ //
+ // 颱風停止上班上課期間營運與否 : [0:'否',1:'是']
+ TyphoonDay int32 `json:"TyphoonDay,omitempty"`
+
+ // integer
+ //
+ // 星期三營運與否 : [0:'否',1:'是']
+ Wednesday int32 `json:"Wednesday,omitempty"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 schedule service day
+func (m *PTXServiceDTOBusSpecificationV3ScheduleServiceDay) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3ScheduleServiceDay) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3ScheduleServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScheduleServiceDay
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go
similarity index 51%
rename from bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go
index bb94b98b..8dfa3570 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_special_day.go
@@ -12,34 +12,40 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusScheduleSpecialDay SpecialDay
+// PTXServiceDTOBusSpecificationV3ScheduleSpecialDay SpecialDay
//
-// swagger:model Service.DTO.Version3.Bus.Schedule.SpecialDay
-type ServiceDTOVersion3BusScheduleSpecialDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay
+type PTXServiceDTOBusSpecificationV3ScheduleSpecialDay struct {
// DatePeriod
//
// 連續特殊日期
// Required: true
- DatePeriod *ServiceDTOVersion3BusScheduleDatePeriod `json:"DatePeriod"`
+ DatePeriod struct {
+ PTXServiceDTOBusSpecificationV3ScheduleDatePeriod
+ } `json:"DatePeriod"`
- // Dates
+ // Array
//
// 不連續特殊日期
// Required: true
- Dates *ServiceDTOVersion3BusScheduleDates `json:"Dates"`
+ Dates []string `json:"Dates"`
+ // String
+ //
// 特殊營運描述
// Required: true
Description *string `json:"Description"`
- // 營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運
+ // integer
+ //
+ // 營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']
// Required: true
ServiceStatus *int32 `json:"ServiceStatus"`
}
-// Validate validates this service d t o version3 bus schedule special day
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 schedule special day
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDatePeriod(formats); err != nil {
@@ -64,43 +70,21 @@ func (m *ServiceDTOVersion3BusScheduleSpecialDay) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateDatePeriod(formats strfmt.Registry) error {
-
- if err := validate.Required("DatePeriod", "body", m.DatePeriod); err != nil {
- return err
- }
-
- if m.DatePeriod != nil {
- if err := m.DatePeriod.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DatePeriod")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) validateDatePeriod(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateDates(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) validateDates(formats strfmt.Registry) error {
if err := validate.Required("Dates", "body", m.Dates); err != nil {
return err
}
- if m.Dates != nil {
- if err := m.Dates.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Dates")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -109,7 +93,7 @@ func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateDescription(formats st
return nil
}
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateServiceStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) validateServiceStatus(formats strfmt.Registry) error {
if err := validate.Required("ServiceStatus", "body", m.ServiceStatus); err != nil {
return err
@@ -119,7 +103,7 @@ func (m *ServiceDTOVersion3BusScheduleSpecialDay) validateServiceStatus(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +111,8 @@ func (m *ServiceDTOVersion3BusScheduleSpecialDay) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleSpecialDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleSpecialDay
+func (m *PTXServiceDTOBusSpecificationV3ScheduleSpecialDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScheduleSpecialDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go
similarity index 63%
rename from bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go
index 552ea8f9..23a95574 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_stop_time.go
@@ -12,19 +12,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusScheduleStopTime StopTime
+// PTXServiceDTOBusSpecificationV3ScheduleStopTime StopTime
//
-// swagger:model Service.DTO.Version3.Bus.Schedule.StopTime
-type ServiceDTOVersion3BusScheduleStopTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime
+type PTXServiceDTOBusSpecificationV3ScheduleStopTime struct {
+ // String
+ //
// 到站時間,格式為:HH:mm
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間,格式為:HH:mm
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -32,19 +38,25 @@ type ServiceDTOVersion3BusScheduleStopTime struct {
// NameType
//
// 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
+ // Int32
+ //
// 路線經過站牌之順序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version3 bus schedule stop time
-func (m *ServiceDTOVersion3BusScheduleStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 schedule stop time
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -77,7 +89,7 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -86,7 +98,7 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) validateArrivalTime(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -95,7 +107,7 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) validateDepartureTime(formats st
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -104,25 +116,16 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -131,7 +134,7 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopSequence(formats str
return nil
}
-func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -141,7 +144,7 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) validateStopUID(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +152,8 @@ func (m *ServiceDTOVersion3BusScheduleStopTime) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleStopTime
+func (m *PTXServiceDTOBusSpecificationV3ScheduleStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScheduleStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go
similarity index 62%
rename from bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go
index 48f8af5f..3fced493 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_schedule_time_table.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusScheduleTimeTable TimeTable
+// PTXServiceDTOBusSpecificationV3ScheduleTimeTable TimeTable
//
-// swagger:model Service.DTO.Version3.Bus.Schedule.TimeTable
-type ServiceDTOVersion3BusScheduleTimeTable struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable
+type PTXServiceDTOBusSpecificationV3ScheduleTimeTable struct {
+ // String
+ //
// 該路線班次是否使用低地板公車車輛
IsLowFloor string `json:"IsLowFloor,omitempty"`
@@ -26,22 +28,30 @@ type ServiceDTOVersion3BusScheduleTimeTable struct {
//
// 服務日型態
// Required: true
- ServiceDay *ServiceDTOVersion3BusScheduleServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV3ScheduleServiceDay
+ } `json:"ServiceDay"`
+ // Array
+ //
// 例外營運日
// Required: true
- SpecialDays []*ServiceDTOVersion3BusScheduleSpecialDay `json:"SpecialDays"`
+ SpecialDays []*PTXServiceDTOBusSpecificationV3ScheduleSpecialDay `json:"SpecialDays"`
+ // Array
+ //
// 公車停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion3BusScheduleStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTOBusSpecificationV3ScheduleStopTime `json:"StopTimes"`
+ // String
+ //
// 班次代碼,為無意義之編碼
TripID string `json:"TripID,omitempty"`
}
-// Validate validates this service d t o version3 bus schedule time table
-func (m *ServiceDTOVersion3BusScheduleTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 schedule time table
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateServiceDay(formats); err != nil {
@@ -62,25 +72,12 @@ func (m *ServiceDTOVersion3BusScheduleTimeTable) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusScheduleTimeTable) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) validateServiceDay(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusScheduleTimeTable) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) validateSpecialDays(formats strfmt.Registry) error {
if err := validate.Required("SpecialDays", "body", m.SpecialDays); err != nil {
return err
@@ -105,7 +102,7 @@ func (m *ServiceDTOVersion3BusScheduleTimeTable) validateSpecialDays(formats str
return nil
}
-func (m *ServiceDTOVersion3BusScheduleTimeTable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -131,7 +128,7 @@ func (m *ServiceDTOVersion3BusScheduleTimeTable) validateStopTimes(formats strfm
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -139,8 +136,8 @@ func (m *ServiceDTOVersion3BusScheduleTimeTable) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleTimeTable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleTimeTable
+func (m *PTXServiceDTOBusSpecificationV3ScheduleTimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScheduleTimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go
similarity index 68%
rename from bus/v3/models/service_d_t_o_version3_bus_scope.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go
index 1aed8edd..1fb06828 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope.go
@@ -13,28 +13,36 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusScope Scope
+// PTXServiceDTOBusSpecificationV3Scope Scope
//
// 通阻影響範圍
//
-// swagger:model Service.DTO.Version3.Bus.Scope
-type ServiceDTOVersion3BusScope struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Scope
+type PTXServiceDTOBusSpecificationV3Scope struct {
+ // Array
+ //
// 路線資料
- Routes []*ServiceDTOVersion3BusScopeRoute `json:"Routes"`
+ Routes []*PTXServiceDTOBusSpecificationV3ScopeRoute `json:"Routes"`
+ // Array
+ //
// 站牌資料
- Stops []*ServiceDTOVersion3BusScopeStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV3ScopeStop `json:"Stops"`
+ // Array
+ //
// 附屬路線資料
- SubRoutes []*ServiceDTOVersion3BusScopeSubRoute `json:"SubRoutes"`
+ SubRoutes []*PTXServiceDTOBusSpecificationV3ScopeSubRoute `json:"SubRoutes"`
+ // Array
+ //
// 班次代碼資料
- TripIDs []*ServiceDTOVersion3BusScopeTrip `json:"TripIDs"`
+ TripIDs []*PTXServiceDTOBusSpecificationV3ScopeTrip `json:"TripIDs"`
}
-// Validate validates this service d t o version3 bus scope
-func (m *ServiceDTOVersion3BusScope) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 scope
+func (m *PTXServiceDTOBusSpecificationV3Scope) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRoutes(formats); err != nil {
@@ -59,7 +67,7 @@ func (m *ServiceDTOVersion3BusScope) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusScope) validateRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Scope) validateRoutes(formats strfmt.Registry) error {
if swag.IsZero(m.Routes) { // not required
return nil
@@ -84,7 +92,7 @@ func (m *ServiceDTOVersion3BusScope) validateRoutes(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusScope) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Scope) validateStops(formats strfmt.Registry) error {
if swag.IsZero(m.Stops) { // not required
return nil
@@ -109,7 +117,7 @@ func (m *ServiceDTOVersion3BusScope) validateStops(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion3BusScope) validateSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Scope) validateSubRoutes(formats strfmt.Registry) error {
if swag.IsZero(m.SubRoutes) { // not required
return nil
@@ -134,7 +142,7 @@ func (m *ServiceDTOVersion3BusScope) validateSubRoutes(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusScope) validateTripIDs(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Scope) validateTripIDs(formats strfmt.Registry) error {
if swag.IsZero(m.TripIDs) { // not required
return nil
@@ -160,7 +168,7 @@ func (m *ServiceDTOVersion3BusScope) validateTripIDs(formats strfmt.Registry) er
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScope) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Scope) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -168,8 +176,8 @@ func (m *ServiceDTOVersion3BusScope) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScope) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScope
+func (m *PTXServiceDTOBusSpecificationV3Scope) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Scope
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_scope_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go
index 3f2a4b33..cc75af94 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_route.go
@@ -11,24 +11,28 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusScopeRoute Route
+// PTXServiceDTOBusSpecificationV3ScopeRoute Route
//
// 路線資料
//
-// swagger:model Service.DTO.Version3.Bus.Scope.Route
-type ServiceDTOVersion3BusScopeRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Scope+Route
+type PTXServiceDTOBusSpecificationV3ScopeRoute struct {
+ // String
+ //
// 地區既用中之班次代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
// NameType
//
// 路線名稱
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
}
-// Validate validates this service d t o version3 bus scope route
-func (m *ServiceDTOVersion3BusScopeRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 scope route
+func (m *PTXServiceDTOBusSpecificationV3ScopeRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRouteName(formats); err != nil {
@@ -41,26 +45,17 @@ func (m *ServiceDTOVersion3BusScopeRoute) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion3BusScopeRoute) validateRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScopeRoute) validateRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.RouteName) { // not required
return nil
}
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScopeRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -68,8 +63,8 @@ func (m *ServiceDTOVersion3BusScopeRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScopeRoute
+func (m *PTXServiceDTOBusSpecificationV3ScopeRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScopeRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_scope_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go
index 5abee35e..8627031b 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_stop.go
@@ -11,24 +11,28 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusScopeStop Stop
+// PTXServiceDTOBusSpecificationV3ScopeStop Stop
//
// 站牌資料
//
-// swagger:model Service.DTO.Version3.Bus.Scope.Stop
-type ServiceDTOVersion3BusScopeStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Scope+Stop
+type PTXServiceDTOBusSpecificationV3ScopeStop struct {
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
StopID string `json:"StopID,omitempty"`
// NameType
//
// 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
}
-// Validate validates this service d t o version3 bus scope stop
-func (m *ServiceDTOVersion3BusScopeStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 scope stop
+func (m *PTXServiceDTOBusSpecificationV3ScopeStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopName(formats); err != nil {
@@ -41,26 +45,17 @@ func (m *ServiceDTOVersion3BusScopeStop) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusScopeStop) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScopeStop) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScopeStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -68,8 +63,8 @@ func (m *ServiceDTOVersion3BusScopeStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScopeStop
+func (m *PTXServiceDTOBusSpecificationV3ScopeStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScopeStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go
index 23f3055b..f9f7990a 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_sub_route.go
@@ -11,24 +11,28 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusScopeSubRoute SubRoute
+// PTXServiceDTOBusSpecificationV3ScopeSubRoute SubRoute
//
// 附屬路線資料
//
-// swagger:model Service.DTO.Version3.Bus.Scope.SubRoute
-type ServiceDTOVersion3BusScopeSubRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute
+type PTXServiceDTOBusSpecificationV3ScopeSubRoute struct {
+ // String
+ //
// 地區既用中之附屬班次代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
}
-// Validate validates this service d t o version3 bus scope sub route
-func (m *ServiceDTOVersion3BusScopeSubRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 scope sub route
+func (m *PTXServiceDTOBusSpecificationV3ScopeSubRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSubRouteName(formats); err != nil {
@@ -41,26 +45,17 @@ func (m *ServiceDTOVersion3BusScopeSubRoute) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusScopeSubRoute) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ScopeSubRoute) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeSubRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScopeSubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -68,8 +63,8 @@ func (m *ServiceDTOVersion3BusScopeSubRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeSubRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScopeSubRoute
+func (m *PTXServiceDTOBusSpecificationV3ScopeSubRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScopeSubRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_scope_trip.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go
index f86de4e5..255eca19 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_scope_trip.go
@@ -10,24 +10,26 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BusScopeTrip Trip
+// PTXServiceDTOBusSpecificationV3ScopeTrip Trip
//
// 班次代碼資料
//
-// swagger:model Service.DTO.Version3.Bus.Scope.Trip
-type ServiceDTOVersion3BusScopeTrip struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Scope+Trip
+type PTXServiceDTOBusSpecificationV3ScopeTrip struct {
+ // String
+ //
// 地區既用中之班次代碼(為原資料內碼)
TripID string `json:"TripID,omitempty"`
}
-// Validate validates this service d t o version3 bus scope trip
-func (m *ServiceDTOVersion3BusScopeTrip) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 scope trip
+func (m *PTXServiceDTOBusSpecificationV3ScopeTrip) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeTrip) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ScopeTrip) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -35,8 +37,8 @@ func (m *ServiceDTOVersion3BusScopeTrip) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScopeTrip) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScopeTrip
+func (m *PTXServiceDTOBusSpecificationV3ScopeTrip) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ScopeTrip
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_service_type.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_service_type.go
similarity index 67%
rename from bus/v3/models/service_d_t_o_version3_bus_service_type.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_service_type.go
index a8f45dba..905fd3fd 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_service_type.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_service_type.go
@@ -12,66 +12,92 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusServiceType ServiceType
+// PTXServiceDTOBusSpecificationV3ServiceType ServiceType
//
-// swagger:model Service.DTO.Version3.Bus.ServiceType
-type ServiceDTOVersion3BusServiceType struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.ServiceType
+type PTXServiceDTOBusSpecificationV3ServiceType struct {
+ // Boolean
+ //
// 是否為活動接駁車
// Required: true
IsActivityShuttleBus *bool `json:"IsActivityShuttleBus"`
+ // Boolean
+ //
// 是否為機場接駁車
// Required: true
IsAirportShuttleBus *bool `json:"IsAirportShuttleBus"`
+ // Boolean
+ //
// 是否為BRT公車
// Required: true
IsBRTBus *bool `json:"IsBRTBus"`
+ // Boolean
+ //
// 是否為免費公車
// Required: true
IsFreeBus *bool `json:"IsFreeBus"`
+ // Boolean
+ //
// 是否為醫療公車
// Required: true
IsMedicalBus *bool `json:"IsMedicalBus"`
+ // Boolean
+ //
// 是否為捷運接駁車
// Required: true
IsMetroShuttleBus *bool `json:"IsMetroShuttleBus"`
+ // Boolean
+ //
// 是否為夜間公車
// Required: true
IsNightBus *bool `json:"IsNightBus"`
+ // Boolean
+ //
// 是否為高鐵接駁車
// Required: true
IsTHSRShuttleBus *bool `json:"IsTHSRShuttleBus"`
+ // Boolean
+ //
// 是否為台鐵接駁車
// Required: true
IsTRAShuttleBus *bool `json:"IsTRAShuttleBus"`
+ // Boolean
+ //
// 是否為台灣好行公車
// Required: true
IsTaiwanTripBus *bool `json:"IsTaiwanTripBus"`
+ // Boolean
+ //
// 是否為觀光巴士
// Required: true
IsTourBus *bool `json:"IsTourBus"`
+ // Boolean
+ //
// 是否為遊覽車
// Required: true
IsTouristBus *bool `json:"IsTouristBus"`
+ // Boolean
+ //
// 是否為幹線公車
// Required: true
IsTrunkBus *bool `json:"IsTrunkBus"`
}
-// Validate validates this service d t o version3 bus service type
-func (m *ServiceDTOVersion3BusServiceType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 service type
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateIsActivityShuttleBus(formats); err != nil {
@@ -132,7 +158,7 @@ func (m *ServiceDTOVersion3BusServiceType) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsActivityShuttleBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsActivityShuttleBus(formats strfmt.Registry) error {
if err := validate.Required("IsActivityShuttleBus", "body", m.IsActivityShuttleBus); err != nil {
return err
@@ -141,7 +167,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsActivityShuttleBus(formats
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsAirportShuttleBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsAirportShuttleBus(formats strfmt.Registry) error {
if err := validate.Required("IsAirportShuttleBus", "body", m.IsAirportShuttleBus); err != nil {
return err
@@ -150,7 +176,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsAirportShuttleBus(formats s
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsBRTBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsBRTBus(formats strfmt.Registry) error {
if err := validate.Required("IsBRTBus", "body", m.IsBRTBus); err != nil {
return err
@@ -159,7 +185,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsBRTBus(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsFreeBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsFreeBus(formats strfmt.Registry) error {
if err := validate.Required("IsFreeBus", "body", m.IsFreeBus); err != nil {
return err
@@ -168,7 +194,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsFreeBus(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsMedicalBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsMedicalBus(formats strfmt.Registry) error {
if err := validate.Required("IsMedicalBus", "body", m.IsMedicalBus); err != nil {
return err
@@ -177,7 +203,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsMedicalBus(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsMetroShuttleBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsMetroShuttleBus(formats strfmt.Registry) error {
if err := validate.Required("IsMetroShuttleBus", "body", m.IsMetroShuttleBus); err != nil {
return err
@@ -186,7 +212,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsMetroShuttleBus(formats str
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsNightBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsNightBus(formats strfmt.Registry) error {
if err := validate.Required("IsNightBus", "body", m.IsNightBus); err != nil {
return err
@@ -195,7 +221,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsNightBus(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTHSRShuttleBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTHSRShuttleBus(formats strfmt.Registry) error {
if err := validate.Required("IsTHSRShuttleBus", "body", m.IsTHSRShuttleBus); err != nil {
return err
@@ -204,7 +230,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTHSRShuttleBus(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTRAShuttleBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTRAShuttleBus(formats strfmt.Registry) error {
if err := validate.Required("IsTRAShuttleBus", "body", m.IsTRAShuttleBus); err != nil {
return err
@@ -213,7 +239,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTRAShuttleBus(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTaiwanTripBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTaiwanTripBus(formats strfmt.Registry) error {
if err := validate.Required("IsTaiwanTripBus", "body", m.IsTaiwanTripBus); err != nil {
return err
@@ -222,7 +248,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTaiwanTripBus(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTourBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTourBus(formats strfmt.Registry) error {
if err := validate.Required("IsTourBus", "body", m.IsTourBus); err != nil {
return err
@@ -231,7 +257,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTourBus(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTouristBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTouristBus(formats strfmt.Registry) error {
if err := validate.Required("IsTouristBus", "body", m.IsTouristBus); err != nil {
return err
@@ -240,7 +266,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTouristBus(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusServiceType) validateIsTrunkBus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) validateIsTrunkBus(formats strfmt.Registry) error {
if err := validate.Required("IsTrunkBus", "body", m.IsTrunkBus); err != nil {
return err
@@ -250,7 +276,7 @@ func (m *ServiceDTOVersion3BusServiceType) validateIsTrunkBus(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusServiceType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -258,8 +284,8 @@ func (m *ServiceDTOVersion3BusServiceType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusServiceType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusServiceType
+func (m *PTXServiceDTOBusSpecificationV3ServiceType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3ServiceType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_shape.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go
similarity index 62%
rename from bus/v3/models/service_d_t_o_version3_bus_shape.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go
index 94688fdf..78b15c22 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_shape.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_shape.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusShape Shape
+// PTXServiceDTOBusSpecificationV3Shape Shape
//
-// swagger:model Service.DTO.Version3.Bus.Shape
-type ServiceDTOVersion3BusShape struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Shape
+type PTXServiceDTOBusSpecificationV3Shape struct {
// integer
//
@@ -23,10 +23,14 @@ type ServiceDTOVersion3BusShape struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 公車線型資料(WKT)
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -35,12 +39,18 @@ type ServiceDTOVersion3BusShape struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -49,15 +59,19 @@ type ServiceDTOVersion3BusShape struct {
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
}
-// Validate validates this service d t o version3 bus shape
-func (m *ServiceDTOVersion3BusShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 shape
+func (m *PTXServiceDTOBusSpecificationV3Shape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -98,7 +112,7 @@ func (m *ServiceDTOVersion3BusShape) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -107,7 +121,7 @@ func (m *ServiceDTOVersion3BusShape) validateDirection(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateGeometry(formats strfmt.Registry) error {
if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
@@ -116,7 +130,7 @@ func (m *ServiceDTOVersion3BusShape) validateGeometry(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -125,25 +139,12 @@ func (m *ServiceDTOVersion3BusShape) validateRouteID(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -152,7 +153,7 @@ func (m *ServiceDTOVersion3BusShape) validateRouteUID(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -161,25 +162,12 @@ func (m *ServiceDTOVersion3BusShape) validateSubRouteID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusShape) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Shape) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -189,7 +177,7 @@ func (m *ServiceDTOVersion3BusShape) validateSubRouteUID(formats strfmt.Registry
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Shape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -197,8 +185,8 @@ func (m *ServiceDTOVersion3BusShape) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusShape
+func (m *PTXServiceDTOBusSpecificationV3Shape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Shape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_station.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go
similarity index 57%
rename from bus/v3/models/service_d_t_o_version3_bus_station.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go
index 0630ebbc..9862af45 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_station.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_station.go
@@ -12,23 +12,33 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStation Station
+// PTXServiceDTOBusSpecificationV3Station Station
//
-// swagger:model Service.DTO.Version3.Bus.Station
-type ServiceDTOVersion3BusStation struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Station
+type PTXServiceDTOBusSpecificationV3Station struct {
+ // String
+ //
// 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行
Bearing string `json:"Bearing,omitempty"`
+ // String
+ //
// 站牌所在道路上之路名。
RoadName string `json:"RoadName,omitempty"`
+ // String
+ //
// 站位地址
StationAddress string `json:"StationAddress,omitempty"`
+ // String
+ //
// 站牌詳細說明描述
StationDescription string `json:"StationDescription,omitempty"`
+ // String
+ //
// 站位代碼
// Required: true
StationID *string `json:"StationID"`
@@ -37,21 +47,27 @@ type ServiceDTOVersion3BusStation struct {
//
// 站位名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
// PointType
//
// 站位位置
// Required: true
- StationPosition *ServiceDTOVersion3BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StationUID *string `json:"StationUID"`
}
-// Validate validates this service d t o version3 bus station
-func (m *ServiceDTOVersion3BusStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 station
+func (m *PTXServiceDTOBusSpecificationV3Station) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationID(formats); err != nil {
@@ -76,7 +92,7 @@ func (m *ServiceDTOVersion3BusStation) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Station) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -85,43 +101,17 @@ func (m *ServiceDTOVersion3BusStation) validateStationID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Station) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Station) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Station) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -131,7 +121,7 @@ func (m *ServiceDTOVersion3BusStation) validateStationUID(formats strfmt.Registr
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Station) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -139,8 +129,8 @@ func (m *ServiceDTOVersion3BusStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStation
+func (m *PTXServiceDTOBusSpecificationV3Station) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Station
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go
similarity index 63%
rename from bus/v3/models/service_d_t_o_version3_bus_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go
index 6dee5162..90375dfa 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop.go
@@ -12,35 +12,53 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStop Stop
+// PTXServiceDTOBusSpecificationV3Stop Stop
//
-// swagger:model Service.DTO.Version3.Bus.Stop
-type ServiceDTOVersion3BusStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Stop
+type PTXServiceDTOBusSpecificationV3Stop struct {
+ // String
+ //
// 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行
Bearing string `json:"Bearing,omitempty"`
+ // String
+ //
// 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
CityCode string `json:"CityCode,omitempty"`
+ // String
+ //
// 路名
RoadName string `json:"RoadName,omitempty"`
+ // String
+ //
// 站位代碼
StationID string `json:"StationID,omitempty"`
+ // String
+ //
// 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
StationUID string `json:"StationUID,omitempty"`
+ // String
+ //
// 站牌地址
StopAddress string `json:"StopAddress,omitempty"`
+ // String
+ //
// 站牌簡碼
StopCode string `json:"StopCode,omitempty"`
+ // String
+ //
// 站牌詳細說明描述
StopDescription string `json:"StopDescription,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -49,24 +67,32 @@ type ServiceDTOVersion3BusStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
// PointType
//
// 站牌位置
// Required: true
- StopPosition *ServiceDTOVersion3BasePointType `json:"StopPosition"`
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"StopPosition"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
+ // String
+ //
// 站牌資訊說明網址
StopURL string `json:"StopURL,omitempty"`
}
-// Validate validates this service d t o version3 bus stop
-func (m *ServiceDTOVersion3BusStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 stop
+func (m *PTXServiceDTOBusSpecificationV3Stop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopID(formats); err != nil {
@@ -91,7 +117,7 @@ func (m *ServiceDTOVersion3BusStop) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Stop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -100,43 +126,17 @@ func (m *ServiceDTOVersion3BusStop) validateStopID(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion3BusStop) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Stop) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStop) validateStopPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
- return err
- }
-
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3Stop) validateStopPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStop) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Stop) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -146,7 +146,7 @@ func (m *ServiceDTOVersion3BusStop) validateStopUID(formats strfmt.Registry) err
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Stop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -154,8 +154,8 @@ func (m *ServiceDTOVersion3BusStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStop
+func (m *PTXServiceDTOBusSpecificationV3Stop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Stop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
similarity index 64%
rename from bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
index 9ae983c8..b8fb1184 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
@@ -14,10 +14,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStopOfRoute StopOfRoute
+// PTXServiceDTOBusSpecificationV3StopOfRoute StopOfRoute
//
-// swagger:model Service.DTO.Version3.Bus.StopOfRoute
-type ServiceDTOVersion3BusStopOfRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.StopOfRoute
+type PTXServiceDTOBusSpecificationV3StopOfRoute struct {
// integer
//
@@ -25,9 +25,13 @@ type ServiceDTOVersion3BusStopOfRoute struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 營運業者
- Operators []*ServiceDTOVersion3BusStopOfRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV3StopOfRouteOperator `json:"Operators"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -36,30 +40,42 @@ type ServiceDTOVersion3BusStopOfRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 所有經過站牌
// Required: true
- Stops []*ServiceDTOVersion3BusStopOfRouteStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV3StopOfRouteStop `json:"Stops"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 附屬路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
}
-// Validate validates this service d t o version3 bus stop of route
-func (m *ServiceDTOVersion3BusStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 stop of route
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -96,7 +112,7 @@ func (m *ServiceDTOVersion3BusStopOfRoute) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -105,7 +121,7 @@ func (m *ServiceDTOVersion3BusStopOfRoute) validateDirection(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateOperators(formats strfmt.Registry) error {
if swag.IsZero(m.Operators) { // not required
return nil
@@ -130,7 +146,7 @@ func (m *ServiceDTOVersion3BusStopOfRoute) validateOperators(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -139,25 +155,12 @@ func (m *ServiceDTOVersion3BusStopOfRoute) validateRouteID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -166,7 +169,7 @@ func (m *ServiceDTOVersion3BusStopOfRoute) validateRouteUID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -191,26 +194,17 @@ func (m *ServiceDTOVersion3BusStopOfRoute) validateStops(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -218,8 +212,8 @@ func (m *ServiceDTOVersion3BusStopOfRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV3StopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3StopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go
similarity index 56%
rename from bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go
index 17012dc0..64d70bc6 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_operator.go
@@ -12,15 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSubRouteOperator Operator
+// PTXServiceDTOBusSpecificationV3StopOfRouteOperator Operator
//
-// swagger:model Service.DTO.Version3.Bus.SubRoute.Operator
-type ServiceDTOVersion3BusSubRouteOperator struct {
+// 營運業者資訊
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator
+type PTXServiceDTOBusSpecificationV3StopOfRouteOperator struct {
+ // String
+ //
// 平台代碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -29,15 +35,19 @@ type ServiceDTOVersion3BusSubRouteOperator struct {
//
// 營運業者代碼
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
}
-// Validate validates this service d t o version3 bus sub route operator
-func (m *ServiceDTOVersion3BusSubRouteOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 stop of route operator
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -62,7 +72,7 @@ func (m *ServiceDTOVersion3BusSubRouteOperator) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -71,7 +81,7 @@ func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorCode(formats str
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -80,25 +90,12 @@ func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorID(formats strfm
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -108,7 +105,7 @@ func (m *ServiceDTOVersion3BusSubRouteOperator) validateOperatorNo(formats strfm
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRouteOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -116,8 +113,8 @@ func (m *ServiceDTOVersion3BusSubRouteOperator) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRouteOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSubRouteOperator
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3StopOfRouteOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go
similarity index 52%
rename from bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go
index ecec36be..31c22203 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_of_route_stop.go
@@ -12,10 +12,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStopOfRouteStop Stop
+// PTXServiceDTOBusSpecificationV3StopOfRouteStop Stop
//
-// swagger:model Service.DTO.Version3.Bus.StopOfRoute.Stop
-type ServiceDTOVersion3BusStopOfRouteStop struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop
+type PTXServiceDTOBusSpecificationV3StopOfRouteStop struct {
// integer
//
@@ -23,12 +23,18 @@ type ServiceDTOVersion3BusStopOfRouteStop struct {
// Required: true
BoardingType *int32 `json:"BoardingType"`
+ // String
+ //
// 累積行駛距離
CumulativeDistance string `json:"CumulativeDistance,omitempty"`
+ // Boolean
+ //
// 是否為分段點
IsSectionPoint bool `json:"IsSectionPoint,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -37,21 +43,33 @@ type ServiceDTOVersion3BusStopOfRouteStop struct {
//
// 站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
// PointType
//
// 站牌位置
// Required: true
- StopPosition *ServiceDTOVersion3BasePointType `json:"StopPosition"`
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"StopPosition"`
+ // Int32
+ //
// 路線經過站牌之順序
// Required: true
StopSequence *int32 `json:"StopSequence"`
+
+ // String
+ //
+ // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
+ // Required: true
+ StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version3 bus stop of route stop
-func (m *ServiceDTOVersion3BusStopOfRouteStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 stop of route stop
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBoardingType(formats); err != nil {
@@ -74,13 +92,17 @@ func (m *ServiceDTOVersion3BusStopOfRouteStop) Validate(formats strfmt.Registry)
res = append(res, err)
}
+ if err := m.validateStopUID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteStop) validateBoardingType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateBoardingType(formats strfmt.Registry) error {
if err := validate.Required("BoardingType", "body", m.BoardingType); err != nil {
return err
@@ -89,7 +111,7 @@ func (m *ServiceDTOVersion3BusStopOfRouteStop) validateBoardingType(formats strf
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -98,45 +120,28 @@ func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateStopName(formats strfmt.Registry) error {
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
+ return nil
+}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateStopPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopPosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateStopSequence(formats strfmt.Registry) error {
- if err := validate.Required("StopPosition", "body", m.StopPosition); err != nil {
+ if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
}
- if m.StopPosition != nil {
- if err := m.StopPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopPosition")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) validateStopUID(formats strfmt.Registry) error {
- if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
+ if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
}
@@ -144,7 +149,7 @@ func (m *ServiceDTOVersion3BusStopOfRouteStop) validateStopSequence(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRouteStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -152,8 +157,8 @@ func (m *ServiceDTOVersion3BusStopOfRouteStop) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRouteStop) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStopOfRouteStop
+func (m *PTXServiceDTOBusSpecificationV3StopOfRouteStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3StopOfRouteStop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go
similarity index 64%
rename from bus/v3/models/service_d_t_o_version3_bus_stop_time.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go
index b40e5b34..700f0d34 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_time.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_stop_time.go
@@ -12,19 +12,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStopTime StopTime
+// PTXServiceDTOBusSpecificationV3StopTime StopTime
//
-// swagger:model Service.DTO.Version3.Bus.StopTime
-type ServiceDTOVersion3BusStopTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.StopTime
+type PTXServiceDTOBusSpecificationV3StopTime struct {
+ // String
+ //
// 到站時間,格式為:HH:mm
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間,格式為:HH:mm
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
// Required: true
StopID *string `json:"StopID"`
@@ -32,19 +38,25 @@ type ServiceDTOVersion3BusStopTime struct {
// NameType
//
// 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName,omitempty"`
+ // Int32
+ //
// 路線經過站牌之順序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version3 bus stop time
-func (m *ServiceDTOVersion3BusStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 stop time
+func (m *PTXServiceDTOBusSpecificationV3StopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -77,7 +89,7 @@ func (m *ServiceDTOVersion3BusStopTime) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -86,7 +98,7 @@ func (m *ServiceDTOVersion3BusStopTime) validateArrivalTime(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -95,7 +107,7 @@ func (m *ServiceDTOVersion3BusStopTime) validateDepartureTime(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -104,25 +116,16 @@ func (m *ServiceDTOVersion3BusStopTime) validateStopID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -131,7 +134,7 @@ func (m *ServiceDTOVersion3BusStopTime) validateStopSequence(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusStopTime) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -141,7 +144,7 @@ func (m *ServiceDTOVersion3BusStopTime) validateStopUID(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3StopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +152,8 @@ func (m *ServiceDTOVersion3BusStopTime) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStopTime
+func (m *PTXServiceDTOBusSpecificationV3StopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3StopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_bus_sub_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
index 9ba05eba..ff21d730 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
@@ -14,20 +14,24 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusSubRoute SubRoute
+// PTXServiceDTOBusSpecificationV3SubRoute SubRoute
//
-// swagger:model Service.DTO.Version3.Bus.SubRoute
-type ServiceDTOVersion3BusSubRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.SubRoute
+type PTXServiceDTOBusSpecificationV3SubRoute struct {
// NameType
//
// 路線起站名稱
- DepartureStopName *ServiceDTOVersion3BaseNameType `json:"DepartureStopName,omitempty"`
+ DepartureStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DepartureStopName,omitempty"`
// NameType
//
// 路線迄站名稱
- DestinationStopName *ServiceDTOVersion3BaseNameType `json:"DestinationStopName,omitempty"`
+ DestinationStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStopName,omitempty"`
// integer
//
@@ -38,15 +42,23 @@ type ServiceDTOVersion3BusSubRoute struct {
// Stop
//
// 終點站牌
- EndStop *ServiceDTOVersion3BusSubRouteStop `json:"EndStop,omitempty"`
+ EndStop struct {
+ PTXServiceDTOBusSpecificationV3SubRouteStop
+ } `json:"EndStop,omitempty"`
+ // String
+ //
// 車頭描述
HeadSign string `json:"HeadSign,omitempty"`
+ // Array
+ //
// 營運業者
// Required: true
- Operators []*ServiceDTOVersion3BusSubRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV3SubRouteOperator `json:"Operators"`
+ // String
+ //
// 機關定義路線代碼
// Required: true
RouteID *string `json:"RouteID"`
@@ -55,8 +67,12 @@ type ServiceDTOVersion3BusSubRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
@@ -64,8 +80,12 @@ type ServiceDTOVersion3BusSubRoute struct {
// Stop
//
// 起始站牌
- StartStop *ServiceDTOVersion3BusSubRouteStop `json:"StartStop,omitempty"`
+ StartStop struct {
+ PTXServiceDTOBusSpecificationV3SubRouteStop
+ } `json:"StartStop,omitempty"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -73,21 +93,27 @@ type ServiceDTOVersion3BusSubRoute struct {
// NameType
//
// 附屬路線長名稱
- SubRouteLongName *ServiceDTOVersion3BaseNameType `json:"SubRouteLongName,omitempty"`
+ SubRouteLongName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteLongName,omitempty"`
// NameType
//
// 附屬路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
}
-// Validate validates this service d t o version3 bus sub route
-func (m *ServiceDTOVersion3BusSubRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 sub route
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepartureStopName(formats); err != nil {
@@ -148,43 +174,25 @@ func (m *ServiceDTOVersion3BusSubRoute) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateDepartureStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateDepartureStopName(formats strfmt.Registry) error {
if swag.IsZero(m.DepartureStopName) { // not required
return nil
}
- if m.DepartureStopName != nil {
- if err := m.DepartureStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DepartureStopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateDestinationStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateDestinationStopName(formats strfmt.Registry) error {
if swag.IsZero(m.DestinationStopName) { // not required
return nil
}
- if m.DestinationStopName != nil {
- if err := m.DestinationStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -193,25 +201,16 @@ func (m *ServiceDTOVersion3BusSubRoute) validateDirection(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateEndStop(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateEndStop(formats strfmt.Registry) error {
if swag.IsZero(m.EndStop) { // not required
return nil
}
- if m.EndStop != nil {
- if err := m.EndStop.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndStop")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -236,7 +235,7 @@ func (m *ServiceDTOVersion3BusSubRoute) validateOperators(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -245,25 +244,12 @@ func (m *ServiceDTOVersion3BusSubRoute) validateRouteID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -272,25 +258,16 @@ func (m *ServiceDTOVersion3BusSubRoute) validateRouteUID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateStartStop(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateStartStop(formats strfmt.Registry) error {
if swag.IsZero(m.StartStop) { // not required
return nil
}
- if m.StartStop != nil {
- if err := m.StartStop.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartStop")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -299,43 +276,21 @@ func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteLongName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateSubRouteLongName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteLongName) { // not required
return nil
}
- if m.SubRouteLongName != nil {
- if err := m.SubRouteLongName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteLongName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -345,7 +300,7 @@ func (m *ServiceDTOVersion3BusSubRoute) validateSubRouteUID(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -353,8 +308,8 @@ func (m *ServiceDTOVersion3BusSubRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSubRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSubRoute
+func (m *PTXServiceDTOBusSpecificationV3SubRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3SubRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go
similarity index 55%
rename from bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go
index 03c8bb58..b2291ad6 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_operator.go
@@ -12,17 +12,19 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusStopOfRouteOperator Operator
+// PTXServiceDTOBusSpecificationV3SubRouteOperator Operator
//
-// 營運業者資訊
-//
-// swagger:model Service.DTO.Version3.Bus.StopOfRoute.Operator
-type ServiceDTOVersion3BusStopOfRouteOperator struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator
+type PTXServiceDTOBusSpecificationV3SubRouteOperator struct {
+ // String
+ //
// 平台代碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -31,15 +33,19 @@ type ServiceDTOVersion3BusStopOfRouteOperator struct {
//
// 營運業者代碼
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
}
-// Validate validates this service d t o version3 bus stop of route operator
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 sub route operator
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -64,7 +70,7 @@ func (m *ServiceDTOVersion3BusStopOfRouteOperator) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -73,7 +79,7 @@ func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorCode(formats
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -82,25 +88,12 @@ func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorID(formats st
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -110,7 +103,7 @@ func (m *ServiceDTOVersion3BusStopOfRouteOperator) validateOperatorNo(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +111,8 @@ func (m *ServiceDTOVersion3BusStopOfRouteOperator) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStopOfRouteOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStopOfRouteOperator
+func (m *PTXServiceDTOBusSpecificationV3SubRouteOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3SubRouteOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go
new file mode 100644
index 00000000..b80492b5
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_sub_route_stop.go
@@ -0,0 +1,83 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV3SubRouteStop Stop
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop
+type PTXServiceDTOBusSpecificationV3SubRouteStop struct {
+
+ // String
+ //
+ // 站牌代碼
+ // Required: true
+ StopID *string `json:"StopID"`
+
+ // NameType
+ //
+ // 站牌名稱
+ // Required: true
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 sub route stop
+func (m *PTXServiceDTOBusSpecificationV3SubRouteStop) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStopID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3SubRouteStop) validateStopID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopID", "body", m.StopID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3SubRouteStop) validateStopName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3SubRouteStop) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3SubRouteStop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3SubRouteStop
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go
similarity index 64%
rename from bus/v3/models/service_d_t_o_version3_bus_time_table.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go
index 78e7c8cd..3268c067 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_time_table.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_time_table.go
@@ -14,21 +14,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusTimeTable TimeTable
+// PTXServiceDTOBusSpecificationV3TimeTable TimeTable
//
-// swagger:model Service.DTO.Version3.Bus.TimeTable
-type ServiceDTOVersion3BusTimeTable struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.TimeTable
+type PTXServiceDTOBusSpecificationV3TimeTable struct {
+ // Array
+ //
// 公車停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion3BusStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTOBusSpecificationV3StopTime `json:"StopTimes"`
+ // String
+ //
// 班次代碼,為無意義之編碼
TripID string `json:"TripID,omitempty"`
}
-// Validate validates this service d t o version3 bus time table
-func (m *ServiceDTOVersion3BusTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 time table
+func (m *PTXServiceDTOBusSpecificationV3TimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopTimes(formats); err != nil {
@@ -41,7 +45,7 @@ func (m *ServiceDTOVersion3BusTimeTable) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BusTimeTable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3TimeTable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -67,7 +71,7 @@ func (m *ServiceDTOVersion3BusTimeTable) validateStopTimes(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3TimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -75,8 +79,8 @@ func (m *ServiceDTOVersion3BusTimeTable) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusTimeTable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusTimeTable
+func (m *PTXServiceDTOBusSpecificationV3TimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3TimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
similarity index 70%
rename from bus/v3/models/service_d_t_o_version3_bus_vehicle.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
index 9bedfa4f..4edfc365 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
@@ -12,46 +12,66 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusVehicle Vehicle
+// PTXServiceDTOBusSpecificationV3Vehicle Vehicle
//
-// swagger:model Service.DTO.Version3.Bus.Vehicle
-type ServiceDTOVersion3BusVehicle struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Vehicle
+type PTXServiceDTOBusSpecificationV3Vehicle struct {
+ // Int32
+ //
// 讀卡機配置(1:前門刷卡;2:前後門刷卡)
// Required: true
CardReaderLayout *int32 `json:"CardReaderLayout"`
+ // Boolean
+ //
// 是否有升降或斜坡板設備
// Required: true
HasLiftOrRamp *bool `json:"HasLiftOrRamp"`
+ // Boolean
+ //
// 是否有提供Wifi服務
// Required: true
HasWifi *bool `json:"HasWifi"`
+ // String
+ //
// 車機代號
InBoxID string `json:"InBoxID,omitempty"`
+ // Boolean
+ //
// 是否為電動公車
// Required: true
IsElectric *bool `json:"IsElectric"`
+ // Boolean
+ //
// 是否為油電混合公車
// Required: true
IsHybrid *bool `json:"IsHybrid"`
+ // Boolean
+ //
// 是否為低地板
// Required: true
IsLowFloor *bool `json:"IsLowFloor"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
@@ -74,8 +94,8 @@ type ServiceDTOVersion3BusVehicle struct {
VehicleType *int32 `json:"VehicleType"`
}
-// Validate validates this service d t o version3 bus vehicle
-func (m *ServiceDTOVersion3BusVehicle) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 vehicle
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCardReaderLayout(formats); err != nil {
@@ -128,7 +148,7 @@ func (m *ServiceDTOVersion3BusVehicle) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateCardReaderLayout(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateCardReaderLayout(formats strfmt.Registry) error {
if err := validate.Required("CardReaderLayout", "body", m.CardReaderLayout); err != nil {
return err
@@ -137,7 +157,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateCardReaderLayout(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateHasLiftOrRamp(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateHasLiftOrRamp(formats strfmt.Registry) error {
if err := validate.Required("HasLiftOrRamp", "body", m.HasLiftOrRamp); err != nil {
return err
@@ -146,7 +166,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateHasLiftOrRamp(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateHasWifi(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateHasWifi(formats strfmt.Registry) error {
if err := validate.Required("HasWifi", "body", m.HasWifi); err != nil {
return err
@@ -155,7 +175,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateHasWifi(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateIsElectric(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateIsElectric(formats strfmt.Registry) error {
if err := validate.Required("IsElectric", "body", m.IsElectric); err != nil {
return err
@@ -164,7 +184,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateIsElectric(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateIsHybrid(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateIsHybrid(formats strfmt.Registry) error {
if err := validate.Required("IsHybrid", "body", m.IsHybrid); err != nil {
return err
@@ -173,7 +193,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateIsHybrid(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateIsLowFloor(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateIsLowFloor(formats strfmt.Registry) error {
if err := validate.Required("IsLowFloor", "body", m.IsLowFloor); err != nil {
return err
@@ -182,7 +202,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateIsLowFloor(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -191,7 +211,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateOperatorCode(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -200,7 +220,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateOperatorID(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -209,7 +229,7 @@ func (m *ServiceDTOVersion3BusVehicle) validatePlateNumb(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateVehicleClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateVehicleClass(formats strfmt.Registry) error {
if err := validate.Required("VehicleClass", "body", m.VehicleClass); err != nil {
return err
@@ -218,7 +238,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateVehicleClass(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusVehicle) validateVehicleType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) validateVehicleType(formats strfmt.Registry) error {
if err := validate.Required("VehicleType", "body", m.VehicleType); err != nil {
return err
@@ -228,7 +248,7 @@ func (m *ServiceDTOVersion3BusVehicle) validateVehicleType(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicle) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -236,8 +256,8 @@ func (m *ServiceDTOVersion3BusVehicle) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicle) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusVehicle
+func (m *PTXServiceDTOBusSpecificationV3Vehicle) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3Vehicle
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
similarity index 58%
rename from bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
index 0f47df02..f5709cb3 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusVehicleDepot VehicleDepot
+// PTXServiceDTOBusSpecificationV3VehicleDepot VehicleDepot
//
-// swagger:model Service.DTO.Version3.Bus.VehicleDepot
-type ServiceDTOVersion3BusVehicleDepot struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.VehicleDepot
+type PTXServiceDTOBusSpecificationV3VehicleDepot struct {
+ // String
+ //
// 營業所代碼
// Required: true
DepotID *string `json:"DepotID"`
@@ -27,15 +29,19 @@ type ServiceDTOVersion3BusVehicleDepot struct {
//
// 營業所名稱
// Required: true
- DepotName *ServiceDTOVersion3BaseNameType `json:"DepotName"`
+ DepotName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DepotName"`
+ // Array
+ //
// 車輛
// Required: true
- Vehicles []*ServiceDTOVersion3BusVehicleDepotVehicle `json:"Vehicles"`
+ Vehicles []*PTXServiceDTOBusSpecificationV3VehicleDepotVehicle `json:"Vehicles"`
}
-// Validate validates this service d t o version3 bus vehicle depot
-func (m *ServiceDTOVersion3BusVehicleDepot) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 vehicle depot
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepotID(formats); err != nil {
@@ -56,7 +62,7 @@ func (m *ServiceDTOVersion3BusVehicleDepot) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusVehicleDepot) validateDepotID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) validateDepotID(formats strfmt.Registry) error {
if err := validate.Required("DepotID", "body", m.DepotID); err != nil {
return err
@@ -65,25 +71,12 @@ func (m *ServiceDTOVersion3BusVehicleDepot) validateDepotID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusVehicleDepot) validateDepotName(formats strfmt.Registry) error {
-
- if err := validate.Required("DepotName", "body", m.DepotName); err != nil {
- return err
- }
-
- if m.DepotName != nil {
- if err := m.DepotName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DepotName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) validateDepotName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusVehicleDepot) validateVehicles(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) validateVehicles(formats strfmt.Registry) error {
if err := validate.Required("Vehicles", "body", m.Vehicles); err != nil {
return err
@@ -109,7 +102,7 @@ func (m *ServiceDTOVersion3BusVehicleDepot) validateVehicles(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleDepot) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -117,8 +110,8 @@ func (m *ServiceDTOVersion3BusVehicleDepot) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleDepot) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusVehicleDepot
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepot) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3VehicleDepot
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go
new file mode 100644
index 00000000..9407ca3e
--- /dev/null
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot_vehicle.go
@@ -0,0 +1,45 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTOBusSpecificationV3VehicleDepotVehicle Vehicle
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle
+type PTXServiceDTOBusSpecificationV3VehicleDepotVehicle struct {
+
+ // String
+ //
+ // 車牌號碼
+ PlateNumb string `json:"PlateNumb,omitempty"`
+}
+
+// Validate validates this p t x service d t o bus specification v3 vehicle depot vehicle
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepotVehicle) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepotVehicle) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV3VehicleDepotVehicle) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3VehicleDepotVehicle
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
similarity index 59%
rename from bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
index c0196685..c1185cda 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
@@ -12,15 +12,19 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BusVehicleRoute VehicleRoute
+// PTXServiceDTOBusSpecificationV3VehicleRoute VehicleRoute
//
-// swagger:model Service.DTO.Version3.Bus.VehicleRoute
-type ServiceDTOVersion3BusVehicleRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.VehicleRoute
+type PTXServiceDTOBusSpecificationV3VehicleRoute struct {
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
@@ -29,26 +33,36 @@ type ServiceDTOVersion3BusVehicleRoute struct {
//
// 路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之附屬路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 路線名稱
- SubRouteName *ServiceDTOVersion3BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
}
-// Validate validates this service d t o version3 bus vehicle route
-func (m *ServiceDTOVersion3BusVehicleRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 vehicle route
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validatePlateNumb(formats); err != nil {
@@ -77,7 +91,7 @@ func (m *ServiceDTOVersion3BusVehicleRoute) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3BusVehicleRoute) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -86,7 +100,7 @@ func (m *ServiceDTOVersion3BusVehicleRoute) validatePlateNumb(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3BusVehicleRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -95,25 +109,12 @@ func (m *ServiceDTOVersion3BusVehicleRoute) validateRouteID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3BusVehicleRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BusVehicleRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -122,26 +123,17 @@ func (m *ServiceDTOVersion3BusVehicleRoute) validateRouteUID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3BusVehicleRoute) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +141,8 @@ func (m *ServiceDTOVersion3BusVehicleRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusVehicleRoute
+func (m *PTXServiceDTOBusSpecificationV3VehicleRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3VehicleRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_schedule.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go
similarity index 51%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_schedule.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go
index cd9fcfc6..029f9ce1 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_schedule.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_g_wrapper_p_t_x_service_d_t_o_bus_specification_v3_schedule.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusSchedule BusScheduleList
+// PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule BusScheduleList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Schedule]
-type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
+// 定期型 wrapper (有生效的起迄時間資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusGWrapper[PTX.Service.DTO.Bus.Specification.V3.Schedule]
+type PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,30 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // DateTime
+ //
+ // 有效起始日期
// Required: true
- Schedules []*ServiceDTOVersion3BusSchedule `json:"Schedules"`
+ EffectiveDate *string `json:"EffectiveDate"`
+
+ // DateTime
+ //
+ // 有效終止日期
+ ExpireDate string `json:"ExpireDate,omitempty"`
+ // String
+ //
+ // 公車定期營運班表名稱
+ ScheduleName string `json:"ScheduleName,omitempty"`
+
+ // Array
+ //
+ // 資料列表
+ // Required: true
+ Schedules []*PTXServiceDTOBusSpecificationV3Schedule `json:"Schedules"`
+
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +64,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,18 +76,24 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // String
+ //
+ // 時刻表適用情形說明
+ ValidityDesciption string `json:"ValidityDesciption,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus schedule
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus g wrapper p t x service d t o bus specification v3 schedule
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateEffectiveDate(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateSchedules(formats); err != nil {
res = append(res, err)
}
@@ -88,7 +120,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) Validate(formats strfmt.
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +129,16 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateAuthorityCode(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSchedules(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateEffectiveDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("EffectiveDate", "body", m.EffectiveDate); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateSchedules(formats strfmt.Registry) error {
if err := validate.Required("Schedules", "body", m.Schedules); err != nil {
return err
@@ -122,7 +163,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSchedules(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +172,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateInterva
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +181,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateTime(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +190,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +200,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateTime(forma
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +208,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusSchedule
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusGWrapperPTXServiceDTOBusSpecificationV3Schedule
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go
similarity index 55%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_depot.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go
index 9171ec6f..2728ad6f 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_depot.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_depot.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusDepot BusDepotList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot BusDepotList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Depot]
-type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Depot]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Depots []*ServiceDTOVersion3BusDepot `json:"Depots"`
+ Depots []*PTXServiceDTOBusSpecificationV3Depot `json:"Depots"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus depot
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 depot
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) Validate(formats strfmt.Reg
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateAuthorityCode(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateDepots(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateDepots(formats strfmt.Registry) error {
if err := validate.Required("Depots", "body", m.Depots); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateDepots(formats strf
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateTime(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateInterval(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateTime(formats
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusDepot
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Depot
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_display_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
similarity index 53%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_display_stop_of_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
index 22c94190..3c2cd4c7 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_display_stop_of_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_display_stop_of_route.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute BusDisplayStopOfRouteList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute BusDisplayStopOfRouteList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DisplayStopOfRoute]
-type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- DisplayStopOfRoutes []*ServiceDTOVersion3BusDisplayStopOfRoute `json:"DisplayStopOfRoutes"`
+ DisplayStopOfRoutes []*PTXServiceDTOBusSpecificationV3DisplayStopOfRoute `json:"DisplayStopOfRoutes"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus display stop of route
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 display stop of route
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) Validate(forma
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateAuthor
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateDisplayStopOfRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateDisplayStopOfRoutes(formats strfmt.Registry) error {
if err := validate.Required("DisplayStopOfRoutes", "body", m.DisplayStopOfRoutes); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateDispla
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpd
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpd
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdate
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdate
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3DisplayStopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_first_last_trip_info.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
similarity index 53%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_first_last_trip_info.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
index f2f69e45..4ee51135 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_first_last_trip_info.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_first_last_trip_info.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo BusFirstLastTripInfoList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo BusFirstLastTripInfoList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.FirstLastTripInfo]
-type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- FirstLastTripInfos []*ServiceDTOVersion3BusFirstLastTripInfo `json:"FirstLastTripInfos"`
+ FirstLastTripInfos []*PTXServiceDTOBusSpecificationV3FirstLastTripInfo `json:"FirstLastTripInfos"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus first last trip info
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 first last trip info
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) Validate(format
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateAuthori
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateFirstLastTripInfos(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateFirstLastTripInfos(formats strfmt.Registry) error {
if err := validate.Required("FirstLastTripInfos", "body", m.FirstLastTripInfos); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateFirstLa
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpda
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpda
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateI
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateT
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) MarshalBinary()
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3FirstLastTripInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_network.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go
index 5054bda7..8ec0014e 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_network.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_network.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusNetwork BusNetworkList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network BusNetworkList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Network]
-type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Network]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Networks []*ServiceDTOVersion3BusNetwork `json:"Networks"`
+ Networks []*PTXServiceDTOBusSpecificationV3Network `json:"Networks"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus network
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 network
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) Validate(formats strfmt.R
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateAuthorityCode(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateNetworks(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateNetworks(formats strfmt.Registry) error {
if err := validate.Required("Networks", "body", m.Networks); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateNetworks(formats
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateInterval
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateTime(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateInterval(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateTime(format
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusNetwork
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Network
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_operator.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_operator.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go
index f9c00568..bb1f4b56 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_operator.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_operator.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusOperator BusOperatorList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator BusOperatorList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Operator]
-type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Operator]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Operators []*ServiceDTOVersion3BusOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV3Operator `json:"Operators"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus operator
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 operator
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) Validate(formats strfmt.
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateAuthorityCode(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateOperators(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateInterva
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateTime(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateTime(forma
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusOperator
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Operator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go
similarity index 55%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go
index e4d23b82..a8ac23f8 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusRoute BusRouteList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route BusRouteList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Route]
-type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Route]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Routes []*ServiceDTOVersion3BusRoute `json:"Routes"`
+ Routes []*PTXServiceDTOBusSpecificationV3Route `json:"Routes"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus route
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 route
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) Validate(formats strfmt.Reg
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateAuthorityCode(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateRoutes(formats strfmt.Registry) error {
if err := validate.Required("Routes", "body", m.Routes); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateRoutes(formats strf
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateTime(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateInterval(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateTime(formats
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusRoute
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Route
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_network.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_network.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go
index ef06a68f..e4e97e31 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_network.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_network.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork BusRouteNetworkList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork BusRouteNetworkList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteNetwork]
-type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteNetwork]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- RouteNetworks []*ServiceDTOVersion3BusRouteNetwork `json:"RouteNetworks"`
+ RouteNetworks []*PTXServiceDTOBusSpecificationV3RouteNetwork `json:"RouteNetworks"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus route network
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 route network
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) Validate(formats str
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateAuthorityCod
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateRouteNetworks(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateRouteNetworks(formats strfmt.Registry) error {
if err := validate.Required("RouteNetworks", "body", m.RouteNetworks); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateRouteNetwork
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateInt
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateTim
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateInterv
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateTime(f
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3RouteNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_s2_s_travel_time.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_s2_s_travel_time.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
index bf92fc37..afe5d5b4 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_s2_s_travel_time.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_s2_s_travel_time.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime BusS2STravelTimeList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime BusS2STravelTimeList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.S2STravelTime]
-type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.S2STravelTime]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- S2STravelTimes []*ServiceDTOVersion3BusS2STravelTime `json:"S2STravelTimes"`
+ S2STravelTimes []*PTXServiceDTOBusSpecificationV3S2STravelTime `json:"S2STravelTimes"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus s2 s travel time
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 s2 s travel time
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) Validate(formats st
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateAuthorityCo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateS2STravelTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateS2STravelTimes(formats strfmt.Registry) error {
if err := validate.Required("S2STravelTimes", "body", m.S2STravelTimes); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateS2STravelTi
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateIn
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateTi
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateInter
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateTime(
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) MarshalBinary() ([]
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3S2STravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_shape.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go
similarity index 55%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_shape.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go
index 7fea75dd..0df8edd5 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_shape.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_shape.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusShape BusShapeList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape BusShapeList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Shape]
-type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Shape]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Shapes []*ServiceDTOVersion3BusShape `json:"Shapes"`
+ Shapes []*PTXServiceDTOBusSpecificationV3Shape `json:"Shapes"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus shape
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 shape
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) Validate(formats strfmt.Reg
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateAuthorityCode(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateShapes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateShapes(formats strfmt.Registry) error {
if err := validate.Required("Shapes", "body", m.Shapes); err != nil {
return err
@@ -122,7 +139,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateShapes(formats strf
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +148,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateTime(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateInterval(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateTime(formats
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusShape
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Shape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_station.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_station.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go
index 9b895387..8a711eb8 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_station.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_station.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusStation BusStationList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station BusStationList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Station]
-type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Station]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +42,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Stations []*ServiceDTOVersion3BusStation `json:"Stations"`
+ Stations []*PTXServiceDTOBusSpecificationV3Station `json:"Stations"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus station
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 station
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) Validate(formats strfmt.R
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateAuthorityCode(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateInterval
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateTime(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateStations(formats
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateInterval(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateTime(format
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusStation
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Station
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go
similarity index 55%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go
index bafdf8d1..e15028a8 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusStop BusStopList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop BusStopList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Stop]
-type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Stop]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +42,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Stops []*ServiceDTOVersion3BusStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV3Stop `json:"Stops"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus stop
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 stop
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) Validate(formats strfmt.Regi
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateAuthorityCode(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateInterval(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateTime(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateStops(formats strfmt
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateInterval(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateTime(formats s
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusStop
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Stop
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop_of_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop_of_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
index 3d3f8c18..9a35d164 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop_of_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_stop_of_route.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute BusStopOfRouteList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute BusStopOfRouteList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.StopOfRoute]
-type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.StopOfRoute]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +42,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- StopOfRoutes []*ServiceDTOVersion3BusStopOfRoute `json:"StopOfRoutes"`
+ StopOfRoutes []*PTXServiceDTOBusSpecificationV3StopOfRoute `json:"StopOfRoutes"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus stop of route
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 stop of route
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) Validate(formats strf
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateAuthorityCode
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateInte
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateTime
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateStopOfRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateStopOfRoutes(formats strfmt.Registry) error {
if err := validate.Required("StopOfRoutes", "body", m.StopOfRoutes); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateStopOfRoutes(
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateInterva
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateTime(fo
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3StopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_sub_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_sub_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
index 6705e548..84915d5d 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_sub_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_sub_route.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute BusSubRouteList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute BusSubRouteList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.SubRoute]
-type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.SubRoute]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +42,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- SubRoutes []*ServiceDTOVersion3BusSubRoute `json:"SubRoutes"`
+ SubRoutes []*PTXServiceDTOBusSpecificationV3SubRoute `json:"SubRoutes"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -50,12 +60,15 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus sub route
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 sub route
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) Validate(formats strfmt.
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateAuthorityCode(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateInterva
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateTime(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("SubRoutes", "body", m.SubRoutes); err != nil {
return err
@@ -140,7 +157,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSubRoutes(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateTime(forma
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3SubRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
index 4689faaf..3bd0acb4 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusVehicle BusVehicleList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle BusVehicleList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Vehicle]
-type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Vehicle]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,6 +42,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -46,16 +54,21 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Vehicles []*ServiceDTOVersion3BusVehicle `json:"Vehicles"`
+ Vehicles []*PTXServiceDTOBusSpecificationV3Vehicle `json:"Vehicles"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus vehicle
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 vehicle
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) Validate(formats strfmt.R
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateAuthorityCode(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateInterval
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateTime(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -124,7 +141,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateInterval(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -133,7 +150,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateTime(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateVehicles(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateVehicles(formats strfmt.Registry) error {
if err := validate.Required("Vehicles", "body", m.Vehicles); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateVehicles(formats
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusVehicle
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3Vehicle
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_depot.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_depot.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
index fc16b0f2..a9c1f0dd 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_depot.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_depot.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot BusVehicleDepotList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot BusVehicleDepotList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleDepot]
-type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleDepot]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,6 +42,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -46,16 +54,21 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- VehicleDepots []*ServiceDTOVersion3BusVehicleDepot `json:"VehicleDepots"`
+ VehicleDepots []*PTXServiceDTOBusSpecificationV3VehicleDepot `json:"VehicleDepots"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus vehicle depot
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 vehicle depot
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) Validate(formats str
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateAuthorityCod
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateInt
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateTim
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -124,7 +141,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateInterv
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -133,7 +150,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateTime(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateVehicleDepots(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateVehicleDepots(formats strfmt.Registry) error {
if err := validate.Required("VehicleDepots", "body", m.VehicleDepots); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateVehicleDepot
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleDepot
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_route.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
similarity index 54%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_route.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
index bf733dc8..f60ae918 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_route.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_v_wrapper_p_t_x_service_d_t_o_bus_specification_v3_vehicle_route.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute BusVehicleRouteList
+// PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute BusVehicleRouteList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleRoute]
-type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
+// 版本 wrapper (具有版本資訊)
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleRoute]
+type PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +30,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,6 +42,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -46,16 +54,21 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- VehicleRoutes []*ServiceDTOVersion3BusVehicleRoute `json:"VehicleRoutes"`
+ VehicleRoutes []*PTXServiceDTOBusSpecificationV3VehicleRoute `json:"VehicleRoutes"`
+ // Int32
+ //
// 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus vehicle route
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus v wrapper p t x service d t o bus specification v3 vehicle route
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -82,13 +95,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) Validate(formats str
res = append(res, err)
}
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +114,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateAuthorityCod
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -106,7 +123,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateInt
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +132,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateTim
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -124,7 +141,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateInterv
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -133,7 +150,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateTime(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateVehicleRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateVehicleRoutes(formats strfmt.Registry) error {
if err := validate.Required("VehicleRoutes", "body", m.VehicleRoutes); err != nil {
return err
@@ -158,8 +175,17 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateVehicleRoute
return nil
}
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +193,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusVWrapperPTXServiceDTOBusSpecificationV3VehicleRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a1_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
index 6293eedc..b647a5f4 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a1_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a1_data.go
@@ -14,15 +14,21 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusA1Data BusA1DataList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data BusA1DataList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]
-type MOTCAPIBusDALBusServiceDTOVersion3BusA1Data struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data struct {
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- A1Datas []*ServiceDTOVersion3BusA1Data `json:"A1Datas"`
+ A1Datas []*PTXServiceDTOBusSpecificationV3A1Data `json:"A1Datas"`
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -30,6 +36,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA1Data struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA1Data struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA1Data struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus a1 data
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 a1 data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateA1Datas(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) Validate(formats strfmt.Re
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateA1Datas(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateA1Datas(formats strfmt.Registry) error {
if err := validate.Required("A1Datas", "body", m.A1Datas); err != nil {
return err
@@ -113,7 +120,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateA1Datas(formats st
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateAuthorityCode(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateInterval(
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateTime(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateInterval(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusA1Data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a2_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a2_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
index 539a973e..f34aa9d3 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a2_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_a2_data.go
@@ -14,15 +14,21 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusA2Data BusA2DataList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data BusA2DataList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]
-type MOTCAPIBusDALBusServiceDTOVersion3BusA2Data struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data struct {
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- A2Datas []*ServiceDTOVersion3BusA2Data `json:"A2Datas"`
+ A2Datas []*PTXServiceDTOBusSpecificationV3A2Data `json:"A2Datas"`
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -30,6 +36,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA2Data struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA2Data struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusA2Data struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus a2 data
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 a2 data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateA2Datas(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) Validate(formats strfmt.Re
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateA2Datas(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateA2Datas(formats strfmt.Registry) error {
if err := validate.Required("A2Datas", "body", m.A2Datas); err != nil {
return err
@@ -113,7 +120,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateA2Datas(formats st
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateAuthorityCode(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateInterval(
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateTime(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateInterval(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusA2Data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3A2Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_alert.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_alert.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go
index bcec6f44..ee49ce1c 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_alert.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_alert.go
@@ -14,15 +14,21 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusAlert BusAlertList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert BusAlertList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Alert]
-type MOTCAPIBusDALBusServiceDTOVersion3BusAlert struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.Alert]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert struct {
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Alerts []*ServiceDTOVersion3BusAlert `json:"Alerts"`
+ Alerts []*PTXServiceDTOBusSpecificationV3Alert `json:"Alerts"`
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -30,6 +36,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusAlert struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusAlert struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusAlert struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus alert
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 alert
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlerts(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) Validate(formats strfmt.Reg
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAlerts(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateAlerts(formats strfmt.Registry) error {
if err := validate.Required("Alerts", "body", m.Alerts); err != nil {
return err
@@ -113,7 +120,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAlerts(formats strf
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAuthorityCode(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateInterval(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateTime(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateInterval(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusAlert
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3Alert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_daily_time_table.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
similarity index 58%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_daily_time_table.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
index 08f0702c..e8fa9ee1 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_daily_time_table.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_daily_time_table.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable BusDailyTimeTableList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable BusDailyTimeTableList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DailyTimeTable]
-type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- DailyTimeTables []*ServiceDTOVersion3BusDailyTimeTable `json:"DailyTimeTables"`
+ DailyTimeTables []*PTXServiceDTOBusSpecificationV3DailyTimeTable `json:"DailyTimeTables"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus daily time table
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 daily time table
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) Validate(formats s
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +104,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateAuthorityC
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateDailyTimeTables(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateDailyTimeTables(formats strfmt.Registry) error {
if err := validate.Required("DailyTimeTables", "body", m.DailyTimeTables); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateDailyTimeT
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateI
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateT
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateInte
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateTime
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3DailyTimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_n1_data.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_n1_data.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
index 0f804df7..c68eae7a 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_n1_data.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_n1_data.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusN1Data BusN1DataList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data BusN1DataList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]
-type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- N1Datas []*ServiceDTOVersion3BusN1Data `json:"N1Datas"`
+ N1Datas []*PTXServiceDTOBusSpecificationV3N1Data `json:"N1Datas"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus n1 data
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 n1 data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) Validate(formats strfmt.Re
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +104,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateAuthorityCode(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateN1Datas(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateN1Datas(formats strfmt.Registry) error {
if err := validate.Required("N1Datas", "body", m.N1Datas); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateN1Datas(formats st
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateInterval(
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateTime(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateInterval(for
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusN1Data
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3N1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_news.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_news.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go
index 787d25a5..55aeb3a7 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_news.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_news.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusNews BusNewsList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News BusNewsList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.News]
-type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.News]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- Newses []*ServiceDTOVersion3BusNews `json:"Newses"`
+ Newses []*PTXServiceDTOBusSpecificationV3News `json:"Newses"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus news
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 news
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) Validate(formats strfmt.Regi
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +104,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateAuthorityCode(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateNewses(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateNewses(formats strfmt.Registry) error {
if err := validate.Required("Newses", "body", m.Newses); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateNewses(formats strfm
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateInterval(fo
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateTime(format
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateInterval(forma
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateTime(formats s
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusNews
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3News
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_fare.go b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
similarity index 59%
rename from bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_fare.go
rename to bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
index 3a627dcf..8c4f2929 100644
--- a/bus/v3/models/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_fare.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_bus_specification_v3_wrapper_bus_wrapper_p_t_x_service_d_t_o_bus_specification_v3_route_fare.go
@@ -14,11 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare BusRouteFareList
+// PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare BusRouteFareList
//
-// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteFare]
-type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
+// 基本 wrapper
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteFare]
+type PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +30,14 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 資料(陣列)
+ // Array
+ //
+ // 資料列表
// Required: true
- RouteFares []*ServiceDTOVersion3BusRouteFare `json:"RouteFares"`
+ RouteFares []*PTXServiceDTOBusSpecificationV3RouteFare `json:"RouteFares"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +48,8 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// [平臺]資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -49,13 +59,10 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
// Required: true
UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- VersionID int32 `json:"VersionID,omitempty"`
}
-// Validate validates this m o t c API bus d a l bus service d t o version3 bus route fare
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v3 wrapper bus wrapper p t x service d t o bus specification v3 route fare
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -88,7 +95,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) Validate(formats strfmt
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -97,7 +104,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateAuthorityCode(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateRouteFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateRouteFares(formats strfmt.Registry) error {
if err := validate.Required("RouteFares", "body", m.RouteFares); err != nil {
return err
@@ -122,7 +129,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateRouteFares(form
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -131,7 +138,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateInterv
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -140,7 +147,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateTime(f
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -149,7 +156,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateInterval(
return nil
}
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -159,7 +166,7 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateTime(form
}
// MarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -167,8 +174,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) UnmarshalBinary(b []byte) error {
- var res MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare
+func (m *PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV3WrapperBusWrapperPTXServiceDTOBusSpecificationV3RouteFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version3_base_display_health.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
similarity index 54%
rename from bus/v2/models/service_d_t_o_version3_base_display_health.go
rename to bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
index eb4bf9e7..181998f1 100644
--- a/bus/v2/models/service_d_t_o_version3_base_display_health.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_display_health.go
@@ -12,34 +12,42 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseDisplayHealth DisplayHealth
+// PTXServiceDTOSharedSpecificationV3BaseDisplayHealth DisplayHealth
//
// API服務健康狀態
//
-// swagger:model Service.DTO.Version3.Base.DisplayHealth
-type ServiceDTOVersion3BaseDisplayHealth struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth
+type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct {
// Inbound
//
// 本平台資料來源轉入狀態
- Inbound *ServiceDTOVersion3BaseInbound `json:"Inbound,omitempty"`
+ Inbound struct {
+ PTXServiceDTOSharedSpecificationV3BaseInbound
+ } `json:"Inbound,omitempty"`
// Outbound
//
// 本平台API狀態
- Outbound *ServiceDTOVersion3BaseOutbound `json:"Outbound,omitempty"`
+ Outbound struct {
+ PTXServiceDTOSharedSpecificationV3BaseOutbound
+ } `json:"Outbound,omitempty"`
+ // String
+ //
// API服務代碼
// Required: true
ServiceID *string `json:"ServiceID"`
+ // String
+ //
// API服務中文名稱
// Required: true
ServiceName *string `json:"ServiceName"`
}
-// Validate validates this service d t o version3 base display health
-func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base display health
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateInbound(formats); err != nil {
@@ -64,43 +72,25 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
if swag.IsZero(m.Inbound) { // not required
return nil
}
- if m.Inbound != nil {
- if err := m.Inbound.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Inbound")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
if swag.IsZero(m.Outbound) { // not required
return nil
}
- if m.Outbound != nil {
- if err := m.Outbound.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Outbound")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
if err := validate.Required("ServiceID", "body", m.ServiceID); err != nil {
return err
@@ -109,7 +99,7 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
if err := validate.Required("ServiceName", "body", m.ServiceName); err != nil {
return err
@@ -119,7 +109,7 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +117,8 @@ func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseDisplayHealth
+func (m *PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_base_inbound.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
similarity index 62%
rename from bus/v3/models/service_d_t_o_version3_base_inbound.go
rename to bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
index a12b34a2..a8272315 100644
--- a/bus/v3/models/service_d_t_o_version3_base_inbound.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_inbound.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseInbound Inbound
+// PTXServiceDTOSharedSpecificationV3BaseInbound Inbound
//
// 本平台資料來源轉入狀態
//
-// swagger:model Service.DTO.Version3.Base.Inbound
-type ServiceDTOVersion3BaseInbound struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Inbound
+type PTXServiceDTOSharedSpecificationV3BaseInbound struct {
// DateTime
//
@@ -25,6 +25,8 @@ type ServiceDTOVersion3BaseInbound struct {
// Required: true
CheckTime *string `json:"CheckTime"`
+ // String
+ //
// 檢核失敗原因
Reason string `json:"Reason,omitempty"`
@@ -35,8 +37,8 @@ type ServiceDTOVersion3BaseInbound struct {
Status *int32 `json:"Status"`
}
-// Validate validates this service d t o version3 base inbound
-func (m *ServiceDTOVersion3BaseInbound) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base inbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCheckTime(formats); err != nil {
@@ -53,7 +55,7 @@ func (m *ServiceDTOVersion3BaseInbound) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BaseInbound) validateCheckTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) validateCheckTime(formats strfmt.Registry) error {
if err := validate.Required("CheckTime", "body", m.CheckTime); err != nil {
return err
@@ -62,7 +64,7 @@ func (m *ServiceDTOVersion3BaseInbound) validateCheckTime(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3BaseInbound) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -72,7 +74,7 @@ func (m *ServiceDTOVersion3BaseInbound) validateStatus(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseInbound) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -80,8 +82,8 @@ func (m *ServiceDTOVersion3BaseInbound) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseInbound) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseInbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseInbound
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_base_name_type.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
similarity index 50%
rename from rail/v3/models/service_d_t_o_version3_base_name_type.go
rename to bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
index 9f26b43b..adc99033 100644
--- a/rail/v3/models/service_d_t_o_version3_base_name_type.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
@@ -10,27 +10,29 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BaseNameType NameType
+// PTXServiceDTOSharedSpecificationV3BaseNameType NameType
//
-// 名稱資料型別
-//
-// swagger:model Service.DTO.Version3.Base.NameType
-type ServiceDTOVersion3BaseNameType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.NameType
+type PTXServiceDTOSharedSpecificationV3BaseNameType struct {
+ // String
+ //
// 英文名稱
En string `json:"En,omitempty"`
+ // String
+ //
// 中文繁體名稱
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version3 base name type
-func (m *ServiceDTOVersion3BaseNameType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base name type
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseNameType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +40,8 @@ func (m *ServiceDTOVersion3BaseNameType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseNameType
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseNameType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version3_base_outbound.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
similarity index 61%
rename from bus/v2/models/service_d_t_o_version3_base_outbound.go
rename to bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
index a4385337..c5028d96 100644
--- a/bus/v2/models/service_d_t_o_version3_base_outbound.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_outbound.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseOutbound Outbound
+// PTXServiceDTOSharedSpecificationV3BaseOutbound Outbound
//
// 本平台API狀態
//
-// swagger:model Service.DTO.Version3.Base.Outbound
-type ServiceDTOVersion3BaseOutbound struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Outbound
+type PTXServiceDTOSharedSpecificationV3BaseOutbound struct {
// DateTime
//
@@ -25,6 +25,8 @@ type ServiceDTOVersion3BaseOutbound struct {
// Required: true
CheckTime *string `json:"CheckTime"`
+ // String
+ //
// 檢核失敗原因
Reason string `json:"Reason,omitempty"`
@@ -35,8 +37,8 @@ type ServiceDTOVersion3BaseOutbound struct {
Status *int32 `json:"Status"`
}
-// Validate validates this service d t o version3 base outbound
-func (m *ServiceDTOVersion3BaseOutbound) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base outbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCheckTime(formats); err != nil {
@@ -53,7 +55,7 @@ func (m *ServiceDTOVersion3BaseOutbound) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3BaseOutbound) validateCheckTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) validateCheckTime(formats strfmt.Registry) error {
if err := validate.Required("CheckTime", "body", m.CheckTime); err != nil {
return err
@@ -62,7 +64,7 @@ func (m *ServiceDTOVersion3BaseOutbound) validateCheckTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3BaseOutbound) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -72,7 +74,7 @@ func (m *ServiceDTOVersion3BaseOutbound) validateStatus(formats strfmt.Registry)
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseOutbound) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -80,8 +82,8 @@ func (m *ServiceDTOVersion3BaseOutbound) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseOutbound) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseOutbound
+func (m *PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseOutbound
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_base_point_type.go b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
similarity index 53%
rename from rail/v2/models/service_d_t_o_version2_base_point_type.go
rename to bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
index 171a47ea..71ace8e7 100644
--- a/rail/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/bus/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
@@ -10,12 +10,12 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BasePointType PointType
+// PTXServiceDTOSharedSpecificationV3BasePointType PointType
//
// 座標資料型別
//
-// swagger:model Service.DTO.Version2.Base.PointType
-type ServiceDTOVersion2BasePointType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.PointType
+type PTXServiceDTOSharedSpecificationV3BasePointType struct {
// 位置緯度(WGS84)
PositionLat float64 `json:"PositionLat,omitempty"`
@@ -24,13 +24,13 @@ type ServiceDTOVersion2BasePointType struct {
PositionLon float64 `json:"PositionLon,omitempty"`
}
-// Validate validates this service d t o version2 base point type
-func (m *ServiceDTOVersion2BasePointType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base point type
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +38,8 @@ func (m *ServiceDTOVersion2BasePointType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BasePointType
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BasePointType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_service_day.go b/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_service_day.go
deleted file mode 100644
index 0cc2d708..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_service_day.go
+++ /dev/null
@@ -1,76 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3BusFirstLastTripInfoServiceDay ServiceDay
-//
-// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo.ServiceDay
-type ServiceDTOVersion3BusFirstLastTripInfoServiceDay struct {
-
- // 國定假日後一日營運與否
- DayAfterNationalHoliday bool `json:"DayAfterNationalHoliday,omitempty"`
-
- // 國定假日前一日營運與否
- DayBeforeNationalHoliday bool `json:"DayBeforeNationalHoliday,omitempty"`
-
- // 星期五營運與否
- Friday bool `json:"Friday,omitempty"`
-
- // 星期一營運與否
- Monday bool `json:"Monday,omitempty"`
-
- // 國定假日營運與否
- NationalHolidays bool `json:"NationalHolidays,omitempty"`
-
- // 星期六營運與否
- Saturday bool `json:"Saturday,omitempty"`
-
- // 服務日標籤
- ServiceTag string `json:"ServiceTag,omitempty"`
-
- // 星期日營運與否
- Sunday bool `json:"Sunday,omitempty"`
-
- // 星期四營運與否
- Thursday bool `json:"Thursday,omitempty"`
-
- // 星期二營運與否
- Tuesday bool `json:"Tuesday,omitempty"`
-
- // 颱風停止上班上課期間營運與否
- TyphoonDay bool `json:"TyphoonDay,omitempty"`
-
- // 星期三營運與否
- Wednesday bool `json:"Wednesday,omitempty"`
-}
-
-// Validate validates this service d t o version3 bus first last trip info service day
-func (m *ServiceDTOVersion3BusFirstLastTripInfoServiceDay) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfoServiceDay) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusFirstLastTripInfoServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusFirstLastTripInfoServiceDay
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_dates.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_dates.go
deleted file mode 100644
index fe7522e7..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_dates.go
+++ /dev/null
@@ -1,64 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3BusScheduleDates Dates
-//
-// swagger:model Service.DTO.Version3.Bus.Schedule.Dates
-type ServiceDTOVersion3BusScheduleDates struct {
-
- // 特殊日期
- // Required: true
- Date *string `json:"Date"`
-}
-
-// Validate validates this service d t o version3 bus schedule dates
-func (m *ServiceDTOVersion3BusScheduleDates) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDate(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3BusScheduleDates) validateDate(formats strfmt.Registry) error {
-
- if err := validate.Required("Date", "body", m.Date); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleDates) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleDates) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleDates
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_service_day.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_service_day.go
deleted file mode 100644
index 584d48f2..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_service_day.go
+++ /dev/null
@@ -1,76 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3BusScheduleServiceDay ServiceDay
-//
-// swagger:model Service.DTO.Version3.Bus.Schedule.ServiceDay
-type ServiceDTOVersion3BusScheduleServiceDay struct {
-
- // 國定假日後一日營運與否
- DayAfterHoliday bool `json:"DayAfterHoliday,omitempty"`
-
- // 國定假日前一日營運與否
- DayBeforeHoliday bool `json:"DayBeforeHoliday,omitempty"`
-
- // 星期五營運與否
- Friday bool `json:"Friday,omitempty"`
-
- // 星期一營運與否
- Monday bool `json:"Monday,omitempty"`
-
- // 國定假日營運與否
- NationalHolidays bool `json:"NationalHolidays,omitempty"`
-
- // 星期六營運與否
- Saturday bool `json:"Saturday,omitempty"`
-
- // 服務日標籤
- ServiceTag string `json:"ServiceTag,omitempty"`
-
- // 星期日營運與否
- Sunday bool `json:"Sunday,omitempty"`
-
- // 星期四營運與否
- Thursday bool `json:"Thursday,omitempty"`
-
- // 星期二營運與否
- Tuesday bool `json:"Tuesday,omitempty"`
-
- // 颱風停止上班上課期間營運與否
- TyphoonDay bool `json:"TyphoonDay,omitempty"`
-
- // 星期三營運與否
- Wednesday bool `json:"Wednesday,omitempty"`
-}
-
-// Validate validates this service d t o version3 bus schedule service day
-func (m *ServiceDTOVersion3BusScheduleServiceDay) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleServiceDay) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusScheduleServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusScheduleServiceDay
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare_buffer_zone.go b/bus/v3/models/service_d_t_o_version3_bus_section_fare_buffer_zone.go
deleted file mode 100644
index 675e449c..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare_buffer_zone.go
+++ /dev/null
@@ -1,145 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3BusSectionFareBufferZone BufferZone
-//
-// swagger:model Service.DTO.Version3.Bus.SectionFare.BufferZone
-type ServiceDTOVersion3BusSectionFareBufferZone struct {
-
- // 收費緩衝區描述
- BufferZoneDescription string `json:"BufferZoneDescription,omitempty"`
-
- // integer
- //
- // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
- // Required: true
- Direction *int32 `json:"Direction"`
-
- // FareBufferZone
- //
- // 緩衝區訖點
- // Required: true
- FareBufferZoneDestination *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneDestination"`
-
- // FareBufferZone
- //
- // 緩衝區起點
- // Required: true
- FareBufferZoneOrigin *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneOrigin"`
-
- // 緩衝區順序
- // Required: true
- SectionSequence *string `json:"SectionSequence"`
-
- // 緩衝區代號
- ZoneID string `json:"ZoneID,omitempty"`
-}
-
-// Validate validates this service d t o version3 bus section fare buffer zone
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDirection(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateFareBufferZoneDestination(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateFareBufferZoneOrigin(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateSectionSequence(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateDirection(formats strfmt.Registry) error {
-
- if err := validate.Required("Direction", "body", m.Direction); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneDestination(formats strfmt.Registry) error {
-
- if err := validate.Required("FareBufferZoneDestination", "body", m.FareBufferZoneDestination); err != nil {
- return err
- }
-
- if m.FareBufferZoneDestination != nil {
- if err := m.FareBufferZoneDestination.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneDestination")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneOrigin(formats strfmt.Registry) error {
-
- if err := validate.Required("FareBufferZoneOrigin", "body", m.FareBufferZoneOrigin); err != nil {
- return err
- }
-
- if m.FareBufferZoneOrigin != nil {
- if err := m.FareBufferZoneOrigin.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneOrigin")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
-
- if err := validate.Required("SectionSequence", "body", m.SectionSequence); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSectionFareBufferZone
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare_buffer_zone.go b/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare_buffer_zone.go
deleted file mode 100644
index 65cae65d..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare_buffer_zone.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3BusSectionFareFareBufferZone FareBufferZone
-//
-// swagger:model Service.DTO.Version3.Bus.SectionFare.FareBufferZone
-type ServiceDTOVersion3BusSectionFareFareBufferZone struct {
-
- // 緩衝區站牌代碼
- // Required: true
- StopID *string `json:"StopID"`
-
- // NameType
- //
- // 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
-
- // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
- // Required: true
- StopUID *string `json:"StopUID"`
-}
-
-// Validate validates this service d t o version3 bus section fare fare buffer zone
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStopID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopUID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) validateStopID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopID", "body", m.StopID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) validateStopName(formats strfmt.Registry) error {
-
- if swag.IsZero(m.StopName) { // not required
- return nil
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) validateStopUID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusSectionFareFareBufferZone) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusSectionFareFareBufferZone
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_discount_period.go b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_discount_period.go
deleted file mode 100644
index 1ae277c2..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_discount_period.go
+++ /dev/null
@@ -1,111 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3BusStageFareDiscountPeriod DiscountPeriod
-//
-// 優惠時段
-//
-// swagger:model Service.DTO.Version3.Bus.StageFare.DiscountPeriod
-type ServiceDTOVersion3BusStageFareDiscountPeriod struct {
-
- // 結束時間(HH:mm制)
- // Required: true
- EndTime *string `json:"EndTime"`
-
- // ServiceDay
- //
- // 營運日型態
- // Required: true
- ServiceDay *ServiceDTOVersion3BusStageFareServiceDay `json:"ServiceDay"`
-
- // 開始時間(HH:mm制)
- // Required: true
- StartTime *string `json:"StartTime"`
-}
-
-// Validate validates this service d t o version3 bus stage fare discount period
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateEndTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateServiceDay(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStartTime(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) validateEndTime(formats strfmt.Registry) error {
-
- if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) validateStartTime(formats strfmt.Registry) error {
-
- if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareDiscountPeriod) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStageFareDiscountPeriod
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_stage.go b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_stage.go
deleted file mode 100644
index b721590d..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_stage.go
+++ /dev/null
@@ -1,96 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3BusStageFareStage Stage
-//
-// 計費站
-//
-// swagger:model Service.DTO.Version3.Bus.StageFare.Stage
-type ServiceDTOVersion3BusStageFareStage struct {
-
- // 計費訖點站牌代碼
- StopID string `json:"StopID,omitempty"`
-
- // NameType
- //
- // 站牌名稱
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName,omitempty"`
-
- // 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
- // Required: true
- StopUID *string `json:"StopUID"`
-}
-
-// Validate validates this service d t o version3 bus stage fare stage
-func (m *ServiceDTOVersion3BusStageFareStage) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStopName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopUID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3BusStageFareStage) validateStopName(formats strfmt.Registry) error {
-
- if swag.IsZero(m.StopName) { // not required
- return nil
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3BusStageFareStage) validateStopUID(formats strfmt.Registry) error {
-
- if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareStage) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusStageFareStage) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusStageFareStage
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot_vehicle.go b/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot_vehicle.go
deleted file mode 100644
index 2317daf6..00000000
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot_vehicle.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3BusVehicleDepotVehicle Vehicle
-//
-// swagger:model Service.DTO.Version3.Bus.VehicleDepot.Vehicle
-type ServiceDTOVersion3BusVehicleDepotVehicle struct {
-
- // 車牌號碼
- PlateNumb string `json:"PlateNumb,omitempty"`
-}
-
-// Validate validates this service d t o version3 bus vehicle depot vehicle
-func (m *ServiceDTOVersion3BusVehicleDepotVehicle) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleDepotVehicle) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BusVehicleDepotVehicle) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BusVehicleDepotVehicle
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/oas.basic.v2.json b/oas.basic.v2.json
index 7e0dd358..eb46d5d3 100644
--- a/oas.basic.v2.json
+++ b/oas.basic.v2.json
@@ -524,18 +524,13 @@
"title": "Provider",
"description": "資料提供平台資料型別",
"required": [
- "UpdateTime",
"ProviderID",
"ProviderName",
+ "UpdateTime",
"ProviderCode"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
"ProviderID": {
"description": "資料提供平台代碼",
"type": "string"
@@ -557,6 +552,11 @@
"description": "資料提供平台網址鏈結",
"type": "string"
},
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
"ProviderCode": {
"description": "資料提供平台簡碼",
"type": "string"
diff --git a/oas.bike.v2.json b/oas.bike.v2.json
index a2b04b8e..c8740b8a 100644
--- a/oas.bike.v2.json
+++ b/oas.bike.v2.json
@@ -17,7 +17,7 @@
"Bike"
],
"summary": "取得指定[縣市]的公共自行車租借站位資料",
- "description": "取得指定[縣市]的公共自行車租借站位資料
[更新頻率]2分鐘更新一次",
+ "description": "取得指定[縣市]的公共自行車租借站位資料",
"operationId": "BikeApi_Station",
"produces": [
"application/json",
@@ -38,23 +38,23 @@
"NewTaipei",
"PingtungCounty",
"Taoyuan",
- "KinmenCounty",
"Taipei",
+ "KinmenCounty",
"Kaohsiung",
"Tainan"
],
"x-enum": {
- "NewTaipei": "新北市",
- "Tainan": "臺南市",
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
- "Taipei": "臺北市",
- "Hsinchu": "新竹市",
"PingtungCounty": "屏東縣",
"ChanghuaCounty": "彰化縣",
"Taoyuan": "桃園市",
+ "NewTaipei": "新北市",
+ "Taipei": "臺北市",
"Taichung": "臺中市",
- "Kaohsiung": "高雄市"
+ "Kaohsiung": "高雄市",
+ "Tainan": "臺南市",
+ "KinmenCounty": "金門縣",
+ "MiaoliCounty": "苗栗縣",
+ "Hsinchu": "新竹市"
}
},
{
@@ -126,7 +126,7 @@
"Bike"
],
"summary": "取得動態指定[縣市]的公共自行車即時車位資料",
- "description": "取得動態指定[縣市]的公共自行車即時車位資料
[更新頻率]2分鐘更新一次",
+ "description": "取得動態指定[縣市]的公共自行車即時車位資料",
"operationId": "BikeApi_Availability",
"produces": [
"application/json",
@@ -153,17 +153,17 @@
"Tainan"
],
"x-enum": {
+ "NewTaipei": "新北市",
+ "Taoyuan": "桃園市",
"Taichung": "臺中市",
- "Hsinchu": "新竹市",
"ChanghuaCounty": "彰化縣",
"KinmenCounty": "金門縣",
- "Taipei": "臺北市",
"Tainan": "臺南市",
- "NewTaipei": "新北市",
- "Taoyuan": "桃園市",
"PingtungCounty": "屏東縣",
"MiaoliCounty": "苗栗縣",
- "Kaohsiung": "高雄市"
+ "Kaohsiung": "高雄市",
+ "Hsinchu": "新竹市",
+ "Taipei": "臺北市"
}
},
{
@@ -265,28 +265,28 @@
"Kaohsiung"
],
"x-enum": {
+ "NewTaipei": "新北市",
+ "Taoyuan": "桃園市",
+ "MiaoliCounty": "苗栗縣",
+ "YilanCounty": "宜蘭縣",
"NantouCounty": "南投縣",
"HsinchuCounty": "新竹縣",
"Chiayi": "嘉義市",
- "ChanghuaCounty": "彰化縣",
- "Kaohsiung": "高雄市",
"Taichung": "臺中市",
"PingtungCounty": "屏東縣",
"YunlinCounty": "雲林縣",
"Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
"TaitungCounty": "臺東縣",
- "Taipei": "臺北市",
- "NewTaipei": "新北市",
- "Taoyuan": "桃園市",
- "MiaoliCounty": "苗栗縣",
- "YilanCounty": "宜蘭縣",
"Tainan": "臺南市",
"ChiayiCounty": "嘉義縣",
"Keelung": "基隆市",
"HualienCounty": "花蓮縣",
"LienchiangCounty": "連江縣",
- "KinmenCounty": "金門縣"
+ "KinmenCounty": "金門縣",
+ "ChanghuaCounty": "彰化縣",
+ "Kaohsiung": "高雄市",
+ "PenghuCounty": "澎湖縣",
+ "Taipei": "臺北市"
}
},
{
@@ -401,6 +401,7 @@
"required": [
"City",
"CityCode",
+ "EncodedPolyline",
"Geometry",
"RouteName",
"UpdateTime"
@@ -442,11 +443,6 @@
"description": "路線迄點描述",
"type": "string"
},
- "Geometry": {
- "title": "String",
- "description": "路線軌跡資料",
- "type": "string"
- },
"Direction": {
"title": "String",
"description": "自行車道車行方向",
@@ -471,6 +467,16 @@
"title": "DateTime",
"description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
+ },
+ "Geometry": {
+ "title": "String",
+ "description": "well-known text,為路線軌跡資料",
+ "type": "string"
+ },
+ "EncodedPolyline": {
+ "title": "String",
+ "description": "路線軌跡編碼(encoded polyline)",
+ "type": "string"
}
}
},
@@ -508,7 +514,7 @@
},
"GeoHash": {
"title": "String",
- "description": "位置雜湊",
+ "description": "地理空間編碼",
"type": "string"
}
}
diff --git a/oas.bus.v2.json b/oas.bus.v2.json
index c3b79b89..1a910227 100644
--- a/oas.bus.v2.json
+++ b/oas.bus.v2.json
@@ -1,12 +1,12 @@
{
"swagger": "2.0",
"info": {
- "version": "v2",
"title": "MOTC Transport API V2",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\r\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\r\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\r\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\r\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Bus/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Bus/api-docs/oas)",
+ "version": "v2"
},
"host": "ptx.transportdata.tw",
- "basePath": "/MOTC/",
+ "basePath": "/MOTC",
"schemes": [
"https"
],
@@ -19,15 +19,14 @@
"summary": "取得指定[縣市]的公車動態定時資料(A1)[逐筆更新]",
"description": "### 市區公車之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeByFrequency_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -63,79 +62,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -149,15 +148,14 @@
"summary": "取得指定[縣市],[路線名稱]的公車動態定時資料(A1)[逐筆更新]",
"description": "### 市區公車之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeByFrequency_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -193,86 +191,86 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -286,15 +284,14 @@
"summary": "取得指定[縣市]的公車動態定點資料(A2)[逐筆更新]",
"description": "### 市區公車之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeNearStop_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -330,73 +327,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -410,15 +407,14 @@
"summary": "取得指定[縣市],[路線名稱]的公車動態定點資料(A2)[逐筆更新]",
"description": "### 市區公車之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeNearStop_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -454,80 +450,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -539,17 +535,16 @@
"CityBus"
],
"summary": "取得指定[縣市]的公車預估到站資料(N1)[逐筆更新]",
- "description": "### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
+ "description": "### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
"operationId": "CityBusApi_EstimatedTimeOfArrival_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -585,73 +580,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -663,17 +658,16 @@
"CityBus"
],
"summary": "取得指定[縣市],[路線名稱]的公車預估到站資料(N1)[逐筆更新]",
- "description": "### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
+ "description": "### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
"operationId": "CityBusApi_EstimatedTimeOfArrival_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -709,80 +703,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -796,15 +790,14 @@
"summary": "取得指定[縣市]的公車動態定時資料(A1)[批次更新]",
"description": "### 市區公車之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeByFrequency",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -858,79 +851,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -944,15 +937,14 @@
"summary": "取得指定[縣市],[路線名稱]的公車動態定時資料(A1)[批次更新]",
"description": "### 市區公車之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeByFrequency_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1006,86 +998,86 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1099,15 +1091,14 @@
"summary": "取得指定[縣市]的公車動態定點資料(A2)[批次更新]",
"description": "### 市區公車之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeNearStop",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1161,73 +1152,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1241,15 +1232,14 @@
"summary": "取得指定[縣市],[路線名稱]的公車動態定點資料(A2)[批次更新]",
"description": "### 市區公車之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_RealTimeNearStop_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1303,80 +1293,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1388,17 +1378,16 @@
"CityBus"
],
"summary": "取得指定[縣市]的公車預估到站資料(N1)[批次更新]",
- "description": " ### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
+ "description": " ### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_EstimatedTimeOfArrival",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1452,73 +1441,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1530,17 +1519,16 @@
"CityBus"
],
"summary": "取得指定[縣市],[路線名稱]的公車預估到站資料(N1)[批次更新]",
- "description": " ### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
+ "description": " ### 市區公車之預估到站資料(N1) ###\r\n- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "CityBusApi_EstimatedTimeOfArrival_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1594,80 +1582,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1681,17 +1669,16 @@
"summary": "取得指定[縣市]目前資料的最新版本資訊",
"description": "版本詳細資訊",
"operationId": "CityBusApi_DataVersion",
- "consumes": [],
"produces": [
"application/json",
- "text/json",
"application/xml",
- "text/xml"
+ "text/plain",
+ "text/json"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1745,39 +1732,38 @@
}
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusVersion"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusVersion"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1791,15 +1777,14 @@
"summary": "取得指定[縣市]的市區公車營運業者資料",
"description": "市區公車之營運業者資料",
"operationId": "CityBusApi_Operator",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1828,7 +1813,6 @@
"LienchiangCounty"
],
"x-enum": {
- "ChanghuaCounty": "彰化縣",
"LienchiangCounty": "連江縣",
"HualienCounty": "花蓮縣",
"Taoyuan": "桃園市",
@@ -1849,77 +1833,78 @@
"Tainan": "臺南市",
"NewTaipei": "新北市",
"Taichung": "臺中市",
- "Kaohsiung": "高雄市"
+ "Kaohsiung": "高雄市",
+ "ChanghuaCounty": "彰化縣"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Operator"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1933,15 +1918,14 @@
"summary": "取得指定[縣市]的市區公車路線資料",
"description": "市區公車之路線資料",
"operationId": "CityBusApi_Route",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1995,73 +1979,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2075,15 +2059,14 @@
"summary": "取得指定[縣市],[路線名稱]的路線資料",
"description": "市區公車之路線資料",
"operationId": "CityBusApi_Route_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2137,80 +2120,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2224,15 +2207,14 @@
"summary": "取得指定[縣市]的市區公車站牌資料",
"description": "市區公車之站牌資料",
"operationId": "CityBusApi_Stop",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2286,79 +2268,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStop"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2372,15 +2354,14 @@
"summary": "取得指定[縣市]的市區公車站位資料",
"description": "市區公車之各站牌所屬的站位資料",
"operationId": "CityBusApi_Station",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2426,79 +2407,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStation"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2512,15 +2493,14 @@
"summary": "取得指定[縣市]的市區公車顯示用路線站序資料",
"description": "市區公車之顯示用路線站序資料,僅台北市與新北市可查詢",
"operationId": "CityBusApi_DisplayStopOfRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2536,73 +2516,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusDisplayStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2616,15 +2596,14 @@
"summary": "取得指定[縣市],[路線名稱]的市區公車顯示用路線站序資料",
"description": "市區公車之顯示用路線站序資料,僅台北市與新北市可查詢",
"operationId": "CityBusApi_DisplayStopOfRoute_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2640,80 +2619,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusDisplayStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2727,15 +2706,14 @@
"summary": "取得指定[縣市]的市區公車路線站序資料",
"description": "市區公車之路線站序資料",
"operationId": "CityBusApi_StopOfRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2789,73 +2767,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2869,15 +2847,14 @@
"summary": "取得指定[縣市],[路線名稱]的市區公車路線站序資料",
"description": "市區公車之路線站序資料",
"operationId": "CityBusApi_StopOfRoute_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2931,80 +2908,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3018,15 +2995,14 @@
"summary": "取得指定[縣市]的市區公車路線班表資料",
"description": "市區公車之班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表",
"operationId": "CityBusApi_Schedule",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3072,73 +3048,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSchedule"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3152,15 +3128,14 @@
"summary": "取得指定[縣市],[路線名稱]的市區公車路線班表資料",
"description": "市區公車之預定班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表",
"operationId": "CityBusApi_Schedule_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3206,80 +3181,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
- ]
+ "JSON",
+ "XML"
+ ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSchedule"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3293,15 +3268,14 @@
"summary": "取得指定[縣市]的市區公車車輛資料",
"description": "市區公車之車輛資料",
"operationId": "CityBusApi_Vehicle",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3329,7 +3303,6 @@
"LienchiangCounty"
],
"x-enum": {
- "Kaohsiung": "高雄市",
"Taipei": "臺北市",
"Hsinchu": "新竹市",
"KinmenCounty": "金門縣",
@@ -3345,6 +3318,7 @@
"HsinchuCounty": "新竹縣",
"HualienCounty": "花蓮縣",
"MiaoliCounty": "苗栗縣",
+ "Kaohsiung": "高雄市",
"YunlinCounty": "雲林縣",
"TaitungCounty": "臺東縣",
"PingtungCounty": "屏東縣",
@@ -3354,73 +3328,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusVehicleInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3434,15 +3408,14 @@
"summary": "取得指定[縣市]的市區公車線型資料",
"description": "市區公車之線型資料",
"operationId": "CityBusApi_Shape",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3468,73 +3441,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusShape"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3548,15 +3521,14 @@
"summary": "取得指定[縣市],[路線名稱]的市區公車線型資料",
"description": "市區公車之線型資料",
"operationId": "CityBusApi_Shape_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3582,80 +3554,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusShape"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3669,15 +3641,14 @@
"summary": "取得指定[縣市]的市區公車路線票價資料",
"description": "市區公車路線票價資料",
"operationId": "CityBusApi_RouteFare",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3722,73 +3693,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3802,15 +3773,14 @@
"summary": "取得指定[縣市],[路線名稱]的的市區公車路線票價資料",
"description": "市區公車路線票價資料",
"operationId": "CityBusApi_RouteFare_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3855,80 +3825,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -3942,15 +3912,14 @@
"summary": "取得指定[縣市]的市區公車最新消息資料",
"description": "市區公車最新消息資料",
"operationId": "CityBusApi_News",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -3966,73 +3935,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusNews"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusNews"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4046,15 +4015,14 @@
"summary": "取得指定[縣市]的市區公車組站位資料",
"description": "市區公車之各站牌所屬的組站位資料",
"operationId": "CityBusApi_StationGroup",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -4090,79 +4058,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStationGroup"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStationGroup"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4176,15 +4144,14 @@
"summary": "取得指定[縣市]的市區公車路線首末班車資料",
"description": "市區公車之路線首末班車資料",
"operationId": "CityBusApi_FirstLastTripInfo",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -4196,73 +4163,73 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFirstLastTripInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4276,15 +4243,14 @@
"summary": "取得指定[縣市],[路線名稱]的路線首末班車資料",
"description": "市區公車之路線首末班車資料",
"operationId": "CityBusApi_FirstLastTripInfo_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -4296,80 +4262,80 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFirstLastTripInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4383,86 +4349,85 @@
"summary": "取得公路客運的動態定時資料(A1)[逐筆更新]",
"description": "### 公路客運之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeByFrequency_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4476,93 +4441,92 @@
"summary": "取得指定[路線名稱]的公路客運動態定時資料(A1)[逐筆更新]",
"description": "### 公路客運之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeByFrequency_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4576,80 +4540,79 @@
"summary": "取得公路客運的動態定點資料(A2)[逐筆更新]",
"description": "### 公路客運之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeNearStop_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4663,87 +4626,86 @@
"summary": "取得指定[路線名稱]的公路客運動態定點資料(A2)[逐筆更新]",
"description": "### 公路客運之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeNearStop_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4757,80 +4719,79 @@
"summary": "取得公路客運的預估到站資料(N1)[逐筆更新]",
"description": "### 公路客運之預估到站資料(N1) ###\r\n- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
"operationId": "InterCityBusApi_EstimatedTimeOfArrival_UDP",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4844,87 +4805,86 @@
"summary": "取得指定[路線名稱]的公路客運預估到站資料(N1)[逐筆更新]",
"description": "### 公路客運之預估到站資料(N1) ###\r\n- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))\r\n- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。",
"operationId": "InterCityBusApi_EstimatedTimeOfArrival_UDP_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -4938,86 +4898,85 @@
"summary": "取得公路客運的動態定時資料(A1)[批次更新]",
"description": "### 公路客運之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeByFrequency",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5031,93 +4990,92 @@
"summary": "取得指定[路線名稱]的公路客運動態定時資料(A1)[批次更新]",
"description": "### 公路客運之定時資料(A1) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeByFrequency_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA1Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5131,80 +5089,79 @@
"summary": "取得公路客運的動態定點資料(A2)[批次更新]",
"description": "### 公路客運之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeNearStop",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5218,87 +5175,86 @@
"summary": "取得指定[路線名稱]的公路客運動態定點資料(A2)[批次更新]",
"description": "### 公路客運之定點資料(A2) ###\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_RealTimeNearStop_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusA2Data"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5312,80 +5268,79 @@
"summary": "取得公路客運的預估到站資料(N1)[批次更新]",
"description": "###公路客運之預估到站資料(N1)###\r\n- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_EstimatedTimeOfArrival",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5399,87 +5354,86 @@
"summary": "取得指定[路線名稱]的公路客運預估到站資料(N1)[批次更新]",
"description": "### 公路客運之預估到站資料(N1) ###\r\n- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料\r\n- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))",
"operationId": "InterCityBusApi_EstimatedTimeOfArrival_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5493,48 +5447,46 @@
"summary": "取得公路客運目前資料的最新版本資訊",
"description": "版本詳細資訊",
"operationId": "InterCityBusApi_DataVersion",
- "consumes": [],
"produces": [
"application/json",
- "text/json",
"application/xml",
- "text/xml"
+ "text/plain",
+ "text/json"
],
"parameters": [
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusVersion"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusVersion"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5548,80 +5500,79 @@
"summary": "取得公路客運的營運業者資料",
"description": "公路客運之營運業者資料",
"operationId": "InterCityBusApi_Operator",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Operator"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5635,80 +5586,79 @@
"summary": "取得公路客運路線資料",
"description": "公路客運之路線資料",
"operationId": "InterCityBusApi_Route",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5722,87 +5672,86 @@
"summary": "取得指定[路線名稱]的公路客運路線資料",
"description": "公路客運之路線資料",
"operationId": "InterCityBusApi_Route_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5816,86 +5765,85 @@
"summary": "取得公路客運站牌資料",
"description": "公路客運之站牌資料",
"operationId": "InterCityBusApi_Stop",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStop"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -5909,86 +5857,85 @@
"summary": "取得公路客運站位資料",
"description": "公路客運之各站牌所屬的站位資料",
"operationId": "InterCityBusApi_Station",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStation"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6002,80 +5949,79 @@
"summary": "取得公路客運路線與站牌資料",
"description": "公路客運之路線與站牌資料",
"operationId": "InterCityBusApi_StopOfRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6089,87 +6035,86 @@
"summary": "取得指定[路線名稱]的公路客運路線與站牌資料",
"description": "公路客運之路線與站牌資料",
"operationId": "InterCityBusApi_StopOfRoute_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6183,80 +6128,79 @@
"summary": "取得公路客運路線班表資料",
"description": "公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表",
"operationId": "InterCityBusApi_Schedule",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSchedule"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6270,87 +6214,86 @@
"summary": "取得指定[路線名稱]的公路客運路線班表資料",
"description": "公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表",
"operationId": "InterCityBusApi_Schedule_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSchedule"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6364,80 +6307,79 @@
"summary": "取得公路客運之最新消息",
"description": "公路客運之最新消息",
"operationId": "InterCityBusApi_News",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusNews"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusNews"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6451,80 +6393,79 @@
"summary": "取得公路客運之車輛資料",
"description": "公路客運之車輛資料",
"operationId": "InterCityBusApi_Vehicle",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusVehicleInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6538,80 +6479,79 @@
"summary": "取得公路客運之路線票價資料",
"description": "公路客運之路線票價資料",
"operationId": "InterCityBusApi_RouteFare",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6622,90 +6562,89 @@
"tags": [
"InterCityBus"
],
- "summary": "取得指定[路線名稱]的公路客運路線資料",
- "description": "公路客運之路線資料",
+ "summary": "取得指定[路線名稱]的公路客運路線票價資料",
+ "description": "公路客運之路線票價資料",
"operationId": "InterCityBusApi_RouteFare_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'9102'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusRouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusRouteFare"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6719,86 +6658,85 @@
"summary": "取得公路客運組站位資料",
"description": "公路客運之各站牌所屬的組站位資料",
"operationId": "InterCityBusApi_StationGroup",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStationGroup"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStationGroup"
}
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -6806,36 +6744,7 @@
}
},
"definitions": {
- "Service.DTO.Version3.Base.DisplayHealth": {
- "title": "DisplayHealth",
- "description": "API服務健康狀態",
- "required": [
- "ServiceID",
- "ServiceName"
- ],
- "type": "object",
- "properties": {
- "ServiceID": {
- "description": "API服務代碼",
- "type": "string"
- },
- "ServiceName": {
- "description": "API服務中文名稱",
- "type": "string"
- },
- "Inbound": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Inbound",
- "title": "Inbound",
- "description": "本平台資料來源轉入狀態"
- },
- "Outbound": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Outbound",
- "title": "Outbound",
- "description": "本平台API狀態"
- }
- }
- },
- "Service.DTO.Version3.Base.Inbound": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": {
"title": "Inbound",
"description": "本平台資料來源轉入狀態",
"required": [
@@ -6856,12 +6765,13 @@
"type": "integer"
},
"Reason": {
+ "title": "String",
"description": "檢核失敗原因",
"type": "string"
}
}
},
- "Service.DTO.Version3.Base.Outbound": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": {
"title": "Outbound",
"description": "本平台API狀態",
"required": [
@@ -6882,54 +6792,147 @@
"type": "integer"
},
"Reason": {
+ "title": "String",
"description": "檢核失敗原因",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusA1Data": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": {
+ "title": "DisplayHealth",
+ "description": "API服務健康狀態",
+ "required": [
+ "ServiceID",
+ "ServiceName"
+ ],
+ "type": "object",
+ "properties": {
+ "ServiceID": {
+ "title": "String",
+ "description": "API服務代碼",
+ "type": "string"
+ },
+ "ServiceName": {
+ "title": "String",
+ "description": "API服務中文名稱",
+ "type": "string"
+ },
+ "Inbound": {
+ "title": "Inbound",
+ "description": "本平台資料來源轉入狀態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound"
+ }
+ ]
+ },
+ "Outbound": {
+ "title": "Outbound",
+ "description": "本平台API狀態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": {
+ "title": "NameType",
+ "description": "名稱資料型別",
+ "type": "object",
+ "properties": {
+ "Zh_tw": {
+ "title": "String",
+ "description": "中文繁體名稱",
+ "type": "string"
+ },
+ "En": {
+ "title": "String",
+ "description": "英文名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": {
+ "title": "PointType",
+ "description": "座標資料型別",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "description": "位置緯度(WGS84)",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "description": "位置經度(WGS84)",
+ "type": "number"
+ },
+ "GeoHash": {
+ "title": "String",
+ "description": "地理空間編碼",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusA1Data": {
"title": "BusA1Data",
"description": "定時車機資料型別",
"required": [
- "PlateNumb",
"GPSTime",
+ "PlateNumb",
"UpdateTime"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -6938,9 +6941,13 @@
"type": "integer"
},
"BusPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "車輛位置經度"
+ "description": "車輛位置經度",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Speed": {
"format": "double",
@@ -7002,82 +7009,64 @@
}
}
},
- "Service.DTO.Version2.Base.NameType": {
- "title": "NameType",
- "description": "名稱資料型別",
- "type": "object",
- "properties": {
- "Zh_tw": {
- "description": "中文繁體名稱",
- "type": "string"
- },
- "En": {
- "description": "英文名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Base.PointType": {
- "title": "PointType",
- "description": "座標資料型別",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "description": "位置緯度(WGS84)",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "description": "位置經度(WGS84)",
- "type": "number"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusA2Data": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusA2Data": {
"title": "BusA2Data",
"description": "定點車機資料型別",
"required": [
- "PlateNumb",
"Direction",
"GPSTime",
+ "PlateNumb",
"UpdateTime"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名"
+ "description": "路線名",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -7086,20 +7075,27 @@
"type": "integer"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代號(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名"
+ "description": "站牌名",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "路線經過站牌之順序",
"type": "integer"
},
@@ -7159,82 +7155,37 @@
}
}
},
- "Service.DTO.Version2.Bus.BusDisplayStopOfRoute": {
- "title": "BusDisplayStopOfRoute",
- "description": "顯示用路線站序資料",
- "required": [
- "RouteUID",
- "RouteID",
- "RouteName",
- "Stops",
- "UpdateTime",
- "VersionID"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "Stops": {
- "description": "所有經過站牌",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.Stop"
- }
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Bus.Stop": {
+ "PTX.Service.DTO.Bus.Specification.V2.Stop": {
"title": "Stop",
"description": "站牌代碼資料",
"required": [
- "StopUID",
+ "StationGroupID",
"StopID",
"StopName",
- "StopSequence",
"StopPosition",
- "StationGroupID"
+ "StopSequence",
+ "StopUID"
],
"type": "object",
"properties": {
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopBoarding": {
"format": "int32",
@@ -7244,75 +7195,67 @@
},
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "路線經過站牌之順序",
"type": "integer"
},
"StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "站牌位置"
+ "description": "站牌位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationID": {
+ "title": "String",
"description": "站牌所屬的站位ID",
"type": "string"
},
"StationGroupID": {
+ "title": "String",
"description": "站牌所屬的組站位ID",
"type": "string"
},
"LocationCityCode": {
+ "title": "String",
"description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusFirstLastTripInfo": {
- "title": "BusFirstLastTripInfo",
- "description": "路線首末班車資料型別",
+ "PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute": {
+ "title": "BusDisplayStopOfRoute",
+ "description": "顯示用路線站序資料",
"required": [
- "RouteUID",
"RouteID",
"RouteName",
- "OperatorID",
- "SubRouteUID",
- "SubRouteID",
- "SubRouteName",
- "Direction",
- "FirstLastTrips",
+ "RouteUID",
+ "Stops",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -7320,11 +7263,12 @@
"description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "FirstLastTrips": {
- "description": "首末班車",
+ "Stops": {
+ "title": "Array",
+ "description": "所有經過站牌",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.FirstLastTrip"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Stop"
}
},
"UpdateTime": {
@@ -7334,46 +7278,22 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.FirstLastTrip": {
- "title": "FirstLastTrip",
- "description": "首末班車資料型別",
- "required": [
- "ServiceDay",
- "FirstTripDepTime",
- "LastTripDepTime"
- ],
- "type": "object",
- "properties": {
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFirstLastTripInfo.ServiceDay",
- "title": "ServiceDay",
- "description": "服務日型態"
- },
- "FirstTripDepTime": {
- "description": "頭班車發車時間(HH:mm)",
- "type": "string"
- },
- "LastTripDepTime": {
- "description": "末班車發車時間(HH:mm)",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusFirstLastTripInfo.ServiceDay": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay": {
"title": "ServiceDay",
"required": [
- "Sunday",
+ "Friday",
"Monday",
- "Tuesday",
- "Wednesday",
+ "Saturday",
+ "Sunday",
"Thursday",
- "Friday",
- "Saturday"
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
@@ -7445,7 +7365,152 @@
}
}
},
- "Service.DTO.Version2.Bus.BusN1EstimateTime": {
+ "PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip": {
+ "title": "FirstLastTrip",
+ "description": "首末班車資料型別",
+ "required": [
+ "FirstTripDepTime",
+ "LastTripDepTime",
+ "ServiceDay"
+ ],
+ "type": "object",
+ "properties": {
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay"
+ }
+ ]
+ },
+ "FirstTripDepTime": {
+ "title": "String",
+ "description": "頭班車發車時間(HH:mm)",
+ "type": "string"
+ },
+ "LastTripDepTime": {
+ "title": "String",
+ "description": "末班車發車時間(HH:mm)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo": {
+ "title": "BusFirstLastTripInfo",
+ "description": "路線首末班車資料型別",
+ "required": [
+ "Direction",
+ "FirstLastTrips",
+ "OperatorID",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "SubRouteID",
+ "SubRouteName",
+ "SubRouteUID",
+ "UpdateTime",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "FirstLastTrips": {
+ "title": "Array",
+ "description": "首末班車",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip"
+ }
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.N1.Estimate": {
+ "title": "Estimate",
+ "type": "object",
+ "properties": {
+ "PlateNumb": {
+ "title": "String",
+ "description": "車輛車牌號碼",
+ "type": "string"
+ },
+ "EstimateTime": {
+ "format": "int32",
+ "description": "車輛之到站時間預估(秒)",
+ "type": "integer"
+ },
+ "IsLastBus": {
+ "description": "是否為末班車",
+ "type": "boolean"
+ },
+ "VehicleStopStatus": {
+ "format": "int32",
+ "title": "integer",
+ "description": "車輛於該站之進離站狀態 : [0:'離站',1:'進站']",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime": {
"title": "BusN1EstimateTime",
"required": [
"Direction",
@@ -7454,47 +7519,66 @@
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼 [値為値為-1時,表示目前該站位無車輛行駛]",
"type": "string"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名"
+ "description": "站牌名",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -7513,10 +7597,12 @@
"type": "integer"
},
"CurrentStop": {
+ "title": "String",
"description": "車輛目前所在站牌代碼",
"type": "string"
},
"DestinationStop": {
+ "title": "String",
"description": "車輛目的站牌代碼",
"type": "string"
},
@@ -7547,10 +7633,11 @@
"type": "boolean"
},
"Estimates": {
+ "title": "Array",
"description": "到站時間預估\r\n",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.N1.Estimate"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.N1.Estimate"
}
},
"DataTime": {
@@ -7585,69 +7672,51 @@
}
}
},
- "Service.DTO.Version2.Bus.N1.Estimate": {
- "title": "Estimate",
- "type": "object",
- "properties": {
- "PlateNumb": {
- "description": "車輛車牌號碼",
- "type": "string"
- },
- "EstimateTime": {
- "format": "int32",
- "description": "車輛之到站時間預估(秒)",
- "type": "integer"
- },
- "IsLastBus": {
- "description": "是否為末班車",
- "type": "boolean"
- },
- "VehicleStopStatus": {
- "format": "int32",
- "title": "integer",
- "description": "車輛於該站之進離站狀態 : [0:'離站',1:'進站']",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusNews": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusNews": {
"title": "BusNews",
"description": "公車最新消息資料",
"required": [
- "NewsID",
- "Language",
- "Title",
"Description",
+ "Language",
+ "NewsID",
"PublishTime",
+ "Title",
"UpdateTime"
],
"type": "object",
"properties": {
"NewsID": {
+ "title": "String",
"description": "最新消息原單位發布代碼",
"type": "string"
},
"Language": {
+ "title": "String",
"description": "語系",
"type": "string"
},
"NewsCategory": {
+ "title": "String",
"description": "消息類別",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "消息標題",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "內容描述",
"type": "string"
},
"NewsURL": {
+ "title": "String",
"description": "報導網站連結",
"type": "string"
},
"AttachmentURL": {
+ "title": "String",
"description": "相關網站連結",
"type": "string"
},
@@ -7673,66 +7742,81 @@
}
}
},
- "Service.DTO.Version2.Base.Operator": {
+ "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": {
"title": "Operator",
"description": "營運業者資料型別",
"required": [
- "ProviderID",
+ "AuthorityCode",
+ "OperatorCode",
"OperatorID",
"OperatorName",
- "OperatorCode",
- "AuthorityCode",
"OperatorNo",
+ "ProviderID",
"UpdateTime"
],
"type": "object",
"properties": {
"ProviderID": {
+ "title": "String",
"description": "資料提供平台代碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"OperatorPhone": {
+ "title": "String",
"description": "營運業者連絡電話",
"type": "string"
},
"OperatorEmail": {
+ "title": "String",
"description": "營運業者電子信箱",
"type": "string"
},
"OperatorUrl": {
+ "title": "String",
"description": "營運業者網址鏈結",
"type": "string"
},
"ReservationUrl": {
+ "title": "String",
"description": "訂票網址鏈結",
"type": "string"
},
"ReservationPhone": {
+ "title": "String",
"description": "訂票連絡電話",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"AuthorityCode": {
- "description": "營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)",
+ "title": "String",
+ "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)",
"type": "string"
},
"SubAuthorityCode": {
+ "title": "String",
"description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)",
"type": "string"
},
"OperatorNo": {
+ "title": "String",
"description": "營運業者編號[交通部票證資料系統定義]",
"type": "string"
},
@@ -7743,55 +7827,177 @@
}
}
},
- "Service.DTO.Version2.Bus.BusRoute": {
- "title": "BusRoute",
- "description": "路線資料型別",
+ "PTX.Service.DTO.Bus.Specification.V2.RouteOperator": {
+ "title": "RouteOperator",
+ "description": "營運業者資訊",
"required": [
- "RouteUID",
- "RouteID",
- "HasSubRoutes",
- "Operators",
- "AuthorityID",
- "ProviderID",
- "BusRouteType",
- "RouteName",
- "UpdateTime",
- "VersionID"
+ "OperatorCode",
+ "OperatorID",
+ "OperatorName",
+ "OperatorNo"
],
"type": "object",
"properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
"type": "string"
},
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
+ "OperatorName": {
+ "title": "NameType",
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "HasSubRoutes": {
- "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)",
- "type": "boolean"
+ "OperatorCode": {
+ "title": "String",
+ "description": "營運業者簡碼",
+ "type": "string"
},
- "Operators": {
- "description": "營運業者",
- "type": "array",
+ "OperatorNo": {
+ "title": "String",
+ "description": "營運業者編號[交通部票證資料系統定義]",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusSubRoute": {
+ "title": "BusSubRoute",
+ "description": "附屬路線資料型別",
+ "required": [
+ "Direction",
+ "OperatorIDs",
+ "SubRouteID",
+ "SubRouteName",
+ "SubRouteUID"
+ ],
+ "type": "object",
+ "properties": {
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "OperatorIDs": {
+ "title": "Array",
+ "description": "營運業者代碼",
+ "type": "array",
+ "items": {
+ "title": "String",
+ "type": "string"
+ }
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Headsign": {
+ "title": "String",
+ "description": "車頭描述",
+ "type": "string"
+ },
+ "HeadsignEn": {
+ "title": "String",
+ "description": "車頭英文描述",
+ "type": "string"
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "FirstBusTime": {
+ "title": "String",
+ "description": "平日第一班發車時間",
+ "type": "string"
+ },
+ "LastBusTime": {
+ "title": "String",
+ "description": "平日返程第一班發車時間",
+ "type": "string"
+ },
+ "HolidayFirstBusTime": {
+ "title": "String",
+ "description": "假日去程第一班發車時間",
+ "type": "string"
+ },
+ "HolidayLastBusTime": {
+ "title": "String",
+ "description": "假日返程第一班發車時間",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusRoute": {
+ "title": "BusRoute",
+ "description": "路線資料型別",
+ "required": [
+ "AuthorityID",
+ "BusRouteType",
+ "HasSubRoutes",
+ "Operators",
+ "ProviderID",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "UpdateTime",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "HasSubRoutes": {
+ "title": "Boolean",
+ "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)",
+ "type": "boolean"
+ },
+ "Operators": {
+ "title": "Array",
+ "description": "營運業者",
+ "type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.RouteOperator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.RouteOperator"
}
},
"AuthorityID": {
+ "title": "String",
"description": "業管機關代碼",
"type": "string"
},
"ProviderID": {
+ "title": "String",
"description": "資料提供平台代碼",
"type": "string"
},
"SubRoutes": {
+ "title": "Array",
"description": "附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆))",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSubRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSubRoute"
}
},
"BusRouteType": {
@@ -7801,51 +8007,66 @@
"type": "integer"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DepartureStopNameZh": {
+ "title": "String",
"description": "起站中文名稱",
"type": "string"
},
"DepartureStopNameEn": {
+ "title": "String",
"description": "起站英文名稱",
"type": "string"
},
"DestinationStopNameZh": {
+ "title": "String",
"description": "終點站中文名稱",
"type": "string"
},
"DestinationStopNameEn": {
+ "title": "String",
"description": "終點站英文名稱",
"type": "string"
},
"TicketPriceDescriptionZh": {
+ "title": "String",
"description": "票價中文敘述",
"type": "string"
},
"TicketPriceDescriptionEn": {
+ "title": "String",
"description": "票價英文敘述",
"type": "string"
},
"FareBufferZoneDescriptionZh": {
+ "title": "String",
"description": "收費緩衝區中文敘述",
"type": "string"
},
"FareBufferZoneDescriptionEn": {
+ "title": "String",
"description": "收費緩衝區英文敘述",
"type": "string"
},
"RouteMapImageUrl": {
+ "title": "String",
"description": "路線簡圖網址",
"type": "string"
},
"City": {
+ "title": "String",
"description": "路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"CityCode": {
+ "title": "String",
"description": "路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
@@ -7856,178 +8077,114 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.RouteOperator": {
- "title": "RouteOperator",
- "description": "營運業者資訊",
+ "PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop": {
+ "title": "Stop",
"required": [
- "OperatorID",
- "OperatorName",
- "OperatorCode",
- "OperatorNo"
+ "StopID",
+ "StopName"
],
"type": "object",
"properties": {
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "營運業者名稱"
- },
- "OperatorCode": {
- "description": "營運業者簡碼",
+ "StopID": {
+ "title": "String",
+ "description": "緩衝區站牌代碼",
"type": "string"
},
- "OperatorNo": {
- "description": "營運業者編號[交通部票證資料系統定義]",
+ "StopName": {
+ "title": "String",
+ "description": "站牌名稱",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusSubRoute": {
- "title": "BusSubRoute",
- "description": "附屬路線資料型別",
+ "PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone": {
+ "title": "BufferZone",
"required": [
- "SubRouteUID",
- "SubRouteID",
- "OperatorIDs",
- "SubRouteName",
- "Direction"
+ "Direction",
+ "FareBufferZoneDestination",
+ "FareBufferZoneOrigin",
+ "SectionSequence"
],
"type": "object",
"properties": {
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
- },
- "OperatorIDs": {
- "description": "營運業者代碼",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- },
- "Headsign": {
- "description": "車頭描述",
+ "ZoneID": {
+ "title": "String",
+ "description": "緩衝區代號",
"type": "string"
},
- "HeadsignEn": {
- "description": "車頭英文描述",
- "type": "string"
+ "SectionSequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "緩衝區順序",
+ "type": "integer"
},
"Direction": {
"format": "int32",
"title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "FirstBusTime": {
- "description": "平日第一班發車時間",
- "type": "string"
- },
- "LastBusTime": {
- "description": "平日返程第一班發車時間",
- "type": "string"
+ "FareBufferZoneOrigin": {
+ "title": "Stop",
+ "description": "緩衝區起點",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop"
+ }
+ ]
},
- "HolidayFirstBusTime": {
- "description": "假日去程第一班發車時間",
- "type": "string"
+ "FareBufferZoneDestination": {
+ "title": "Stop",
+ "description": "緩衝區訖點",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Stop"
+ }
+ ]
},
- "HolidayLastBusTime": {
- "description": "假日返程第一班發車時間",
+ "BufferZoneDescription": {
+ "title": "String",
+ "description": "收費緩衝區描述",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusRouteFare": {
- "title": "BusRouteFare",
- "description": "路線票價資料",
+ "PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare": {
+ "title": "Fare",
"required": [
- "RouteID",
- "OperatorID",
- "FarePricingType",
- "IsFreeBus",
- "IsForAllSubRoutes",
- "UpdateTime"
+ "FareClass",
+ "Price",
+ "TicketType"
],
"type": "object",
"properties": {
- "RouteID": {
- "description": "機關定義路線代號",
- "type": "string"
- },
- "RouteName": {
- "description": "路線名稱",
- "type": "string"
- },
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "SubRouteID": {
- "description": "機關定義附屬路線代碼",
- "type": "string"
- },
- "SubRouteName": {
- "description": "附屬路線名稱",
- "type": "string"
- },
- "FarePricingType": {
+ "TicketType": {
"format": "int32",
"title": "integer",
- "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']",
+ "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
"type": "integer"
},
- "IsFreeBus": {
+ "FareClass": {
"format": "int32",
"title": "integer",
- "description": "是否為免費公車 : [0:'否',1:'是']",
+ "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
"type": "integer"
},
- "IsForAllSubRoutes": {
+ "Price": {
"format": "int32",
- "title": "integer",
- "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']",
+ "title": "Int32",
+ "description": "計費價格(新台幣),其中-1表示不提供售票服務",
"type": "integer"
- },
- "SectionFares": {
- "description": "段次計費",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare"
- }
- },
- "StageFares": {
- "description": "計費站區間計費",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStageFare"
- }
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
}
}
},
- "Service.DTO.Version2.Bus.SectionFare": {
+ "PTX.Service.DTO.Bus.Specification.V2.SectionFare": {
"title": "SectionFare",
"description": "段次計費",
"required": [
@@ -8037,155 +8194,150 @@
"type": "object",
"properties": {
"BufferZones": {
+ "title": "Array",
"description": "緩衝區資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.BufferZone"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone"
}
},
"Fares": {
+ "title": "Array",
"description": "每段收費資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Fare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare+Fare"
}
}
}
},
- "Service.DTO.Version2.Bus.BusStageFare": {
- "title": "BusStageFare",
- "description": "此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)",
+ "PTX.Service.DTO.Bus.Specification.V2.BusStage": {
+ "title": "BusStage",
+ "description": "計費站",
"required": [
- "Direction",
- "OriginStage",
- "DestinationStage",
- "Fares"
+ "StopID"
],
"type": "object",
"properties": {
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "OriginStage": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStage",
- "title": "BusStage",
- "description": "起點計費站"
- },
- "DestinationStage": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStage",
- "title": "BusStage",
- "description": "訖點計費站"
+ "StopID": {
+ "title": "String",
+ "description": "站牌代碼",
+ "type": "string"
},
- "Fares": {
- "description": "票價內容",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFare"
- }
+ "StopName": {
+ "title": "String",
+ "description": "站牌名稱",
+ "type": "string"
}
}
},
- "Service.DTO.Version2.Bus.SectionFare.BufferZone": {
- "title": "BufferZone",
+ "PTX.Service.DTO.Bus.Specification.V2.ServiceDay": {
+ "title": "ServiceDay",
+ "description": "週內營運日資料",
"required": [
- "SectionSequence",
- "Direction",
- "FareBufferZoneOrigin",
- "FareBufferZoneDestination"
+ "Friday",
+ "Monday",
+ "Saturday",
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
- "ZoneID": {
- "description": "緩衝區代號",
- "type": "string"
+ "Sunday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "星期日是否營運 : [0:'否',1:'是']",
+ "type": "integer"
},
- "SectionSequence": {
+ "Monday": {
"format": "int32",
- "description": "緩衝區順序",
+ "title": "integer",
+ "description": "星期一是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "Direction": {
+ "Tuesday": {
"format": "int32",
"title": "integer",
- "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "description": "星期二是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "FareBufferZoneOrigin": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Stop",
- "title": "Stop",
- "description": "緩衝區起點"
+ "Wednesday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "星期三是否營運 : [0:'否',1:'是']",
+ "type": "integer"
},
- "FareBufferZoneDestination": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Stop",
- "title": "Stop",
- "description": "緩衝區訖點"
+ "Thursday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "星期四是否營運 : [0:'否',1:'是']",
+ "type": "integer"
},
- "BufferZoneDescription": {
- "description": "收費緩衝區描述",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.SectionFare.Fare": {
- "title": "Fare",
- "required": [
- "TicketType",
- "FareClass",
- "Price"
- ],
- "type": "object",
- "properties": {
- "TicketType": {
+ "Friday": {
"format": "int32",
"title": "integer",
- "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
+ "description": "星期五是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "FareClass": {
+ "Saturday": {
"format": "int32",
"title": "integer",
- "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
+ "description": "星期六是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "Price": {
+ "NationalHolidays": {
"format": "int32",
- "description": "計費價格",
+ "title": "integer",
+ "description": "國定假日是否營運 : [0:'否',1:'是']",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.BusStage": {
- "title": "BusStage",
- "description": "計費站",
+ "PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods": {
+ "title": "BusDiscountPeriods",
+ "description": "優惠時段",
"required": [
- "StopID"
+ "EndTime",
+ "ServiceDay",
+ "StartTime"
],
"type": "object",
"properties": {
- "StopID": {
- "description": "站牌代碼",
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "營運日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceDay"
+ }
+ ]
+ },
+ "StartTime": {
+ "title": "String",
+ "description": "開始時間(HH:mm制)",
"type": "string"
},
- "StopName": {
- "description": "站牌名稱",
+ "EndTime": {
+ "title": "String",
+ "description": "結束時間(HH:mm制)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusFare": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusFare": {
"title": "BusFare",
"description": "票票價種類及費率說明",
"required": [
- "TicketType",
"FareClass",
- "Price"
+ "Price",
+ "TicketType"
],
"type": "object",
"properties": {
"FareName": {
+ "title": "String",
"description": "票價名稱",
"type": "string"
},
@@ -8203,387 +8355,470 @@
},
"Price": {
"format": "int32",
- "description": "計費價格(新臺幣)",
+ "title": "Int32",
+ "description": "計費價格(新台幣),其中-1表示不提供售票服務",
"type": "integer"
},
"DiscountPeriods": {
+ "title": "Array",
"description": "優惠時段",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusDiscountPeriods"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods"
}
}
}
},
- "Service.DTO.Version2.Bus.SectionFare.Stop": {
- "title": "Stop",
+ "PTX.Service.DTO.Bus.Specification.V2.BusStageFare": {
+ "title": "BusStageFare",
+ "description": "此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)",
"required": [
- "StopID"
+ "DestinationStage",
+ "Direction",
+ "Fares",
+ "OriginStage"
],
"type": "object",
"properties": {
- "StopID": {
- "description": "緩衝區站牌代碼",
- "type": "string"
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
},
- "StopName": {
- "description": "站牌名稱",
- "type": "string"
+ "OriginStage": {
+ "title": "BusStage",
+ "description": "起點計費站",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage"
+ }
+ ]
+ },
+ "DestinationStage": {
+ "title": "BusStage",
+ "description": "訖點計費站",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStage"
+ }
+ ]
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "票價內容",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFare"
+ }
}
}
},
- "Service.DTO.Version2.Bus.BusDiscountPeriods": {
- "title": "BusDiscountPeriods",
- "description": "優惠時段",
+ "PTX.Service.DTO.Bus.Specification.V2.BusRouteFare": {
+ "title": "BusRouteFare",
+ "description": "路線票價資料",
"required": [
- "ServiceDay",
- "StartTime",
- "EndTime"
+ "FarePricingType",
+ "IsForAllSubRoutes",
+ "IsFreeBus",
+ "OperatorID",
+ "RouteID",
+ "UpdateTime"
],
"type": "object",
"properties": {
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.ServiceDay",
- "title": "ServiceDay",
- "description": "營運日型態"
+ "RouteID": {
+ "title": "String",
+ "description": "機關定義路線代號",
+ "type": "string"
},
- "StartTime": {
- "description": "開始時間(HH:mm制)",
+ "RouteName": {
+ "title": "String",
+ "description": "路線名稱",
"type": "string"
},
- "EndTime": {
- "description": "結束時間(HH:mm制)",
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.ServiceDay": {
- "title": "ServiceDay",
- "required": [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ],
- "type": "object",
- "properties": {
- "Sunday": {
- "format": "int32",
- "title": "integer",
- "description": "星期日是否營運 : [0:'否',1:'是']",
- "type": "integer"
},
- "Monday": {
- "format": "int32",
- "title": "integer",
- "description": "星期一是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SubRouteID": {
+ "title": "String",
+ "description": "機關定義附屬路線代碼",
+ "type": "string"
},
- "Tuesday": {
- "format": "int32",
- "title": "integer",
- "description": "星期二是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SubRouteName": {
+ "title": "String",
+ "description": "附屬路線名稱",
+ "type": "string"
},
- "Wednesday": {
+ "FarePricingType": {
"format": "int32",
"title": "integer",
- "description": "星期三是否營運 : [0:'否',1:'是']",
+ "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']",
"type": "integer"
},
- "Thursday": {
+ "IsFreeBus": {
"format": "int32",
"title": "integer",
- "description": "星期四是否營運 : [0:'否',1:'是']",
+ "description": "是否為免費公車 : [0:'否',1:'是']",
"type": "integer"
},
- "Friday": {
+ "IsForAllSubRoutes": {
"format": "int32",
"title": "integer",
- "description": "星期五是否營運 : [0:'否',1:'是']",
+ "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']",
"type": "integer"
},
- "Saturday": {
- "format": "int32",
- "title": "integer",
- "description": "星期六是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SectionFares": {
+ "title": "Array",
+ "description": "段次計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SectionFare"
+ }
},
- "NationalHolidays": {
- "format": "int32",
- "title": "integer",
- "description": "國定假日是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "StageFares": {
+ "title": "Array",
+ "description": "計費站區間計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStageFare"
+ }
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusSchedule": {
- "title": "BusSchedule",
- "required": [
- "RouteUID",
- "RouteID",
- "RouteName",
- "SubRouteUID",
- "SubRouteID",
- "SubRouteName",
- "Direction",
- "UpdateTime",
- "VersionID"
- ],
+ "PTX.Service.DTO.Bus.Specification.V2.DatePeriod": {
+ "title": "DatePeriod",
"type": "object",
"properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "StartDate": {
+ "title": "String",
+ "description": "營運起始日(格式: yyyy-MM-dd)",
"type": "string"
},
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "EndDate": {
+ "title": "String",
+ "description": "營運結束日(格式: yyyy-MM-dd)",
"type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.SpecialDay": {
+ "title": "SpecialDay",
+ "description": "特殊營運日資料",
+ "type": "object",
+ "properties": {
+ "Dates": {
+ "title": "Array",
+ "description": "不連續特殊日期",
+ "type": "array",
+ "items": {
+ "title": "String",
+ "type": "string"
+ }
},
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
+ "DatePeriod": {
+ "title": "DatePeriod",
+ "description": "連續特殊日期",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.DatePeriod"
+ }
+ ]
},
- "Direction": {
+ "ServiceStatus": {
"format": "int32",
"title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "description": "營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']",
"type": "integer"
},
- "OperatorID": {
- "description": "營運業者代碼",
+ "Description": {
+ "title": "String",
+ "description": "特殊營運描述",
"type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusStopTime": {
+ "title": "BusStopTime",
+ "description": "公車停靠時間資料",
+ "required": [
+ "ArrivalTime",
+ "DepartureTime",
+ "StopID",
+ "StopName",
+ "StopSequence",
+ "StopUID"
+ ],
+ "type": "object",
+ "properties": {
+ "StopSequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "路線經過站牌之順序(由1開始)",
+ "type": "integer"
},
- "OperatorCode": {
- "description": "營運業者簡碼",
+ "StopUID": {
+ "title": "String",
+ "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
- "Timetables": {
- "description": "預定班表",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusTimetable"
- }
+ "StopID": {
+ "title": "String",
+ "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "type": "string"
},
- "Frequencys": {
- "description": "發車班距",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFrequency"
- }
+ "StopName": {
+ "title": "NameType",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "ArrivalTime": {
+ "title": "String",
+ "description": "到站時間,格式為:HH:mm",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
+ "DepartureTime": {
+ "title": "String",
+ "description": "離站時間,格式為:HH:mm",
+ "type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusTimetable": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusTimetable": {
"title": "BusTimetable",
+ "description": "班次資料",
"required": [
"StopTimes"
],
"type": "object",
"properties": {
"TripID": {
+ "title": "String",
"description": "班次代碼,為無意義之編碼",
"type": "string"
},
"ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.ServiceDay",
"title": "ServiceDay",
- "description": "週內營運日"
+ "description": "週內營運日",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceDay"
+ }
+ ]
},
"SpecialDays": {
+ "title": "Array",
"description": "特殊營運日",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SpecialDay"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay"
}
},
"StopTimes": {
+ "title": "Array",
"description": "公車停靠時間資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopTime"
}
}
}
},
- "Service.DTO.Version2.Bus.BusFrequency": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusFrequency": {
"title": "BusFrequency",
+ "description": "發車班距資料",
"required": [
- "StartTime",
"EndTime",
+ "MaxHeadwayMins",
"MinHeadwayMins",
- "MaxHeadwayMins"
+ "StartTime"
],
"type": "object",
"properties": {
"StartTime": {
+ "title": "String",
"description": "發車班距起始適用時間,格式為: HH:mm",
"type": "string"
},
"EndTime": {
+ "title": "String",
"description": "發車班距結束適用時間,格式為: HH:mm",
"type": "string"
},
"MinHeadwayMins": {
"format": "int32",
+ "title": "Int32",
"description": "最小班距時間(分鐘)",
"type": "integer"
},
"MaxHeadwayMins": {
"format": "int32",
+ "title": "Int32",
"description": "最大班距時間(分鐘)",
"type": "integer"
},
"ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.ServiceDay",
"title": "ServiceDay",
- "description": "週內營運日"
+ "description": "週內營運日",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceDay"
+ }
+ ]
},
"SpecialDays": {
+ "title": "Array",
"description": "特殊營運日",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SpecialDay"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay"
}
}
}
},
- "Service.DTO.Version2.Bus.SpecialDay": {
- "title": "SpecialDay",
+ "PTX.Service.DTO.Bus.Specification.V2.BusSchedule": {
+ "title": "BusSchedule",
+ "description": "班表資料",
+ "required": [
+ "Direction",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "SubRouteID",
+ "SubRouteName",
+ "SubRouteUID",
+ "UpdateTime",
+ "VersionID"
+ ],
"type": "object",
"properties": {
- "Dates": {
- "description": "不連續特殊日期",
- "type": "array",
- "items": {
- "type": "string"
- }
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
},
- "DatePeriod": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.DatePeriod",
- "title": "DatePeriod",
- "description": "連續特殊日期"
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
},
- "ServiceStatus": {
- "format": "int32",
- "title": "integer",
- "description": "營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']",
- "type": "integer"
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "Description": {
- "description": "特殊營運描述",
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusStopTime": {
- "title": "BusStopTime",
- "description": "公車停靠時間資料",
- "required": [
- "StopSequence",
- "StopUID",
- "StopID",
- "StopName",
- "ArrivalTime",
- "DepartureTime"
- ],
- "type": "object",
- "properties": {
- "StopSequence": {
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
"format": "int32",
- "description": "路線經過站牌之順序(由1開始)",
+ "title": "integer",
+ "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
"type": "string"
},
- "StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "OperatorCode": {
+ "title": "String",
+ "description": "營運業者簡碼",
"type": "string"
},
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
+ "Timetables": {
+ "title": "Array",
+ "description": "預定班表",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusTimetable"
+ }
},
- "ArrivalTime": {
- "description": "到站時間,格式為:HH:mm",
- "type": "string"
+ "Frequencys": {
+ "title": "Array",
+ "description": "發車班距",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFrequency"
+ }
},
- "DepartureTime": {
- "description": "離站時間,格式為:HH:mm",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.DatePeriod": {
- "title": "DatePeriod",
- "type": "object",
- "properties": {
- "StartDate": {
- "description": "營運起始日(格式: yyyy-MM-dd)",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "EndDate": {
- "description": "營運結束日(格式: yyyy-MM-dd)",
- "type": "string"
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.BusShape": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusShape": {
"title": "BusShape",
"description": "公車線型資料",
"required": [
- "RouteUID",
- "RouteID",
- "RouteName",
"Direction",
+ "EncodedPolyline",
"Geometry",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -8591,10 +8826,6 @@
"description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "Geometry": {
- "description": "well-known text,為路線軌跡資料",
- "type": "string"
- },
"UpdateTime": {
"title": "DateTime",
"description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -8602,56 +8833,133 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
+ },
+ "Geometry": {
+ "title": "String",
+ "description": "well-known text,為路線軌跡資料",
+ "type": "string"
+ },
+ "EncodedPolyline": {
+ "title": "String",
+ "description": "路線軌跡編碼(encoded polyline)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.StationStop": {
+ "title": "StationStop",
+ "description": "站牌與路線資料型別",
+ "required": [
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "StopID",
+ "StopName",
+ "StopUID"
+ ],
+ "type": "object",
+ "properties": {
+ "StopUID": {
+ "title": "String",
+ "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "StopID": {
+ "title": "String",
+ "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "StopName": {
+ "title": "NameType",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version2.Bus.BusStation": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusStation": {
"title": "BusStation",
"description": "站牌/位資料型別",
"required": [
- "StationUID",
+ "StationGroupID",
"StationID",
"StationName",
"StationPosition",
- "StationGroupID",
+ "StationUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "站位代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站位名稱"
+ "description": "站位名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "站位位置"
+ "description": "站位位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationAddress": {
+ "title": "String",
"description": "站位地址",
"type": "string"
},
"StationGroupID": {
+ "title": "String",
"description": "站牌所屬的組站位ID",
"type": "string"
},
"Stops": {
+ "title": "Array",
"description": "站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.StationStop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.StationStop"
}
},
"UpdateTime": {
@@ -8661,78 +8969,52 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.StationStop": {
- "title": "StationStop",
- "description": "站牌與路線資料型別",
- "required": [
- "StopName",
- "RouteName"
- ],
- "type": "object",
- "properties": {
- "StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
- "type": "string"
- },
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
- },
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusStationGroup": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusStationGroup": {
"title": "BusStationGroup",
"description": "組站位資料型別",
"required": [
- "StationGroupUID",
"StationGroupID",
"StationGroupName",
"StationGroupPosition",
+ "StationGroupUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationGroupUID": {
+ "title": "String",
"description": "組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StationGroupID": {
+ "title": "String",
"description": "組站位代碼",
"type": "string"
},
"StationGroupName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "組站位名稱"
+ "description": "組站位名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationGroupPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "組站位位置"
+ "description": "組站位位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"UpdateTime": {
"title": "DateTime",
@@ -8741,77 +9023,97 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.BusStop": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusStop": {
"title": "BusStop",
"description": "站牌/位資料型別",
"required": [
- "StopUID",
- "StopID",
"AuthorityID",
+ "StationGroupID",
+ "StopID",
"StopName",
"StopPosition",
- "StationGroupID",
+ "StopUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"AuthorityID": {
+ "title": "String",
"description": "業管機關代碼",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "站牌位置"
+ "description": "站牌位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StopAddress": {
+ "title": "String",
"description": "站牌地址",
"type": "string"
},
"Bearing": {
+ "title": "String",
"description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "站牌所屬的站位ID",
"type": "string"
},
"StationGroupID": {
+ "title": "String",
"description": "站牌所屬的組站位ID",
"type": "string"
},
"StopDescription": {
+ "title": "String",
"description": "站牌詳細說明描述",
"type": "string"
},
"City": {
+ "title": "String",
"description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"CityCode": {
+ "title": "String",
"description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"LocationCityCode": {
+ "title": "String",
"description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
@@ -8822,59 +9124,73 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.BusStopOfRoute": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute": {
"title": "BusStopOfRoute",
"description": "路線站序資料",
"required": [
- "RouteUID",
"RouteID",
"RouteName",
- "SubRouteUID",
+ "RouteUID",
+ "Stops",
"SubRouteID",
"SubRouteName",
- "Stops",
+ "SubRouteUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Operators": {
+ "title": "Array",
"description": "營運業者",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.RouteOperator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.RouteOperator"
}
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -8883,18 +9199,21 @@
"type": "integer"
},
"City": {
+ "title": "String",
"description": "站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"CityCode": {
+ "title": "String",
"description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"Stops": {
+ "title": "Array",
"description": "所有經過站牌",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.Stop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Stop"
}
},
"UpdateTime": {
@@ -8904,29 +9223,31 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.BusVehicleInfo": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo": {
"title": "BusVehicleInfo",
"description": "公車車輛基本資料",
"required": [
"PlateNumb",
- "VehicleType",
- "UpdateTime"
+ "UpdateTime",
+ "VehicleType"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"VehicleType": {
"format": "int32",
"title": "integer",
- "description": "車輛種類 : [0:'一般',1:'低地板',2:'復康巴士',3:'小型巴士']",
+ "description": "車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士']",
"type": "integer"
},
"UpdateTime": {
@@ -8936,18 +9257,19 @@
}
}
},
- "Service.DTO.Version2.Bus.BusVersion": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusVersion": {
"title": "BusVersion",
"description": "公車版本資料型別",
"required": [
- "VersionID",
+ "UpdateCheckTime",
"UpdateTime",
- "UpdateCheckTime"
+ "VersionID"
],
"type": "object",
"properties": {
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
},
@@ -8966,10 +9288,12 @@
},
"tags": [
{
- "name": "CityBus"
+ "name": "CityBus",
+ "description": "市區公車"
},
{
- "name": "InterCityBus"
+ "name": "InterCityBus",
+ "description": "公路客運"
}
]
}
diff --git a/oas.bus.v3.json b/oas.bus.v3.json
index 1aa59bec..c84632d0 100644
--- a/oas.bus.v3.json
+++ b/oas.bus.v3.json
@@ -1,12 +1,12 @@
{
"swagger": "2.0",
"info": {
- "version": "v3",
"title": "MOTC Transport API V3",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\r\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\r\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\r\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\r\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v3/Bus/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v3/Bus/api-docs/oas)",
+ "version": "v3"
},
"host": "ptx.transportdata.tw",
- "basePath": "/MOTC/",
+ "basePath": "/MOTC",
"schemes": [
"https"
],
@@ -18,15 +18,14 @@
],
"summary": "取得指定[縣市]的市區公車路網資料",
"operationId": "CityBusApi_Network",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -38,40 +37,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -79,8 +88,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -88,30 +97,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Network]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Network]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -123,16 +121,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車站牌資料",
- "operationId": "CityBusApi_Stop",
- "consumes": [],
+ "operationId": "CityBusApi_Stop_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -144,40 +141,56 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -185,8 +198,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -194,30 +207,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Stop]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Stop]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -229,16 +231,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車站位資料",
- "operationId": "CityBusApi_Station",
- "consumes": [],
+ "operationId": "CityBusApi_Station_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -250,40 +251,56 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -291,8 +308,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -300,30 +317,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Station]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Station]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -336,16 +342,15 @@
],
"summary": "取得指定[縣市]的市區公車路線資料",
"description": "市區公車之路線資料",
- "operationId": "CityBusApi_Route",
- "consumes": [],
+ "operationId": "CityBusApi_Route_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -357,40 +362,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -398,8 +413,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -407,30 +422,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Route]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Route]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -444,15 +448,14 @@
"summary": "取得指定[縣市]的市區公車附屬路線資料",
"description": "市區公車之附屬路線資料",
"operationId": "CityBusApi_SubRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -464,40 +467,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -505,8 +518,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -514,30 +527,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.SubRoute]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.SubRoute]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -549,16 +551,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車路線定期首末班車資料",
- "operationId": "CityBusApi_FirstLastTripInfo",
- "consumes": [],
+ "operationId": "CityBusApi_FirstLastTripInfo_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -570,40 +571,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -611,8 +622,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -620,30 +631,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.FirstLastTripInfo]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -656,15 +656,14 @@
],
"summary": "取得指定[縣市]的市區公車行駛路線之營業所的資料",
"operationId": "CityBusApi_Depot",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -676,40 +675,56 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -717,8 +732,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -726,30 +741,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Depot]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Depot]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -762,16 +766,15 @@
],
"summary": "取得指定[縣市]的市區公車路線站序資料",
"description": "市區公車之路線站序資料",
- "operationId": "CityBusApi_StopOfRoute",
- "consumes": [],
+ "operationId": "CityBusApi_StopOfRoute_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -783,40 +786,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -824,8 +837,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -833,30 +846,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.StopOfRoute]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.StopOfRoute]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -868,16 +870,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車顯示用路線站序資料",
- "operationId": "CityBusApi_DisplayStopOfRoute",
- "consumes": [],
+ "operationId": "CityBusApi_DisplayStopOfRoute_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -889,40 +890,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -930,8 +941,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -939,30 +950,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DisplayStopOfRoute]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -974,16 +974,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車路線票價資料",
- "operationId": "CityBusApi_RouteFare",
- "consumes": [],
+ "operationId": "CityBusApi_RouteFare_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -995,40 +994,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1036,8 +1045,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1045,30 +1054,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteFare]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteFare]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1080,16 +1078,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車定期營運班表",
- "operationId": "CityBusApi_Schedule",
- "consumes": [],
+ "operationId": "CityBusApi_Schedule_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -1101,40 +1098,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1142,8 +1149,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1151,30 +1158,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Schedule]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusGWrapper[PTX.Service.DTO.Bus.Specification.V3.Schedule]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1187,15 +1183,14 @@
],
"summary": "取得指定[縣市]的市區公車每日營運時刻表",
"operationId": "CityBusApi_DailyTimeTable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -1207,40 +1202,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1248,8 +1253,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1257,30 +1262,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DailyTimeTable]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1293,16 +1287,15 @@
],
"summary": "取得指定[縣市]的公車動態定時資料(A1)",
"description": "市區公車之定時資料(A1)",
- "operationId": "CityBusApi_RealTimeByFrequency",
- "consumes": [],
+ "operationId": "CityBusApi_RealTimeByFrequency_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1314,40 +1307,56 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1355,8 +1364,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1364,30 +1373,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1400,16 +1398,15 @@
],
"summary": "取得指定[縣市],[路線名稱]的公車動態定時資料(A1)",
"description": "市區公車之定時資料(A1)",
- "operationId": "CityBusApi_RealTimeByFrequency_1",
- "consumes": [],
+ "operationId": "CityBusApi_RealTimeByFrequency_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1421,47 +1418,63 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1469,8 +1482,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1478,30 +1491,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1514,16 +1516,15 @@
],
"summary": "取得指定[縣市]的公車動態定點資料(A2)",
"description": "市區公車之定點資料(A2)",
- "operationId": "CityBusApi_RealTimeNearStop",
- "consumes": [],
+ "operationId": "CityBusApi_RealTimeNearStop_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1535,40 +1536,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1576,8 +1587,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1585,30 +1596,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1621,16 +1621,15 @@
],
"summary": "取得指定[縣市],[路線名稱]的公車動態定點資料(A2)",
"description": "市區公車之定點資料(A2)",
- "operationId": "CityBusApi_RealTimeNearStop_1",
- "consumes": [],
+ "operationId": "CityBusApi_RealTimeNearStop_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1642,47 +1641,57 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1690,8 +1699,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1699,30 +1708,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1734,17 +1732,16 @@
"CityBus"
],
"summary": "取得指定[縣市]的公車預估到站資料(N1)",
- "description": "[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間",
- "operationId": "CityBusApi_EstimatedTimeOfArrival",
- "consumes": [],
+ "description": "[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間",
+ "operationId": "CityBusApi_EstimatedTimeOfArrival_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1756,40 +1753,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1797,8 +1804,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1806,30 +1813,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1841,17 +1837,16 @@
"CityBus"
],
"summary": "取得指定[縣市],[路線名稱]的公車預估到站資料(N1)",
- "description": "[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間",
- "operationId": "CityBusApi_EstimatedTimeOfArrival_1",
- "consumes": [],
+ "description": "[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間",
+ "operationId": "CityBusApi_EstimatedTimeOfArrival_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1863,47 +1858,57 @@
}
},
{
- "name": "RouteName",
"in": "path",
+ "name": "RouteName",
"description": "繁體中文路線名稱,如'307'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -1911,8 +1916,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1920,30 +1925,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -1957,15 +1951,14 @@
"summary": "取得指定[縣市]的公車通阻資料",
"description": "市區公車之公車通阻資料",
"operationId": "CityBusApi_Alert",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1977,40 +1970,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2018,8 +2021,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2027,30 +2030,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Alert]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.Alert]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2063,16 +2055,15 @@
],
"summary": "取得指定[縣市]的公車最新消息",
"description": "市區公車之最新消息",
- "operationId": "CityBusApi_News",
- "consumes": [],
+ "operationId": "CityBusApi_News_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -2084,40 +2075,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2125,8 +2126,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2134,30 +2135,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.News]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.News]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2169,16 +2159,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車營運業者資料",
- "operationId": "CityBusApi_Operator",
- "consumes": [],
+ "operationId": "CityBusApi_Operator_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2190,40 +2179,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2231,8 +2230,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2240,30 +2239,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Operator]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Operator]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2275,16 +2263,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車車輛基本資料",
- "operationId": "CityBusApi_Vehicle",
- "consumes": [],
+ "operationId": "CityBusApi_Vehicle_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2296,40 +2283,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2337,8 +2334,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2346,30 +2343,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Vehicle]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Vehicle]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2382,15 +2368,14 @@
],
"summary": "取得指定[縣市]的市區公車車輛所屬的營業站基本資料",
"operationId": "CityBusApi_VehicleDepot",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2402,80 +2387,79 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
- "description": "指定來源格式",
- "required": true,
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
- "JSON",
- "XML"
+ "true",
+ "false"
]
},
{
- "name": "health",
"in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
"type": "string",
"enum": [
- "true",
- "false"
+ "JSON",
+ "XML"
]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleDepot]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleDepot]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2488,15 +2472,14 @@
],
"summary": "取得指定[縣市]的市區公車車輛所屬路線資料",
"operationId": "CityBusApi_VehicleRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2508,40 +2491,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2549,8 +2542,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2558,30 +2551,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleRoute]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleRoute]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2593,16 +2575,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車空間線型資料",
- "operationId": "CityBusApi_Shape",
- "consumes": [],
+ "operationId": "CityBusApi_Shape_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2614,40 +2595,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2655,8 +2646,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2664,30 +2655,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Shape]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Shape]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2700,15 +2680,14 @@
],
"summary": "取得指定[縣市]的市區公車路線網路拓撲資料",
"operationId": "CityBusApi_RouteNetwork",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2720,40 +2699,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2761,8 +2750,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2770,30 +2759,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteNetwork]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteNetwork]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2805,16 +2783,15 @@
"CityBus"
],
"summary": "取得指定[縣市]的市區公車路線站間旅行時間基本資料",
- "operationId": "CityBusApi_S2STravelTime",
- "consumes": [],
+ "operationId": "CityBusApi_S2STravelTime_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市",
"required": true,
"type": "string",
@@ -2826,40 +2803,50 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "health",
+ "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"type": "string",
"enum": [
"true",
@@ -2867,8 +2854,8 @@
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2876,30 +2863,19 @@
"JSON",
"XML"
]
- },
- {
- "name": "health",
- "in": "query",
- "description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
- "required": false,
- "type": "string",
- "enum": [
- "true",
- "false"
- ]
}
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.S2STravelTime]"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.S2STravelTime]"
}
},
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth"
}
}
}
@@ -2907,36 +2883,7 @@
}
},
"definitions": {
- "Service.DTO.Version3.Base.DisplayHealth": {
- "title": "DisplayHealth",
- "description": "API服務健康狀態",
- "required": [
- "ServiceID",
- "ServiceName"
- ],
- "type": "object",
- "properties": {
- "ServiceID": {
- "description": "API服務代碼",
- "type": "string"
- },
- "ServiceName": {
- "description": "API服務中文名稱",
- "type": "string"
- },
- "Inbound": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Inbound",
- "title": "Inbound",
- "description": "本平台資料來源轉入狀態"
- },
- "Outbound": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Outbound",
- "title": "Outbound",
- "description": "本平台API狀態"
- }
- }
- },
- "Service.DTO.Version3.Base.Inbound": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.Inbound": {
"title": "Inbound",
"description": "本平台資料來源轉入狀態",
"required": [
@@ -2957,12 +2904,13 @@
"type": "integer"
},
"Reason": {
+ "title": "String",
"description": "檢核失敗原因",
"type": "string"
}
}
},
- "Service.DTO.Version3.Base.Outbound": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.Outbound": {
"title": "Outbound",
"description": "本平台API狀態",
"required": [
@@ -2983,128 +2931,166 @@
"type": "integer"
},
"Reason": {
+ "title": "String",
"description": "檢核失敗原因",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]": {
- "title": "BusA1DataList",
+ "PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth": {
+ "title": "DisplayHealth",
+ "description": "API服務健康狀態",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "A1Datas"
+ "ServiceID",
+ "ServiceName"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateInterval": {
- "format": "int32",
- "description": "[平臺]資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "ServiceID": {
+ "title": "String",
+ "description": "API服務代碼",
"type": "string"
},
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
+ "ServiceName": {
+ "title": "String",
+ "description": "API服務中文名稱",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
+ "Inbound": {
+ "title": "Inbound",
+ "description": "本平台資料來源轉入狀態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Inbound"
+ }
+ ]
},
- "A1Datas": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.A1Data"
- }
+ "Outbound": {
+ "title": "Outbound",
+ "description": "本平台API狀態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Outbound"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Bus.A1Data": {
- "title": "A1Data",
- "required": [
- "PlateNumb",
- "OperatorID",
- "OperatorCode",
- "RouteID",
- "Direction",
- "BusPosition",
- "Speed",
- "Azimuth",
- "DutyStatus",
- "BusStatus",
- "RecTime",
- "TransTime"
- ],
+ "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": {
+ "title": "NameType",
"type": "object",
"properties": {
- "PlateNumb": {
- "description": "車牌號碼",
+ "Zh_tw": {
+ "title": "String",
+ "description": "中文繁體名稱",
"type": "string"
},
- "OperatorID": {
- "description": "營運業者代碼",
+ "En": {
+ "title": "String",
+ "description": "英文名稱",
"type": "string"
- },
- "OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "營運業者名稱"
- },
+ }
+ }
+ },
+ "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": {
+ "title": "PointType",
+ "description": "座標資料型別",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "description": "位置緯度(WGS84)",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "description": "位置經度(WGS84)",
+ "type": "number"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.A1Data": {
+ "title": "A1Data",
+ "required": [
+ "Azimuth",
+ "BusPosition",
+ "BusStatus",
+ "Direction",
+ "DutyStatus",
+ "OperatorCode",
+ "OperatorID",
+ "PlateNumb",
+ "RecTime",
+ "RouteID",
+ "Speed",
+ "TransTime"
+ ],
+ "type": "object",
+ "properties": {
+ "PlateNumb": {
+ "title": "String",
+ "description": "車牌號碼",
+ "type": "string"
+ },
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "OperatorName": {
+ "title": "NameType",
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TripID": {
+ "title": "String",
"description": "班次代碼",
"type": "string"
},
@@ -3121,17 +3107,23 @@
"type": "integer"
},
"BusPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "車輛位置經度"
+ "description": "車輛位置經度",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"Speed": {
"format": "double",
+ "title": "Double",
"description": "行駛速度(kph)",
"type": "number"
},
"Azimuth": {
"format": "double",
+ "title": "Double",
"description": "方位角",
"type": "number"
},
@@ -3175,47 +3167,16 @@
}
}
},
- "Service.DTO.Version3.Base.NameType": {
- "title": "NameType",
- "description": "名稱資料型別",
- "type": "object",
- "properties": {
- "Zh_tw": {
- "description": "中文繁體名稱",
- "type": "string"
- },
- "En": {
- "description": "英文名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Base.PointType": {
- "title": "PointType",
- "description": "座標資料型別",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "description": "位置緯度(WGS84)",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "description": "位置經度(WGS84)",
- "type": "number"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]": {
- "title": "BusA2DataList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A1Data]": {
+ "title": "BusA1DataList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
+ "A1Datas",
"AuthorityCode",
- "A2Datas"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3226,6 +3187,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -3236,91 +3198,109 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "A2Datas": {
- "description": "資料(陣列)",
+ "A1Datas": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.A2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A1Data"
}
}
}
},
- "Service.DTO.Version3.Bus.A2Data": {
+ "PTX.Service.DTO.Bus.Specification.V3.A2Data": {
"title": "A2Data",
"required": [
- "PlateNumb",
- "OperatorID",
+ "A2EventType",
+ "Direction",
"OperatorCode",
+ "OperatorID",
+ "PlateNumb",
+ "RecTime",
"RouteID",
- "Direction",
"StopID",
- "A2EventType",
- "RecTime",
"TransTime"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TripID": {
+ "title": "String",
"description": "班次代碼",
"type": "string"
},
@@ -3331,17 +3311,23 @@
"type": "integer"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代號(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MessageType": {
"format": "int32",
@@ -3395,15 +3381,16 @@
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Alert]": {
- "title": "BusAlertList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.A2Data]": {
+ "title": "BusA2DataList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
+ "A2Datas",
"AuthorityCode",
- "Alerts"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3414,6 +3401,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -3424,33 +3412,145 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Alerts": {
- "description": "資料(陣列)",
+ "A2Datas": {
+ "title": "Array",
+ "description": "資料列表",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.A2Data"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Scope+Route": {
+ "title": "Route",
+ "description": "路線資料",
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之班次代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute": {
+ "title": "SubRoute",
+ "description": "附屬路線資料",
+ "type": "object",
+ "properties": {
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬班次代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Scope+Stop": {
+ "title": "Stop",
+ "description": "站牌資料",
+ "type": "object",
+ "properties": {
+ "StopID": {
+ "title": "String",
+ "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "StopName": {
+ "title": "NameType",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Scope+Trip": {
+ "title": "Trip",
+ "description": "班次代碼資料",
+ "type": "object",
+ "properties": {
+ "TripID": {
+ "title": "String",
+ "description": "地區既用中之班次代碼(為原資料內碼)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Scope": {
+ "title": "Scope",
+ "description": "通阻影響範圍",
+ "type": "object",
+ "properties": {
+ "Routes": {
+ "title": "Array",
+ "description": "路線資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Route"
+ }
+ },
+ "SubRoutes": {
+ "title": "Array",
+ "description": "附屬路線資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+SubRoute"
+ }
+ },
+ "Stops": {
+ "title": "Array",
+ "description": "站牌資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Stop"
+ }
+ },
+ "TripIDs": {
+ "title": "Array",
+ "description": "班次代碼資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Alert"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope+Trip"
}
}
}
},
- "Service.DTO.Version3.Bus.Alert": {
+ "PTX.Service.DTO.Bus.Specification.V3.Alert": {
"title": "Alert",
"required": [
"AlertID",
@@ -3459,27 +3559,36 @@
"type": "object",
"properties": {
"AlertID": {
+ "title": "String",
"description": "通阻事件原單位發布代碼",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "通阻標題",
"type": "string"
},
"Scope": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Scope",
"title": "Scope",
- "description": "通阻影響範圍"
+ "description": "通阻影響範圍",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Scope"
+ }
+ ]
},
"Direction": {
+ "title": "String",
"description": "影響方向",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "事件描述",
"type": "string"
},
"AlertURL": {
+ "title": "String",
"description": "詳細描述網站連結",
"type": "string"
},
@@ -3505,167 +3614,143 @@
}
}
},
- "Service.DTO.Version3.Bus.Scope": {
- "title": "Scope",
- "description": "通阻影響範圍",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.Alert]": {
+ "title": "BusAlertList",
+ "description": "基本 wrapper",
+ "required": [
+ "Alerts",
+ "AuthorityCode",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
+ ],
"type": "object",
"properties": {
- "Routes": {
- "description": "路線資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Scope.Route"
- }
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
},
- "SubRoutes": {
- "description": "附屬路線資料",
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "[平臺]資料更新週期(秒)",
+ "type": "integer"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
+ },
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ },
+ "Alerts": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Scope.SubRoute"
- }
- },
- "Stops": {
- "description": "站牌資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Scope.Stop"
- }
- },
- "TripIDs": {
- "description": "班次代碼資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Scope.Trip"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Alert"
}
}
}
},
- "Service.DTO.Version3.Bus.Scope.Route": {
- "title": "Route",
- "description": "路線資料",
+ "PTX.Service.DTO.Bus.Specification.V3.StopTime": {
+ "title": "StopTime",
+ "required": [
+ "ArrivalTime",
+ "DepartureTime",
+ "StopID",
+ "StopSequence",
+ "StopUID"
+ ],
"type": "object",
"properties": {
- "RouteID": {
- "description": "地區既用中之班次代碼(為原資料內碼)",
- "type": "string"
+ "StopSequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "路線經過站牌之順序(由1開始)",
+ "type": "integer"
},
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- }
- }
- },
- "Service.DTO.Version3.Bus.Scope.SubRoute": {
- "title": "SubRoute",
- "description": "附屬路線資料",
- "type": "object",
- "properties": {
- "SubRouteID": {
- "description": "地區既用中之附屬班次代碼(為原資料內碼)",
+ "StopUID": {
+ "title": "String",
+ "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- }
- }
- },
- "Service.DTO.Version3.Bus.Scope.Stop": {
- "title": "Stop",
- "description": "站牌資料",
- "type": "object",
- "properties": {
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
- }
- }
- },
- "Service.DTO.Version3.Bus.Scope.Trip": {
- "title": "Trip",
- "description": "班次代碼資料",
- "type": "object",
- "properties": {
- "TripID": {
- "description": "地區既用中之班次代碼(為原資料內碼)",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "ArrivalTime": {
+ "title": "String",
+ "description": "到站時間,格式為:HH:mm",
+ "type": "string"
+ },
+ "DepartureTime": {
+ "title": "String",
+ "description": "離站時間,格式為:HH:mm",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DailyTimeTable]": {
- "title": "BusDailyTimeTableList",
+ "PTX.Service.DTO.Bus.Specification.V3.TimeTable": {
+ "title": "TimeTable",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "DailyTimeTables"
+ "StopTimes"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateInterval": {
- "format": "int32",
- "description": "[平臺]資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
+ "TripID": {
+ "title": "String",
+ "description": "班次代碼,為無意義之編碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
- },
- "DailyTimeTables": {
- "description": "資料(陣列)",
+ "StopTimes": {
+ "title": "Array",
+ "description": "公車停靠時間資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.DailyTimeTable"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopTime"
}
}
}
},
- "Service.DTO.Version3.Bus.DailyTimeTable": {
+ "PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable": {
"title": "DailyTimeTable",
"description": "每日時刻表資料",
"required": [
"Date",
- "RouteUID",
+ "Direction",
+ "OperatorCode",
+ "OperatorID",
"RouteID",
"RouteName",
- "OperatorID",
- "OperatorCode",
- "SubRouteID",
- "Direction"
+ "RouteUID",
+ "SubRouteID"
],
"type": "object",
"properties": {
@@ -3675,38 +3760,52 @@
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -3715,82 +3814,25 @@
"type": "integer"
},
"Timetables": {
+ "title": "Array",
"description": "預定班表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.TimeTable"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.TimeTable": {
- "title": "TimeTable",
- "required": [
- "StopTimes"
- ],
- "type": "object",
- "properties": {
- "TripID": {
- "description": "班次代碼,為無意義之編碼",
- "type": "string"
- },
- "StopTimes": {
- "description": "公車停靠時間資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.TimeTable"
}
}
}
},
- "Service.DTO.Version3.Bus.StopTime": {
- "title": "StopTime",
- "required": [
- "StopSequence",
- "StopUID",
- "StopID",
- "ArrivalTime",
- "DepartureTime"
- ],
- "type": "object",
- "properties": {
- "StopSequence": {
- "format": "int32",
- "description": "路線經過站牌之順序(由1開始)",
- "type": "integer"
- },
- "StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
- "type": "string"
- },
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
- },
- "ArrivalTime": {
- "description": "到站時間,格式為:HH:mm",
- "type": "string"
- },
- "DepartureTime": {
- "description": "離站時間,格式為:HH:mm",
- "type": "string"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Depot]": {
- "title": "BusDepotList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable]": {
+ "title": "BusDailyTimeTableList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Depots"
+ "DailyTimeTables",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3801,6 +3843,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -3811,84 +3854,102 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Depots": {
- "description": "資料(陣列)",
+ "DailyTimeTables": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Depot"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DailyTimeTable"
}
}
}
},
- "Service.DTO.Version3.Bus.Depot": {
+ "PTX.Service.DTO.Bus.Specification.V3.Depot": {
"title": "Depot",
"required": [
- "DepotUID",
+ "DepotAddress",
"DepotID",
"DepotName",
+ "DepotPhone",
"DepotPosition",
- "DepotAddress",
- "DepotPhone"
+ "DepotUID"
],
"type": "object",
"properties": {
"DepotUID": {
+ "title": "String",
"description": "營業所唯一識別代碼,規則為 {業管機關簡碼} + {DepotID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"DepotID": {
+ "title": "String",
"description": "營業所代碼",
"type": "string"
},
"DepotName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營業所名稱"
+ "description": "營業所名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"DepotPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "營業所位置"
+ "description": "營業所位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"DepotAddress": {
+ "title": "String",
"description": "營業所地址",
"type": "string"
},
"DepotPhone": {
+ "title": "String",
"description": "營業所電話",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DisplayStopOfRoute]": {
- "title": "BusDisplayStopOfRouteList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Depot]": {
+ "title": "BusDepotList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "DisplayStopOfRoutes"
+ "Depots",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -3896,6 +3957,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -3906,55 +3968,107 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "DisplayStopOfRoutes": {
- "description": "資料(陣列)",
+ "Depots": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.DisplayStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Depot"
}
}
}
},
- "Service.DTO.Version3.Bus.DisplayStopOfRoute": {
+ "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop": {
+ "title": "Stop",
+ "description": "路線站序資料",
+ "required": [
+ "StopID",
+ "StopName",
+ "StopPosition",
+ "StopSequence",
+ "StopUID"
+ ],
+ "type": "object",
+ "properties": {
+ "StopUID": {
+ "title": "String",
+ "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "StopID": {
+ "title": "String",
+ "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "StopName": {
+ "title": "NameType",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "StopSequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "路線經過站牌之順序",
+ "type": "integer"
+ },
+ "StopPosition": {
+ "title": "PointType",
+ "description": "站牌位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute": {
"title": "DisplayStopOfRoute",
"required": [
- "RouteUID",
+ "Direction",
"RouteID",
"RouteName",
- "Direction",
+ "RouteUID",
"Stops"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -3963,63 +4077,35 @@
"type": "integer"
},
"Stops": {
+ "title": "Array",
"description": "路線站序資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.DisplayStopOfRoute.Stop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute+Stop"
}
}
}
},
- "Service.DTO.Version3.Bus.DisplayStopOfRoute.Stop": {
- "title": "Stop",
- "description": "路線站序資料",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute]": {
+ "title": "BusDisplayStopOfRouteList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "StopUID",
- "StopID",
- "StopName",
- "StopSequence",
- "StopPosition"
+ "AuthorityCode",
+ "DisplayStopOfRoutes",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
- "StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
- "type": "string"
- },
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
- },
- "StopSequence": {
+ "VersionID": {
"format": "int32",
- "description": "路線經過站牌之順序",
+ "title": "Int32",
+ "description": "資料版本編號",
"type": "integer"
},
- "StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
- "title": "PointType",
- "description": "站牌位置"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.FirstLastTripInfo]": {
- "title": "BusFirstLastTripInfoList",
- "required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "FirstLastTripInfos"
- ],
- "type": "object",
- "properties": {
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -4027,6 +4113,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4037,144 +4124,80 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "FirstLastTripInfos": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.FirstLastTripInfo"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.FirstLastTripInfo": {
- "title": "FirstLastTripInfo",
- "required": [
- "RouteUID",
- "RouteID",
- "RouteName",
- "FirstLastTrips"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "FirstLastTrips": {
- "description": "路線首末班車資訊",
+ "DisplayStopOfRoutes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.FirstLastTripInfo.FirstLastTrip"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.DisplayStopOfRoute"
}
}
}
},
- "Service.DTO.Version3.Bus.FirstLastTripInfo.FirstLastTrip": {
- "title": "FirstLastTrip",
+ "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay": {
+ "title": "ServiceDay",
"required": [
- "ServiceDay",
- "FirstTripDepTime",
- "LastTripDepTime"
+ "Friday",
+ "Monday",
+ "Saturday",
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
- "properties": {
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.FirstLastTripInfo.ServiceDay",
- "title": "ServiceDay",
- "description": "服務日型態"
- },
- "FirstTripDepTime": {
- "description": "頭班車發車時間(HH:mm)",
- "type": "string"
- },
- "LastTripDepTime": {
- "description": "末班車發車時間(HH:mm)",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Bus.FirstLastTripInfo.ServiceDay": {
- "title": "ServiceDay",
- "type": "object",
"properties": {
"ServiceTag": {
+ "title": "String",
"description": "服務日標籤",
"type": "string"
},
"Monday": {
+ "title": "Boolean",
"description": "星期一營運與否",
"type": "boolean"
},
"Tuesday": {
+ "title": "Boolean",
"description": "星期二營運與否",
"type": "boolean"
},
"Wednesday": {
+ "title": "Boolean",
"description": "星期三營運與否",
"type": "boolean"
},
"Thursday": {
+ "title": "Boolean",
"description": "星期四營運與否",
"type": "boolean"
},
"Friday": {
+ "title": "Boolean",
"description": "星期五營運與否",
"type": "boolean"
},
"Saturday": {
+ "title": "Boolean",
"description": "星期六營運與否",
"type": "boolean"
},
"Sunday": {
+ "title": "Boolean",
"description": "星期日營運與否",
"type": "boolean"
},
@@ -4196,18 +4219,127 @@
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]": {
- "title": "BusN1DataList",
+ "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip": {
+ "title": "FirstLastTrip",
+ "required": [
+ "FirstTripDepTime",
+ "LastTripDepTime",
+ "ServiceDay"
+ ],
+ "type": "object",
+ "properties": {
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+ServiceDay"
+ }
+ ]
+ },
+ "FirstTripDepTime": {
+ "title": "String",
+ "description": "頭班車發車時間(HH:mm)",
+ "type": "string"
+ },
+ "LastTripDepTime": {
+ "title": "String",
+ "description": "末班車發車時間(HH:mm)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo": {
+ "title": "FirstLastTripInfo",
+ "required": [
+ "Direction",
+ "FirstLastTrips",
+ "OperatorID",
+ "RouteID",
+ "RouteName",
+ "RouteUID"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "FirstLastTrips": {
+ "title": "Array",
+ "description": "路線首末班車資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo+FirstLastTrip"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo]": {
+ "title": "BusFirstLastTripInfoList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "N1Datas"
+ "FirstLastTripInfos",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -4215,6 +4347,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4225,68 +4358,78 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "N1Datas": {
- "description": "資料(陣列)",
+ "FirstLastTripInfos": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.N1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.FirstLastTripInfo"
}
}
}
},
- "Service.DTO.Version3.Bus.N1Data": {
+ "PTX.Service.DTO.Bus.Specification.V3.N1Data": {
"title": "N1Data",
"required": [
- "RouteID",
"Direction",
- "StopID",
"RecTime",
+ "RouteID",
+ "StopID",
"TransTime"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -4295,28 +4438,40 @@
"type": "integer"
},
"DestinationStopID": {
+ "title": "String",
"description": "迄點站站牌ID代碼",
"type": "string"
},
"DestinationStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "迄點站站牌名稱"
+ "description": "迄點站站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼 [値為値為-1時,表示目前該站牌無車輛行駛]",
"type": "string"
},
@@ -4326,6 +4481,7 @@
"type": "integer"
},
"ScheduledTime": {
+ "title": "String",
"description": "預排班表時間",
"type": "string"
},
@@ -4334,6 +4490,7 @@
"type": "boolean"
},
"CurrentStop": {
+ "title": "String",
"description": "車輛目前所在站牌代碼",
"type": "string"
},
@@ -4365,15 +4522,16 @@
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Network]": {
- "title": "BusNetworkList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.N1Data]": {
+ "title": "BusN1DataList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Networks"
+ "N1Datas",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4384,6 +4542,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4394,118 +4553,146 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Networks": {
- "description": "資料(陣列)",
+ "N1Datas": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Network"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.N1Data"
}
}
}
},
- "Service.DTO.Version3.Bus.Network": {
- "title": "Network",
+ "PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL": {
+ "title": "NetworkMapURL",
"required": [
- "NetworkID",
- "NetworkName",
- "NetworkMapURL"
+ "MapName",
+ "MapNameURL"
],
"type": "object",
"properties": {
- "NetworkID": {
- "description": "公車路網代碼",
+ "MapName": {
+ "title": "String",
+ "description": "路網圖名稱",
"type": "string"
},
- "NetworkName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
+ "MapNameURL": {
"title": "NameType",
- "description": "路網名稱"
- },
- "NetworkMapURL": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.NetworkMapURL",
- "title": "NetworkMapURL",
- "description": "路網圖網址URL"
- },
- "LBSMapURLs": {
- "description": "適地性路網圖資網址URL",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Network.LBSMapURL"
- }
+ "description": "路網圖網址URL",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Bus.NetworkMapURL": {
- "title": "NetworkMapURL",
- "required": [
- "MapName",
- "MapNameURL"
- ],
- "type": "object",
- "properties": {
- "MapName": {
- "description": "路網圖名稱",
- "type": "string"
- },
- "MapNameURL": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路網圖網址URL"
- }
- }
- },
- "Service.DTO.Version3.Bus.Network.LBSMapURL": {
+ "PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL": {
"title": "LBSMapURL",
"type": "object",
"properties": {
"MapName": {
+ "title": "String",
"description": "路網圖",
"type": "string"
},
"Zh_tw": {
+ "title": "String",
"description": "路網圖網址URL(中文版)",
"type": "string"
},
"En": {
+ "title": "String",
"description": "路網圖網址URL(英文版)",
"type": "string"
},
"LBSLocation": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "適地性圖資貼放的位置"
+ "description": "適地性圖資貼放的位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.News]": {
- "title": "BusNewsList",
+ "PTX.Service.DTO.Bus.Specification.V3.Network": {
+ "title": "Network",
+ "required": [
+ "NetworkID",
+ "NetworkMapURL",
+ "NetworkName"
+ ],
+ "type": "object",
+ "properties": {
+ "NetworkID": {
+ "title": "String",
+ "description": "公車路網代碼",
+ "type": "string"
+ },
+ "NetworkName": {
+ "title": "NameType",
+ "description": "路網名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "NetworkMapURL": {
+ "title": "NetworkMapURL",
+ "description": "路網圖網址URL",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.NetworkMapURL"
+ }
+ ]
+ },
+ "LBSMapURLs": {
+ "title": "Array",
+ "description": "適地性路網圖資網址URL",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network+LBSMapURL"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Network]": {
+ "title": "BusNetworkList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Newses"
+ "Networks",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -4513,6 +4700,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4523,73 +4711,79 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Newses": {
- "description": "資料(陣列)",
+ "Networks": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.News"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Network"
}
}
}
},
- "Service.DTO.Version3.Bus.News": {
+ "PTX.Service.DTO.Bus.Specification.V3.News": {
"title": "News",
"required": [
- "NewsID",
+ "Description",
"Language",
- "Title",
"NewsCategory",
- "Description",
- "PublishTime"
+ "NewsID",
+ "PublishTime",
+ "Title"
],
"type": "object",
"properties": {
"NewsID": {
+ "title": "String",
"description": "最新消息原單位發布代碼",
"type": "string"
},
"Language": {
+ "title": "String",
"description": "語系",
"type": "string"
},
"Department": {
+ "title": "String",
"description": "發布單位",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "消息標題",
"type": "string"
},
"NewsCategory": {
+ "title": "String",
"description": "消息類別= ['1: 最新消息', '2: 新聞稿', '3: 營運資訊', '4: 轉乘資訊', '5: 活動訊息', '6: 系統公告', '99: 其他']",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "內容描述",
"type": "string"
},
"NewsURL": {
+ "title": "String",
"description": "報導網站連結",
"type": "string"
},
"AttachmentURL": {
+ "title": "String",
"description": "相關網站連結",
"type": "string"
},
@@ -4615,15 +4809,16 @@
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Operator]": {
- "title": "BusOperatorList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.News]": {
+ "title": "BusNewsList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Operators"
+ "Newses",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4634,6 +4829,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4644,107 +4840,128 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Operators": {
- "description": "資料(陣列)",
+ "Newses": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.News"
}
}
}
},
- "Service.DTO.Version3.Bus.Operator": {
+ "PTX.Service.DTO.Bus.Specification.V3.Operator": {
"title": "Operator",
"required": [
- "OperatorID",
"OperatorCode",
+ "OperatorEmail",
+ "OperatorID",
"OperatorName",
"OperatorPhone",
- "OperatorEmail",
"OperatorUrl"
],
"type": "object",
"properties": {
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorNo": {
+ "title": "String",
"description": "營運業者編號[交通部票證資料系統定義]",
"type": "string"
},
"SubAuthorityCode": {
+ "title": "String",
"description": "營運業者所屬業管子機關簡碼",
"type": "string"
},
"OperatorPhone": {
+ "title": "String",
"description": "營運業者連絡電話",
"type": "string"
},
"OperatorEmail": {
+ "title": "String",
"description": "營運業者電子信箱",
"type": "string"
},
"OperatorUrl": {
+ "title": "String",
"description": "營運業者網址鏈結",
"type": "string"
},
"FareURL": {
+ "title": "String",
"description": "營運業者票價查詢網站連結",
"type": "string"
},
"ReservationUrl": {
+ "title": "String",
"description": "訂票網址鏈結",
"type": "string"
},
"ReservationPhone": {
+ "title": "String",
"description": "訂票連絡電話",
"type": "string"
},
"OperatorLogoURL": {
+ "title": "String",
"description": "營運業者Logo網址",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Route]": {
- "title": "BusRouteList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Operator]": {
+ "title": "BusOperatorList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Routes"
+ "Operators",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -4752,6 +4969,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -4762,257 +4980,154 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Routes": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Route"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.Route": {
- "title": "Route",
- "description": "路線資料型別",
- "required": [
- "RouteUID",
- "RouteID",
- "RouteName",
- "HasSubRoutes",
- "Operators",
- "RouteType",
- "ServiceType",
- "TicketPriceDescription",
- "DepartureStopName",
- "DestinationStopName",
- "StartStop",
- "EndStop",
- "IsCircular"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "RouteLongName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線長名稱"
- },
- "RouteDescription": {
- "description": "路線描述",
- "type": "string"
- },
- "HasSubRoutes": {
- "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)",
- "type": "boolean"
- },
"Operators": {
- "description": "營運業者",
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Route.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Operator"
}
- },
- "RouteType": {
- "format": "int32",
- "title": "integer",
- "description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運']",
- "type": "integer"
- },
- "ServiceType": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.ServiceType",
- "title": "ServiceType",
- "description": "公車路線服務類型"
- },
- "TicketPriceDescription": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "票價描述"
- },
- "DepartureStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線起站名稱"
- },
- "DestinationStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線迄站名稱"
- },
- "FareBufferZoneDescription": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "計費緩衝區敘述"
- },
- "StartStop": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Route.Stop",
- "title": "Stop",
- "description": "起始站牌"
- },
- "EndStop": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Route.Stop",
- "title": "Stop",
- "description": "終點站牌"
- },
- "IsCircular": {
- "description": "是否為環狀線",
- "type": "boolean"
- },
- "RouteURL": {
- "description": "路線資訊說明網址",
- "type": "string"
- },
- "LiveBusURL": {
- "description": "路線公車動態資訊網址",
- "type": "string"
- },
- "RouteMapImageURL": {
- "description": "路線簡圖網址",
- "type": "string"
- },
- "FareURL": {
- "description": "收費資訊說明網址",
- "type": "string"
- },
- "RouteDistance": {
- "format": "float",
- "description": "路線旅行長度",
- "type": "number"
}
}
},
- "Service.DTO.Version3.Bus.Route.Operator": {
+ "PTX.Service.DTO.Bus.Specification.V3.Route+Operator": {
"title": "Operator",
"description": "營運業者資訊",
"required": [
+ "OperatorCode",
"OperatorID",
"OperatorName",
- "OperatorCode",
"OperatorNo"
],
"type": "object",
"properties": {
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營運業者代碼"
+ "description": "營運業者代碼",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorCode": {
+ "title": "String",
"description": "平台代碼",
"type": "string"
},
"OperatorNo": {
+ "title": "String",
"description": "營運業者編號[交通部票證資料系統定義]",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.ServiceType": {
+ "PTX.Service.DTO.Bus.Specification.V3.ServiceType": {
"title": "ServiceType",
"required": [
- "IsFreeBus",
- "IsTaiwanTripBus",
- "IsTourBus",
- "IsTouristBus",
+ "IsActivityShuttleBus",
+ "IsAirportShuttleBus",
"IsBRTBus",
+ "IsFreeBus",
"IsMedicalBus",
- "IsNightBus",
- "IsTrunkBus",
"IsMetroShuttleBus",
+ "IsNightBus",
+ "IsTaiwanTripBus",
"IsTHSRShuttleBus",
+ "IsTourBus",
+ "IsTouristBus",
"IsTRAShuttleBus",
- "IsAirportShuttleBus",
- "IsActivityShuttleBus"
+ "IsTrunkBus"
],
"type": "object",
"properties": {
"IsFreeBus": {
+ "title": "Boolean",
"description": "是否為免費公車",
"type": "boolean"
},
"IsTaiwanTripBus": {
+ "title": "Boolean",
"description": "是否為台灣好行公車",
"type": "boolean"
},
"IsTourBus": {
+ "title": "Boolean",
"description": "是否為觀光巴士",
"type": "boolean"
},
"IsTouristBus": {
+ "title": "Boolean",
"description": "是否為遊覽車",
"type": "boolean"
},
"IsBRTBus": {
+ "title": "Boolean",
"description": "是否為BRT公車",
"type": "boolean"
},
"IsMedicalBus": {
+ "title": "Boolean",
"description": "是否為醫療公車",
"type": "boolean"
},
"IsNightBus": {
+ "title": "Boolean",
"description": "是否為夜間公車",
"type": "boolean"
},
"IsTrunkBus": {
+ "title": "Boolean",
"description": "是否為幹線公車",
"type": "boolean"
},
"IsMetroShuttleBus": {
+ "title": "Boolean",
"description": "是否為捷運接駁車",
"type": "boolean"
},
"IsTHSRShuttleBus": {
+ "title": "Boolean",
"description": "是否為高鐵接駁車",
"type": "boolean"
},
"IsTRAShuttleBus": {
+ "title": "Boolean",
"description": "是否為台鐵接駁車",
"type": "boolean"
},
"IsAirportShuttleBus": {
+ "title": "Boolean",
"description": "是否為機場接駁車",
"type": "boolean"
},
"IsActivityShuttleBus": {
+ "title": "Boolean",
"description": "是否為活動接駁車",
"type": "boolean"
}
}
},
- "Service.DTO.Version3.Bus.Route.Stop": {
+ "PTX.Service.DTO.Bus.Specification.V3.Route+Stop": {
"title": "Stop",
"required": [
"StopID",
@@ -5021,293 +5136,328 @@
"type": "object",
"properties": {
"StopID": {
+ "title": "String",
"description": "站牌代碼",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteFare]": {
- "title": "BusRouteFareList",
+ "PTX.Service.DTO.Bus.Specification.V3.Route": {
+ "title": "Route",
+ "description": "路線資料型別",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "RouteFares"
+ "DepartureStopName",
+ "DestinationStopName",
+ "EndStop",
+ "HasSubRoutes",
+ "IsCircular",
+ "Operators",
+ "RouteID",
+ "RouteName",
+ "RouteType",
+ "RouteUID",
+ "ServiceType",
+ "StartStop",
+ "TicketPriceDescription"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
- "UpdateInterval": {
- "format": "int32",
- "description": "[平臺]資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
+ "RouteLongName": {
+ "title": "NameType",
+ "description": "路線長名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
+ "RouteDescription": {
+ "title": "String",
+ "description": "路線描述",
+ "type": "string"
},
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
+ "HasSubRoutes": {
+ "title": "Boolean",
+ "description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)",
+ "type": "boolean"
},
- "RouteFares": {
- "description": "資料(陣列)",
+ "Operators": {
+ "title": "Array",
+ "description": "營運業者",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.RouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Operator"
}
- }
- }
- },
- "Service.DTO.Version3.Bus.RouteFare": {
- "title": "RouteFare",
- "required": [
- "RouteUID",
- "RouteID",
- "FarePricingType",
- "IsFreeBus",
- "IsForAllSubRoutes"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
},
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
+ "RouteType": {
+ "format": "int32",
+ "title": "integer",
+ "description": "公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運']",
+ "type": "integer"
},
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
+ "ServiceType": {
+ "title": "ServiceType",
+ "description": "公車路線服務類型",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.ServiceType"
+ }
+ ]
},
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
+ "TicketPriceDescription": {
+ "title": "NameType",
+ "description": "票價描述",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
+ "DepartureStopName": {
+ "title": "NameType",
+ "description": "路線起站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
+ "DestinationStopName": {
+ "title": "NameType",
+ "description": "路線迄站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
+ "FareBufferZoneDescription": {
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "計費緩衝區敘述",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "FarePricingType": {
- "format": "int32",
- "title": "integer",
- "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']",
- "type": "integer"
+ "StartStop": {
+ "title": "Stop",
+ "description": "起始站牌",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop"
+ }
+ ]
},
- "IsFreeBus": {
- "format": "int32",
- "title": "integer",
- "description": "是否為免費公車 : [0:'否',1:'是']",
- "type": "integer"
+ "EndStop": {
+ "title": "Stop",
+ "description": "終點站牌",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route+Stop"
+ }
+ ]
},
- "IsForAllSubRoutes": {
- "format": "int32",
- "title": "integer",
- "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']",
- "type": "integer"
+ "IsCircular": {
+ "title": "Boolean",
+ "description": "是否為環狀線",
+ "type": "boolean"
},
- "SectionFares": {
- "description": "段次計費",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare"
- }
+ "RouteURL": {
+ "title": "String",
+ "description": "路線資訊說明網址",
+ "type": "string"
},
- "ODFares": {
- "description": "起迄站間計費",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.ODFare"
- }
+ "LiveBusURL": {
+ "title": "String",
+ "description": "路線公車動態資訊網址",
+ "type": "string"
},
- "StageFares": {
- "description": "計費站區間計費",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.SectionFare": {
- "title": "SectionFare",
- "required": [
- "BufferZones",
- "Fares"
- ],
- "type": "object",
- "properties": {
- "BufferZones": {
- "description": "緩衝區資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.BufferZone"
- }
+ "RouteMapImageURL": {
+ "title": "String",
+ "description": "路線簡圖網址",
+ "type": "string"
},
- "Fares": {
- "description": "每段收費資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.Fare"
- }
+ "FareURL": {
+ "title": "String",
+ "description": "收費資訊說明網址",
+ "type": "string"
+ },
+ "RouteDistance": {
+ "format": "float",
+ "description": "路線旅行長度",
+ "type": "number"
}
}
},
- "Service.DTO.Version3.Bus.ODFare": {
- "title": "ODFare",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Route]": {
+ "title": "BusRouteList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "Direction",
- "OriginStops",
- "DestinationStops",
- "Fares"
+ "AuthorityCode",
+ "Routes",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
- "Direction": {
+ "VersionID": {
"format": "int32",
- "title": "integer",
- "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "title": "Int32",
+ "description": "資料版本編號",
"type": "integer"
},
- "OriginStops": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.ODFare.OD",
- "title": "OD",
- "description": "計費起點"
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
},
- "DestinationStops": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.ODFare.OD",
- "title": "OD",
- "description": "計費迄點"
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "[平臺]資料更新週期(秒)",
+ "type": "integer"
},
- "Fares": {
- "description": "計費價格",
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
+ },
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ },
+ "Routes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.ODFare.Fare"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Route"
}
}
}
},
- "Service.DTO.Version3.Bus.StageFare": {
- "title": "StageFare",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone": {
+ "title": "FareBufferZone",
"required": [
- "Direction",
- "OriginStage",
- "DestinationStage",
- "Fares"
+ "StopID",
+ "StopUID"
],
"type": "object",
"properties": {
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "OriginStage": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare.Stage",
- "title": "Stage",
- "description": "起點計費站"
+ "StopUID": {
+ "title": "String",
+ "type": "string"
},
- "DestinationStage": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare.Stage",
- "title": "Stage",
- "description": "訖點計費站"
+ "StopID": {
+ "title": "String",
+ "type": "string"
},
- "Fares": {
- "description": "票價內容",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare.Fare"
- }
+ "StopName": {
+ "title": "NameType",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Bus.SectionFare.BufferZone": {
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone": {
"title": "BufferZone",
"required": [
- "SectionSequence",
"Direction",
+ "FareBufferZoneDestination",
"FareBufferZoneOrigin",
- "FareBufferZoneDestination"
+ "SectionSequence"
],
"type": "object",
"properties": {
"ZoneID": {
- "description": "緩衝區代號",
+ "title": "String",
"type": "string"
},
"SectionSequence": {
- "description": "緩衝區順序",
+ "title": "String",
"type": "string"
},
"Direction": {
"format": "int32",
"title": "integer",
- "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "description": "公車路線去返程列舉值,其中迴圈表示該路線去程終點站不休息直接返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
"FareBufferZoneOrigin": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.FareBufferZone",
"title": "FareBufferZone",
- "description": "緩衝區起點"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone"
+ }
+ ]
},
"FareBufferZoneDestination": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.FareBufferZone",
"title": "FareBufferZone",
- "description": "緩衝區訖點"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareBufferZone"
+ }
+ ]
},
"BufferZoneDescription": {
- "description": "收費緩衝區描述",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.SectionFare.Fare": {
- "title": "Fare",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection": {
+ "title": "FareSection",
"required": [
- "TicketType",
"FareClass",
- "Price"
+ "Price",
+ "TicketType"
],
"type": "object",
"properties": {
@@ -5324,40 +5474,69 @@
"type": "integer"
},
"Price": {
- "description": "計費價格",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.ODFare.OD": {
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare": {
+ "title": "SectionFare",
+ "required": [
+ "BufferZones",
+ "Fares"
+ ],
+ "type": "object",
+ "properties": {
+ "BufferZones": {
+ "title": "Array",
+ "description": "緩衝區資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+BufferZone"
+ }
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "每段收費資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare+FareSection"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD": {
"title": "OD",
"required": [
- "StopUID",
- "StopID"
+ "StopID",
+ "StopUID"
],
"type": "object",
"properties": {
"StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "title": "String",
"type": "string"
},
"StopID": {
- "description": "計費起點站牌代碼",
+ "title": "String",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Bus.ODFare.Fare": {
- "title": "Fare",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD": {
+ "title": "FareOD",
"required": [
- "TicketType",
"FareClass",
- "Price"
+ "Price",
+ "TicketType"
],
"type": "object",
"properties": {
@@ -5374,37 +5553,195 @@
"type": "integer"
},
"Price": {
- "description": "計費價格",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.StageFare.Stage": {
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare": {
+ "title": "ODFare",
+ "required": [
+ "DestinationStops",
+ "Direction",
+ "Fares",
+ "OriginStops"
+ ],
+ "type": "object",
+ "properties": {
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "OriginStops": {
+ "title": "OD",
+ "description": "計費起點",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD"
+ }
+ ]
+ },
+ "DestinationStops": {
+ "title": "OD",
+ "description": "計費迄點",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+OD"
+ }
+ ]
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "計費價格",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare+FareOD"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage": {
"title": "Stage",
- "description": "計費站",
"required": [
"StopUID"
],
"type": "object",
"properties": {
"StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "title": "String",
"type": "string"
},
"StopID": {
- "description": "計費訖點站牌代碼",
+ "title": "String",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Bus.StageFare.Fare": {
- "title": "Fare",
- "description": "票價內容",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay": {
+ "title": "ServiceDay",
+ "required": [
+ "Friday",
+ "Monday",
+ "Saturday",
+ "ServiceTag",
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
+ ],
+ "type": "object",
+ "properties": {
+ "ServiceTag": {
+ "title": "String",
+ "type": "string"
+ },
+ "Sunday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Monday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Tuesday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Wednesday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Thursday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Friday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "Saturday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "NationalHolidays": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "DayBeforeHoliday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "DayAfterHoliday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ },
+ "TyphoonDay": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod": {
+ "title": "DiscountPeriod",
+ "required": [
+ "EndTime",
+ "ServiceDay",
+ "StartTime"
+ ],
+ "type": "object",
+ "properties": {
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+ServiceDay"
+ }
+ ]
+ },
+ "StartTime": {
+ "title": "String",
+ "type": "string"
+ },
+ "EndTime": {
+ "title": "String",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage": {
+ "title": "FareStage",
"required": [
"FareName",
"TicketType"
@@ -5412,7 +5749,7 @@
"type": "object",
"properties": {
"FareName": {
- "description": "票價名稱",
+ "title": "String",
"type": "string"
},
"TicketType": {
@@ -5428,162 +5765,171 @@
"type": "integer"
},
"DiscountPeriods": {
- "description": "優惠時段",
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare.DiscountPeriod"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+DiscountPeriod"
}
},
"Price": {
- "description": "計費價格",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.SectionFare.FareBufferZone": {
- "title": "FareBufferZone",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare": {
+ "title": "StageFare",
"required": [
- "StopUID",
- "StopID"
+ "DestinationStage",
+ "Direction",
+ "Fares",
+ "OriginStage"
],
"type": "object",
"properties": {
- "StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
},
- "StopID": {
- "description": "緩衝區站牌代碼",
- "type": "string"
+ "OriginStage": {
+ "title": "Stage",
+ "description": "起點計費站",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage"
+ }
+ ]
},
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
+ "DestinationStage": {
+ "title": "Stage",
+ "description": "訖點計費站",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+Stage"
+ }
+ ]
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "票價內容",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare+FareStage"
+ }
}
}
},
- "Service.DTO.Version3.Bus.StageFare.DiscountPeriod": {
- "title": "DiscountPeriod",
- "description": "優惠時段",
+ "PTX.Service.DTO.Bus.Specification.V3.RouteFare": {
+ "title": "RouteFare",
+ "description": "每日時刻表資料",
"required": [
- "ServiceDay",
- "StartTime",
- "EndTime"
+ "FarePricingType",
+ "IsForAllSubRoutes",
+ "IsFreeBus",
+ "RouteID",
+ "RouteUID"
],
"type": "object",
"properties": {
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StageFare.ServiceDay",
- "title": "ServiceDay",
- "description": "營運日型態"
- },
- "StartTime": {
- "description": "開始時間(HH:mm制)",
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
- "EndTime": {
- "description": "結束時間(HH:mm制)",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Bus.StageFare.ServiceDay": {
- "title": "ServiceDay",
- "description": "服務日型態",
- "required": [
- "ServiceTag",
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ],
- "type": "object",
- "properties": {
- "ServiceTag": {
- "description": "服務日標籤",
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
- "Sunday": {
- "format": "int32",
- "title": "integer",
- "description": "星期日是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "Monday": {
- "format": "int32",
- "title": "integer",
- "description": "星期一是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
},
- "Tuesday": {
- "format": "int32",
- "title": "integer",
- "description": "星期二是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
},
- "Wednesday": {
- "format": "int32",
- "title": "integer",
- "description": "星期三是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
},
- "Thursday": {
- "format": "int32",
- "title": "integer",
- "description": "星期四是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
- "Friday": {
+ "FarePricingType": {
"format": "int32",
"title": "integer",
- "description": "星期五是否營運 : [0:'否',1:'是']",
+ "description": "描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']",
"type": "integer"
},
- "Saturday": {
+ "IsFreeBus": {
"format": "int32",
"title": "integer",
- "description": "星期六是否營運 : [0:'否',1:'是']",
+ "description": "是否為免費公車 : [0:'否',1:'是']",
"type": "integer"
},
- "NationalHolidays": {
+ "IsForAllSubRoutes": {
"format": "int32",
"title": "integer",
- "description": "國定假日是否營運 : [0:'否',1:'是']",
+ "description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']",
"type": "integer"
},
- "DayBeforeHoliday": {
- "format": "int32",
- "title": "integer",
- "description": "假日前一日是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "SectionFares": {
+ "title": "Array",
+ "description": "段次計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+SectionFare"
+ }
},
- "DayAfterHoliday": {
- "format": "int32",
- "title": "integer",
- "description": "假日後一日是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "ODFares": {
+ "title": "Array",
+ "description": "起迄站間計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+ODFare"
+ }
},
- "TyphoonDay": {
- "format": "int32",
- "title": "integer",
- "description": "颱風停止上班上課期間是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "StageFares": {
+ "title": "Array",
+ "description": "計費站區間計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare+StageFare"
+ }
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteNetwork]": {
- "title": "BusRouteNetworkList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteFare]": {
+ "title": "BusRouteFareList",
+ "description": "基本 wrapper",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "RouteNetworks"
+ "RouteFares",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5594,6 +5940,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -5604,106 +5951,123 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "RouteNetworks": {
- "description": "資料(陣列)",
+ "RouteFares": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.RouteNetwork"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteFare"
}
}
}
},
- "Service.DTO.Version3.Bus.RouteNetwork": {
+ "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment": {
+ "title": "Segment",
+ "required": [
+ "Distance",
+ "FromStopID",
+ "Sequence",
+ "ToStopID"
+ ],
+ "type": "object",
+ "properties": {
+ "Sequence": {
+ "format": "float",
+ "title": "Single",
+ "description": "站間線段序號",
+ "type": "number"
+ },
+ "FromStopID": {
+ "title": "String",
+ "description": "表BusStop唯一碼(起點站牌)",
+ "type": "string"
+ },
+ "ToStopID": {
+ "title": "String",
+ "description": "表BusStop唯一碼(迄點站牌)",
+ "type": "string"
+ },
+ "Distance": {
+ "format": "float",
+ "title": "Single",
+ "description": "站間線段距離",
+ "type": "number"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.RouteNetwork": {
"title": "RouteNetwork",
"required": [
- "RouteUID",
"RouteID",
"RouteName",
+ "RouteUID",
"Segments"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Segments": {
+ "title": "Array",
"description": "站間線段序號",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.RouteNetwork.Segment"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork+Segment"
}
}
}
},
- "Service.DTO.Version3.Bus.RouteNetwork.Segment": {
- "title": "Segment",
- "required": [
- "Sequence",
- "FromStopID",
- "ToStopID",
- "Distance"
- ],
- "type": "object",
- "properties": {
- "Sequence": {
- "format": "float",
- "description": "站間線段序號",
- "type": "number"
- },
- "FromStopID": {
- "description": "表BusStop唯一碼(起點站牌)",
- "type": "string"
- },
- "ToStopID": {
- "description": "表BusStop唯一碼(迄點站牌)",
- "type": "string"
- },
- "Distance": {
- "format": "float",
- "description": "站間線段距離",
- "type": "number"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.S2STravelTime]": {
- "title": "BusS2STravelTimeList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.RouteNetwork]": {
+ "title": "BusRouteNetworkList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "S2STravelTimes"
+ "RouteNetworks",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -5711,6 +6075,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -5721,435 +6086,528 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "S2STravelTimes": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.S2STravelTime"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.S2STravelTime": {
- "title": "S2STravelTime",
- "required": [
- "RouteUID",
- "RouteID",
- "TravelTimes"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "路線代碼",
- "type": "string"
- },
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "附屬路線代碼",
- "type": "string"
- },
- "TravelTimes": {
- "description": "站間運行時間資訊",
+ "RouteNetworks": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.S2STravelTime.TravelTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.RouteNetwork"
}
}
}
},
- "Service.DTO.Version3.Bus.S2STravelTime.TravelTime": {
+ "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime": {
"title": "TravelTime",
"required": [
- "Sequence",
- "FromStopID",
- "ToStopID",
"Distance",
+ "FromStopID",
"RunTime",
- "StopTime"
+ "Sequence",
+ "StopTime",
+ "ToStopID"
],
"type": "object",
"properties": {
"Sequence": {
"format": "int32",
+ "title": "Int32",
"description": "站間序號",
"type": "integer"
},
"FromStopID": {
+ "title": "String",
"description": "起站站牌代碼",
"type": "string"
},
"ToStopID": {
+ "title": "String",
"description": "迄站站牌代碼",
"type": "string"
},
"Distance": {
"format": "float",
+ "title": "Single",
"description": "站間距離",
"type": "number"
},
"RunTime": {
"format": "int32",
- "description": "站間預估行駛時間",
- "type": "integer"
- },
- "StopTime": {
- "format": "int32",
- "description": "起站停靠時間",
- "type": "integer"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Schedule]": {
- "title": "BusScheduleList",
- "required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "Schedules"
- ],
- "type": "object",
- "properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateInterval": {
- "format": "int32",
- "description": "[平臺]資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
+ "title": "Int32",
+ "description": "站間預估行駛時間",
"type": "integer"
},
- "Schedules": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule"
- }
+ "StopTime": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "起站停靠時間",
+ "type": "integer"
}
}
},
- "Service.DTO.Version3.Bus.Schedule": {
- "title": "Schedule",
- "description": "營運班表資料",
+ "PTX.Service.DTO.Bus.Specification.V3.S2STravelTime": {
+ "title": "S2STravelTime",
"required": [
- "RouteUID",
"RouteID",
- "RouteName",
- "OperatorID",
- "OperatorCode",
- "SubRouteID",
- "Direction"
+ "RouteUID",
+ "TravelTimes"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "OperatorCode": {
- "description": "營運業者簡碼",
+ "title": "String",
+ "description": "路線代碼",
"type": "string"
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "ScheduleURL": {
- "description": "營運班表說明網址",
+ "title": "String",
+ "description": "附屬路線代碼",
"type": "string"
},
- "Timetables": {
- "description": "預定時刻表",
+ "TravelTimes": {
+ "title": "Array",
+ "description": "站間運行時間資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.TimeTable"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime+TravelTime"
}
}
}
},
- "Service.DTO.Version3.Bus.Schedule.TimeTable": {
- "title": "TimeTable",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.S2STravelTime]": {
+ "title": "BusS2STravelTimeList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "StopTimes",
- "ServiceDay",
- "SpecialDays"
+ "AuthorityCode",
+ "S2STravelTimes",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
- "TripID": {
- "description": "班次代碼,為無意義之編碼",
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "IsLowFloor": {
- "description": "該路線班次是否使用低地板公車車輛",
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "[平臺]資料更新週期(秒)",
+ "type": "integer"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "StopTimes": {
- "description": "公車停靠時間資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.StopTime"
- }
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
},
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.ServiceDay",
- "title": "ServiceDay",
- "description": "服務日型態"
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
},
- "SpecialDays": {
- "description": "例外營運日",
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ },
+ "S2STravelTimes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.SpecialDay"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.S2STravelTime"
}
}
}
},
- "Service.DTO.Version3.Bus.Schedule.StopTime": {
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime": {
"title": "StopTime",
"required": [
- "StopSequence",
- "StopUID",
- "StopID",
"ArrivalTime",
- "DepartureTime"
+ "DepartureTime",
+ "StopID",
+ "StopSequence",
+ "StopUID"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "路線經過站牌之順序(由1開始)",
"type": "integer"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間,格式為:HH:mm",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間,格式為:HH:mm",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.Schedule.ServiceDay": {
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay": {
"title": "ServiceDay",
"type": "object",
"properties": {
"ServiceTag": {
+ "title": "String",
"description": "服務日標籤",
"type": "string"
},
"Monday": {
- "description": "星期一營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期一營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Tuesday": {
- "description": "星期二營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期二營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Wednesday": {
- "description": "星期三營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期三營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Thursday": {
- "description": "星期四營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期四營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Friday": {
- "description": "星期五營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期五營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Saturday": {
- "description": "星期六營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期六營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"Sunday": {
- "description": "星期日營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "星期日營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"NationalHolidays": {
- "description": "國定假日營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "國定假日營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"DayBeforeHoliday": {
- "description": "國定假日前一日營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "國定假日前一日營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"DayAfterHoliday": {
- "description": "國定假日後一日營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "國定假日後一日營運與否 : [0:'否',1:'是']",
+ "type": "integer"
},
"TyphoonDay": {
- "description": "颱風停止上班上課期間營運與否",
- "type": "boolean"
+ "format": "int32",
+ "title": "integer",
+ "description": "颱風停止上班上課期間營運與否 : [0:'否',1:'是']",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod": {
+ "title": "DatePeriod",
+ "required": [
+ "EndDate",
+ "StartDate"
+ ],
+ "type": "object",
+ "properties": {
+ "StartDate": {
+ "title": "String",
+ "description": "開始日期",
+ "type": "string"
+ },
+ "EndDate": {
+ "title": "String",
+ "description": "結束日期",
+ "type": "string"
}
}
},
- "Service.DTO.Version3.Bus.Schedule.SpecialDay": {
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay": {
"title": "SpecialDay",
"required": [
- "Dates",
"DatePeriod",
- "ServiceStatus",
- "Description"
+ "Dates",
+ "Description",
+ "ServiceStatus"
],
"type": "object",
"properties": {
"Dates": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.Dates",
- "title": "Dates",
- "description": "不連續特殊日期"
+ "title": "Array",
+ "description": "不連續特殊日期",
+ "type": "array",
+ "items": {
+ "title": "String",
+ "type": "string"
+ }
},
"DatePeriod": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Schedule.DatePeriod",
"title": "DatePeriod",
- "description": "連續特殊日期"
+ "description": "連續特殊日期",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+DatePeriod"
+ }
+ ]
},
"ServiceStatus": {
"format": "int32",
- "description": "營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運",
+ "title": "integer",
+ "description": "營運服務狀態代碼0=停止營運, 1=正常營運 , 2=加班營運 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']",
"type": "integer"
},
"Description": {
+ "title": "String",
"description": "特殊營運描述",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.Schedule.Dates": {
- "title": "Dates",
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable": {
+ "title": "TimeTable",
"required": [
- "Date"
+ "ServiceDay",
+ "SpecialDays",
+ "StopTimes"
],
"type": "object",
"properties": {
- "Date": {
- "description": "特殊日期",
+ "TripID": {
+ "title": "String",
+ "description": "班次代碼,為無意義之編碼",
"type": "string"
+ },
+ "IsLowFloor": {
+ "title": "String",
+ "description": "該路線班次是否使用低地板公車車輛",
+ "type": "string"
+ },
+ "StopTimes": {
+ "title": "Array",
+ "description": "公車停靠時間資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+StopTime"
+ }
+ },
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+ServiceDay"
+ }
+ ]
+ },
+ "SpecialDays": {
+ "title": "Array",
+ "description": "例外營運日",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+SpecialDay"
+ }
}
}
},
- "Service.DTO.Version3.Bus.Schedule.DatePeriod": {
- "title": "DatePeriod",
+ "PTX.Service.DTO.Bus.Specification.V3.Schedule": {
+ "title": "Schedule",
+ "description": "營運班表資料",
"required": [
- "StartDate",
- "EndDate"
+ "Direction",
+ "OperatorCode",
+ "OperatorID",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "SubRouteID"
],
"type": "object",
"properties": {
- "StartDate": {
- "description": "開始日期",
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "OperatorCode": {
+ "title": "String",
+ "description": "營運業者簡碼",
+ "type": "string"
+ },
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
- "EndDate": {
- "description": "結束日期",
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "ScheduleURL": {
+ "title": "String",
+ "description": "營運班表說明網址",
"type": "string"
+ },
+ "Timetables": {
+ "title": "Array",
+ "description": "預定時刻表",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule+TimeTable"
+ }
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Shape]": {
- "title": "BusShapeList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusGWrapper[PTX.Service.DTO.Bus.Specification.V3.Schedule]": {
+ "title": "BusScheduleList",
+ "description": "定期型 wrapper (有生效的起迄時間資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Shapes"
+ "EffectiveDate",
+ "Schedules",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
+ "EffectiveDate": {
+ "title": "DateTime",
+ "description": "有效起始日期",
+ "type": "string"
+ },
+ "ExpireDate": {
+ "title": "DateTime",
+ "description": "有效終止日期",
+ "type": "string"
+ },
+ "ScheduleName": {
+ "title": "String",
+ "description": "公車定期營運班表名稱",
+ "type": "string"
+ },
+ "ValidityDesciption": {
+ "title": "String",
+ "description": "時刻表適用情形說明",
+ "type": "string"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6157,6 +6615,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6167,71 +6626,81 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Shapes": {
- "description": "資料(陣列)",
+ "Schedules": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Shape"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Schedule"
}
}
}
},
- "Service.DTO.Version3.Bus.Shape": {
+ "PTX.Service.DTO.Bus.Specification.V3.Shape": {
"title": "Shape",
"required": [
- "RouteUID",
+ "Direction",
+ "Geometry",
"RouteID",
"RouteName",
- "SubRouteUID",
+ "RouteUID",
"SubRouteID",
"SubRouteName",
- "Direction",
- "Geometry"
+ "SubRouteUID"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -6240,23 +6709,32 @@
"type": "integer"
},
"Geometry": {
+ "title": "String",
"description": "公車線型資料(WKT)",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Station]": {
- "title": "BusStationList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Shape]": {
+ "title": "BusShapeList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Stations"
+ "Shapes",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6264,6 +6742,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6274,90 +6753,110 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Stations": {
- "description": "資料(陣列)",
+ "Shapes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Station"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Shape"
}
}
}
},
- "Service.DTO.Version3.Bus.Station": {
+ "PTX.Service.DTO.Bus.Specification.V3.Station": {
"title": "Station",
"required": [
- "StationUID",
"StationID",
"StationName",
- "StationPosition"
+ "StationPosition",
+ "StationUID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "站位代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站位名稱"
+ "description": "站位名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "站位位置"
+ "description": "站位位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"RoadName": {
+ "title": "String",
"description": "站牌所在道路上之路名。",
"type": "string"
},
"Bearing": {
+ "title": "String",
"description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行",
"type": "string"
},
"StationAddress": {
+ "title": "String",
"description": "站位地址",
"type": "string"
},
"StationDescription": {
+ "title": "String",
"description": "站牌詳細說明描述",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Stop]": {
- "title": "BusStopList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Station]": {
+ "title": "BusStationList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Stops"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "Stations",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6365,6 +6864,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6375,110 +6875,135 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Stops": {
- "description": "資料(陣列)",
+ "Stations": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Stop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Station"
}
}
}
},
- "Service.DTO.Version3.Bus.Stop": {
+ "PTX.Service.DTO.Bus.Specification.V3.Stop": {
"title": "Stop",
"required": [
- "StopUID",
"StopID",
"StopName",
- "StopPosition"
+ "StopPosition",
+ "StopUID"
],
"type": "object",
"properties": {
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "站牌位置"
+ "description": "站牌位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"RoadName": {
+ "title": "String",
"description": "路名",
"type": "string"
},
"Bearing": {
+ "title": "String",
"description": "方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行",
"type": "string"
},
"CityCode": {
+ "title": "String",
"description": "站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"StopURL": {
+ "title": "String",
"description": "站牌資訊說明網址",
"type": "string"
},
"StopAddress": {
+ "title": "String",
"description": "站牌地址",
"type": "string"
},
"StationUID": {
+ "title": "String",
"description": "站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "站位代碼",
"type": "string"
},
"StopCode": {
+ "title": "String",
"description": "站牌簡碼",
"type": "string"
},
"StopDescription": {
+ "title": "String",
"description": "站牌詳細說明描述",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.StopOfRoute]": {
- "title": "BusStopOfRouteList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Stop]": {
+ "title": "BusStopList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StopOfRoutes"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "Stops",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6486,6 +7011,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6496,140 +7022,97 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "StopOfRoutes": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StopOfRoute"
- }
- }
- }
- },
- "Service.DTO.Version3.Bus.StopOfRoute": {
- "title": "StopOfRoute",
- "required": [
- "RouteUID",
- "RouteID",
- "RouteName",
- "Direction",
- "Stops"
- ],
- "type": "object",
- "properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "Operators": {
- "description": "營運業者",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StopOfRoute.Operator"
- }
- },
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
- "type": "string"
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
"Stops": {
- "description": "所有經過站牌",
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.StopOfRoute.Stop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Stop"
}
}
}
},
- "Service.DTO.Version3.Bus.StopOfRoute.Operator": {
+ "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator": {
"title": "Operator",
"description": "營運業者資訊",
"required": [
+ "OperatorCode",
"OperatorID",
"OperatorName",
- "OperatorCode",
"OperatorNo"
],
"type": "object",
"properties": {
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營運業者代碼"
+ "description": "營運業者代碼",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorCode": {
+ "title": "String",
"description": "平台代碼",
"type": "string"
},
"OperatorNo": {
+ "title": "String",
"description": "營運業者編號[交通部票證資料系統定義]",
"type": "string"
}
}
},
- "Service.DTO.Version3.Bus.StopOfRoute.Stop": {
+ "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop": {
"title": "Stop",
"required": [
+ "BoardingType",
"StopID",
"StopName",
- "BoardingType",
+ "StopPosition",
"StopSequence",
- "StopPosition"
+ "StopUID"
],
"type": "object",
"properties": {
+ "StopUID": {
+ "title": "String",
+ "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"BoardingType": {
"format": "int32",
@@ -6639,36 +7122,124 @@
},
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "路線經過站牌之順序",
"type": "integer"
},
"StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "站牌位置"
+ "description": "站牌位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"IsSectionPoint": {
+ "title": "Boolean",
"description": "是否為分段點",
"type": "boolean"
},
"CumulativeDistance": {
+ "title": "String",
"description": "累積行駛距離",
"type": "string"
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.SubRoute]": {
- "title": "BusSubRouteList",
+ "PTX.Service.DTO.Bus.Specification.V3.StopOfRoute": {
+ "title": "StopOfRoute",
+ "required": [
+ "Direction",
+ "RouteID",
+ "RouteName",
+ "RouteUID",
+ "Stops"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Operators": {
+ "title": "Array",
+ "description": "營運業者",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Operator"
+ }
+ },
+ "SubRouteUID": {
+ "title": "String",
+ "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "車輛去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "Stops": {
+ "title": "Array",
+ "description": "所有經過站牌",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute+Stop"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.StopOfRoute]": {
+ "title": "BusStopOfRouteList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "SubRoutes"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StopOfRoutes",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6676,6 +7247,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6686,82 +7258,157 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
},
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "SubRoutes": {
- "description": "資料(陣列)",
+ "StopOfRoutes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SubRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.StopOfRoute"
}
}
}
},
- "Service.DTO.Version3.Bus.SubRoute": {
+ "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator": {
+ "title": "Operator",
+ "required": [
+ "OperatorCode",
+ "OperatorID",
+ "OperatorName",
+ "OperatorNo"
+ ],
+ "type": "object",
+ "properties": {
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "OperatorName": {
+ "title": "NameType",
+ "description": "營運業者代碼",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "OperatorCode": {
+ "title": "String",
+ "description": "平台代碼",
+ "type": "string"
+ },
+ "OperatorNo": {
+ "title": "String",
+ "description": "營運業者編號[交通部票證資料系統定義]",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop": {
+ "title": "Stop",
+ "required": [
+ "StopID",
+ "StopName"
+ ],
+ "type": "object",
+ "properties": {
+ "StopID": {
+ "title": "String",
+ "description": "站牌代碼",
+ "type": "string"
+ },
+ "StopName": {
+ "title": "NameType",
+ "description": "站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.SubRoute": {
"title": "SubRoute",
"required": [
- "RouteUID",
+ "Direction",
+ "Operators",
"RouteID",
"RouteName",
- "SubRouteUID",
+ "RouteUID",
"SubRouteID",
"SubRouteName",
- "Operators",
- "Direction"
+ "SubRouteUID"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "機關定義路線代碼",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線名稱"
+ "description": "附屬路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteLongName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "附屬路線長名稱"
+ "description": "附屬路線長名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Operators": {
+ "title": "Array",
"description": "營運業者",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SubRoute.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Operator"
}
},
"Direction": {
@@ -6771,91 +7418,68 @@
"type": "integer"
},
"HeadSign": {
+ "title": "String",
"description": "車頭描述",
"type": "string"
},
"DepartureStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線起站名稱"
+ "description": "路線起站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"DestinationStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線迄站名稱"
+ "description": "路線迄站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StartStop": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SubRoute.Stop",
"title": "Stop",
- "description": "起始站牌"
+ "description": "起始站牌",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop"
+ }
+ ]
},
"EndStop": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SubRoute.Stop",
"title": "Stop",
- "description": "終點站牌"
- }
- }
- },
- "Service.DTO.Version3.Bus.SubRoute.Operator": {
- "title": "Operator",
- "required": [
- "OperatorID",
- "OperatorName",
- "OperatorCode",
- "OperatorNo"
- ],
- "type": "object",
- "properties": {
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "營運業者代碼"
- },
- "OperatorCode": {
- "description": "平台代碼",
- "type": "string"
- },
- "OperatorNo": {
- "description": "營運業者編號[交通部票證資料系統定義]",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Bus.SubRoute.Stop": {
- "title": "Stop",
- "required": [
- "StopID",
- "StopName"
- ],
- "type": "object",
- "properties": {
- "StopID": {
- "description": "站牌代碼",
- "type": "string"
- },
- "StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "站牌名稱"
+ "description": "終點站牌",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute+Stop"
+ }
+ ]
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Vehicle]": {
- "title": "BusVehicleList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.SubRoute]": {
+ "title": "BusSubRouteList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Vehicles"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "SubRoutes",
+ "UpdateInterval",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6863,6 +7487,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -6873,58 +7498,59 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "Vehicles": {
- "description": "資料(陣列)",
+ "SubRoutes": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.Vehicle"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.SubRoute"
}
}
}
},
- "Service.DTO.Version3.Bus.Vehicle": {
+ "PTX.Service.DTO.Bus.Specification.V3.Vehicle": {
"title": "Vehicle",
"required": [
- "PlateNumb",
- "OperatorID",
- "OperatorCode",
- "VehicleClass",
- "VehicleType",
"CardReaderLayout",
+ "HasLiftOrRamp",
+ "HasWifi",
"IsElectric",
"IsHybrid",
"IsLowFloor",
- "HasLiftOrRamp",
- "HasWifi"
+ "OperatorCode",
+ "OperatorID",
+ "PlateNumb",
+ "VehicleClass",
+ "VehicleType"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
@@ -6942,30 +7568,37 @@
},
"CardReaderLayout": {
"format": "int32",
+ "title": "Int32",
"description": "讀卡機配置(1:前門刷卡;2:前後門刷卡)",
"type": "integer"
},
"IsElectric": {
+ "title": "Boolean",
"description": "是否為電動公車",
"type": "boolean"
},
"IsHybrid": {
+ "title": "Boolean",
"description": "是否為油電混合公車",
"type": "boolean"
},
"IsLowFloor": {
+ "title": "Boolean",
"description": "是否為低地板",
"type": "boolean"
},
"HasLiftOrRamp": {
+ "title": "Boolean",
"description": "是否有升降或斜坡板設備",
"type": "boolean"
},
"HasWifi": {
+ "title": "Boolean",
"description": "是否有提供Wifi服務",
"type": "boolean"
},
"InBoxID": {
+ "title": "String",
"description": "車機代號",
"type": "string"
},
@@ -6976,18 +7609,26 @@
}
}
},
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleDepot]": {
- "title": "BusVehicleDepotList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.Vehicle]": {
+ "title": "BusVehicleList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "VehicleDepots"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "Vehicles",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -6995,6 +7636,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -7005,33 +7647,42 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "VehicleDepots": {
- "description": "資料(陣列)",
+ "Vehicles": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.VehicleDepot"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.Vehicle"
}
}
}
},
- "Service.DTO.Version3.Bus.VehicleDepot": {
+ "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle": {
+ "title": "Vehicle",
+ "type": "object",
+ "properties": {
+ "PlateNumb": {
+ "title": "String",
+ "description": "車牌號碼",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.VehicleDepot": {
"title": "VehicleDepot",
"required": [
"DepotID",
@@ -7041,45 +7692,49 @@
"type": "object",
"properties": {
"DepotID": {
+ "title": "String",
"description": "營業所代碼",
"type": "string"
},
"DepotName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營業所名稱"
+ "description": "營業所名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Vehicles": {
+ "title": "Array",
"description": "車輛",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.VehicleDepot.Vehicle"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot+Vehicle"
}
}
}
},
- "Service.DTO.Version3.Bus.VehicleDepot.Vehicle": {
- "title": "Vehicle",
- "type": "object",
- "properties": {
- "PlateNumb": {
- "description": "車牌號碼",
- "type": "string"
- }
- }
- },
- "MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleRoute]": {
- "title": "BusVehicleRouteList",
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleDepot]": {
+ "title": "BusVehicleDepotList",
+ "description": "版本 wrapper (具有版本資訊)",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "VehicleRoutes"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VehicleDepots",
+ "VersionID"
],
"type": "object",
"properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -7087,6 +7742,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "[平臺]資料更新週期(秒)",
"type": "integer"
},
@@ -7097,81 +7753,152 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
"Count": {
"format": "int64",
"description": "資料總筆數",
"type": "integer"
},
- "VehicleRoutes": {
- "description": "資料(陣列)",
+ "VehicleDepots": {
+ "title": "Array",
+ "description": "資料列表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.VehicleRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleDepot"
}
}
}
},
- "Service.DTO.Version3.Bus.VehicleRoute": {
+ "PTX.Service.DTO.Bus.Specification.V3.VehicleRoute": {
"title": "VehicleRoute",
"required": [
- "RouteUID",
+ "PlateNumb",
"RouteID",
"RouteName",
- "PlateNumb"
+ "RouteUID"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之附屬路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
}
}
+ },
+ "PTX.Service.DTO.Bus.Specification.V3.Wrapper.BusVWrapper[PTX.Service.DTO.Bus.Specification.V3.VehicleRoute]": {
+ "title": "BusVehicleRouteList",
+ "description": "版本 wrapper (具有版本資訊)",
+ "required": [
+ "AuthorityCode",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime",
+ "VehicleRoutes",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "[平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "[平臺]資料更新週期(秒)",
+ "type": "integer"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "[來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
+ },
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ },
+ "VehicleRoutes": {
+ "title": "Array",
+ "description": "資料列表",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V3.VehicleRoute"
+ }
+ }
+ }
}
},
"tags": [
{
- "name": "CityBus"
- },
- {
- "name": "InterCityBus"
+ "name": "CityBus",
+ "description": "市區公車"
}
]
}
diff --git a/oas.rail.v2.json b/oas.rail.v2.json
index 65856c72..f25256ab 100644
--- a/oas.rail.v2.json
+++ b/oas.rail.v2.json
@@ -1,16 +1,85 @@
{
"swagger": "2.0",
"info": {
- "version": "v2",
"title": "MOTC Transport API V2",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\r\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\r\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\r\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\r\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Rail/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Rail/api-docs/oas)",
+ "version": "v2"
},
"host": "ptx.transportdata.tw",
- "basePath": "/MOTC/",
+ "basePath": "/MOTC",
"schemes": [
"https"
],
"paths": {
+ "/v2/Rail/Operator": {
+ "get": {
+ "tags": [
+ "RailBasic"
+ ],
+ "summary": "取得軌道營運業者資料",
+ "operationId": "RailApi_Operator",
+ "produces": [
+ "application/json",
+ "application/xml"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "挑選",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$filter",
+ "description": "過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "排序",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "取前幾筆",
+ "type": "integer",
+ "default": 30
+ },
+ {
+ "in": "query",
+ "name": "$skip",
+ "description": "跳過前幾筆",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "JSON",
+ "XML"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Operator"
+ }
+ }
+ }
+ }
+ }
+ },
"/v2/Rail/Metro/Network/{Operator}": {
"get": {
"tags": [
@@ -19,15 +88,14 @@
"summary": "取得捷運路網資料",
"description": "取得捷運路網資料",
"operationId": "MetroApi_Network",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -38,46 +106,46 @@
"TRTCMG"
],
"x-enum": {
- "TRTC": "臺北捷運",
"TRTCMG": "貓空纜車",
"KRTC": "高雄捷運",
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "TRTC": "臺北捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -89,11 +157,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Network"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Network"
}
}
}
@@ -108,15 +177,14 @@
"summary": "取得捷運路線基本資料",
"description": "取得捷運路線基本資料",
"operationId": "MetroApi_Line",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -129,48 +197,48 @@
"TRTCMG"
],
"x-enum": {
- "TYMC": "桃園捷運",
- "KLRT": "高雄輕軌",
"TRTCMG": "貓空纜車",
"TRTC": "臺北捷運",
"NTDLRT": "淡海輕軌",
- "KRTC": "高雄捷運"
+ "KRTC": "高雄捷運",
+ "TYMC": "桃園捷運",
+ "KLRT": "高雄輕軌"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -182,11 +250,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Line"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Line"
}
}
}
@@ -201,15 +270,14 @@
"summary": "取得捷運車站基本資料",
"description": "取得捷運車站基本資料",
"operationId": "MetroApi_Station",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -222,54 +290,54 @@
"TRTCMG"
],
"x-enum": {
- "KLRT": "高雄輕軌",
- "KRTC": "高雄捷運",
"TRTC": "臺北捷運",
+ "KLRT": "高雄輕軌",
"NTDLRT": "淡海輕軌",
"TYMC": "桃園捷運",
- "TRTCMG": "貓空纜車"
+ "TRTCMG": "貓空纜車",
+ "KRTC": "高雄捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -281,11 +349,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Station"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Station"
}
}
}
@@ -300,15 +369,14 @@
"summary": "取得捷運路線車站基本資料",
"description": "取得捷運路線車站基本資料",
"operationId": "MetroApi_StationOfLine",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -321,48 +389,48 @@
"TRTCMG"
],
"x-enum": {
- "KLRT": "高雄輕軌",
"TRTC": "臺北捷運",
"KRTC": "高雄捷運",
+ "KLRT": "高雄輕軌",
"TYMC": "桃園捷運",
"NTDLRT": "淡海輕軌",
"TRTCMG": "貓空纜車"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -374,11 +442,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.StationOfLine"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfLine"
}
}
}
@@ -393,15 +462,14 @@
"summary": "取得捷運路線站間轉乘基本資料",
"description": "取得捷運路線站間轉乘基本資料",
"operationId": "MetroApi_LineTransfer",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -416,39 +484,39 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -460,11 +528,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.LineTransfer"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.LineTransfer"
}
}
}
@@ -479,15 +548,14 @@
"summary": "取得捷運車站設施資料",
"description": "取得捷運車站設施資料",
"operationId": "MetroApi_StationFacility",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -495,45 +563,45 @@
"TYMC"
],
"x-enum": {
- "KRTC": "高雄捷運",
"TRTC": "臺北捷運",
+ "KRTC": "高雄捷運",
"TYMC": "桃園捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -545,11 +613,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.StationFacility"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.StationFacility"
}
}
}
@@ -564,15 +633,14 @@
"summary": "取得捷運車站出入口基本資料",
"description": "取得捷運車站出入口基本資料",
"operationId": "MetroApi_StationExit",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -583,53 +651,53 @@
"TRTCMG"
],
"x-enum": {
- "TRTC": "臺北捷運",
"KLRT": "高雄輕軌",
"TYMC": "桃園捷運",
+ "TRTC": "臺北捷運",
"KRTC": "高雄捷運",
"TRTCMG": "貓空纜車"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -641,11 +709,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.StationExit"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.StationExit"
}
}
}
@@ -660,15 +729,14 @@
"summary": "取得捷運營運路線基本資料",
"description": "取得捷運營運路線基本資料",
"operationId": "MetroApi_Route",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -679,46 +747,46 @@
"NTDLRT"
],
"x-enum": {
- "KRTC": "高雄捷運",
"NTDLRT": "淡海輕軌",
"TRTC": "臺北捷運",
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "KRTC": "高雄捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -730,11 +798,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Route"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Route"
}
}
}
@@ -749,15 +818,14 @@
"summary": "取得捷運營運路線車站基本資料",
"description": "取得捷運營運路線車站基本資料",
"operationId": "MetroApi_StationOfRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -768,46 +836,46 @@
"NTDLRT"
],
"x-enum": {
- "TRTC": "臺北捷運",
- "NTDLRT": "淡海輕軌",
"KRTC": "高雄捷運",
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "TRTC": "臺北捷運",
+ "NTDLRT": "淡海輕軌"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -819,11 +887,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.StationOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfRoute"
}
}
}
@@ -838,15 +907,14 @@
"summary": "取得捷運首末班車時刻表資料",
"description": "取得捷運首末班車時刻表資料",
"operationId": "MetroApi_FirstLastTimetable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -858,45 +926,45 @@
],
"x-enum": {
"KRTC": "高雄捷運",
- "KLRT": "高雄輕軌",
"TYMC": "桃園捷運",
- "TRTC": "臺北捷運"
+ "TRTC": "臺北捷運",
+ "KLRT": "高雄輕軌"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -908,11 +976,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.FirstLastTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.FirstLastTimetable"
}
}
}
@@ -927,15 +996,14 @@
"summary": "取得捷運路線發車班距頻率資料",
"description": "取得捷運路線發車班距頻率資料",
"operationId": "MetroApi_Frequency",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -950,39 +1018,39 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -994,11 +1062,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Frequency"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Frequency"
}
}
}
@@ -1013,15 +1082,14 @@
"summary": "取得捷運列車站間運行時間資料",
"description": "取得捷運列車站間運行時間資料",
"operationId": "MetroApi_S2STravelTime",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1032,46 +1100,46 @@
"KLRT"
],
"x-enum": {
- "KRTC": "高雄捷運",
- "TYMC": "桃園捷運",
"TRTC": "臺北捷運",
- "KLRT": "高雄輕軌"
+ "KLRT": "高雄輕軌",
+ "KRTC": "高雄捷運",
+ "TYMC": "桃園捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1083,11 +1151,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.S2STravelTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.S2STravelTime"
}
}
}
@@ -1102,15 +1171,14 @@
"summary": "取得捷運起迄站間票價資料",
"description": "取得捷運起迄站間票價資料",
"operationId": "MetroApi_ODFare",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1124,47 +1192,47 @@
],
"x-enum": {
"TYMC": "桃園捷運",
- "KLRT": "高雄輕軌",
- "KRTC": "高雄捷運",
- "TRTC": "臺北捷運",
"TRTCMG": "貓空纜車",
- "NTDLRT": "淡海輕軌"
+ "KRTC": "高雄捷運",
+ "NTDLRT": "淡海輕軌",
+ "KLRT": "高雄輕軌",
+ "TRTC": "臺北捷運"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1176,11 +1244,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.ODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.ODFare"
}
}
}
@@ -1195,15 +1264,14 @@
"summary": "取得捷運車站別列車即時到離站電子看板資訊",
"description": "取得捷運車站別列車即時到離站電子看板資訊",
"operationId": "MetroApi_LiveBoard",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1217,39 +1285,39 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1261,11 +1329,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.LiveBoard"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.LiveBoard"
}
}
}
@@ -1280,15 +1349,14 @@
"summary": "取得捷運站別時刻表資料",
"description": "取得捷運站別時刻表資料\r\n\r\n## 使用注意事項\r\n臺北捷運目前無提供文湖線站別時刻表,建議您可使用[取得捷運路線發車班距頻率資料]取得文湖線列車相關資訊。",
"operationId": "MetroApi_StationTimeTable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "欲查詢縣市",
"required": true,
"type": "string",
@@ -1306,39 +1374,39 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1350,11 +1418,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.StationTimeTable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.StationTimeTable"
}
}
}
@@ -1369,65 +1438,64 @@
"summary": "取得指定營運業者之軌道路網實體路線圖資資料",
"description": "取得指定營運業者之軌道路網實體路線圖資資料",
"operationId": "MetroApi_Shape",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
"description": "",
"required": true,
"type": "string",
"enum": [
"TRTC",
- "NTDLRT",
"KRTC",
+ "NTDLRT",
"TYMC"
],
"x-enum": {
- "NTDLRT": "淡海輕軌",
"KRTC": "高雄捷運",
"TRTC": "臺北捷運",
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "NTDLRT": "淡海輕軌"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1439,11 +1507,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MetroShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MetroShape"
}
}
}
@@ -1458,15 +1527,15 @@
"summary": "取得最新消息",
"description": "取得最新消息",
"operationId": "MetroApi_News",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
+ "description": "欲查詢縣市",
"required": true,
"type": "string",
"enum": [
@@ -1481,49 +1550,49 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1535,9 +1604,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTNewsList.News]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News]"
}
}
}
@@ -1551,15 +1620,15 @@
"summary": "取得營運通阻資料",
"description": "取得營運通阻資料",
"operationId": "MetroApi_Alert",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "Operator",
"in": "path",
+ "name": "Operator",
+ "description": "欲查詢縣市",
"required": true,
"type": "string",
"enum": [
@@ -1574,49 +1643,49 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1628,9 +1697,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.Alert]"
}
}
}
@@ -1644,52 +1713,51 @@
"summary": "取得車站基本資料",
"description": "取得車站基本資料",
"operationId": "THSRApi_Station",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1701,11 +1769,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStation"
}
}
}
@@ -1720,46 +1789,45 @@
"summary": "取得票價資料",
"description": "取得票價資料",
"operationId": "THSRApi_ODFare",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1771,11 +1839,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare"
}
}
}
@@ -1790,60 +1859,59 @@
"summary": "取得指定[起訖站間]之票價資料",
"description": "取得指定[起訖站間]之票價資料",
"operationId": "THSRApi_ODFare_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "OriginStationID",
"in": "path",
+ "name": "OriginStationID",
"description": "起點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "DestinationStationID",
"in": "path",
+ "name": "DestinationStationID",
"description": "迄點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1855,11 +1923,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare"
}
}
}
@@ -1874,46 +1943,45 @@
"summary": "取得所有車次的定期時刻表資料",
"description": "取得所有車次的定期時刻表資料",
"operationId": "THSRApi_GeneralTimetable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1925,11 +1993,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailGeneralTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable"
}
}
}
@@ -1944,53 +2013,52 @@
"summary": "取得指定[車次]的定期時刻表資料",
"description": "取得指定[車次]的定期時刻表資料",
"operationId": "THSRApi_GeneralTimetable_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2002,11 +2070,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailGeneralTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable"
}
}
}
@@ -2021,46 +2090,45 @@
"summary": "取得當天所有車次的車次資料",
"description": "取得當天所有車次的車次資料",
"operationId": "THSRApi_DailyTrainInfo",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2072,11 +2140,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo"
}
}
}
@@ -2091,53 +2160,52 @@
"summary": "取得當天指定[車次]的車次資料",
"description": "取得當天指定[車次]的車次資料",
"operationId": "THSRApi_DailyTrainInfo_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2149,11 +2217,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo"
}
}
}
@@ -2168,53 +2237,52 @@
"summary": "取得指定[日期]所有車次的車次資料",
"description": "取得指定[日期]所有車次的車次資料(高鐵提供近28天每日時刻表)",
"operationId": "THSRApi_DailyTrainInfo_2",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2226,11 +2294,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo"
}
}
}
@@ -2245,60 +2314,59 @@
"summary": "取得指定[日期],[車次]的車次資料",
"description": "取得指定[日期],[車次]的車次資料(高鐵提供近28天每日時刻表)",
"operationId": "THSRApi_DailyTrainInfo_3",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2310,11 +2378,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo"
}
}
}
@@ -2329,46 +2398,45 @@
"summary": "取得當天所有車次的時刻表資料",
"description": "取得當天所有車次的時刻表資料",
"operationId": "THSRApi_DailyTimetable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2380,11 +2448,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable"
}
}
}
@@ -2399,53 +2468,52 @@
"summary": "取得當天指定[車次]的時刻表資料",
"description": "取得當天指定[車次]的時刻表資料",
"operationId": "THSRApi_DailyTimetable_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2457,11 +2525,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable"
}
}
}
@@ -2476,53 +2545,52 @@
"summary": "取得指定[日期]所有車次的時刻表資料",
"description": "取得指定[日期]所有車次的時刻表資料(高鐵提供近28天每日時刻表)",
"operationId": "THSRApi_DailyTimetable_2",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2534,11 +2602,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable"
}
}
}
@@ -2553,60 +2622,59 @@
"summary": "取得指定[日期],[車次]的時刻表資料",
"description": "取得指定[日期],[車次]的時刻表資料(高鐵提供近28天每日時刻表)",
"operationId": "THSRApi_DailyTimetable_3",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2618,11 +2686,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable"
}
}
}
@@ -2637,58 +2706,57 @@
"summary": "取得指定[日期],[車站]的站別時刻表資料",
"description": "取得指定[日期],[車站]的站別時刻表資料",
"operationId": "THSRApi_StationTimetable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
"in": "path",
+ "name": "StationID",
"required": true,
"type": "string"
},
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2700,11 +2768,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStationTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStationTimetable"
}
}
}
@@ -2719,67 +2788,66 @@
"summary": "取得指定[日期],[起迄站間]之時刻表資料",
"description": "取得指定[日期],[起迄站間]之時刻表資料",
"operationId": "THSRApi_ODDailyTimetable",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "OriginStationID",
"in": "path",
+ "name": "OriginStationID",
"description": "起點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "DestinationStationID",
"in": "path",
+ "name": "DestinationStationID",
"description": "迄點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2791,11 +2859,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailODDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailODDailyTimetable"
}
}
}
@@ -2810,46 +2879,45 @@
"summary": "取得即時通阻事件資料",
"description": "取得即時通阻事件資料",
"operationId": "THSRApi_AlertInfo",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2861,11 +2929,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.AlertInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.AlertInfo"
}
}
}
@@ -2880,46 +2949,45 @@
"summary": "取得高鐵最新消息資料",
"description": "取得高鐵最新消息資料",
"operationId": "THSRApi_News",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2931,11 +2999,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.News"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.News"
}
}
}
@@ -2950,46 +3019,45 @@
"summary": "取得軌道路網實體路線圖資資料",
"description": "取得軌道路網實體路線圖資資料",
"operationId": "THSRApi_Shape",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3001,11 +3069,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.THSRShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.THSRShape"
}
}
}
@@ -3020,56 +3089,55 @@
"summary": "取得動態對號座剩餘座位資訊看板資料",
"description": "取得動態對號座剩餘座位資訊看板資料",
"operationId": "THSRApi_AvailableSeatStatusList_Station",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3081,9 +3149,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusOldWrapper[Service.DTO.Version2.Rail.THSR.Old.AvailableSeat]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRAvaliableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]"
}
}
}
@@ -3097,63 +3165,62 @@
"summary": "取得動態指定[車站]的對號座剩餘座位資訊看板資料",
"description": "取得動態指定[車站]的對號座剩餘座位資訊看板資料",
"operationId": "THSRApi_AvailableSeatStatusList_Station_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
"in": "path",
+ "name": "StationID",
"description": "起點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3165,9 +3232,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusOldWrapper[Service.DTO.Version2.Rail.THSR.Old.AvailableSeat]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRAvaliableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]"
}
}
}
@@ -3181,52 +3248,51 @@
"summary": "取得車站出入口基本資料",
"description": "取得車站出入口基本資料",
"operationId": "THSRApi_StationExit",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3238,11 +3304,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.StationExit"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StationExit"
}
}
}
@@ -3255,58 +3322,57 @@
"THSR"
],
"summary": "**(開發用測試版)** 取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)",
- "description": "取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)\r\n- 高鐵對號座即時剩餘位(列車區段Leg角度)之資料使用注意事項([連結](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/api-zi-liao-shi-yong-zhu-yi-shi-xiang/rail))\r\n- 當日(D)之更新頻率為每10分鐘\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
+ "description": "取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)\r\n- (更新頻率為10分鐘)\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
"operationId": "THSRApi_AvailableSeatStatus",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3318,9 +3384,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]"
}
}
}
@@ -3332,65 +3398,64 @@
"THSR"
],
"summary": "**(開發用測試版)** 取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)",
- "description": "取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)\r\n- 高鐵對號座即時剩餘位(列車區段Leg角度)之資料使用注意事項([連結](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/api-zi-liao-shi-yong-zhu-yi-shi-xiang/rail))\r\n- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
+ "description": "取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)\r\n- (更新頻率為每日的10、16、22時)\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
"operationId": "THSRApi_AvailableSeatStatus_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
+ "name": "TrainDate",
"description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3402,62 +3467,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]"
}
}
}
}
},
- "/v2/Rail/TRA/Network": {
+ "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/TrainDate/{TrainDate}": {
"get": {
"tags": [
- "TRA"
+ "THSR"
],
- "summary": "取得臺鐵路網資料",
- "description": "取得臺鐵路網資料",
- "operationId": "TRAApi_Network",
- "consumes": [],
+ "summary": "**(開發用測試版)** 取得指定[日期]對號座即時剩餘位資料(加值型列車起迄段OD角度)",
+ "description": "取得指定[日期]對號座即時剩餘位資料(加值型列車起迄段OD角度)\r\n- 當日(D)之更新頻率為每10分鐘\r\n- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
+ "operationId": "THSRApi_AvailableSeatStatus_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$count",
+ "description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3469,71 +3550,92 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.Network"
- }
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRODAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]"
}
}
}
}
},
- "/v2/Rail/TRA/Station": {
+ "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}": {
"get": {
"tags": [
- "TRA"
+ "THSR"
],
- "summary": "取得車站基本資料",
- "description": "取得車站基本資料",
- "operationId": "TRAApi_Station",
- "consumes": [],
+ "summary": "**(開發用測試版)** 取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)",
+ "description": "取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)\r\n- 當日(D)之更新頻率為每10分鐘\r\n- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
+ "operationId": "THSRApi_AvailableSeatStatus_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
- "in": "query",
- "description": "挑選",
+ "in": "path",
+ "name": "OriginStationID",
+ "description": "指定起始車站",
+ "required": true,
"type": "string"
},
{
- "name": "$filter",
- "in": "query",
- "description": "過濾",
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "指定迄止車站",
+ "required": true,
"type": "string"
},
{
- "name": "$orderby",
- "in": "query",
- "description": "排序",
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "挑選",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$filter",
+ "description": "過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
- "description": "空間過濾",
- "type": "string"
+ "name": "$count",
+ "description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3545,65 +3647,99 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStation"
- }
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRODAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]"
}
}
}
}
},
- "/v2/Rail/TRA/Line": {
+ "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}/TrainNo/{TrainNo}": {
"get": {
"tags": [
- "TRA"
+ "THSR"
],
- "summary": "取得路線基本資料",
- "description": "取得路線基本資料",
- "operationId": "TRAApi_Line",
- "consumes": [],
+ "summary": "**(開發用測試版)** 取得指定[日期], [車次], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)",
+ "description": "取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)\r\n- 當日(D)之更新頻率為每10分鐘\r\n- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時\r\n- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**",
+ "operationId": "THSRApi_AvailableSeatStatus_4",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "OriginStationID",
+ "description": "指定起始車站",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "指定迄止車站",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "TrainNo",
+ "description": "欲查詢車次號碼(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$count",
+ "description": "查詢數量",
+ "type": "boolean",
+ "enum": [
+ true,
+ false
+ ]
+ },
+ {
+ "in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3615,65 +3751,61 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.Line"
- }
+ "$ref": "#/definitions/PTX.API.Rail.Model.V2THSRODAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]"
}
}
}
}
},
- "/v2/Rail/TRA/StationOfLine": {
+ "/v2/Rail/TRA/Network": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得路線車站基本資料",
- "description": "取得路線車站基本資料",
- "operationId": "TRAApi_StationOfLine",
- "consumes": [],
+ "summary": "取得臺鐵路網資料",
+ "description": "取得臺鐵路網資料",
+ "operationId": "TRAApi_Network",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3685,65 +3817,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.StationOfLine"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.Network"
}
}
}
}
}
},
- "/v2/Rail/TRA/TrainType": {
+ "/v2/Rail/TRA/Station": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有列車車種資料",
- "description": "取得所有列車車種資料",
- "operationId": "TRAApi_TrainType",
- "consumes": [],
+ "summary": "取得車站基本資料",
+ "description": "取得車站基本資料",
+ "operationId": "TRAApi_Station",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3755,65 +3893,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.TrainType"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStation"
}
}
}
}
}
},
- "/v2/Rail/TRA/Shape": {
+ "/v2/Rail/TRA/Line": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得軌道路網實體路線圖資資料",
- "description": "取得軌道路網實體路線圖資資料",
- "operationId": "TRAApi_Shape",
- "consumes": [],
+ "summary": "取得路線基本資料",
+ "description": "取得路線基本資料",
+ "operationId": "TRAApi_Line",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3825,79 +3963,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.TRAShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.Line"
}
}
}
}
}
},
- "/v2/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}": {
+ "/v2/Rail/TRA/StationOfLine": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[起訖站間]之票價資料",
- "description": "取得指定[起訖站間]之票價資料",
- "operationId": "TRAApi_ODFareStation",
- "consumes": [],
+ "summary": "取得路線車站基本資料",
+ "description": "取得路線車站基本資料",
+ "operationId": "TRAApi_StationOfLine",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "OriginStationID",
- "in": "path",
- "description": "起點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "DestinationStationID",
- "in": "path",
- "description": "迄點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3909,65 +4033,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.StationOfLine"
}
}
}
}
}
},
- "/v2/Rail/TRA/ODFare": {
+ "/v2/Rail/TRA/TrainType": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得票價資料",
- "description": "取得票價資料",
- "operationId": "TRAApi_ODFareStation_1",
- "consumes": [],
+ "summary": "取得所有列車車種資料",
+ "description": "取得所有列車車種資料",
+ "operationId": "TRAApi_TrainType",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -3979,65 +4103,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TrainType"
}
}
}
}
}
},
- "/v2/Rail/TRA/GeneralTrainInfo": {
+ "/v2/Rail/TRA/Shape": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有車次的定期車次資料",
- "description": "取得所有車次的定期車次資料",
- "operationId": "TRAApi_GeneralTrainInfo",
- "consumes": [],
+ "summary": "取得軌道路網實體路線圖資資料",
+ "description": "取得軌道路網實體路線圖資資料",
+ "operationId": "TRAApi_Shape",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4049,72 +4173,79 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailGeneralTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TRAShape"
}
}
}
}
}
},
- "/v2/Rail/TRA/GeneralTrainInfo/TrainNo/{TrainNo}": {
+ "/v2/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車次]的定期車次資料",
- "description": "取得指定[車次]的定期車次資料",
- "operationId": "TRAApi_GeneralTrainInfo_1",
- "consumes": [],
+ "summary": "取得指定[起訖站間]之票價資料",
+ "description": "取得指定[起訖站間]之票價資料",
+ "operationId": "TRAApi_ODFareStation",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
- "description": "欲查詢車次的代碼",
+ "name": "OriginStationID",
+ "description": "起點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "迄點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4126,65 +4257,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailGeneralTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare"
}
}
}
}
}
},
- "/v2/Rail/TRA/GeneralTimetable": {
+ "/v2/Rail/TRA/ODFare": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有車次的定期時刻表資料",
- "description": "取得所有車次的定期時刻表資料",
- "operationId": "TRAApi_GeneralTimetable",
- "consumes": [],
+ "summary": "取得票價資料",
+ "description": "取得票價資料",
+ "operationId": "TRAApi_ODFareStation_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4196,72 +4327,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailGeneralTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare"
}
}
}
}
}
},
- "/v2/Rail/TRA/GeneralTimetable/TrainNo/{TrainNo}": {
+ "/v2/Rail/TRA/GeneralTrainInfo": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車次]的定期時刻表資料",
- "description": "取得指定[車次]的定期時刻表資料",
- "operationId": "TRAApi_GeneralTimetable_1",
- "consumes": [],
+ "summary": "取得所有車次的定期車次資料",
+ "description": "取得所有車次的定期車次資料",
+ "operationId": "TRAApi_GeneralTrainInfo",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
- "in": "path",
- "description": "欲查詢車次的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4273,65 +4397,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailGeneralTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTrainInfo/Today": {
+ "/v2/Rail/TRA/GeneralTrainInfo/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天所有車次的車次資料",
- "description": "取得當天所有車次的車次資料",
- "operationId": "TRAApi_DailyTrainInfo",
- "consumes": [],
+ "summary": "取得指定[車次]的定期車次資料",
+ "description": "取得指定[車次]的定期車次資料",
+ "operationId": "TRAApi_GeneralTrainInfo_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4343,72 +4474,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTrainInfo/Today/TrainNo/{TrainNo}": {
+ "/v2/Rail/TRA/GeneralTimetable": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天指定[車次]的車次資料",
- "description": "取得當天指定[車次]的車次資料",
- "operationId": "TRAApi_DailyTrainInfo_1",
- "consumes": [],
+ "summary": "取得所有車次的定期時刻表資料",
+ "description": "取得所有車次的定期時刻表資料",
+ "operationId": "TRAApi_GeneralTimetable",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
- "in": "path",
- "description": "欲查詢車次的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4420,72 +4544,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTrainInfo/TrainDate/{TrainDate}": {
+ "/v2/Rail/TRA/GeneralTimetable/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期]所有車次的車次資料",
- "description": "取得指定[日期]所有車次的車次資料(台鐵提供近60天每日時刻表)",
- "operationId": "TRAApi_DailyTrainInfo_2",
- "consumes": [],
+ "summary": "取得指定[車次]的定期時刻表資料",
+ "description": "取得指定[車次]的定期時刻表資料",
+ "operationId": "TRAApi_GeneralTimetable_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
- "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4497,79 +4621,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}": {
+ "/v2/Rail/TRA/DailyTrainInfo/Today": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期]與[車次]的車次資料",
- "description": "取得指定[日期]與[車次]的車次資料(台鐵提供近60天每日時刻表)",
- "operationId": "TRAApi_DailyTrainInfo_3",
- "consumes": [],
+ "summary": "取得當天所有車次的車次資料",
+ "description": "取得當天所有車次的車次資料",
+ "operationId": "TRAApi_DailyTrainInfo",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
- "in": "path",
- "description": "欲查詢車次的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "TrainDate",
- "in": "path",
- "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4581,65 +4691,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/Today": {
+ "/v2/Rail/TRA/DailyTrainInfo/Today/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天所有車次的時刻表資料",
- "description": "取得當天所有車次的時刻表資料",
- "operationId": "TRAApi_DailyTimetable",
- "consumes": [],
+ "summary": "取得當天指定[車次]的車次資料",
+ "description": "取得當天指定[車次]的車次資料",
+ "operationId": "TRAApi_DailyTrainInfo_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4651,72 +4768,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/Today/TrainNo/{TrainNo}": {
+ "/v2/Rail/TRA/DailyTrainInfo/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天指定[車次]的時刻表資料",
- "description": "取得當天指定[車次]的時刻表資料",
- "operationId": "TRAApi_DailyTimetable_1",
- "consumes": [],
+ "summary": "取得指定[日期]所有車次的車次資料",
+ "description": "取得指定[日期]所有車次的車次資料(台鐵提供近60天每日時刻表)",
+ "operationId": "TRAApi_DailyTrainInfo_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
- "description": "欲查詢車次的代碼",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4728,72 +4845,79 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/TrainDate/{TrainDate}": {
+ "/v2/Rail/TRA/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期]所有車次的時刻表資料",
- "description": "取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)",
- "operationId": "TRAApi_DailyTimetable_2",
- "consumes": [],
+ "summary": "取得指定[日期]與[車次]的車次資料",
+ "description": "取得指定[日期]與[車次]的車次資料(台鐵提供近60天每日時刻表)",
+ "operationId": "TRAApi_DailyTrainInfo_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
- "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4805,79 +4929,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}": {
+ "/v2/Rail/TRA/DailyTimetable/Today": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期],[車次]的時刻表資料",
- "description": "取得指定[日期],[車次]的時刻表資料(台鐵提供近60天每日時刻表)",
- "operationId": "TRAApi_DailyTimetable_3",
- "consumes": [],
+ "summary": "取得當天所有車次的時刻表資料",
+ "description": "取得當天所有車次的時刻表資料",
+ "operationId": "TRAApi_DailyTimetable",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
- "in": "path",
- "description": "欲查詢車次的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "TrainDate",
- "in": "path",
- "description": "欲查詢的日期(格式: yyyy-MM-dd)",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4889,79 +4999,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/Station/{StationID}/{TrainDate}": {
+ "/v2/Rail/TRA/DailyTimetable/Today/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期],[車站]的站別時刻表資料",
- "description": "取得指定[日期],[車站]的站別時刻表資料",
- "operationId": "TRAApi_StationTimetable",
- "consumes": [],
+ "summary": "取得當天指定[車次]的時刻表資料",
+ "description": "取得當天指定[車次]的時刻表資料",
+ "operationId": "TRAApi_DailyTimetable_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
- "in": "path",
- "description": "車站代號",
- "required": true,
- "type": "string"
- },
- {
- "name": "TrainDate",
"in": "path",
- "description": "時刻表日期(格式: yyyy-MM-dd)",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -4973,86 +5076,72 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStationTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
+ "/v2/Rail/TRA/DailyTimetable/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期],[起迄站間]之站間時刻表資料",
- "description": "取得指定[日期],[起迄站間]之站間時刻表資料",
- "operationId": "TRAApi_ODDailyTimetable",
- "consumes": [],
+ "summary": "取得指定[日期]所有車次的時刻表資料",
+ "description": "取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)",
+ "operationId": "TRAApi_DailyTimetable_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "OriginStationID",
- "in": "path",
- "description": "起點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "DestinationStationID",
"in": "path",
- "description": "迄點車站代碼",
- "required": true,
- "type": "string"
- },
- {
"name": "TrainDate",
- "in": "path",
"description": "欲查詢的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -5064,65 +5153,79 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailODDailyTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/LiveBoard": {
+ "/v2/Rail/TRA/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)",
- "description": "取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊",
- "operationId": "TRAApi_LiveBoard",
- "consumes": [],
+ "summary": "取得指定[日期],[車次]的時刻表資料",
+ "description": "取得指定[日期],[車次]的時刻表資料(台鐵提供近60天每日時刻表)",
+ "operationId": "TRAApi_DailyTimetable_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -5134,72 +5237,79 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailLiveBoard"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/LiveBoard/Station/{StationID}": {
+ "/v2/Rail/TRA/DailyTimetable/Station/{StationID}/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)",
- "description": "取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊",
- "operationId": "TRAApi_LiveBoard_1",
- "consumes": [],
+ "summary": "取得指定[日期],[車站]的站別時刻表資料",
+ "description": "取得指定[日期],[車站]的站別時刻表資料",
+ "operationId": "TRAApi_StationTimetable",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
+ "in": "path",
"name": "StationID",
+ "description": "車站代號",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "path",
- "description": "車站代碼",
+ "name": "TrainDate",
+ "description": "時刻表日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -5211,65 +5321,86 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailLiveBoard"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStationTimetable"
}
}
}
}
}
},
- "/v2/Rail/TRA/LiveTrainDelay": {
+ "/v2/Rail/TRA/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得列車即時準點/延誤時間資料",
- "description": "取得列車即時準點/延誤時間資料。更新頻率:2分鐘",
- "operationId": "TRAApi_LiveTrainDelay",
- "consumes": [],
+ "summary": "取得指定[日期],[起迄站間]之站間時刻表資料",
+ "description": "取得指定[日期],[起迄站間]之站間時刻表資料",
+ "operationId": "TRAApi_ODDailyTimetable",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "OriginStationID",
+ "description": "起點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "迄點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -5281,63 +5412,65 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailLiveTrainDelay"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailODDailyTimetable"
}
}
}
}
}
},
- "/v2/Rail/Operator": {
+ "/v2/Rail/TRA/LiveBoard": {
"get": {
"tags": [
- "RailBasic"
+ "TRA"
],
- "operationId": "RailApi_Operator",
- "consumes": [],
+ "summary": "取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)",
+ "description": "取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊",
+ "operationId": "TRAApi_LiveBoard",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -5349,307 +5482,499 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard"
}
}
}
}
}
- }
- },
- "definitions": {
- "MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert]": {
- "title": "MRTAlertList",
- "required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "Alerts"
- ],
- "type": "object",
- "properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateInterval": {
- "format": "int32",
- "description": "本平台資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "Alerts": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert"
- }
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
+ },
+ "/v2/Rail/TRA/LiveBoard/Station/{StationID}": {
+ "get": {
+ "tags": [
+ "TRA"
+ ],
+ "summary": "取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)",
+ "description": "取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊",
+ "operationId": "TRAApi_LiveBoard_1",
+ "produces": [
+ "application/json",
+ "application/xml"
+ ],
+ "parameters": [
+ {
+ "in": "path",
+ "name": "StationID",
+ "description": "車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "挑選",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$filter",
+ "description": "過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "排序",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "取前幾筆",
+ "type": "integer",
+ "default": 30
+ },
+ {
+ "in": "query",
+ "name": "$skip",
+ "description": "跳過前幾筆",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "JSON",
+ "XML"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard"
+ }
+ }
+ }
}
}
},
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert": {
- "title": "Alert",
- "required": [
- "AlertID",
- "Title",
- "Description",
- "Status",
- "Scope",
- "UpdateTime"
- ],
+ "/v2/Rail/TRA/LiveTrainDelay": {
+ "get": {
+ "tags": [
+ "TRA"
+ ],
+ "summary": "取得列車即時準點/延誤時間資料",
+ "description": "取得列車即時準點/延誤時間資料。更新頻率:2分鐘",
+ "operationId": "TRAApi_LiveTrainDelay",
+ "produces": [
+ "application/json",
+ "application/xml"
+ ],
+ "parameters": [
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "挑選",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$filter",
+ "description": "過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$orderby",
+ "description": "排序",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$top",
+ "description": "取前幾筆",
+ "type": "integer",
+ "default": 30
+ },
+ {
+ "in": "query",
+ "name": "$skip",
+ "description": "跳過前幾筆",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$format",
+ "description": "指定來源格式",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "JSON",
+ "XML"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "schema": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveTrainDelay"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork": {
+ "title": "AlertScopeNetwork",
+ "description": "受影響的路網",
"type": "object",
"properties": {
- "AlertID": {
- "description": "通阻訊息代碼",
+ "NetworkID": {
+ "title": "String",
+ "description": "路網代碼",
"type": "string"
- },
- "Title": {
- "description": "通阻訊息標題",
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation": {
+ "title": "AlertScopeStation",
+ "description": "受影響的車站",
+ "type": "object",
+ "properties": {
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
"type": "string"
},
- "Description": {
- "description": "通阻訊息說明",
+ "StationName": {
+ "title": "String",
+ "description": "車站名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine": {
+ "title": "AlertScopeLine",
+ "description": "受影響的實體路線",
+ "type": "object",
+ "properties": {
+ "LineID": {
+ "title": "String",
+ "description": "實體路線代碼",
"type": "string"
},
- "Status": {
- "format": "int32",
- "title": "integer",
- "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']",
- "type": "integer"
- },
- "Scope": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScope",
- "title": "AlertScope",
- "description": "影響範圍"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "影響方向 : [0:'去程',1:'返程']",
- "type": "integer"
- },
- "Level": {
- "format": "int32",
- "title": "integer",
- "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']",
- "type": "integer"
- },
- "Effect": {
- "description": "影響說明",
+ "LineName": {
+ "title": "String",
+ "description": "實體路線名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute": {
+ "title": "AlertScopeRoute",
+ "description": "受影響的營運路線",
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "營運路線代碼",
"type": "string"
},
- "Reason": {
- "description": "影響原因",
+ "RouteName": {
+ "title": "String",
+ "description": "營運路線名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain": {
+ "title": "AlertScopeTrain",
+ "description": "受影響的車次",
+ "type": "object",
+ "properties": {
+ "TrainNo": {
+ "title": "String",
+ "description": "受影響的車次",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection": {
+ "title": "AlertScopeLineSection",
+ "description": "受影響的路線區間",
+ "type": "object",
+ "properties": {
+ "LineID": {
+ "title": "String",
+ "description": "路線區間所在路線代碼",
"type": "string"
},
- "AlertURL": {
- "description": "通阻訊息網址連結",
+ "StartingStationID": {
+ "title": "String",
+ "description": "區間起站車站代碼",
"type": "string"
},
- "StartTime": {
- "title": "DateTime",
- "description": "訊息起始日期時間",
+ "StartingStationName": {
+ "title": "String",
+ "description": "區間起站車站名稱",
"type": "string"
},
- "EndTime": {
- "title": "DateTime",
- "description": "訊息結束日期時間",
+ "EndingStationID": {
+ "title": "String",
+ "description": "區間迄站車站代碼",
"type": "string"
},
- "PublishTime": {
- "title": "DateTime",
- "description": "消息發佈日期時間",
+ "EndingStationName": {
+ "title": "String",
+ "description": "區間迄站車站名稱",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "消息更新日期時間",
+ "Description": {
+ "title": "String",
+ "description": "影響區間輔助描述",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScope": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope": {
"title": "AlertScope",
+ "description": "影響範圍",
"required": [
- "Stations",
"Lines",
+ "LineSections",
"Routes",
- "Trains",
- "LineSections"
+ "Stations",
+ "Trains"
],
"type": "object",
"properties": {
"Network": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeNetwork",
"title": "AlertScopeNetwork",
- "description": "受影響的路網"
+ "description": "受影響的路網",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork"
+ }
+ ]
},
"Stations": {
+ "title": "AlertScopeStation[]",
"description": "受影響的車站",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation"
}
},
"Lines": {
+ "title": "AlertScopeLine[]",
"description": "受影響的實體路線",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLine"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine"
}
},
"Routes": {
+ "title": "AlertScopeRoute[]",
"description": "受影響的營運路線",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute"
}
},
"Trains": {
+ "title": "AlertScopeTrain[]",
"description": "受影響的車次",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeTrain"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain"
}
},
"LineSections": {
+ "title": "AlertScopeLineSection[]",
"description": "受影響的路線區間",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLineSection"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection"
}
}
}
},
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeNetwork": {
- "title": "AlertScopeNetwork",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Alert": {
+ "title": "Alert",
+ "required": [
+ "AlertID",
+ "Description",
+ "Scope",
+ "Status",
+ "Title",
+ "UpdateTime"
+ ],
"type": "object",
"properties": {
- "NetworkID": {
- "description": "路網代碼",
+ "AlertID": {
+ "title": "String",
+ "description": "通阻訊息代碼",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeStation": {
- "title": "AlertScopeStation",
- "type": "object",
- "properties": {
- "StationID": {
- "description": "車站代碼",
+ },
+ "Title": {
+ "title": "String",
+ "description": "通阻訊息標題",
"type": "string"
},
- "StationName": {
- "description": "車站名稱",
+ "Description": {
+ "title": "String",
+ "description": "通阻訊息說明",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLine": {
- "title": "AlertScopeLine",
- "type": "object",
- "properties": {
- "LineID": {
- "description": "實體路線代碼",
+ },
+ "Status": {
+ "format": "int32",
+ "title": "integer",
+ "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']",
+ "type": "integer"
+ },
+ "Scope": {
+ "title": "AlertScope",
+ "description": "影響範圍",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "影響方向 : [0:'去程',1:'返程']",
+ "type": "integer"
+ },
+ "Level": {
+ "format": "int32",
+ "title": "integer",
+ "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']",
+ "type": "integer"
+ },
+ "Effect": {
+ "title": "String",
+ "description": "影響說明",
"type": "string"
},
- "LineName": {
- "description": "實體路線名稱",
+ "Reason": {
+ "title": "String",
+ "description": "影響原因",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeRoute": {
- "title": "AlertScopeRoute",
- "type": "object",
- "properties": {
- "RouteID": {
- "description": "營運路線代碼",
+ },
+ "AlertURL": {
+ "title": "String",
+ "description": "通阻訊息網址連結",
"type": "string"
},
- "RouteName": {
- "description": "營運路線名稱",
+ "StartTime": {
+ "title": "DateTime",
+ "description": "訊息起始日期時間",
"type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeTrain": {
- "title": "AlertScopeTrain",
- "type": "object",
- "properties": {
- "TrainNo": {
- "description": "受影響的車次",
+ },
+ "EndTime": {
+ "title": "DateTime",
+ "description": "訊息結束日期時間",
+ "type": "string"
+ },
+ "PublishTime": {
+ "title": "DateTime",
+ "description": "消息發佈日期時間",
+ "type": "string"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "消息更新日期時間",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLineSection": {
- "title": "AlertScopeLineSection",
+ "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.Alert]": {
+ "title": "MRTAlertList",
+ "required": [
+ "Alerts",
+ "AuthorityCode",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
+ ],
"type": "object",
"properties": {
- "LineID": {
- "description": "路線區間所在路線代碼",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "StartingStationID": {
- "description": "區間起站車站代碼",
- "type": "string"
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "本平台資料更新週期(秒)",
+ "type": "integer"
},
- "StartingStationName": {
- "description": "區間起站車站名稱",
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "EndingStationID": {
- "description": "區間迄站車站代碼",
- "type": "string"
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
},
- "EndingStationName": {
- "description": "區間迄站車站名稱",
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
"type": "string"
},
- "Description": {
- "description": "影響區間輔助描述",
- "type": "string"
+ "Alerts": {
+ "title": "Array",
+ "description": "資料(陣列)",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Alert"
+ }
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.AlertInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.AlertInfo": {
"title": "AlertInfo",
"description": "高鐵即時通阻事件資料",
"required": [
- "Level",
- "Status",
- "Title",
"Description",
- "Effects",
"Direction",
"EffectedSection",
+ "Effects",
+ "Level",
"SrcUpdateTime",
+ "Status",
+ "Title",
"UpdateTime"
],
"type": "object",
@@ -5661,26 +5986,32 @@
"type": "integer"
},
"Status": {
+ "title": "String",
"description": "營運狀態 = ['空白: 正常' or '▲: 其他的異常狀態' or 'X: 全線停止運行']",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "標題",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "事件簡易描述",
"type": "string"
},
"Effects": {
+ "title": "String",
"description": "影響狀態",
"type": "string"
},
"Direction": {
+ "title": "String",
"description": "運行方向",
"type": "string"
},
"EffectedSection": {
+ "title": "String",
"description": "影響區間",
"type": "string"
},
@@ -5706,58 +6037,113 @@
}
}
},
- "MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]": {
- "title": "AvaliableSeatStatus",
+ "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": {
+ "title": "NameType",
+ "description": "名稱資料型別",
+ "type": "object",
+ "properties": {
+ "Zh_tw": {
+ "title": "String",
+ "description": "中文繁體名稱",
+ "type": "string"
+ },
+ "En": {
+ "title": "String",
+ "description": "英文名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation": {
+ "title": "StopStation",
+ "description": "車次停靠站點組合",
"required": [
- "AvailableSeats"
+ "BusinessSeatStatus",
+ "NextStationCode",
+ "NextStationID",
+ "NextStationName",
+ "StandardSeatStatus",
+ "StationCode",
+ "StationID",
+ "StationName",
+ "StopSequence"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "StopSequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "跑法站序",
+ "type": "integer"
+ },
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
"type": "string"
},
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "StationCode": {
+ "title": "String",
+ "description": "車站簡碼(訂票系統用)",
"type": "string"
},
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "TrainDate": {
- "description": "營運日說明(格式: yyyy-MM-dd)",
+ "NextStationID": {
+ "title": "String",
+ "description": "下一停靠站車站代碼",
"type": "string"
},
- "AvailableSeats": {
- "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.AvailableSeat"
- }
+ "NextStationCode": {
+ "title": "String",
+ "description": "下一停靠站車站簡碼(訂票系統用)",
+ "type": "string"
+ },
+ "NextStationName": {
+ "title": "NameType",
+ "description": "下一停靠站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "StandardSeatStatus": {
+ "title": "String",
+ "description": "標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']",
+ "type": "string"
+ },
+ "BusinessSeatStatus": {
+ "title": "String",
+ "description": "商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']",
+ "type": "string"
}
}
},
- "Service.DTO.Version2.Rail.THSR.AvailableSeat": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat": {
"title": "AvailableSeat",
"description": "高鐵對號座位狀態資訊",
"required": [
- "TrainNo",
"Direction",
- "StartingStationID",
- "StartingStationCode",
- "StartingStationName",
- "EndingStationID",
"EndingStationCode",
+ "EndingStationID",
"EndingStationName",
- "StopStations"
+ "StartingStationCode",
+ "StartingStationID",
+ "StartingStationName",
+ "StopStations",
+ "TrainNo"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次號碼",
"type": "string"
},
@@ -5768,169 +6154,108 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "起點車站代碼",
"type": "string"
},
"StartingStationCode": {
+ "title": "String",
"description": "起站車站簡碼(訂票系統用)",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "起點車站名稱"
+ "description": "起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
- "description": "終點車站代碼",
+ "title": "String",
+ "description": "終點車站簡碼(訂票系統用)",
"type": "string"
},
"EndingStationCode": {
- "description": "終點車站簡碼(訂票系統用)",
+ "title": "String",
+ "description": "終點車站代碼",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "終點車站名稱"
+ "description": "終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopStations": {
+ "title": "Array",
"description": "車次停靠站點組合",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.StopStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation"
}
}
}
},
- "Service.DTO.Version2.Base.NameType": {
- "title": "NameType",
- "description": "名稱資料型別",
- "type": "object",
- "properties": {
- "Zh_tw": {
- "description": "中文繁體名稱",
- "type": "string"
- },
- "En": {
- "description": "英文名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.THSR.StopStation": {
- "title": "StopStation",
- "description": "車次停靠站點組合",
+ "PTX.API.Rail.Model.V2THSRAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]": {
+ "title": "AvaliableSeatStatus",
"required": [
- "StopSequence",
- "StationID",
- "StationCode",
- "StationName",
- "NextStationID",
- "NextStationCode",
- "NextStationName",
- "StandardSeatStatus",
- "BusinessSeatStatus"
+ "AvailableSeats"
],
"type": "object",
"properties": {
- "StopSequence": {
- "format": "int32",
- "description": "跑法站序",
- "type": "integer"
- },
- "StationID": {
- "description": "車站代碼",
- "type": "string"
- },
- "StationCode": {
- "description": "車站簡碼(訂票系統用)",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "NextStationID": {
- "description": "下一停靠站車站代碼",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "NextStationCode": {
- "description": "下一停靠站車站簡碼(訂票系統用)",
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "NextStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "下一停靠站車站名稱"
- },
- "StandardSeatStatus": {
- "description": "標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']",
- "type": "string"
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
},
- "BusinessSeatStatus": {
- "description": "商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.TRA.RailDailyTimetable": {
- "title": "RailDailyTimetable",
- "description": "台鐵到離站時刻資料型別",
- "required": [
- "TrainDate",
- "DailyTrainInfo",
- "StopTimes",
- "UpdateTime",
- "VersionID"
- ],
- "type": "object",
- "properties": {
"TrainDate": {
- "description": "行駛日期(格式: yyyy-MM-dd)",
+ "title": "String",
+ "description": "營運日說明(格式: yyyy-MM-dd)",
"type": "string"
},
- "DailyTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.TimeInfo.RailDailyTrainInfo",
- "title": "RailDailyTrainInfo",
- "description": "車次資料"
- },
- "StopTimes": {
- "description": "停靠時間資料",
+ "AvailableSeats": {
+ "title": "Array",
+ "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat"
}
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.TimeInfo.RailDailyTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo": {
"title": "RailDailyTrainInfo",
"description": "臺鐵車次資料型別",
"required": [
- "TrainNo",
- "Direction",
- "WheelchairFlag",
- "PackageServiceFlag",
- "DiningFlag",
"BikeFlag",
"BreastFeedingFlag",
"DailyFlag",
- "ServiceAddedFlag"
+ "DiningFlag",
+ "Direction",
+ "PackageServiceFlag",
+ "ServiceAddedFlag",
+ "TrainNo",
+ "WheelchairFlag"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -5941,47 +6266,65 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripHeadsign": {
+ "title": "String",
"description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")",
"type": "string"
},
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"OverNightStationID": {
+ "title": "String",
"description": "跨夜車站代碼",
"type": "string"
},
@@ -6022,78 +6365,97 @@
"type": "integer"
},
"ServiceAddedFlag": {
+ "title": "Boolean",
"description": "是否為加班車",
"type": "boolean"
},
"Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附註說明"
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailStopTime": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime": {
"title": "RailStopTime",
"description": "台鐵停靠時間資料",
"required": [
- "StopSequence",
+ "ArrivalTime",
+ "DepartureTime",
"StationID",
"StationName",
- "ArrivalTime",
- "DepartureTime"
+ "StopSequence"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "跑法站序(由1開始)",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間(格式: HH:mm:ss)",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間(格式: HH:mm:ss)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailDailyTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable": {
"title": "RailDailyTimetable",
- "description": "高鐵到離站時刻資料型別",
+ "description": "台鐵到離站時刻資料型別",
"required": [
- "TrainDate",
"DailyTrainInfo",
"StopTimes",
+ "TrainDate",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainDate": {
- "description": "行駛日期(格式: yyyy:MM:dd)",
+ "title": "String",
+ "description": "行駛日期(格式: yyyy-MM-dd)",
"type": "string"
},
"DailyTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.TimeInfo.RailDailyTrainInfo",
"title": "RailDailyTrainInfo",
- "description": "車次資料"
+ "description": "車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo"
+ }
+ ]
},
"StopTimes": {
+ "title": "Array",
"description": "停靠時間資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime"
}
},
"UpdateTime": {
@@ -6103,21 +6465,23 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.TimeInfo.RailDailyTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo": {
"title": "RailDailyTrainInfo",
"description": "高鐵車次資料型別(時刻表用)",
"required": [
- "TrainNo",
- "Direction"
+ "Direction",
+ "TrainNo"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -6128,87 +6492,157 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附註說明"
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailStopTime": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime": {
"title": "RailStopTime",
"description": "高鐵停靠時間資料",
"required": [
- "StopSequence",
+ "DepartureTime",
"StationID",
"StationName",
- "DepartureTime"
+ "StopSequence"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "跑法站序(由1開始)",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間(格式: HH:mm:ss)",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間(格式: HH:mm:ss)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable": {
+ "title": "RailDailyTimetable",
+ "description": "高鐵到離站時刻資料型別",
+ "required": [
+ "DailyTrainInfo",
+ "StopTimes",
+ "TrainDate",
+ "UpdateTime",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "TrainDate": {
+ "title": "String",
+ "description": "行駛日期(格式: yyyy:MM:dd)",
+ "type": "string"
+ },
+ "DailyTrainInfo": {
+ "title": "RailDailyTrainInfo",
+ "description": "車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo"
+ }
+ ]
+ },
+ "StopTimes": {
+ "title": "Array",
+ "description": "停靠時間資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime"
+ }
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo": {
"title": "RailDailyTrainInfo",
"description": "臺鐵車次資料型別",
"required": [
- "TrainNo",
- "Direction",
- "TrainTypeID",
- "TrainTypeCode",
- "TrainTypeName",
- "WheelchairFlag",
- "PackageServiceFlag",
- "DiningFlag",
"BikeFlag",
"BreastFeedingFlag",
"DailyFlag",
+ "DiningFlag",
+ "Direction",
+ "PackageServiceFlag",
"ServiceAddedFlag",
+ "TrainNo",
+ "TrainTypeCode",
+ "TrainTypeID",
+ "TrainTypeName",
"UpdateTime",
- "VersionID"
+ "VersionID",
+ "WheelchairFlag"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -6219,47 +6653,65 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripHeadsign": {
+ "title": "String",
"description": "車次車頭文字描述(通用以\"往\"+ 迄站中文站名\")",
"type": "string"
},
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"OverNightStationID": {
+ "title": "String",
"description": "跨夜車站代碼",
"type": "string"
},
@@ -6306,9 +6758,13 @@
"type": "integer"
},
"Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附註說明"
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"UpdateTime": {
"title": "DateTime",
@@ -6317,23 +6773,25 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo": {
"title": "RailDailyTrainInfo",
"description": "高鐵車次資料型別",
"required": [
- "TrainNo",
"Direction",
+ "TrainNo",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -6344,27 +6802,41 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附註說明"
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"UpdateTime": {
"title": "DateTime",
@@ -6373,195 +6845,158 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.FirstLastTimetable": {
- "title": "FirstLastTimetable",
- "description": "首末班車時刻表資料",
- "required": [
- "LineID",
- "StationID",
- "StationName",
- "DestinationStaionID",
- "DestinationStationName",
- "FirstTrainTime",
- "LastTrainTime",
- "ServiceDays",
- "SrcUpdateTime",
- "UpdateTime",
- "VersionID"
- ],
- "type": "object",
- "properties": {
- "LineNo": {
- "description": "首末班車次之路線代號",
- "type": "string"
- },
- "LineID": {
- "description": "首末班車次之路線代碼",
- "type": "string"
- },
- "StationID": {
- "description": "車站代號",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "TripHeadSign": {
- "description": "首末班車次之目的地方向描述",
- "type": "string"
- },
- "DestinationStaionID": {
- "description": "目的站車站代號",
- "type": "string"
- },
- "DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "目的站車站名稱"
- },
- "TrainType": {
- "format": "int32",
- "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
- "type": "integer"
- },
- "FirstTrainTime": {
- "description": "首班車時刻",
- "type": "string"
- },
- "LastTrainTime": {
- "description": "末班車時刻",
- "type": "string"
- },
- "ServiceDays": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays",
- "title": "ServiceDays",
- "description": "服務日型態"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDays": {
"title": "ServiceDays",
"description": "服務日型態",
"required": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
"Friday",
+ "Monday",
+ "NationalHolidays",
"Saturday",
"Sunday",
- "NationalHolidays"
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
"ServiceTag": {
+ "title": "String",
"description": "營運日標籤",
"type": "string"
},
"Monday": {
+ "title": "Boolean",
"description": "星期一營運與否",
"type": "boolean"
},
"Tuesday": {
+ "title": "Boolean",
"description": "星期二營運與否",
"type": "boolean"
},
"Wednesday": {
+ "title": "Boolean",
"description": "星期三營運與否",
"type": "boolean"
},
"Thursday": {
+ "title": "Boolean",
"description": "星期四營運與否",
"type": "boolean"
},
"Friday": {
+ "title": "Boolean",
"description": "星期五營運與否",
"type": "boolean"
},
"Saturday": {
+ "title": "Boolean",
"description": "星期六營運與否",
"type": "boolean"
},
"Sunday": {
+ "title": "Boolean",
"description": "星期日營運與否",
"type": "boolean"
},
"NationalHolidays": {
+ "title": "Boolean",
"description": "國定假日營運與否",
"type": "boolean"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Frequency": {
- "title": "Frequency",
- "description": "路線發車班距頻率資料",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.FirstLastTimetable": {
+ "title": "FirstLastTimetable",
+ "description": "首末班車時刻表資料",
"required": [
+ "DestinationStaionID",
+ "DestinationStationName",
+ "FirstTrainTime",
+ "LastTrainTime",
"LineID",
- "RouteID",
"ServiceDays",
- "OperationTime",
- "Headways",
"SrcUpdateTime",
+ "StationID",
+ "StationName",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"LineNo": {
- "description": "營運路線所屬之路線編號",
+ "title": "String",
+ "description": "首末班車次之路線代號",
"type": "string"
},
"LineID": {
- "description": "營運路線所屬之路線代碼",
+ "title": "String",
+ "description": "首末班車次之路線代碼",
"type": "string"
},
- "RouteID": {
- "description": "營運路線代碼",
+ "StationID": {
+ "title": "String",
+ "description": "車站代號",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "TripHeadSign": {
+ "title": "String",
+ "description": "首末班車次之目的地方向描述",
"type": "string"
},
+ "DestinationStaionID": {
+ "title": "String",
+ "description": "目的站車站代號",
+ "type": "string"
+ },
+ "DestinationStationName": {
+ "title": "NameType",
+ "description": "目的站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
"TrainType": {
"format": "int32",
"description": "車種(0:不分車種, 1:普通車, 2:直達車)",
"type": "integer"
},
- "ServiceDays": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays",
- "title": "ServiceDays",
- "description": "服務日型態"
+ "FirstTrainTime": {
+ "title": "String",
+ "description": "首班車時刻",
+ "type": "string"
},
- "OperationTime": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.OperationTime",
- "title": "OperationTime",
- "description": "營運時間資訊"
+ "LastTrainTime": {
+ "title": "String",
+ "description": "末班車時刻",
+ "type": "string"
},
- "Headways": {
- "description": "班距頻率資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.Headway"
- }
+ "ServiceDays": {
+ "title": "ServiceDays",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDays"
+ }
+ ]
},
"SrcUpdateTime": {
"title": "DateTime",
@@ -6575,142 +7010,172 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.OperationTime": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime": {
"title": "OperationTime",
"description": "營運時間資訊",
"required": [
- "StartTime",
- "EndTime"
+ "EndTime",
+ "StartTime"
],
"type": "object",
"properties": {
"StartTime": {
+ "title": "String",
"description": "營運開始時間",
"type": "string"
},
"EndTime": {
+ "title": "String",
"description": "營運結束時間",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.Headway": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway": {
"title": "Headway",
"description": "班距頻率資訊",
"required": [
- "PeakFlag",
- "StartTime",
"EndTime",
+ "MaxHeadwayMins",
"MinHeadwayMins",
- "MaxHeadwayMins"
+ "PeakFlag",
+ "StartTime"
],
"type": "object",
"properties": {
"PeakFlag": {
+ "title": "String",
"description": "尖峰/離峰狀態(0:離峰, 1:尖峰)",
"type": "string"
},
"StartTime": {
+ "title": "String",
"description": "開始時間",
"type": "string"
},
"EndTime": {
- "description": "結束時間",
- "type": "string"
- },
- "MinHeadwayMins": {
- "format": "int32",
- "description": "最小班距時間(分)",
- "type": "integer"
- },
- "MaxHeadwayMins": {
- "format": "int32",
- "description": "最大班距時間(分)",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Rail.TRA.RailGeneralTimetable": {
- "title": "RailGeneralTimetable",
- "description": "台鐵到離站時刻資料型別",
- "required": [
- "VersionID",
- "GeneralTimetable"
- ],
- "type": "object",
- "properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期(格式: yyyy-MM-dd)",
+ "title": "String",
+ "description": "結束時間",
"type": "string"
},
- "VersionID": {
+ "MinHeadwayMins": {
"format": "int32",
- "description": "資料版本編號",
+ "title": "Int32",
+ "description": "最小班距時間(分)",
"type": "integer"
},
- "GeneralTimetable": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.GeneralTimetable",
- "title": "GeneralTimetable",
- "description": "定期時刻表資料"
+ "MaxHeadwayMins": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "最大班距時間(分)",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.GeneralTimetable": {
- "title": "GeneralTimetable",
- "description": "台鐵定期時刻表資料型別",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Frequency": {
+ "title": "Frequency",
+ "description": "路線發車班距頻率資料",
"required": [
- "GeneralTrainInfo",
- "StopTimes",
- "ServiceDay"
+ "Headways",
+ "LineID",
+ "OperationTime",
+ "RouteID",
+ "ServiceDays",
+ "SrcUpdateTime",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
- "GeneralTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.TimeInfo.RailGeneralTrainInfo",
- "title": "RailGeneralTrainInfo",
- "description": "定期車次資料"
+ "LineNo": {
+ "title": "String",
+ "description": "營運路線所屬之路線編號",
+ "type": "string"
},
- "StopTimes": {
- "description": "停靠時間資料",
+ "LineID": {
+ "title": "String",
+ "description": "營運路線所屬之路線代碼",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "營運路線代碼",
+ "type": "string"
+ },
+ "TrainType": {
+ "format": "int32",
+ "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
+ "type": "integer"
+ },
+ "ServiceDays": {
+ "title": "ServiceDays",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDays"
+ }
+ ]
+ },
+ "OperationTime": {
+ "title": "OperationTime",
+ "description": "營運時間資訊",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime"
+ }
+ ]
+ },
+ "Headways": {
+ "title": "Array",
+ "description": "班距頻率資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway"
}
},
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.ServiceDay",
- "title": "ServiceDay",
- "description": "營運日型態"
- },
"SrcUpdateTime": {
"title": "DateTime",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.TimeInfo.RailGeneralTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo": {
"title": "RailGeneralTrainInfo",
- "description": "臺鐵車次定期資料型別(時刻表用)",
+ "description": "臺鐵車次定期資料型別",
"required": [
- "TrainNo",
- "Direction",
- "WheelchairFlag",
- "PackageServiceFlag",
- "DiningFlag",
"BikeFlag",
"BreastFeedingFlag",
- "DailyFlag"
+ "DailyFlag",
+ "DiningFlag",
+ "Direction",
+ "PackageServiceFlag",
+ "TrainNo",
+ "UpdateTime",
+ "VersionID",
+ "WheelchairFlag"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -6721,43 +7186,60 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"OverNightStationID": {
+ "title": "String",
"description": "跨夜車站代碼",
"type": "string"
},
@@ -6798,23 +7280,38 @@
"type": "integer"
},
"Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "附註說明"
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.ServiceDay": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay": {
"title": "ServiceDay",
"description": "台鐵服務日型態",
"required": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
"Friday",
+ "Monday",
"Saturday",
- "Sunday"
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
@@ -6862,69 +7359,41 @@
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailGeneralTimetable": {
- "title": "RailGeneralTimetable",
- "description": "高鐵到離站時刻資料型別",
- "required": [
- "EffectiveDate",
- "ExpiringDate",
- "VersionID",
- "GeneralTimetable"
- ],
- "type": "object",
- "properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "發布時間(格式: yyyy-MM-dd)",
- "type": "string"
- },
- "EffectiveDate": {
- "description": "有效日期(格式: yyyy:MM:dd)",
- "type": "string"
- },
- "ExpiringDate": {
- "description": "結束日期(格式: yyyy:MM:dd)",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- },
- "GeneralTimetable": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.GeneralTimetable",
- "title": "GeneralTimetable",
- "description": "定期時刻表資料"
- }
- }
- },
- "Service.DTO.Version2.Rail.THSR.GeneralTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable": {
"title": "GeneralTimetable",
- "description": "高鐵定期時刻表資料型別",
+ "description": "台鐵定期時刻表資料型別",
"required": [
"GeneralTrainInfo",
- "StopTimes",
"ServiceDay",
- "SrcUpdateTime"
+ "StopTimes"
],
"type": "object",
"properties": {
"GeneralTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailGeneralTrainInfo",
"title": "RailGeneralTrainInfo",
- "description": "定期車次資料"
+ "description": "定期車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo"
+ }
+ ]
},
"StopTimes": {
+ "title": "Array",
"description": "停靠時間資料",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStopTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime"
}
},
"ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.ServiceDay",
"title": "ServiceDay",
- "description": "營運日型態"
+ "description": "營運日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay"
+ }
+ ]
},
"SrcUpdateTime": {
"title": "DateTime",
@@ -6933,273 +7402,293 @@
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailGeneralTrainInfo": {
- "title": "RailGeneralTrainInfo",
- "description": "高鐵車次定期資料型別",
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable": {
+ "title": "RailGeneralTimetable",
+ "description": "台鐵到離站時刻資料型別",
"required": [
- "TrainNo",
- "Direction"
+ "GeneralTimetable",
+ "VersionID"
],
"type": "object",
"properties": {
- "TrainNo": {
- "description": "車次代碼",
- "type": "string"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "行駛方向 : [0:'南下',1:'北上']",
- "type": "integer"
- },
- "StartingStationID": {
- "description": "列車起點車站代號",
- "type": "string"
- },
- "StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "列車起點車站名稱"
- },
- "EndingStationID": {
- "description": "列車終點車站代號",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期(格式: yyyy-MM-dd)",
"type": "string"
},
- "EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "列車終點車站名稱"
- },
- "Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "附註說明"
- }
- }
- },
- "Service.DTO.Version2.Rail.THSR.ServiceDay": {
- "title": "ServiceDay",
- "description": "高鐵服務日型態",
- "required": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday"
- ],
- "type": "object",
- "properties": {
- "Monday": {
- "format": "int32",
- "title": "integer",
- "description": "星期一是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Tuesday": {
- "format": "int32",
- "title": "integer",
- "description": "星期二是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Wednesday": {
- "format": "int32",
- "title": "integer",
- "description": "星期三是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Thursday": {
- "format": "int32",
- "title": "integer",
- "description": "星期四是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Friday": {
- "format": "int32",
- "title": "integer",
- "description": "星期五是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Saturday": {
+ "VersionID": {
"format": "int32",
- "title": "integer",
- "description": "星期六是否營運 : [0:'否',1:'是']",
+ "title": "Int32",
+ "description": "資料版本編號",
"type": "integer"
},
- "Sunday": {
- "format": "int32",
- "title": "integer",
- "description": "星期日是否營運 : [0:'否',1:'是']",
- "type": "integer"
+ "GeneralTimetable": {
+ "title": "GeneralTimetable",
+ "description": "定期時刻表資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable"
+ }
+ ]
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailGeneralTrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo": {
"title": "RailGeneralTrainInfo",
- "description": "臺鐵車次定期資料型別",
+ "description": "高鐵車次定期資料型別",
"required": [
- "TrainNo",
"Direction",
- "WheelchairFlag",
- "PackageServiceFlag",
- "DiningFlag",
- "BikeFlag",
- "BreastFeedingFlag",
- "DailyFlag",
- "UpdateTime",
- "VersionID"
+ "TrainNo"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"Direction": {
"format": "int32",
"title": "integer",
- "description": "順逆行 : [0:'順行',1:'逆行']",
+ "description": "行駛方向 : [0:'南下',1:'北上']",
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
- },
- "TrainTypeID": {
- "description": "列車車種代碼",
- "type": "string"
- },
- "TrainTypeCode": {
- "description": "列車車種簡碼",
- "type": "string"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
+ "Note": {
"title": "NameType",
- "description": "列車車種名稱"
- },
- "TripLine": {
+ "description": "附註說明",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay": {
+ "title": "ServiceDay",
+ "description": "高鐵服務日型態",
+ "required": [
+ "Friday",
+ "Monday",
+ "Saturday",
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
+ ],
+ "type": "object",
+ "properties": {
+ "Monday": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "星期一是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "OverNightStationID": {
- "description": "跨夜車站代碼",
- "type": "string"
- },
- "WheelchairFlag": {
+ "Tuesday": {
"format": "int32",
"title": "integer",
- "description": "是否設身障旅客專用座位車 : [0:'否',1:'是']",
+ "description": "星期二是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "PackageServiceFlag": {
+ "Wednesday": {
"format": "int32",
"title": "integer",
- "description": "是否提供行李服務 : [0:'否',1:'是']",
+ "description": "星期三是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "DiningFlag": {
+ "Thursday": {
"format": "int32",
"title": "integer",
- "description": "是否提供訂便當服務 : [0:'否',1:'是']",
+ "description": "星期四是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "BikeFlag": {
+ "Friday": {
"format": "int32",
"title": "integer",
- "description": "是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']",
+ "description": "星期五是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "BreastFeedingFlag": {
+ "Saturday": {
"format": "int32",
"title": "integer",
- "description": "是否設有哺(集)乳室車廂 : [0:'否',1:'是']",
+ "description": "星期六是否營運 : [0:'否',1:'是']",
"type": "integer"
},
- "DailyFlag": {
+ "Sunday": {
"format": "int32",
"title": "integer",
- "description": "是否為每日行駛 : [0:'否',1:'是']",
+ "description": "星期日是否營運 : [0:'否',1:'是']",
"type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable": {
+ "title": "GeneralTimetable",
+ "description": "高鐵定期時刻表資料型別",
+ "required": [
+ "GeneralTrainInfo",
+ "ServiceDay",
+ "SrcUpdateTime",
+ "StopTimes"
+ ],
+ "type": "object",
+ "properties": {
+ "GeneralTrainInfo": {
+ "title": "RailGeneralTrainInfo",
+ "description": "定期車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo"
+ }
+ ]
},
- "Note": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "附註說明"
+ "StopTimes": {
+ "title": "Array",
+ "description": "停靠時間資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime"
+ }
+ },
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "營運日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay"
+ }
+ ]
},
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable": {
+ "title": "RailGeneralTimetable",
+ "description": "高鐵到離站時刻資料型別",
+ "required": [
+ "EffectiveDate",
+ "ExpiringDate",
+ "GeneralTimetable",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
"UpdateTime": {
"title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "description": "發布時間(格式: yyyy-MM-dd)",
+ "type": "string"
+ },
+ "EffectiveDate": {
+ "title": "String",
+ "description": "有效日期(格式: yyyy:MM:dd)",
+ "type": "string"
+ },
+ "ExpiringDate": {
+ "title": "String",
+ "description": "結束日期(格式: yyyy:MM:dd)",
"type": "string"
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
+ },
+ "GeneralTimetable": {
+ "title": "GeneralTimetable",
+ "description": "定期時刻表資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable"
+ }
+ ]
}
}
},
- "Service.DTO.Version2.Rail.TRA.Line": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.Line": {
"title": "Line",
"description": "路線基本資料",
"required": [
- "LineNo",
+ "IsBranch",
"LineID",
- "LineNameZh",
"LineNameEn",
- "LineSectionNameZh",
+ "LineNameZh",
+ "LineNo",
"LineSectionNameEn",
- "IsBranch",
+ "LineSectionNameZh",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineNameZh": {
+ "title": "String",
"description": "路線中文名稱",
"type": "string"
},
"LineNameEn": {
+ "title": "String",
"description": "路線英文名稱",
"type": "string"
},
"LineSectionNameZh": {
+ "title": "String",
"description": "路線區間中文名稱",
"type": "string"
},
"LineSectionNameEn": {
+ "title": "String",
"description": "路線區間英文名稱",
"type": "string"
},
"LineColor": {
+ "title": "String",
"description": "路線顏色",
"type": "string"
},
"IsBranch": {
+ "title": "Boolean",
"description": "是否位於支線",
"type": "boolean"
},
@@ -7210,15 +7699,15 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.Line": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Line": {
"title": "Line",
"description": "捷運路線資料",
"required": [
+ "IsBranch",
+ "LineColor",
"LineID",
"LineName",
"LineSectionName",
- "LineColor",
- "IsBranch",
"SrcUpdateTime",
"UpdateTime",
"VersionID"
@@ -7226,28 +7715,40 @@
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"LineSectionName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線區間名稱"
+ "description": "路線區間名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"LineColor": {
+ "title": "String",
"description": "路線顏色",
"type": "string"
},
"IsBranch": {
+ "title": "Boolean",
"description": "是否位於支線",
"type": "boolean"
},
@@ -7263,12 +7764,13 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.LineTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.LineTransfer": {
"title": "LineTransfer",
"description": "捷運路線站間轉乘基本資料",
"required": [
@@ -7276,62 +7778,84 @@
"FromLineName",
"FromStationID",
"FromStationName",
- "ToLineNo",
+ "SrcUpdateTime",
"ToLineID",
"ToLineName",
+ "ToLineNo",
"ToStationID",
"ToStationName",
- "TransferTime",
"TransferDescription",
- "SrcUpdateTime",
+ "TransferTime",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"FromLineNo": {
+ "title": "String",
"description": "路線間轉乘(起)之路線編號",
"type": "string"
},
"FromLineID": {
+ "title": "String",
"description": "路線間轉乘(起)之路線代碼",
"type": "string"
},
"FromLineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(起)之路線名稱"
+ "description": "路線間轉乘(起)之路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"FromStationID": {
+ "title": "String",
"description": "路線間轉乘(起)之車站代碼",
"type": "string"
},
"FromStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(起)之車站名稱"
+ "description": "路線間轉乘(起)之車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ToLineNo": {
+ "title": "String",
"description": "路線間轉乘(迄)之路線編號",
"type": "string"
},
"ToLineID": {
+ "title": "String",
"description": "路線間轉乘(迄)之路線代碼",
"type": "string"
},
"ToLineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(迄)之路線名稱"
+ "description": "路線間轉乘(迄)之路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ToStationID": {
+ "title": "String",
"description": "路線間轉乘(迄)之車站代碼",
"type": "string"
},
"ToStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(迄)之車站名稱"
+ "description": "路線間轉乘(迄)之車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"IsOnSiteTransfer": {
"format": "int32",
@@ -7341,10 +7865,12 @@
},
"TransferTime": {
"format": "int32",
+ "title": "Int32",
"description": "轉乘耗時參考時間(分)",
"type": "integer"
},
"TransferDescription": {
+ "title": "String",
"description": "轉乘方式文字描述",
"type": "string"
},
@@ -7360,39 +7886,46 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailLiveBoard": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard": {
"title": "RailLiveBoard",
"description": "台鐵車次動態車次站別即時電子看板資料",
"required": [
- "StationID",
- "StationName",
- "TrainNo",
+ "DelayTime",
"Direction",
"EndingStationID",
"EndingStationName",
"ScheduledArrivalTime",
"ScheduledDepartureTime",
- "DelayTime",
"SrcUpdateTime",
+ "StationID",
+ "StationName",
+ "TrainNo",
"UpdateTime"
],
"type": "object",
"properties": {
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -7403,44 +7936,58 @@
"type": "integer"
},
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"EndingStationID": {
+ "title": "String",
"description": "車次終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車次終點車站名稱"
+ "description": "車次終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ScheduledArrivalTime": {
+ "title": "String",
"description": "表訂到站時間(格式: HH:mm:ss)",
"type": "string"
},
"ScheduledDepartureTime": {
+ "title": "String",
"description": "表訂離站時間(格式: HH:mm:ss)",
"type": "string"
},
"DelayTime": {
"format": "int32",
- "description": "誤點時間(0:準點;>=1誤點)",
+ "title": "Int32",
+ "description": "誤點時間(0:準點;>=1誤點)",
"type": "integer"
},
"SrcUpdateTime": {
@@ -7455,65 +8002,84 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.LiveBoard": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.LiveBoard": {
"title": "LiveBoard",
"description": "捷運列車到離站動態資料",
"required": [
- "LineID",
- "LineName",
- "StationID",
- "StationName",
- "TripHeadSign",
"DestinationStaionID",
"DestinationStationID",
"DestinationStationName",
"EstimateTime",
+ "LineID",
+ "LineName",
"SrcUpdateTime",
+ "StationID",
+ "StationName",
+ "TripHeadSign",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNO": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationID": {
+ "title": "String",
"description": "所在車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "所在車站名稱"
+ "description": "所在車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TripHeadSign": {
+ "title": "String",
"description": "下班車次方向描述",
"type": "string"
},
"DestinationStaionID": {
+ "title": "String",
"description": "目的地車站代號",
"type": "string"
},
"DestinationStationID": {
+ "title": "String",
"description": "目的地車站代號",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "目的地車站名稱"
+ "description": "目的地車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EstimateTime": {
"format": "int32",
+ "title": "Int32",
"description": "下班車次抵達時間預估(分)",
"type": "integer"
},
@@ -7529,35 +8095,42 @@
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailLiveTrainDelay": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveTrainDelay": {
"title": "RailLiveTrainDelay",
"description": "台鐵列車即時準點/延誤時間資料",
"required": [
- "TrainNo",
- "StationID",
- "StationName",
"DelayTime",
"SrcUpdateTime",
+ "StationID",
+ "StationName",
+ "TrainNo",
"UpdateTime"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "最近通過車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "最近通過車站名稱[屬離站壓軌觸發]"
+ "description": "最近通過車站名稱[屬離站壓軌觸發]",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DelayTime": {
"format": "int32",
- "description": "誤點時間(0:準點;>=1誤點)",
+ "title": "Int32",
+ "description": "誤點時間(0:準點;>=1誤點)",
"type": "integer"
},
"SrcUpdateTime": {
@@ -7572,48 +8145,80 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.Network": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line": {
+ "title": "Line",
+ "description": "捷運路網資料-捷運路線資訊",
+ "required": [
+ "LineID"
+ ],
+ "type": "object",
+ "properties": {
+ "LineNo": {
+ "title": "String",
+ "description": "路線編號",
+ "type": "string"
+ },
+ "LineID": {
+ "title": "String",
+ "description": "路線代碼",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Network": {
"title": "Network",
"description": "捷運路網資料",
"required": [
+ "Lines",
"NetworkID",
+ "NetworkMapURL",
"NetworkName",
"OperatorCode",
"OperatorName",
- "NetworkMapURL",
- "Lines",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"NetworkID": {
+ "title": "String",
"description": "捷運路網代碼",
"type": "string"
},
"NetworkName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "捷運路網名稱"
+ "description": "捷運路網名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"NetworkMapURL": {
+ "title": "String",
"description": "捷運路網圖網址URL",
"type": "string"
},
"Lines": {
+ "title": "Array",
"description": "捷運路線資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.NetworkSubClass.Line"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line"
}
},
"UpdateTime": {
@@ -7623,78 +8228,90 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.NetworkSubClass.Line": {
- "title": "Line",
- "description": "捷運路網資料-捷運路線資訊",
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple": {
+ "title": "Line_Simple",
+ "description": "路線基本資料",
"required": [
- "LineID"
+ "LineID",
+ "LineNo"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.TRA.Network": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.Network": {
"title": "Network",
"description": "臺鐵路網資料",
"required": [
+ "Lines",
"NetworkID",
- "NetworkNameZh",
+ "NetworkMapUrl",
"NetworkNameEn",
+ "NetworkNameZh",
"OperatorID",
- "OperatorNameZh",
"OperatorNameEn",
- "NetworkMapUrl",
- "Lines",
+ "OperatorNameZh",
"UpdateTime"
],
"type": "object",
"properties": {
"NetworkID": {
+ "title": "String",
"description": "臺鐵路網代碼",
"type": "string"
},
"NetworkNameZh": {
+ "title": "String",
"description": "臺鐵路網中文名稱",
"type": "string"
},
"NetworkNameEn": {
+ "title": "String",
"description": "臺鐵路網英文名稱",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorNameZh": {
+ "title": "String",
"description": "臺鐵路網中文名稱",
"type": "string"
},
"OperatorNameEn": {
+ "title": "String",
"description": "臺鐵路網英文名稱",
"type": "string"
},
"NetworkMapUrl": {
+ "title": "String",
"description": "臺鐵路網圖網址URL",
"type": "string"
},
"Lines": {
+ "title": "Array",
"description": "臺鐵路線資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.Line_Simple"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple"
}
},
"UpdateTime": {
@@ -7704,107 +8321,171 @@
}
}
},
- "Service.DTO.Version2.Rail.TRA.Line_Simple": {
- "title": "Line_Simple",
- "description": "路線基本資料",
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.News": {
+ "title": "News",
+ "description": "高鐵最新消息",
"required": [
- "LineNo",
- "LineID"
+ "AttachmentUrlList",
+ "Description",
+ "EndTime",
+ "Language",
+ "NewsCategory",
+ "NewsID",
+ "NewsUrl",
+ "PublishTime",
+ "StartTime",
+ "Title",
+ "UpdateTime"
],
"type": "object",
"properties": {
- "LineNo": {
- "description": "路線編號",
+ "NewsID": {
+ "format": "uuid",
+ "title": "Guid",
+ "description": "消息編號",
+ "type": "string"
+ },
+ "Language": {
+ "title": "String",
+ "description": "語系",
+ "type": "string"
+ },
+ "NewsCategory": {
+ "title": "String",
+ "description": "消息類別",
+ "type": "string"
+ },
+ "Title": {
+ "title": "String",
+ "description": "消息標題",
+ "type": "string"
+ },
+ "Description": {
+ "title": "String",
+ "description": "消息內容描述",
+ "type": "string"
+ },
+ "NewsUrl": {
+ "title": "String",
+ "description": "消息網址連結",
+ "type": "string"
+ },
+ "AttachmentUrlList": {
+ "title": "Array",
+ "description": "消息附件網址連結",
+ "type": "array",
+ "items": {
+ "title": "String",
+ "type": "string"
+ }
+ },
+ "StartTime": {
+ "title": "DateTime",
+ "description": "開始時間",
+ "type": "string"
+ },
+ "EndTime": {
+ "title": "DateTime",
+ "description": "結束時間",
+ "type": "string"
+ },
+ "PublishTime": {
+ "title": "DateTime",
+ "description": "消息發布日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "LineID": {
- "description": "路線代碼",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.THSR.News": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News": {
"title": "News",
- "description": "高鐵最新消息",
"required": [
- "NewsID",
- "Language",
- "NewsCategory",
- "Title",
"Description",
- "NewsUrl",
- "AttachmentUrlList",
- "StartTime",
- "EndTime",
+ "NewsCategory",
+ "NewsID",
"PublishTime",
+ "Title",
"UpdateTime"
],
"type": "object",
"properties": {
"NewsID": {
- "format": "uuid",
- "description": "消息編號",
- "type": "string",
- "example": "00000000-0000-0000-0000-000000000000"
+ "title": "String",
+ "description": "消息代碼",
+ "type": "string"
},
"Language": {
- "description": "語系",
- "type": "string"
+ "format": "int32",
+ "title": "integer",
+ "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']",
+ "type": "integer"
},
- "NewsCategory": {
- "description": "消息類別",
+ "Department": {
+ "title": "String",
+ "description": "發布單位",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "消息標題",
"type": "string"
},
+ "NewsCategory": {
+ "format": "int32",
+ "title": "integer",
+ "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']",
+ "type": "integer"
+ },
"Description": {
- "description": "消息內容描述",
+ "title": "String",
+ "description": "內容描述",
"type": "string"
},
- "NewsUrl": {
+ "NewsURL": {
+ "title": "String",
"description": "消息網址連結",
"type": "string"
},
- "AttachmentUrlList": {
- "description": "消息附件網址連結",
- "type": "array",
- "items": {
- "type": "string"
- }
+ "AttachmentURL": {
+ "title": "String",
+ "description": "附件網址連結",
+ "type": "string"
},
"StartTime": {
"title": "DateTime",
- "description": "開始時間",
+ "description": "消息起始日期時間",
"type": "string"
},
"EndTime": {
"title": "DateTime",
- "description": "結束時間",
+ "description": "消息結束日期時間",
"type": "string"
},
"PublishTime": {
"title": "DateTime",
- "description": "消息發布日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "description": "消息發佈日期時間",
"type": "string"
},
"UpdateTime": {
"title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "description": "本筆資料之更新日期時間",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTNewsList.News]": {
+ "PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News]": {
"title": "MRTNewsList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Newses"
+ "Newses",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -7815,6 +8496,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -7825,18 +8507,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
"Newses": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.MRTNewsList.News"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News"
}
},
"Count": {
@@ -7846,107 +8531,177 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.MRTNewsList.News": {
- "title": "News",
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat": {
+ "title": "AvailableSeat",
+ "description": "高鐵站間對號座位狀態資訊",
"required": [
- "NewsID",
- "Title",
- "NewsCategory",
- "Description",
- "PublishTime",
- "UpdateTime"
+ "BusinessSeatStatus",
+ "DestinationStationCode",
+ "DestinationStationID",
+ "DestinationStationName",
+ "Direction",
+ "OriginStationCode",
+ "OriginStationID",
+ "OriginStationName",
+ "StandardSeatStatus",
+ "TrainNo"
],
"type": "object",
"properties": {
- "NewsID": {
- "description": "消息代碼",
+ "TrainNo": {
+ "title": "String",
+ "description": "車次號碼",
"type": "string"
},
- "Language": {
+ "Direction": {
"format": "int32",
- "title": "integer",
- "description": "語系 : [1:'Zh_tw',2:'En_us',3:'Zh_cn',4:'Ja',5:'Ko',99:'Other']",
+ "title": "Int32",
+ "description": "行駛方向",
"type": "integer"
},
- "Department": {
- "description": "發布單位",
+ "OriginStationID": {
+ "title": "String",
+ "description": "起點車站代碼",
"type": "string"
},
- "Title": {
- "description": "消息標題",
+ "OriginStationCode": {
+ "title": "String",
+ "description": "起站車站簡碼(訂票系統用)",
"type": "string"
},
- "NewsCategory": {
- "format": "int32",
- "title": "integer",
- "description": "消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'新服務上架',8:'API修正',9:'來源異常',99:'其他']",
- "type": "integer"
+ "OriginStationName": {
+ "title": "NameType",
+ "description": "起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "Description": {
- "description": "內容描述",
+ "DestinationStationID": {
+ "title": "String",
+ "description": "迄點車站代碼",
"type": "string"
},
- "NewsURL": {
- "description": "消息網址連結",
+ "DestinationStationCode": {
+ "title": "String",
+ "description": "迄站車站簡碼(訂票系統用)",
"type": "string"
},
- "AttachmentURL": {
- "description": "附件網址連結",
- "type": "string"
+ "DestinationStationName": {
+ "title": "NameType",
+ "description": "迄點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "StartTime": {
- "title": "DateTime",
- "description": "消息起始日期時間",
+ "StandardSeatStatus": {
+ "title": "String",
+ "description": "標準席剩餘座位狀態",
"type": "string"
},
- "EndTime": {
+ "BusinessSeatStatus": {
+ "title": "String",
+ "description": "商務席剩餘座位狀態",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.API.Rail.Model.V2THSRODAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]": {
+ "title": "AvaliableSeatStatus",
+ "required": [
+ "AvailableSeats"
+ ],
+ "type": "object",
+ "properties": {
+ "UpdateTime": {
"title": "DateTime",
- "description": "消息結束日期時間",
+ "description": "PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "PublishTime": {
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "PTX平台更新調期(秒)",
+ "type": "integer"
+ },
+ "SrcUpdateTime": {
"title": "DateTime",
- "description": "消息發佈日期時間",
+ "description": "來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "本筆資料之更新日期時間",
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源平台更新週期(秒)",
+ "type": "integer"
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ },
+ "TrainDate": {
+ "title": "String",
+ "description": "營運日說明(格式: yyyy-MM-dd)",
"type": "string"
+ },
+ "AvailableSeats": {
+ "title": "Array",
+ "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat"
+ }
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailODDailyTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODDailyTimetable": {
"title": "RailODDailyTimetable",
"description": "台鐵起訖站間到離站時刻資料型別",
"required": [
- "TrainDate",
"DailyTrainInfo",
- "OriginStopTime",
"DestinationStopTime",
+ "OriginStopTime",
+ "TrainDate",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainDate": {
+ "title": "String",
"description": "行駛日期(格式: yyyy:MM:dd)",
"type": "string"
},
"DailyTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.TimeInfo.RailDailyTrainInfo",
"title": "RailDailyTrainInfo",
- "description": "車次資料"
+ "description": "車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo"
+ }
+ ]
},
"OriginStopTime": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStopTime",
"title": "RailStopTime",
- "description": "起站停靠時間資料"
+ "description": "起站停靠時間資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime"
+ }
+ ]
},
"DestinationStopTime": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.RailStopTime",
"title": "RailStopTime",
- "description": "迄站停靠時間資料"
+ "description": "迄站停靠時間資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime"
+ }
+ ]
},
"UpdateTime": {
"title": "DateTime",
@@ -7955,42 +8710,56 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailODDailyTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailODDailyTimetable": {
"title": "RailODDailyTimetable",
"description": "高鐵起訖站間到離站時刻資料型別",
"required": [
- "TrainDate",
"DailyTrainInfo",
- "OriginStopTime",
"DestinationStopTime",
+ "OriginStopTime",
+ "TrainDate",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainDate": {
+ "title": "String",
"description": "行駛日期(格式: yyyy:MM:dd)",
"type": "string"
},
"DailyTrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.TimeInfo.RailDailyTrainInfo",
"title": "RailDailyTrainInfo",
- "description": "車次資料"
+ "description": "車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo"
+ }
+ ]
},
"OriginStopTime": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStopTime",
"title": "RailStopTime",
- "description": "起站停靠時間資料"
+ "description": "起站停靠時間資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime"
+ }
+ ]
},
"DestinationStopTime": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.RailStopTime",
"title": "RailStopTime",
- "description": "迄站停靠時間資料"
+ "description": "迄站停靠時間資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime"
+ }
+ ]
},
"UpdateTime": {
"title": "DateTime",
@@ -7999,75 +8768,19 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailODFare": {
- "title": "RailODFare",
- "description": "臺鐵起訖站票價資料",
- "required": [
- "OriginStationID",
- "OriginStationName",
- "DestinationStationID",
- "DestinationStationName",
- "Direction",
- "Fares",
- "UpdateTime",
- "VersionID"
- ],
- "type": "object",
- "properties": {
- "OriginStationID": {
- "description": "起點車站代碼",
- "type": "string"
- },
- "OriginStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "起點車站名稱"
- },
- "DestinationStationID": {
- "description": "迄點車站代碼",
- "type": "string"
- },
- "DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "迄點車站名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "順逆行 : [0:'順行',1:'逆行']",
- "type": "integer"
- },
- "Fares": {
- "description": "票價收費資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.Fare"
- }
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Base.Fare": {
+ "PTX.Service.DTO.Shared.Specification.V2.Base.Fare": {
"title": "Fare",
"description": "票價資料型別",
"type": "object",
"properties": {
"TicketType": {
+ "title": "String",
"description": "票種名稱",
"type": "string"
},
@@ -8078,58 +8791,63 @@
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailODFare": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare": {
"title": "RailODFare",
- "description": "高鐵起訖站票價資料",
+ "description": "臺鐵起訖站票價資料",
"required": [
- "OriginStationID",
- "OriginStationName",
"DestinationStationID",
"DestinationStationName",
"Direction",
"Fares",
- "SrcUpdateTime",
+ "OriginStationID",
+ "OriginStationName",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"OriginStationID": {
+ "title": "String",
"description": "起點車站代碼",
"type": "string"
},
"OriginStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "起點車站名稱"
+ "description": "起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DestinationStationID": {
+ "title": "String",
"description": "迄點車站代碼",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "迄點車站名稱"
+ "description": "迄點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
"title": "integer",
- "description": "行駛方向 : [0:'南下',1:'北上']",
+ "description": "順逆行 : [0:'順行',1:'逆行']",
"type": "integer"
},
"Fares": {
- "description": "票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明)",
+ "title": "Array",
+ "description": "票價收費資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.Fare"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Fare"
}
},
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
"UpdateTime": {
"title": "DateTime",
"description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -8137,20 +8855,22 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.ODFare": {
- "title": "ODFare",
- "description": "起迄站間票價資料",
- "required": [
- "OriginStationID",
- "OriginStationName",
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare": {
+ "title": "RailODFare",
+ "description": "高鐵起訖站票價資料",
+ "required": [
"DestinationStationID",
"DestinationStationName",
+ "Direction",
"Fares",
+ "OriginStationID",
+ "OriginStationName",
"SrcUpdateTime",
"UpdateTime",
"VersionID"
@@ -8158,45 +8878,47 @@
"type": "object",
"properties": {
"OriginStationID": {
- "description": "起站車站代碼",
+ "title": "String",
+ "description": "起點車站代碼",
"type": "string"
},
"OriginStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "起站車站名稱"
+ "description": "起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DestinationStationID": {
- "description": "迄站車站代碼",
+ "title": "String",
+ "description": "迄點車站代碼",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "迄站車站名稱"
+ "description": "迄點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "TrainType": {
+ "Direction": {
"format": "int32",
- "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
+ "title": "integer",
+ "description": "行駛方向 : [0:'南下',1:'北上']",
"type": "integer"
},
"Fares": {
- "description": "票價資訊",
+ "title": "Array",
+ "description": "票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.Fare"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.Fare"
}
},
- "TravelTime": {
- "format": "int32",
- "description": "起迄站間乘車時間(分)",
- "type": "integer"
- },
- "TravelDistance": {
- "format": "float",
- "description": "起迄站間乘車距離(公里)",
- "type": "number"
- },
"SrcUpdateTime": {
"title": "DateTime",
"description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -8209,90 +8931,155 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.Fare": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare": {
"title": "Fare",
"description": "票價資訊",
"required": [
- "TicketType",
"FareClass",
- "Price"
+ "Price",
+ "TicketType"
],
"type": "object",
"properties": {
"TicketType": {
"format": "int32",
+ "title": "Int32",
"description": "票種(1:一般票(單程票), 2:來回票(悠遊卡/一卡通), 3:電子票証, 4:回數票, 5:定期票(30天期), 6:定期票(60天期))",
"type": "integer"
},
"FareClass": {
"format": "int32",
+ "title": "Int32",
"description": "費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))",
"type": "integer"
},
"SaleType": {
+ "title": "String",
"description": "販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)",
"type": "string"
},
"CitizenCode": {
+ "title": "String",
"description": "市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)",
"type": "string"
},
"Price": {
"format": "int32",
+ "title": "Int32",
"description": "票價",
"type": "integer"
}
}
},
- "MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusOldWrapper[Service.DTO.Version2.Rail.THSR.Old.AvailableSeat]": {
- "title": "V2THSRAvaliableSeatStatusWrapper",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.ODFare": {
+ "title": "ODFare",
+ "description": "起迄站間票價資料",
"required": [
- "AvailableSeats"
+ "DestinationStationID",
+ "DestinationStationName",
+ "Fares",
+ "OriginStationID",
+ "OriginStationName",
+ "SrcUpdateTime",
+ "UpdateTime",
+ "VersionID"
],
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "OriginStationID": {
+ "title": "String",
+ "description": "起站車站代碼",
"type": "string"
},
- "AvailableSeats": {
- "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)",
+ "OriginStationName": {
+ "title": "NameType",
+ "description": "起站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "DestinationStationID": {
+ "title": "String",
+ "description": "迄站車站代碼",
+ "type": "string"
+ },
+ "DestinationStationName": {
+ "title": "NameType",
+ "description": "迄站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "TrainType": {
+ "format": "int32",
+ "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
+ "type": "integer"
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "票價資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.Old.AvailableSeat"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare"
}
},
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
+ "TravelTime": {
+ "format": "int32",
+ "description": "起迄站間乘車時間(分)",
+ "type": "integer"
+ },
+ "TravelDistance": {
+ "format": "float",
+ "description": "起迄站間乘車距離(公里)",
+ "type": "number"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.Old.AvailableSeat": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat": {
"title": "AvailableSeat",
"description": "高鐵對號座位狀態資訊",
"required": [
- "TrainNo",
- "Direction",
- "StationID",
- "StationName",
"DepartureTime",
+ "Direction",
"EndingStationID",
"EndingStationName",
- "StopStations",
"SrcRecTime",
+ "StationID",
+ "StationName",
+ "StopStations",
+ "TrainNo",
"UpdateTime"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次號碼",
"type": "string"
},
@@ -8303,32 +9090,44 @@
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "查詢車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "查詢車站名稱"
+ "description": "查詢車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DepartureTime": {
+ "title": "String",
"description": "發車時間(格式: HH:mm)",
"type": "string"
},
"EndingStationID": {
+ "title": "String",
"description": "終點車站代碼",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "終點車站名稱"
+ "description": "終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopStations": {
+ "title": "Array",
"description": "車次停靠站點組合",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.Old.StopStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation"
}
},
"SrcRecTime": {
@@ -8343,96 +9142,108 @@
}
}
},
- "Service.DTO.Version2.Rail.THSR.Old.StopStation": {
- "title": "StopStation",
- "description": "車次停靠站點組合",
+ "PTX.API.Rail.Model.V2THSRAvaliableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]": {
+ "title": "V2THSRAvaliableSeatStatusWrapper",
"required": [
- "StationID",
- "StationName",
- "StandardSeatStatus",
- "BusinessSeatStatus"
+ "AvailableSeats"
],
"type": "object",
"properties": {
- "StationID": {
- "description": "車站代碼",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "StandardSeatStatus": {
- "description": "標準席剩餘座位狀態 = ['Available: 尚有座位' or 'Limited: 座位有限' or 'Full: 已無座位']",
- "type": "string"
+ "AvailableSeats": {
+ "title": "Array",
+ "description": "對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat"
+ }
},
- "BusinessSeatStatus": {
- "description": "商務席剩餘座位狀態 = ['Available: 尚有座位' or 'Limited: 座位有限' or 'Full: 已無座位']",
- "type": "string"
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.Base.Operator": {
+ "PTX.Service.DTO.Shared.Specification.V2.Base.Operator": {
"title": "Operator",
"description": "營運業者資料型別",
"required": [
- "ProviderID",
+ "AuthorityCode",
+ "OperatorCode",
"OperatorID",
"OperatorName",
- "OperatorCode",
- "AuthorityCode",
"OperatorNo",
+ "ProviderID",
"UpdateTime"
],
"type": "object",
"properties": {
"ProviderID": {
+ "title": "String",
"description": "資料提供平台代碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"OperatorPhone": {
+ "title": "String",
"description": "營運業者連絡電話",
"type": "string"
},
"OperatorEmail": {
+ "title": "String",
"description": "營運業者電子信箱",
"type": "string"
},
"OperatorUrl": {
+ "title": "String",
"description": "營運業者網址鏈結",
"type": "string"
},
"ReservationUrl": {
+ "title": "String",
"description": "訂票網址鏈結",
"type": "string"
},
"ReservationPhone": {
+ "title": "String",
"description": "訂票連絡電話",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"AuthorityCode": {
- "description": "營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)",
+ "title": "String",
+ "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)",
"type": "string"
},
"SubAuthorityCode": {
+ "title": "String",
"description": "營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)",
"type": "string"
},
"OperatorNo": {
+ "title": "String",
"description": "營運業者編號[交通部票證資料系統定義]",
"type": "string"
},
@@ -8443,78 +9254,99 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.Route": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Route": {
"title": "Route",
"description": "營運路線基本資料",
"required": [
- "RouteID",
+ "EndStationID",
+ "EndStationName",
+ "LineID",
"OperatorCode",
- "RouteName",
"RailRouteType",
- "LineID",
+ "RouteID",
+ "RouteLength",
+ "RouteName",
+ "SrcUpdateTime",
"StartStationID",
"StartStationName",
- "EndStationID",
- "EndStationName",
"TravelTime",
- "RouteLength",
- "SrcUpdateTime",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運路線名稱"
+ "description": "營運路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"RailRouteType": {
"format": "int32",
+ "title": "Int32",
"description": "軌道路線類別(33:都市捷運;34:機場捷運)",
"type": "integer"
},
"LineNo": {
+ "title": "String",
"description": "營運路線所屬之路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "營運路線所屬之路線代碼",
"type": "string"
},
"StartStationID": {
+ "title": "String",
"description": "營運路線起站代號",
"type": "string"
},
"StartStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運路線起站名稱"
+ "description": "營運路線起站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndStationID": {
+ "title": "String",
"description": "營運路線迄站代號",
"type": "string"
},
"EndStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運路線迄站名稱"
+ "description": "營運路線迄站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TravelTime": {
"format": "int32",
+ "title": "Int32",
"description": "營運路線運行時間",
"type": "integer"
},
"RouteLength": {
"format": "float",
+ "title": "Single",
"description": "營運路線長度距離",
"type": "number"
},
@@ -8530,33 +9362,97 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.S2STravelTime": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime": {
+ "title": "TravelTime",
+ "description": "站間運行時間資訊",
+ "required": [
+ "FromStationID",
+ "FromStationName",
+ "RunTime",
+ "Sequence",
+ "ToStationID",
+ "ToStationName"
+ ],
+ "type": "object",
+ "properties": {
+ "Sequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "站間序號",
+ "type": "integer"
+ },
+ "FromStationID": {
+ "title": "String",
+ "description": "起站車站代號",
+ "type": "string"
+ },
+ "FromStationName": {
+ "title": "NameType",
+ "description": "起站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "ToStationID": {
+ "title": "String",
+ "description": "迄站車站代號",
+ "type": "string"
+ },
+ "ToStationName": {
+ "title": "NameType",
+ "description": "迄站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "RunTime": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "站間行駛時間(秒)",
+ "type": "integer"
+ },
+ "StopTime": {
+ "format": "int32",
+ "description": "起站停靠時間(秒)",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.S2STravelTime": {
"title": "S2STravelTime",
"description": "列車站間運行時間基本資料",
"required": [
"LineID",
"RouteID",
- "TravelTimes",
"SrcUpdateTime",
+ "TravelTimes",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "營運路線所屬之路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "營運路線所屬之路線代碼",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
@@ -8566,10 +9462,11 @@
"type": "integer"
},
"TravelTimes": {
+ "title": "Array",
"description": "站間運行時間資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.TravelTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime"
}
},
"SrcUpdateTime": {
@@ -8584,210 +9481,238 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.TravelTime": {
- "title": "TravelTime",
- "description": "站間運行時間資訊",
- "required": [
- "Sequence",
- "FromStationID",
- "FromStationName",
- "ToStationID",
- "ToStationName",
- "RunTime"
- ],
- "type": "object",
- "properties": {
- "Sequence": {
- "format": "int32",
- "description": "站間序號",
- "type": "integer"
- },
- "FromStationID": {
- "description": "起站車站代號",
- "type": "string"
- },
- "FromStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "起站車站名稱"
- },
- "ToStationID": {
- "description": "迄站車站代號",
- "type": "string"
- },
- "ToStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "迄站車站名稱"
- },
- "RunTime": {
- "format": "int32",
- "description": "站間行駛時間(秒)",
- "type": "integer"
- },
- "StopTime": {
- "format": "int32",
- "description": "起站停靠時間(秒)",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Rail.TRA.TRAShape": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.TRAShape": {
"title": "TRAShape",
"description": "臺鐵線型資料",
"required": [
- "LineNo",
+ "EncodedPolyline",
+ "Geometry",
"LineID",
"LineName",
- "Geometry",
+ "LineNo",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
- "LineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
+ "LineName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
"Geometry": {
+ "title": "String",
"description": "well-known text,為路線軌跡資料",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "EncodedPolyline": {
+ "title": "String",
+ "description": "路線軌跡編碼(encoded polyline)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.THSR.THSRShape": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.THSRShape": {
"title": "THSRShape",
"required": [
+ "EncodedPolyline",
+ "Geometry",
"LineID",
"LineName",
- "Geometry",
"UpdateTime"
],
"type": "object",
"properties": {
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
},
"Geometry": {
+ "title": "String",
"description": "well-known text,為路線軌跡資料",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "EncodedPolyline": {
+ "title": "String",
+ "description": "路線軌跡編碼(encoded polyline)",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.MetroShape": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.MetroShape": {
"title": "MetroShape",
"description": "捷運線型資料",
"required": [
+ "EncodedPolyline",
+ "Geometry",
"LineID",
"LineName",
- "Geometry",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
},
"Geometry": {
+ "title": "String",
"description": "well-known text,為路線軌跡資料",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "EncodedPolyline": {
+ "title": "String",
+ "description": "路線軌跡編碼(encoded polyline)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": {
+ "title": "PointType",
+ "description": "座標資料型別",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "description": "位置緯度(WGS84)",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "description": "位置經度(WGS84)",
+ "type": "number"
+ },
+ "GeoHash": {
+ "title": "String",
+ "description": "地理空間編碼",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailStation": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStation": {
"title": "RailStation",
"description": "台鐵車站資料",
"required": [
- "StationUID",
+ "OperatorID",
+ "StationAddress",
"StationID",
"StationName",
"StationPosition",
- "StationAddress",
- "OperatorID",
+ "StationUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "車站唯一識別代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "車站位置"
+ "description": "車站位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationAddress": {
+ "title": "String",
"description": "車站地址",
"type": "string"
},
"StationPhone": {
+ "title": "String",
"description": "車站聯絡電話",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"StationClass": {
+ "title": "String",
"description": "車站級別",
"type": "string"
},
"ReservationCode": {
+ "title": "String",
"description": "票價用站牌代碼",
"type": "string"
},
@@ -8798,70 +9723,67 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Base.PointType": {
- "title": "PointType",
- "description": "座標資料型別",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "description": "位置緯度(WGS84)",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "description": "位置經度(WGS84)",
- "type": "number"
- }
- }
- },
- "Service.DTO.Version2.Rail.THSR.RailStation": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStation": {
"title": "RailStation",
"description": "高鐵車站資料",
"required": [
- "StationUID",
+ "OperatorID",
+ "StationAddress",
"StationID",
"StationName",
"StationPosition",
- "StationAddress",
- "OperatorID",
+ "StationUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "車站唯一識別代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "車站位置"
+ "description": "車站位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationAddress": {
+ "title": "String",
"description": "車站地址",
"type": "string"
},
"StationPhone": {
+ "title": "String",
"description": "車站聯絡電話",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
@@ -8872,50 +9794,63 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Station": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Station": {
"title": "Station",
"description": "捷運車站資料",
"required": [
- "StationUID",
+ "BikeAllowOnHoliday",
+ "SrcUpdateTime",
+ "StationAddress",
"StationID",
"StationName",
"StationPosition",
- "StationAddress",
- "BikeAllowOnHoliday",
- "SrcUpdateTime",
+ "StationUID",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "車站唯一識別代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "車站座標"
+ "description": "車站座標",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationAddress": {
+ "title": "String",
"description": "車站地址",
"type": "string"
},
"BikeAllowOnHoliday": {
+ "title": "Boolean",
"description": "假日自行車進出與否",
"type": "boolean"
},
@@ -8931,53 +9866,69 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.StationExit": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.StationExit": {
"title": "StationExit",
"description": "高鐵車站出入口資料",
"required": [
- "StationID",
- "StationName",
+ "Elevator",
+ "Escalator",
"ExitID",
"ExitName",
"ExitPosition",
"LocationDescription",
- "Stair",
- "Escalator",
- "Elevator",
"SrcUpdateTime",
+ "Stair",
+ "StationID",
+ "StationName",
"UpdateTime"
],
"type": "object",
"properties": {
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ExitID": {
+ "title": "String",
"description": "出入口代碼",
"type": "string"
},
"ExitName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "出入口名稱"
+ "description": "出入口名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ExitPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "出入口座標"
+ "description": "出入口座標",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"LocationDescription": {
+ "title": "String",
"description": "地址描述",
"type": "string"
},
@@ -9005,49 +9956,64 @@
}
}
},
- "Service.DTO.Version2.Rail.Metro.StationExit": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.StationExit": {
"title": "StationExit",
"description": "捷運車站出入口基本資料",
"required": [
- "StationID",
- "StationName",
+ "Elevator",
+ "Escalator",
"ExitID",
"ExitName",
"ExitPosition",
"LocationDescription",
- "Stair",
- "Escalator",
- "Elevator",
"SrcUpdateTime",
+ "Stair",
+ "StationID",
+ "StationName",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ExitID": {
+ "title": "String",
"description": "出入口代碼",
"type": "string"
},
"ExitName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "出入口名稱"
+ "description": "出入口名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ExitPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "出入口座標"
+ "description": "出入口座標",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"LocationDescription": {
+ "title": "String",
"description": "地址描述",
"type": "string"
},
@@ -9076,84 +10042,36 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.StationFacility": {
- "title": "StationFacility",
- "description": "捷運車站設施資料",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator": {
+ "title": "Elevator",
+ "description": "無障礙電梯位置資訊",
"required": [
- "StationID",
- "StationName",
- "Elevators",
- "InformationSpots",
- "DrinkingFountains",
- "Toilets",
- "SrcUpdateTime",
- "UpdateTime",
- "VersionID"
+ "Description",
+ "FloorLevel"
],
"type": "object",
"properties": {
- "StationID": {
- "description": "車站代號",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "Elevators": {
- "description": "無障礙電梯位置資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Facility.Elevator"
- }
- },
- "InformationSpots": {
- "description": "詢問處位置資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Facility.InformationSpot"
- }
- },
- "DrinkingFountains": {
- "description": "飲水機位置資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Facility.DrinkingFountain"
- }
- },
- "Toilets": {
- "description": "廁所位置資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.Facility.Toilet"
- }
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "Description": {
+ "title": "String",
+ "description": "位置描述",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "FloorLevel": {
+ "title": "String",
+ "description": "樓層",
"type": "string"
- },
- "VersionID": {
- "format": "int32",
- "description": "資料版本編號",
- "type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Facility.Elevator": {
- "title": "Elevator",
- "description": "無障礙電梯位置資訊",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot": {
+ "title": "InformationSpot",
+ "description": "詢問處位置資訊",
"required": [
"Description",
"FloorLevel"
@@ -9161,18 +10079,20 @@
"type": "object",
"properties": {
"Description": {
+ "title": "String",
"description": "位置描述",
"type": "string"
},
"FloorLevel": {
+ "title": "String",
"description": "樓層",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Facility.InformationSpot": {
- "title": "InformationSpot",
- "description": "詢問處位置資訊",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain": {
+ "title": "DrinkingFountain",
+ "description": "飲水機位置資訊",
"required": [
"Description",
"FloorLevel"
@@ -9180,18 +10100,20 @@
"type": "object",
"properties": {
"Description": {
+ "title": "String",
"description": "位置描述",
"type": "string"
},
"FloorLevel": {
+ "title": "String",
"description": "樓層",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Facility.DrinkingFountain": {
- "title": "DrinkingFountain",
- "description": "飲水機位置資訊",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet": {
+ "title": "Toilet",
+ "description": "廁所位置資訊",
"required": [
"Description",
"FloorLevel"
@@ -9199,58 +10121,159 @@
"type": "object",
"properties": {
"Description": {
+ "title": "String",
"description": "位置描述",
"type": "string"
},
"FloorLevel": {
+ "title": "String",
"description": "樓層",
"type": "string"
}
}
},
- "Service.DTO.Version2.Rail.Metro.Facility.Toilet": {
- "title": "Toilet",
- "description": "廁所位置資訊",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.StationFacility": {
+ "title": "StationFacility",
+ "description": "捷運車站設施資料",
+ "required": [
+ "DrinkingFountains",
+ "Elevators",
+ "InformationSpots",
+ "SrcUpdateTime",
+ "StationID",
+ "StationName",
+ "Toilets",
+ "UpdateTime",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "StationID": {
+ "title": "String",
+ "description": "車站代號",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Elevators": {
+ "title": "Array",
+ "description": "無障礙電梯位置資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator"
+ }
+ },
+ "InformationSpots": {
+ "title": "Array",
+ "description": "詢問處位置資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot"
+ }
+ },
+ "DrinkingFountains": {
+ "title": "Array",
+ "description": "飲水機位置資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain"
+ }
+ },
+ "Toilets": {
+ "title": "Array",
+ "description": "廁所位置資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet"
+ }
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "VersionID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "資料版本編號",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation": {
+ "title": "LineStation",
+ "description": "路線車站資訊",
"required": [
- "Description",
- "FloorLevel"
+ "Sequence",
+ "StationID",
+ "StationName",
+ "TraveledDistance"
],
"type": "object",
"properties": {
- "Description": {
- "description": "位置描述",
+ "Sequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "站序",
+ "type": "integer"
+ },
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
"type": "string"
},
- "FloorLevel": {
- "description": "樓層",
+ "StationName": {
+ "title": "String",
+ "description": "車站名稱",
"type": "string"
+ },
+ "TraveledDistance": {
+ "format": "float",
+ "title": "Single",
+ "description": "已累積之里程距離(公里)",
+ "type": "number"
}
}
},
- "Service.DTO.Version2.Rail.TRA.StationOfLine": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.StationOfLine": {
"title": "StationOfLine",
"description": "路線車站基本資料",
"required": [
- "LineNo",
"LineID",
+ "LineNo",
"Stations",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"Stations": {
+ "title": "Array",
"description": "路線車站資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.TRA.LineStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation"
}
},
"UpdateTime": {
@@ -9260,62 +10283,71 @@
}
}
},
- "Service.DTO.Version2.Rail.TRA.LineStation": {
- "title": "LineStation",
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station": {
+ "title": "Station",
"description": "路線車站資訊",
"required": [
"Sequence",
"StationID",
- "StationName",
- "TraveledDistance"
+ "StationName"
],
"type": "object",
"properties": {
"Sequence": {
"format": "int32",
+ "title": "Int32",
"description": "站序",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
+ "title": "NameType",
"description": "車站名稱",
- "type": "string"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
- "TraveledDistance": {
+ "CumulativeDistance": {
"format": "float",
"description": "已累積之里程距離(公里)",
"type": "number"
}
}
},
- "Service.DTO.Version2.Rail.Metro.StationOfLine": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfLine": {
"title": "StationOfLine",
"description": "路線車站資料",
"required": [
"LineID",
- "Stations",
"SrcUpdateTime",
+ "Stations",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"Stations": {
+ "title": "Array",
"description": "路線車站資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.Station"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station"
}
},
"SrcUpdateTime": {
@@ -9330,84 +10362,63 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.Station": {
- "title": "Station",
- "description": "路線車站資訊",
- "required": [
- "Sequence",
- "StationID",
- "StationName"
- ],
- "type": "object",
- "properties": {
- "Sequence": {
- "format": "int32",
- "description": "站序",
- "type": "integer"
- },
- "StationID": {
- "description": "車站代碼",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "CumulativeDistance": {
- "format": "float",
- "description": "已累積之里程距離(公里)",
- "type": "number"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.StationOfRoute": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfRoute": {
"title": "StationOfRoute",
"description": "路線車站資料",
"required": [
+ "Direction",
"LineID",
"RouteID",
"RouteName",
- "Direction",
- "Stations",
"SrcUpdateTime",
+ "Stations",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "營運路線所屬之路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "營運路線所屬之路線代碼",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "營運路線名稱"
+ "description": "營運路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
+ "title": "Int32",
"description": "營運路線方向描述(0:去程,1:返程)",
"type": "integer"
},
"Stations": {
+ "title": "Array",
"description": "營運路線車站資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.Station"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station"
}
},
"SrcUpdateTime": {
@@ -9422,45 +10433,53 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.TRA.RailStationTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.RailStationTimetable": {
"title": "RailStationTimetable",
"description": "台鐵車站站別時刻表資料型別",
"required": [
- "TrainDate",
- "StationID",
- "StationName",
- "TrainNo",
+ "ArrivalTime",
+ "DepartureTime",
"Direction",
- "StartingStationID",
- "StartingStationName",
"EndingStationID",
"EndingStationName",
- "ArrivalTime",
- "DepartureTime",
+ "StartingStationID",
+ "StartingStationName",
+ "StationID",
+ "StationName",
+ "TrainDate",
+ "TrainNo",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainDate": {
+ "title": "String",
"description": "時刻表日期(格式: yyyy-MM-dd)",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TrainNo": {
+ "title": "String",
"description": "車次代號",
"type": "string"
},
@@ -9473,43 +10492,63 @@
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StartingStationID": {
+ "title": "String",
"description": "起點車站代號",
"type": "string"
},
"StartingStationName": {
+ "title": "NameType",
"description": "起點車站名稱",
- "type": "string"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "終點車站代號",
"type": "string"
},
"EndingStationName": {
+ "title": "NameType",
"description": "終點車站名稱",
- "type": "string"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間(格式: HH:mm:ss)",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間(格式: HH:mm:ss)",
"type": "string"
},
@@ -9520,45 +10559,53 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.THSR.RailStationTimetable": {
+ "PTX.Service.DTO.Rail.Specification.V2.THSR.RailStationTimetable": {
"title": "RailStationTimetable",
"description": "高鐵車站站別時刻表資料型別",
"required": [
- "TrainDate",
- "StationID",
- "StationName",
- "TrainNo",
+ "ArrivalTime",
+ "DepartureTime",
"Direction",
- "StartingStationID",
- "StartingStationName",
"EndingStationID",
"EndingStationName",
- "ArrivalTime",
- "DepartureTime",
+ "StartingStationID",
+ "StartingStationName",
+ "StationID",
+ "StationName",
+ "TrainDate",
+ "TrainNo",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainDate": {
+ "title": "String",
"description": "時刻表日期(格式: yyyy-MM-dd)",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TrainNo": {
+ "title": "String",
"description": "車次代號",
"type": "string"
},
@@ -9569,26 +10616,40 @@
"type": "integer"
},
"StartingStationID": {
+ "title": "String",
"description": "起點車站代號",
"type": "string"
},
"StartingStationName": {
+ "title": "NameType",
"description": "起點車站名稱",
- "type": "string"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "終點車站代號",
"type": "string"
},
"EndingStationName": {
+ "title": "NameType",
"description": "終點車站名稱",
- "type": "string"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間(格式: HH:mm:ss)",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間(格式: HH:mm:ss)",
"type": "string"
},
@@ -9599,44 +10660,118 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.StationTimeTable": {
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable": {
+ "title": "Timetable",
+ "description": "車站發車時刻資訊",
+ "required": [
+ "ArrivalTime",
+ "DepartureTime",
+ "Sequence",
+ "TrainNo"
+ ],
+ "type": "object",
+ "properties": {
+ "Sequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "發車順序",
+ "type": "integer"
+ },
+ "TrainNo": {
+ "title": "String",
+ "description": "車次號碼(捷運通常沒有TrainNo車次資訊)",
+ "type": "string"
+ },
+ "ArrivalTime": {
+ "title": "String",
+ "description": "到站時刻(hh:mm)",
+ "type": "string"
+ },
+ "DepartureTime": {
+ "title": "String",
+ "description": "發車時刻(hh:mm)",
+ "type": "string"
+ },
+ "TrainType": {
+ "format": "int32",
+ "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay": {
+ "title": "SpecialDay",
+ "description": "特定日期",
+ "required": [
+ "Description",
+ "EndDate",
+ "SaterDate"
+ ],
+ "type": "object",
+ "properties": {
+ "SaterDate": {
+ "title": "DateTime",
+ "description": "開始時間",
+ "type": "string"
+ },
+ "EndDate": {
+ "title": "DateTime",
+ "description": "結束時間",
+ "type": "string"
+ },
+ "Description": {
+ "title": "String",
+ "description": "描述",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V2.Metro.StationTimeTable": {
"title": "StationTimeTable",
"description": "站別時刻表資料",
"required": [
- "LineID",
- "StationID",
- "StationName",
"DestinationStaionID",
"DestinationStationName",
- "Timetables",
+ "LineID",
"ServiceDays",
"SrcUpdateTime",
+ "StationID",
+ "StationName",
+ "Timetables",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -9645,31 +10780,42 @@
"type": "integer"
},
"DestinationStaionID": {
+ "title": "String",
"description": "目的站車站代號",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "目的站車站名稱"
+ "description": "目的站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Timetables": {
+ "title": "Array",
"description": "車站發車時刻資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.Timetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable"
}
},
"ServiceDays": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays",
"title": "ServiceDays",
- "description": "服務日型態"
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDays"
+ }
+ ]
},
"SpecialDays": {
+ "title": "Array",
"description": "特定日期",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.Metro.SubClass.SpecialDay"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay"
}
},
"SrcUpdateTime": {
@@ -9684,94 +10830,40 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Rail.Metro.SubClass.Timetable": {
- "title": "Timetable",
- "description": "車站發車時刻資訊",
- "required": [
- "Sequence",
- "TrainNo",
- "ArrivalTime",
- "DepartureTime"
- ],
- "type": "object",
- "properties": {
- "Sequence": {
- "format": "int32",
- "description": "發車順序",
- "type": "integer"
- },
- "TrainNo": {
- "description": "車次號碼(捷運通常沒有TrainNo車次資訊)",
- "type": "string"
- },
- "ArrivalTime": {
- "description": "到站時刻(hh:mm)",
- "type": "string"
- },
- "DepartureTime": {
- "description": "發車時刻(hh:mm)",
- "type": "string"
- },
- "TrainType": {
- "format": "int32",
- "description": "車種(0:不分車種, 1:普通車, 2:直達車)",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Rail.Metro.SubClass.SpecialDay": {
- "title": "SpecialDay",
- "description": "特定日期",
- "required": [
- "SaterDate",
- "EndDate",
- "Description"
- ],
- "type": "object",
- "properties": {
- "SaterDate": {
- "title": "DateTime",
- "description": "開始時間",
- "type": "string"
- },
- "EndDate": {
- "title": "DateTime",
- "description": "結束時間",
- "type": "string"
- },
- "Description": {
- "description": "描述",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Rail.TRA.TrainType": {
+ "PTX.Service.DTO.Rail.Specification.V2.TRA.TrainType": {
"title": "TrainType",
"description": "臺鐵列車車種資料",
"required": [
+ "TrainTypeCode",
"TrainTypeID",
"TrainTypeName",
- "TrainTypeCode",
"UpdateTime",
"VersionID"
],
"type": "object",
"properties": {
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"TrainTypeCode": {
+ "title": "String",
"description": "列車車種簡碼 [1:太魯閣;2:普悠瑪;3:自強;4:莒光;5:復興;6:區間;7:普快]",
"type": "string"
},
@@ -9782,6 +10874,7 @@
},
"VersionID": {
"format": "int32",
+ "title": "Int32",
"description": "資料版本編號",
"type": "integer"
}
@@ -9790,16 +10883,20 @@
},
"tags": [
{
- "name": "RailBasic"
+ "name": "RailBasic",
+ "description": "軌道基礎"
},
{
- "name": "TRA"
+ "name": "TRA",
+ "description": "臺鐵"
},
{
- "name": "THSR"
+ "name": "THSR",
+ "description": "高鐵"
},
{
- "name": "Metro"
+ "name": "Metro",
+ "description": "捷運"
}
]
}
diff --git a/oas.rail.v3.json b/oas.rail.v3.json
index a6f4b2b6..70d20122 100644
--- a/oas.rail.v3.json
+++ b/oas.rail.v3.json
@@ -1,74 +1,73 @@
{
"swagger": "2.0",
"info": {
- "version": "v3",
"title": "MOTC Transport API V3",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\r\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\r\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\r\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\r\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v3/Rail/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v3/Rail/api-docs/oas)",
+ "version": "v3"
},
"host": "ptx.transportdata.tw",
- "basePath": "/MOTC/",
+ "basePath": "/MOTC",
"schemes": [
"https"
],
"paths": {
- "/v3/Rail/TRA/Operator": {
+ "/v3/Rail/TRA/Network": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得台鐵營運業者基本資料",
- "description": "取得台鐵營運業者基本資料",
- "operationId": "OperatorApiController_Get",
- "consumes": [],
+ "summary": "取得臺鐵路網資料",
+ "description": "取得臺鐵路網資料",
+ "operationId": "NetworkApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -80,72 +79,77 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Operator]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network]"
}
}
}
}
},
- "/v3/Rail/TRA/Network": {
+ "/v3/Rail/TRA/Station": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得臺鐵路網資料",
- "description": "取得臺鐵路網資料",
- "operationId": "NetworkApiController_Get",
- "consumes": [],
+ "summary": "取得車站基本資料",
+ "description": "取得車站基本資料",
+ "operationId": "StationApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$spatialFilter",
+ "description": "空間過濾",
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -157,72 +161,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Network.Network]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Station]"
}
}
}
}
},
- "/v3/Rail/TRA/Station": {
+ "/v3/Rail/TRA/StationExit": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得車站基本資料",
- "description": "取得車站基本資料",
- "operationId": "StationApiController_Get",
- "consumes": [],
+ "summary": "取得車站出入口基本資料",
+ "description": "取得車站出入口基本資料",
+ "operationId": "StationExitApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -234,72 +237,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Station]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit]"
}
}
}
}
},
- "/v3/Rail/TRA/StationExit": {
+ "/v3/Rail/TRA/StationFacility": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得車站出入口基本資料",
- "description": "取得車站出入口基本資料",
- "operationId": "StationExitApiController_Get",
- "consumes": [],
+ "summary": "取得車站設施資料",
+ "description": "取得車站設施資料",
+ "operationId": "StationFacilityApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -311,72 +313,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationExit.StationExit]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility]"
}
}
}
}
},
- "/v3/Rail/TRA/StationFacility": {
+ "/v3/Rail/TRA/Line": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得車站設施資料",
- "description": "取得車站設施資料",
- "operationId": "StationFacilityApiController_Get",
- "consumes": [],
+ "summary": "取得路線基本資料",
+ "description": "取得路線基本資料",
+ "operationId": "LineApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -388,72 +389,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Line]"
}
}
}
}
},
- "/v3/Rail/TRA/Line": {
+ "/v3/Rail/TRA/StationOfLine": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得路線基本資料",
- "description": "取得路線基本資料",
- "operationId": "LineApiController_Get",
- "consumes": [],
+ "summary": "取得路線車站基本資料",
+ "description": "取得路線車站基本資料",
+ "operationId": "StationOfLineApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -465,72 +465,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Line]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine]"
}
}
}
}
},
- "/v3/Rail/TRA/LineNetwork": {
+ "/v3/Rail/TRA/TrainType": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得路線網路拓撲基本資料",
- "description": "取得路線網路拓撲基本資料",
- "operationId": "LineNetworkApiController_Get",
- "consumes": [],
+ "summary": "取得所有列車車種資料",
+ "description": "取得所有列車車種資料",
+ "operationId": "TrainTypeApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -542,72 +541,109 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType]"
}
}
}
}
},
- "/v3/Rail/TRA/StationOfLine": {
+ "/v3/Rail/TRA/ODFare": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得路線車站基本資料",
- "description": "取得路線車站基本資料",
- "operationId": "StationOfLineApiController_Get",
- "consumes": [],
+ "summary": "取得票價資料(檔案)",
+ "description": "取得Gzip壓縮檔",
+ "operationId": "ODFareApiControllerApiController_Get",
"produces": [
"application/json",
+ "application/xml",
+ "text/plain",
"text/json"
],
+ "responses": {
+ "200": {
+ "description": "Gzipped Attachment Response",
+ "schema": {
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]"
+ }
+ }
+ }
+ }
+ },
+ "/v3/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}": {
+ "get": {
+ "tags": [
+ "TRA"
+ ],
+ "summary": "取得指定起迄站間票價資料",
+ "description": "取得指定起迄站間票價資料",
+ "operationId": "ODFareApiControllerApiController_Get_1",
+ "produces": [
+ "application/json",
+ "application/xml"
+ ],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "OriginStationID",
+ "description": "起點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "迄點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -619,72 +655,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]"
}
}
}
}
},
- "/v3/Rail/TRA/TrainType": {
+ "/v3/Rail/TRA/GeneralTrainTimetable": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有列車車種資料",
- "description": "取得所有列車車種資料",
- "operationId": "TrainTypeApiController_Get",
- "consumes": [],
+ "summary": "取得所有車次的定期時刻表資料",
+ "description": "取得所有車次的定期時刻表資料",
+ "operationId": "GeneralTrainTimetableApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -696,110 +731,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.TrainType]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/ODFare": {
+ "/v3/Rail/TRA/GeneralTrainTimetable/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得票價資料(檔案)",
- "description": "取得Gzip壓縮檔",
- "operationId": "ODFareApiControllerApiController_Get",
- "consumes": [],
- "produces": [
- "application/json",
- "text/json"
- ],
- "parameters": [],
- "responses": {
- "200": {
- "description": "Gzipped Attachment Response",
- "schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]"
- }
- }
- }
- }
- },
- "/v3/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}": {
- "get": {
- "tags": [
- "TRA"
- ],
- "summary": "取得指定起迄站間票價資料",
- "description": "取得指定起迄站間票價資料",
- "operationId": "ODFareApiControllerApiController_Get_1",
- "consumes": [],
+ "summary": "取得指定[車次]的定期時刻表資料",
+ "description": "取得指定[車次]的定期時刻表資料",
+ "operationId": "GeneralTrainTimetableApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "OriginStationID",
- "in": "path",
- "description": "起點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "DestinationStationID",
"in": "path",
- "description": "迄點車站代碼",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -811,72 +814,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/GeneralTrainTimetable": {
+ "/v3/Rail/TRA/GeneralStationTimetable": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有車次的定期時刻表資料",
- "description": "取得所有車次的定期時刻表資料",
- "operationId": "GeneralTrainTimetableApiController_Get",
- "consumes": [],
+ "summary": "取得各站的定期站別時刻表資料",
+ "description": "取得各站的定期站別時刻表資料",
+ "operationId": "GeneralStationTimetableApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -888,79 +890,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/GeneralTrainTimetable/TrainNo/{TrainNo}": {
+ "/v3/Rail/TRA/GeneralStationTimetable/Station/{StationID}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車次]的定期時刻表資料",
- "description": "取得指定[車次]的定期時刻表資料",
- "operationId": "GeneralTrainTimetableApiController_Get_1",
- "consumes": [],
+ "summary": "取得指定[車站]的定期站別時刻表資料",
+ "description": "取得指定[車站]的定期站別時刻表資料",
+ "operationId": "GeneralStationTimetableApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
- "description": "欲查詢車次的代碼",
+ "name": "StationID",
+ "description": "欲查詢車站的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -972,72 +973,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/GeneralStationTimetable": {
+ "/v3/Rail/TRA/SpecificTrainTimetable": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得各站的定期站別時刻表資料",
- "description": "取得各站的定期站別時刻表資料",
- "operationId": "GeneralStationTimetableApiController_Get",
- "consumes": [],
+ "summary": "取得所有特殊車次時刻表資料",
+ "description": "取得所有特殊車次時刻表資料",
+ "operationId": "SpecificTrainTimetableApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1049,79 +1049,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/GeneralStationTimetable/Station/{StationID}": {
+ "/v3/Rail/TRA/SpecificTrainTimetable/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車站]的定期站別時刻表資料",
- "description": "取得指定[車站]的定期站別時刻表資料",
- "operationId": "GeneralStationTimetableApiController_Get_1",
- "consumes": [],
+ "summary": "取得指定[車次]的特殊車次時刻表資料",
+ "description": "取得指定[車次]的特殊車次時刻表資料",
+ "operationId": "SpecificTrainTimetableApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
"in": "path",
- "description": "欲查詢車站的代碼",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1133,72 +1132,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/SpecificTrainTimetable": {
+ "/v3/Rail/TRA/DailyTrainTimetable/Today": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得所有特殊車次時刻表資料",
- "description": "取得所有特殊車次時刻表資料",
- "operationId": "SpecificTrainTimetableApiController_Get",
- "consumes": [],
+ "summary": "取得當天車次時刻表資料",
+ "description": "取得當天車次時刻表資料",
+ "operationId": "DailyTrainTimeTableApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1210,79 +1208,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/SpecificTrainTimetable/TrainNo/{TrainNo}": {
+ "/v3/Rail/TRA/DailyTrainTimetable/Today/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車次]的特殊車次時刻表資料",
- "description": "取得指定[車次]的特殊車次時刻表資料",
- "operationId": "SpecificTrainTimetableApiController_Get_1",
- "consumes": [],
+ "summary": "取得當天指定[車次]的時刻表資料",
+ "description": "取得當天指定[車次]的時刻表資料",
+ "operationId": "DailyTrainTimeTableApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
+ "name": "TrainNo",
"description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1294,72 +1291,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyTrainTimetable/Today": {
+ "/v3/Rail/TRA/DailyTrainTimetable/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天車次時刻表資料",
- "description": "取得當天車次時刻表資料",
- "operationId": "DailyTrainTimeTableApiController_Get",
- "consumes": [],
+ "summary": "取得指定[日期]所有車次的時刻表資料",
+ "description": "取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)",
+ "operationId": "DailyTrainTimeTableApiController_Get_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1371,79 +1374,92 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyTrainTimetable/Today/TrainNo/{TrainNo}": {
+ "/v3/Rail/TRA/DailyTrainTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天指定[車次]的時刻表資料",
- "description": "取得當天指定[車次]的時刻表資料",
- "operationId": "DailyTrainTimeTableApiController_Get_1",
- "consumes": [],
+ "summary": "取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)",
+ "description": "取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)",
+ "operationId": "DailyTrainTimeTableApiController_Get_3",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
"in": "path",
- "description": "欲查詢車次的代碼",
+ "name": "TrainDate",
+ "description": "欲查詢的日期(格式: yyyy-MM-dd)",
"required": true,
"type": "string"
},
{
- "name": "$select",
- "in": "query",
- "description": "挑選",
- "type": "string"
- },
+ "in": "path",
+ "name": "OriginStationID",
+ "description": "起點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "迄點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "query",
+ "name": "$select",
+ "description": "挑選",
+ "type": "string"
+ },
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1455,79 +1471,92 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyTrainTimetable/TrainDate/{TrainDate}": {
+ "/v3/Rail/TRA/DailyTrainTimetable/OD/Inclusive/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期]所有車次的時刻表資料",
- "description": "取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)",
- "operationId": "DailyTrainTimeTableApiController_Get_2",
- "consumes": [],
+ "summary": "取得指定[日期],[起迄站間]之站間時刻表資料",
+ "description": "取得指定[日期],[起迄站間]之站間時刻表資料",
+ "operationId": "DailyTrainTimeTableApiController_Get_4",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
+ "in": "path",
"name": "TrainDate",
+ "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "path",
- "description": "欲查詢車次的日期(格式: yyyy-MM-dd)",
+ "name": "OriginStationID",
+ "description": "起點車站代碼",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "in": "path",
+ "name": "DestinationStationID",
+ "description": "迄點車站代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1539,93 +1568,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyTrainTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
+ "/v3/Rail/TRA/DailyStationTimetable/Today": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)",
- "description": "取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)",
- "operationId": "DailyTrainTimeTableApiController_Get_3",
- "consumes": [],
+ "summary": "取得當天各站站別時刻表資料",
+ "description": "取得當天各站站別時刻表資料",
+ "operationId": "DailyStationTimeTableApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
- "in": "path",
- "description": "欲查詢的日期(格式: yyyy-MM-dd)",
- "required": true,
- "type": "string"
- },
- {
- "name": "OriginStationID",
- "in": "path",
- "description": "起點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "DestinationStationID",
- "in": "path",
- "description": "迄點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1637,93 +1644,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyTrainTimetable/OD/Inclusive/{OriginStationID}/to/{DestinationStationID}/{TrainDate}": {
+ "/v3/Rail/TRA/DailyStationTimetable/Today/Station/{StationID}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[日期],[起迄站間]之站間時刻表資料",
- "description": "取得指定[日期],[起迄站間]之站間時刻表資料",
- "operationId": "DailyTrainTimeTableApiController_Get_4",
- "consumes": [],
+ "summary": "取得當天指定[車站]的時刻表資料",
+ "description": "取得當天指定[車站]的時刻表資料",
+ "operationId": "DailyStationTimeTableApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
- "in": "path",
- "description": "欲查詢的日期(格式: yyyy-MM-dd)",
- "required": true,
- "type": "string"
- },
- {
- "name": "OriginStationID",
- "in": "path",
- "description": "起點車站代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "DestinationStationID",
"in": "path",
- "description": "迄點車站代碼",
+ "name": "StationID",
+ "description": "欲查詢車站的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1735,72 +1727,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyStationTimetable/Today": {
+ "/v3/Rail/TRA/DailyStationTimetable/TrainDate/{TrainDate}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天各站站別時刻表資料",
- "description": "取得當天各站站別時刻表資料",
- "operationId": "DailyStationTimeTableApiController_Get",
- "consumes": [],
+ "summary": "取得各站每日站別時刻表資料",
+ "description": "取得各站每日站別時刻表資料",
+ "operationId": "DailyStationTimeTableApiController_Get_2",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
+ "in": "path",
+ "name": "TrainDate",
+ "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "required": true,
+ "type": "string"
+ },
+ {
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1812,79 +1810,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyStationTimetable/Today/Station/{StationID}": {
+ "/v3/Rail/TRA/StationLiveBoard": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得當天指定[車站]的時刻表資料",
- "description": "取得當天指定[車站]的時刻表資料",
- "operationId": "DailyStationTimeTableApiController_Get_1",
- "consumes": [],
+ "summary": "取得列車即時到離站資料",
+ "description": "取得列車即時到離站資料",
+ "operationId": "StationLiveBoardApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
- "in": "path",
- "description": "欲查詢車站的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1896,79 +1886,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]"
}
}
}
}
},
- "/v3/Rail/TRA/DailyStationTimetable/TrainDate/{TrainDate}": {
+ "/v3/Rail/TRA/StationLiveBoard/Station/{StationID}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得各站每日站別時刻表資料",
- "description": "取得各站每日站別時刻表資料",
- "operationId": "DailyStationTimeTableApiController_Get_2",
- "consumes": [],
+ "summary": "取得指定[車站]的列車即時到離站資料",
+ "description": "取得指定[車站]的列車即時到離站資料",
+ "operationId": "StationLiveBoardApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainDate",
"in": "path",
- "description": "欲查詢的日期(格式: yyyy-MM-dd)",
+ "name": "StationID",
+ "description": "欲查詢車站的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1980,72 +1969,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]"
}
}
}
}
},
- "/v3/Rail/TRA/StationLiveBoard": {
+ "/v3/Rail/TRA/TrainLiveBoard": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得列車即時到離站資料",
- "description": "取得列車即時到離站資料",
- "operationId": "StationLiveBoardApiController_Get",
- "consumes": [],
- "produces": [
- "application/json",
- "text/json"
+ "summary": "取得列車即時位置動態資料",
+ "description": "取得列車即時位置動態資料\r\n\r\n## 使用注意事項\r\n1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。\r\n2. 以「145車次」為例,如果車站名稱為「萬華」,表示 145 車次剛從萬華離開,而不是正前往萬華,另萬華站為145 車次之經過站,非停靠站。\r\n3. 提供所有經過站資料是為確保車次的準誤點資料都會是最新的 (尤其是東部幹線普悠瑪、太魯閣車次,因停靠站少,更新頻率低的話會使呈現的準誤點時間誤差過大)。\r\n4. 基於上述原因,本項資料並非僅提供列車停靠站資料,因為這樣提供方式會使列車位置資訊更狹隘,例如:只知道離開台北站,不曉得經過哪一站了,故請加值者使用時多加注意。",
+ "operationId": "TrainLiveBoardApiController_Get",
+ "produces": [
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2057,79 +2045,78 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]"
}
}
}
}
},
- "/v3/Rail/TRA/StationLiveBoard/Station/{StationID}": {
+ "/v3/Rail/TRA/TrainLiveBoard/TrainNo/{TrainNo}": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車站]的列車即時到離站資料",
- "description": "取得指定[車站]的列車即時到離站資料",
- "operationId": "StationLiveBoardApiController_Get_1",
- "consumes": [],
+ "summary": "取得指定[車次]的列車即時位置動態資料",
+ "description": "取得指定[車次]的列車即時位置動態資料\r\n\r\n## 使用注意事項\r\n1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。\r\n2. 以「145車次」為例,如果車站名稱為「萬華」,表示 145 車次剛從萬華離開,而不是正前往萬華,另萬華站為145 車次之經過站,非停靠站。\r\n3. 提供所有經過站資料是為確保車次的準誤點資料都會是最新的 (尤其是東部幹線普悠瑪、太魯閣車次,因停靠站少,更新頻率低的話會使呈現的準誤點時間誤差過大)。\r\n4. 基於上述原因,本項資料並非僅提供列車停靠站資料,因為這樣提供方式會使列車位置資訊更狹隘,例如:只知道離開台北站,不曉得經過哪一站了,故請加值者使用時多加注意。",
+ "operationId": "TrainLiveBoardApiController_Get_1",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "StationID",
"in": "path",
- "description": "欲查詢車站的代碼",
+ "name": "TrainNo",
+ "description": "欲查詢車次的代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2141,72 +2128,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]"
}
}
}
}
},
- "/v3/Rail/TRA/TrainLiveBoard": {
+ "/v3/Rail/TRA/LineTransfer": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得列車即時位置動態資料",
- "description": "取得列車即時位置動態資料\r\n\r\n## 使用注意事項\r\n1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。\r\n2. 以「145車次」為例,如果車站名稱為「萬華」,表示 145 車次剛從萬華離開,而不是正前往萬華,另萬華站為145 車次之經過站,非停靠站。\r\n3. 提供所有經過站資料是為確保車次的準誤點資料都會是最新的 (尤其是東部幹線普悠瑪、太魯閣車次,因停靠站少,更新頻率低的話會使呈現的準誤點時間誤差過大)。\r\n4. 基於上述原因,本項資料並非僅提供列車停靠站資料,因為這樣提供方式會使列車位置資訊更狹隘,例如:只知道離開台北站,不曉得經過哪一站了,故請加值者使用時多加注意。",
- "operationId": "TrainLiveBoardApiController_Get",
- "consumes": [],
+ "summary": "取得內部路線轉乘資料",
+ "description": "取得內部路線轉乘資料",
+ "operationId": "LineTransferApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2218,79 +2204,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer]"
}
}
}
}
},
- "/v3/Rail/TRA/TrainLiveBoard/TrainNo/{TrainNo}": {
+ "/v3/Rail/TRA/StationTransfer": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得指定[車次]的列車即時位置動態資料",
- "description": "取得指定[車次]的列車即時位置動態資料\r\n\r\n## 使用注意事項\r\n1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。\r\n2. 以「145車次」為例,如果車站名稱為「萬華」,表示 145 車次剛從萬華離開,而不是正前往萬華,另萬華站為145 車次之經過站,非停靠站。\r\n3. 提供所有經過站資料是為確保車次的準誤點資料都會是最新的 (尤其是東部幹線普悠瑪、太魯閣車次,因停靠站少,更新頻率低的話會使呈現的準誤點時間誤差過大)。\r\n4. 基於上述原因,本項資料並非僅提供列車停靠站資料,因為這樣提供方式會使列車位置資訊更狹隘,例如:只知道離開台北站,不曉得經過哪一站了,故請加值者使用時多加注意。",
- "operationId": "TrainLiveBoardApiController_Get_1",
- "consumes": [],
+ "summary": "取得車站跨運具轉乘資訊",
+ "description": "取得車站跨運具轉乘資訊",
+ "operationId": "StationTransferApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TrainNo",
- "in": "path",
- "description": "欲查詢車次的代碼",
- "required": true,
- "type": "string"
- },
- {
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2302,72 +2280,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer]"
}
}
}
}
},
- "/v3/Rail/TRA/LineTransfer": {
+ "/v3/Rail/TRA/News": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得內部路線轉乘資料",
- "description": "取得內部路線轉乘資料",
- "operationId": "LineTransferApiController_Get",
- "consumes": [],
+ "summary": "取得最新消息",
+ "description": "取得最新消息",
+ "operationId": "NewsApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2379,72 +2356,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineTransfer]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News]"
}
}
}
}
},
- "/v3/Rail/TRA/StationTransfer": {
+ "/v3/Rail/TRA/Alert": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得車站跨運具轉乘資訊",
- "description": "取得車站跨運具轉乘資訊",
- "operationId": "StationTransferApiController_Get",
- "consumes": [],
+ "summary": "取得營運通阻資料",
+ "description": "取得營運通阻資料",
+ "operationId": "AlertApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2456,72 +2432,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert]"
}
}
}
}
},
- "/v3/Rail/TRA/News": {
+ "/v3/Rail/TRA/Shape": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得最新消息",
- "description": "取得最新消息",
- "operationId": "NewsApiController_Get",
- "consumes": [],
+ "summary": "取得線型基本資料",
+ "description": "取得線型基本資料",
+ "operationId": "ShapeApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2533,72 +2508,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRANewsList.News]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Shape]"
}
}
}
}
},
- "/v3/Rail/TRA/Alert": {
+ "/v3/Rail/TRA/Operator": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得營運通阻資料",
- "description": "取得營運通阻資料",
- "operationId": "AlertApiController_Get",
- "consumes": [],
+ "summary": "取得台鐵營運業者基本資料",
+ "description": "取得台鐵營運業者基本資料",
+ "operationId": "OperatorApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2610,72 +2584,71 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Operator]"
}
}
}
}
},
- "/v3/Rail/TRA/Shape": {
+ "/v3/Rail/TRA/LineNetwork": {
"get": {
"tags": [
"TRA"
],
- "summary": "取得線型基本資料",
- "description": "取得線型基本資料",
- "operationId": "ShapeApiController_Get",
- "consumes": [],
+ "summary": "取得路線網路拓撲基本資料",
+ "description": "取得路線網路拓撲基本資料",
+ "operationId": "LineNetworkApiController_Get",
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2687,9 +2660,9 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
- "$ref": "#/definitions/MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Shape]"
+ "$ref": "#/definitions/PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork]"
}
}
}
@@ -2697,296 +2670,279 @@
}
},
"definitions": {
- "MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert]": {
- "title": "TRAAlertList",
- "required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
- "AuthorityCode",
- "Alerts"
- ],
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork": {
+ "title": "AlertScopeNetwork",
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "NetworkID": {
+ "title": "String",
+ "description": "路網代碼",
"type": "string"
},
- "UpdateInterval": {
- "format": "int32",
- "description": "本平台資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "NetworkName": {
+ "title": "String",
+ "description": "路網名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation": {
+ "title": "AlertScopeStation",
+ "type": "object",
+ "properties": {
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
"type": "string"
},
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
+ "StationName": {
+ "title": "String",
+ "description": "車站名稱",
"type": "string"
- },
- "Alerts": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert"
- }
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert": {
- "title": "Alert",
- "required": [
- "AlertID",
- "Title",
- "Description",
- "Status",
- "Scope",
- "UpdateTime"
- ],
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine": {
+ "title": "AlertScopeLine",
"type": "object",
"properties": {
- "AlertID": {
- "description": "通阻訊息代碼",
+ "LineID": {
+ "title": "String",
+ "description": "實體路線代碼",
"type": "string"
},
- "Title": {
- "description": "通阻訊息標題",
+ "LineName": {
+ "title": "String",
+ "description": "實體路線名稱",
"type": "string"
- },
- "Description": {
- "description": "通阻訊息說明",
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute": {
+ "title": "AlertScopeRoute",
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "營運路線代碼",
"type": "string"
},
- "Status": {
- "format": "int32",
- "title": "integer",
- "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']",
- "type": "integer"
- },
- "Scope": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScope",
- "title": "AlertScope",
- "description": "影響範圍"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "影響方向 : [0:'南下',1:'北上',2:'雙向']",
- "type": "integer"
- },
- "Level": {
- "format": "int32",
- "title": "integer",
- "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']",
- "type": "integer"
- },
- "Effect": {
- "description": "影響說明",
+ "RouteName": {
+ "title": "String",
+ "description": "營運路線名稱",
"type": "string"
- },
- "Reason": {
- "description": "影響原因",
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain": {
+ "title": "AlertScopeTrain",
+ "type": "object",
+ "properties": {
+ "TrainNo": {
+ "title": "String",
+ "description": "受影響的車次",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection": {
+ "title": "AlertScopeLineSection",
+ "type": "object",
+ "properties": {
+ "LineID": {
+ "title": "String",
+ "description": "路線區間所在路線代碼",
"type": "string"
},
- "AlertURL": {
- "description": "通阻訊息網址連結",
+ "StartingStationID": {
+ "title": "String",
+ "description": "區間起站車站代碼",
"type": "string"
},
- "StartTime": {
- "title": "DateTime",
- "description": "訊息起始日期時間",
+ "StartingStationName": {
+ "title": "String",
+ "description": "區間起站車站名稱",
"type": "string"
},
- "EndTime": {
- "title": "DateTime",
- "description": "訊息結束日期時間",
+ "EndingStationID": {
+ "title": "String",
+ "description": "區間迄站車站代碼",
"type": "string"
},
- "PublishTime": {
- "title": "DateTime",
- "description": "消息發佈日期時間",
+ "EndingStationName": {
+ "title": "String",
+ "description": "區間迄站車站名稱",
"type": "string"
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "消息更新日期時間",
+ "Description": {
+ "title": "String",
+ "description": "影響區間輔助描述",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScope": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope": {
"title": "AlertScope",
"required": [
- "Stations",
"Lines",
+ "LineSections",
"Routes",
- "Trains",
- "LineSections"
+ "Stations",
+ "Trains"
],
"type": "object",
"properties": {
"NetworkList": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeNetwork",
"title": "AlertScopeNetwork",
- "description": "受影響的路網"
+ "description": "受影響的路網",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork"
+ }
+ ]
},
"Stations": {
+ "title": "AlertScopeStation[]",
"description": "受影響的車站",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeStation"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation"
}
},
"Lines": {
+ "title": "AlertScopeLine[]",
"description": "受影響的實體路線",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLine"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine"
}
},
"Routes": {
+ "title": "AlertScopeRoute[]",
"description": "受影響的營運路線",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute"
}
},
"Trains": {
+ "title": "AlertScopeTrain[]",
"description": "受影響的車次",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeTrain"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain"
}
},
"LineSections": {
+ "title": "AlertScopeLineSection[]",
"description": "受影響的路線區間",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLineSection"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection"
}
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeNetwork": {
- "title": "AlertScopeNetwork",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert": {
+ "title": "Alert",
+ "required": [
+ "AlertID",
+ "Description",
+ "Scope",
+ "Status",
+ "Title",
+ "UpdateTime"
+ ],
"type": "object",
"properties": {
- "NetworkID": {
- "description": "路網代碼",
+ "AlertID": {
+ "title": "String",
+ "description": "通阻訊息代碼",
"type": "string"
},
- "NetworkName": {
- "description": "路網名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeStation": {
- "title": "AlertScopeStation",
- "type": "object",
- "properties": {
- "StationID": {
- "description": "車站代碼",
+ "Title": {
+ "title": "String",
+ "description": "通阻訊息標題",
"type": "string"
},
- "StationName": {
- "description": "車站名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLine": {
- "title": "AlertScopeLine",
- "type": "object",
- "properties": {
- "LineID": {
- "description": "實體路線代碼",
+ "Description": {
+ "title": "String",
+ "description": "通阻訊息說明",
"type": "string"
},
- "LineName": {
- "description": "實體路線名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeRoute": {
- "title": "AlertScopeRoute",
- "type": "object",
- "properties": {
- "RouteID": {
- "description": "營運路線代碼",
- "type": "string"
+ "Status": {
+ "format": "int32",
+ "title": "integer",
+ "description": "營運狀況 : [0:'全線營運停止',1:'全線營運正常',2:'有異常狀況']",
+ "type": "integer"
},
- "RouteName": {
- "description": "營運路線名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeTrain": {
- "title": "AlertScopeTrain",
- "type": "object",
- "properties": {
- "TrainNo": {
- "description": "受影響的車次",
+ "Scope": {
+ "title": "AlertScope",
+ "description": "影響範圍",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "影響方向 : [0:'南下',1:'北上',2:'雙向']",
+ "type": "integer"
+ },
+ "Level": {
+ "format": "int32",
+ "title": "integer",
+ "description": "影響等級程度 : [1:'重度',2:'中度',3:'輕度']",
+ "type": "integer"
+ },
+ "Effect": {
+ "title": "String",
+ "description": "影響說明",
"type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLineSection": {
- "title": "AlertScopeLineSection",
- "type": "object",
- "properties": {
- "LineID": {
- "description": "路線區間所在路線代碼",
+ },
+ "Reason": {
+ "title": "String",
+ "description": "影響原因",
"type": "string"
},
- "StartingStationID": {
- "description": "區間起站車站代碼",
+ "AlertURL": {
+ "title": "String",
+ "description": "通阻訊息網址連結",
"type": "string"
},
- "StartingStationName": {
- "description": "區間起站車站名稱",
+ "StartTime": {
+ "title": "DateTime",
+ "description": "訊息起始日期時間",
"type": "string"
},
- "EndingStationID": {
- "description": "區間迄站車站代碼",
+ "EndTime": {
+ "title": "DateTime",
+ "description": "訊息結束日期時間",
"type": "string"
},
- "EndingStationName": {
- "description": "區間迄站車站名稱",
+ "PublishTime": {
+ "title": "DateTime",
+ "description": "消息發佈日期時間",
"type": "string"
},
- "Description": {
- "description": "影響區間輔助描述",
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "消息更新日期時間",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]": {
- "title": "TRADailyStationTimeTableList",
+ "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert]": {
+ "title": "TRAAlertList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
+ "Alerts",
"AuthorityCode",
- "TrainDate",
- "StationTimetables"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -2997,6 +2953,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -3007,82 +2964,47 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "TrainDate": {
- "description": "營運日說明(yyyy-MM-dd)",
- "type": "string"
- },
- "StationTimetables": {
+ "Alerts": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert"
}
},
"Count": {
"format": "int64",
"description": "資料總筆數",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable": {
- "title": "StationTimetable",
- "required": [
- "TimeTables"
- ],
- "type": "object",
- "properties": {
- "RouteID": {
- "description": "營運路線代碼",
- "type": "string"
- },
- "StationID": {
- "description": "車站代碼",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "行駛方向 : [0:'順行',1:'逆行']",
- "type": "integer"
- },
- "TimeTables": {
- "description": "目的站車站名稱",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.TimeTable"
- }
+ "type": "integer"
}
}
},
- "Service.DTO.Version3.Base.NameType": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": {
"title": "NameType",
- "description": "名稱資料型別",
"type": "object",
"properties": {
"Zh_tw": {
+ "title": "String",
"description": "中文繁體名稱",
"type": "string"
},
"En": {
+ "title": "String",
"description": "英文名稱",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.TimeTable": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable": {
"title": "TimeTable",
"required": [
"Sequence"
@@ -3091,55 +3013,112 @@
"properties": {
"Sequence": {
"format": "int32",
+ "title": "Int32",
"description": "發車順序",
"type": "integer"
},
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"DestinationStationID": {
+ "title": "String",
"description": "目的站車站代號",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "目的站車站名稱"
+ "description": "目的站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時刻",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "發車時刻",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]": {
- "title": "TRADailyTrainTimeTableList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable": {
+ "title": "StationTimetable",
+ "required": [
+ "TimeTables"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "營運路線代碼",
+ "type": "string"
+ },
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "行駛方向 : [0:'順行',1:'逆行']",
+ "type": "integer"
+ },
+ "TimeTables": {
+ "title": "Array",
+ "description": "目的站車站名稱",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]": {
+ "title": "TRADailyStationTimeTableList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationTimetables",
"TrainDate",
- "TrainTimetables"
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3150,6 +3129,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -3160,22 +3140,26 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
"TrainDate": {
+ "title": "String",
"description": "營運日說明(yyyy-MM-dd)",
"type": "string"
},
- "TrainTimetables": {
+ "StationTimetables": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable"
}
},
"Count": {
@@ -3185,52 +3169,80 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable": {
- "title": "TrainTimetable",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong": {
+ "title": "SectionAmong",
"required": [
- "TrainInfo",
- "StopTimes"
+ "EndStationID",
+ "StartStationID"
],
"type": "object",
"properties": {
- "TrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainInfo",
- "title": "TrainInfo",
- "description": "車次資料"
+ "StartStationID": {
+ "title": "String",
+ "description": "起站車站代碼",
+ "type": "string"
},
- "StopTimes": {
- "description": "停靠站資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.StopTime"
- }
+ "EndStationID": {
+ "title": "String",
+ "description": "迄站車站代碼",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection": {
+ "title": "DiningFlagSection",
+ "required": [
+ "EndSection",
+ "StartSection"
+ ],
+ "type": "object",
+ "properties": {
+ "StartSection": {
+ "title": "SectionAmong",
+ "description": "乘客出發站所屬區間",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong"
+ }
+ ]
+ },
+ "EndSection": {
+ "title": "SectionAmong",
+ "description": "乘客目的站所屬區間",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong"
+ }
+ ]
}
}
},
- "Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo": {
"title": "TrainInfo",
"required": [
- "TrainNo",
- "RouteID",
+ "BikeFlag",
+ "BreastFeedFlag",
+ "DailyFlag",
+ "DiningFlag",
"Direction",
- "TrainTypeName",
- "StartingStationName",
"EndingStationName",
- "WheelChairFlag",
+ "ExtraTrainFlag",
"PackageServiceFlag",
- "DiningFlag",
- "BreastFeedFlag",
- "BikeFlag",
- "DailyFlag",
- "ExtraTrainFlag"
+ "RouteID",
+ "StartingStationName",
+ "TrainNo",
+ "TrainTypeName",
+ "WheelChairFlag"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
@@ -3241,48 +3253,66 @@
"type": "integer"
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TripHeadSign": {
+ "title": "String",
"description": "車次之目的地方向描述",
"type": "string"
},
"StartingStationID": {
+ "title": "String",
"description": "車次之起始站車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車次之起始站車站名稱"
+ "description": "車次之起始站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "車次之終點站車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車次之終點站車站名稱"
+ "description": "車次之終點站車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OverNightStationID": {
+ "title": "String",
"description": "跨夜車站代碼",
"type": "string"
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"WheelChairFlag": {
@@ -3304,10 +3334,11 @@
"type": "integer"
},
"DiningFlagSections": {
+ "title": "DiningFlagSection[]",
"description": "提供訂便當服務之車站區間",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.DiningFlagSection"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection"
}
},
"BreastFeedFlag": {
@@ -3341,92 +3372,89 @@
"type": "integer"
},
"Note": {
+ "title": "String",
"description": "附註說明",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.StopTime": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime": {
"title": "StopTime",
"required": [
- "StopSequence",
"StationID",
- "StationName"
+ "StationName",
+ "StopSequence"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "停靠站序",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.DiningFlagSection": {
- "title": "DiningFlagSection",
- "required": [
- "StartSection",
- "EndSection"
- ],
- "type": "object",
- "properties": {
- "StartSection": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.SectionAmong",
- "title": "SectionAmong",
- "description": "乘客出發站所屬區間"
- },
- "EndSection": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.SectionAmong",
- "title": "SectionAmong",
- "description": "乘客目的站所屬區間"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.SectionAmong": {
- "title": "SectionAmong",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable": {
+ "title": "TrainTimetable",
"required": [
- "StartStationID",
- "EndStationID"
+ "StopTimes",
+ "TrainInfo"
],
"type": "object",
"properties": {
- "StartStationID": {
- "description": "起站車站代碼",
- "type": "string"
+ "TrainInfo": {
+ "title": "TrainInfo",
+ "description": "車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo"
+ }
+ ]
},
- "EndStationID": {
- "description": "迄站車站代碼",
- "type": "string"
+ "StopTimes": {
+ "title": "Array",
+ "description": "停靠站資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime"
+ }
}
}
},
- "MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]": {
- "title": "TRAGeneralStationTimetableList",
+ "PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]": {
+ "title": "TRADailyTrainTimeTableList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "EffectiveDate",
- "StationTimetables"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "TrainDate",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3437,6 +3465,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -3447,40 +3476,26 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "EffectiveDate": {
- "title": "DateTime",
- "description": "有效起始日期",
- "type": "string"
- },
- "ExpireDate": {
- "title": "DateTime",
- "description": "有效終止日期",
- "type": "string"
- },
- "SrcVersion": {
- "description": "來源版號",
- "type": "string"
- },
- "TimetableName": {
- "description": "定期性站別時刻表名稱",
- "type": "string"
- },
- "ValidityDesciption": {
- "description": "時刻表適用情形說明",
+ "TrainDate": {
+ "title": "String",
+ "description": "營運日說明(yyyy-MM-dd)",
"type": "string"
},
- "StationTimetables": {
+ "TrainTimetables": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable"
}
},
"Count": {
@@ -3490,139 +3505,118 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable": {
- "title": "GeneralStationTimetable",
- "description": "台鐵車站站別時刻表資料型別",
- "required": [
- "StationID",
- "Direction",
- "Timetables",
- "ServiceDay"
- ],
- "type": "object",
- "properties": {
- "RouteID": {
- "description": "營運路線代碼",
- "type": "string"
- },
- "StationID": {
- "description": "車站代碼",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "Direction": {
- "format": "int32",
- "title": "integer",
- "description": "行駛方向 : [0:'順行',1:'逆行']",
- "type": "integer"
- },
- "Timetables": {
- "description": "車次停靠站資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.Timetable"
- }
- },
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.ServiceDay",
- "title": "ServiceDay",
- "description": "服務日型態"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.Timetable": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable": {
"title": "Timetable",
"description": "車次停靠站資料",
"type": "object",
"properties": {
"Sequence": {
"format": "int32",
+ "title": "Int32",
"description": "發車順序",
"type": "integer"
},
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"DestinationStationID": {
+ "title": "String",
"description": "目的站車站代號",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "目的站車站"
+ "description": "目的站車站",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時刻",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "發車時刻",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.ServiceDay": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay": {
"title": "ServiceDay",
"description": "服務日型態",
"required": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
"Friday",
+ "Monday",
"Saturday",
- "Sunday"
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
"ServiceTag": {
+ "title": "String",
"description": "服務日標籤",
"type": "string"
},
"Monday": {
+ "title": "Boolean",
"description": "星期一營運與否",
"type": "boolean"
},
"Tuesday": {
+ "title": "Boolean",
"description": "星期二營運與否",
"type": "boolean"
},
"Wednesday": {
+ "title": "Boolean",
"description": "星期三營運與否",
"type": "boolean"
},
"Thursday": {
+ "title": "Boolean",
"description": "星期四營運與否",
"type": "boolean"
},
"Friday": {
+ "title": "Boolean",
"description": "星期五營運與否",
"type": "boolean"
},
"Saturday": {
+ "title": "Boolean",
"description": "星期六營運與否",
"type": "boolean"
},
"Sunday": {
+ "title": "Boolean",
"description": "星期日營運與否",
"type": "boolean"
},
@@ -3644,16 +3638,71 @@
}
}
},
- "MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]": {
- "title": "TRAGeneralTrainTimetableList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable": {
+ "title": "GeneralStationTimetable",
+ "description": "台鐵車站站別時刻表資料型別",
+ "required": [
+ "Direction",
+ "ServiceDay",
+ "StationID",
+ "Timetables"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "營運路線代碼",
+ "type": "string"
+ },
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "行駛方向 : [0:'順行',1:'逆行']",
+ "type": "integer"
+ },
+ "Timetables": {
+ "title": "Array",
+ "description": "車次停靠站資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable"
+ }
+ },
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "服務日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]": {
+ "title": "TRAGeneralStationTimetableList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
"EffectiveDate",
- "TrainTimetables"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationTimetables",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -3664,6 +3713,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -3674,10 +3724,12 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
@@ -3692,22 +3744,26 @@
"type": "string"
},
"SrcVersion": {
+ "title": "String",
"description": "來源版號",
"type": "string"
},
"TimetableName": {
+ "title": "String",
"description": "定期性站別時刻表名稱",
"type": "string"
},
"ValidityDesciption": {
+ "title": "String",
"description": "時刻表適用情形說明",
"type": "string"
},
- "TrainTimetables": {
+ "StationTimetables": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable"
}
},
"Count": {
@@ -3717,57 +3773,30 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable": {
- "title": "GeneralTrainTimetable",
- "description": "台鐵定期時刻表資料型別",
- "required": [
- "TrainInfo",
- "StopTimes",
- "ServiceDay"
- ],
- "type": "object",
- "properties": {
- "TrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.TrainInfo",
- "title": "TrainInfo",
- "description": "定期車次資料"
- },
- "StopTimes": {
- "description": "停靠時間資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.StopTime"
- }
- },
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.ServiceDay",
- "title": "ServiceDay",
- "description": "營運日型態"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.Common.TrainInfo": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo": {
"title": "TrainInfo",
"description": "臺鐵車次定期資料型別(時刻表用)",
"required": [
- "TrainNo",
- "Direction",
- "WheelChairFlag",
- "PackageServiceFlag",
- "DiningFlag",
- "BreastFeedFlag",
"BikeFlag",
+ "BreastFeedFlag",
"CarFlag",
"DailyFlag",
- "ExtraTrainFlag"
+ "DiningFlag",
+ "Direction",
+ "ExtraTrainFlag",
+ "PackageServiceFlag",
+ "TrainNo",
+ "WheelChairFlag"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "營運路線代碼",
"type": "string"
},
@@ -3778,48 +3807,66 @@
"type": "integer"
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TripHeadSign": {
+ "title": "String",
"description": "車次之目的地方向描述",
"type": "string"
},
"StartingStationID": {
+ "title": "String",
"description": "列車起點車站代號",
"type": "string"
},
"StartingStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "列車起點車站名稱"
+ "description": "列車起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "列車終點車站代號",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "列車終點車站名稱"
+ "description": "列車終點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OverNightStationID": {
+ "title": "String",
"description": "跨夜車站代碼",
"type": "string"
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"WheelChairFlag": {
@@ -3871,66 +3918,76 @@
"type": "integer"
},
"Note": {
+ "title": "String",
"description": "附註說明",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.Common.StopTime": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime": {
"title": "StopTime",
"description": "台鐵停靠時間資料",
"required": [
- "StopSequence",
+ "ArrivalTime",
+ "DepartureTime",
"StationID",
"StationName",
- "ArrivalTime",
- "DepartureTime"
+ "StopSequence"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
+ "title": "Int32",
"description": "停靠站序(由1開始)",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
+ "title": "String",
"description": "到站時間(格式: HH:mm)",
"type": "string"
},
"DepartureTime": {
+ "title": "String",
"description": "離站時間(格式: HH:mm)",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.Common.ServiceDay": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay": {
"title": "ServiceDay",
"description": "台鐵服務日型態",
"required": [
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
+ "DayAfterHoliday",
+ "DayBeforeHoliday",
"Friday",
+ "Monday",
+ "NationalHolidays",
"Saturday",
"Sunday",
- "NationalHolidays",
- "DayBeforeHoliday",
- "DayAfterHoliday",
- "TyphoonDay"
+ "Thursday",
+ "Tuesday",
+ "TyphoonDay",
+ "Wednesday"
],
"type": "object",
"properties": {
"ServiceTag": {
+ "title": "String",
"description": "服務日標籤",
"type": "string"
},
@@ -4002,15 +4059,54 @@
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Line]": {
- "title": "TRALineList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable": {
+ "title": "GeneralTrainTimetable",
+ "description": "台鐵定期時刻表資料型別",
+ "required": [
+ "ServiceDay",
+ "StopTimes",
+ "TrainInfo"
+ ],
+ "type": "object",
+ "properties": {
+ "TrainInfo": {
+ "title": "TrainInfo",
+ "description": "定期車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo"
+ }
+ ]
+ },
+ "StopTimes": {
+ "title": "Array",
+ "description": "停靠時間資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime"
+ }
+ },
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "description": "營運日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]": {
+ "title": "TRAGeneralTrainTimetableList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Lines"
+ "EffectiveDate",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "TrainTimetables",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4021,6 +4117,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4031,18 +4128,46 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "Lines": {
+ "EffectiveDate": {
+ "title": "DateTime",
+ "description": "有效起始日期",
+ "type": "string"
+ },
+ "ExpireDate": {
+ "title": "DateTime",
+ "description": "有效終止日期",
+ "type": "string"
+ },
+ "SrcVersion": {
+ "title": "String",
+ "description": "來源版號",
+ "type": "string"
+ },
+ "TimetableName": {
+ "title": "String",
+ "description": "定期性站別時刻表名稱",
+ "type": "string"
+ },
+ "ValidityDesciption": {
+ "title": "String",
+ "description": "時刻表適用情形說明",
+ "type": "string"
+ },
+ "TrainTimetables": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Line"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable"
}
},
"Count": {
@@ -4052,63 +4177,77 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.Line": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Line": {
"title": "Line",
"description": "路線基本資料",
"required": [
- "LineNo",
+ "IsBranch",
"LineID",
"LineName",
- "LineSectionName",
- "IsBranch"
+ "LineNo",
+ "LineSectionName"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"LineSectionName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線區間名稱"
+ "description": "路線區間名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"LineColor": {
+ "title": "String",
"description": "路線顏色",
"type": "string"
},
"IsBranch": {
+ "title": "Boolean",
"description": "是否位於支線",
"type": "boolean"
},
"LineGroup": {
+ "title": "String",
"description": "路線群組",
"type": "string"
},
"LineURL": {
+ "title": "String",
"description": "路線群組",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork]": {
- "title": "TRALineNetworkList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Line]": {
+ "title": "TRALineList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "LineNetworks"
+ "Lines",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4119,6 +4258,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4129,18 +4269,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "LineNetworks": {
+ "Lines": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Line"
}
},
"Count": {
@@ -4150,83 +4293,98 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork": {
- "title": "LineNetwork",
- "description": "路線網路拓撲基本資料",
- "required": [
- "LineID",
- "LineName"
- ],
- "type": "object",
- "properties": {
- "LineID": {
- "description": "路線編號",
- "type": "string"
- },
- "LineName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "路線名稱"
- },
- "LineSegments": {
- "description": "路線站點間線段資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.LineNetwork.LineSegment"
- }
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.LineNetwork.LineSegment": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment": {
"title": "LineSegment",
"description": "路線站點間線段資料",
"required": [
+ "Distance",
+ "FromStationID",
"LineSegmentID",
"LineSegmentName",
- "FromStationID",
- "ToStationID",
"SegmentType",
- "Distance"
+ "ToStationID"
],
"type": "object",
"properties": {
"LineSegmentID": {
+ "title": "String",
"description": "線段代碼",
"type": "string"
},
"LineSegmentName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路段名稱"
+ "description": "路段名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"FromStationID": {
+ "title": "String",
"description": "線段起點站代碼",
"type": "string"
},
"ToStationID": {
+ "title": "String",
"description": "線段迄點站代碼",
"type": "string"
},
"SegmentType": {
+ "title": "String",
"description": "線段種類 = ['M: 主路線', 'B: 分支路線']",
"type": "string"
},
"Distance": {
"format": "float",
+ "title": "Single",
"description": "站間距離",
"type": "number"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineTransfer]": {
- "title": "TRALineTransferList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork": {
+ "title": "LineNetwork",
+ "description": "路線網路拓撲基本資料",
+ "required": [
+ "LineID",
+ "LineName"
+ ],
+ "type": "object",
+ "properties": {
+ "LineID": {
+ "title": "String",
+ "description": "路線編號",
+ "type": "string"
+ },
+ "LineName": {
+ "title": "NameType",
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "LineSegments": {
+ "title": "Array",
+ "description": "路線站點間線段資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork]": {
+ "title": "TRALineNetworkList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "LineTransfers"
+ "LineNetworks",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4237,6 +4395,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4247,18 +4406,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "LineTransfers": {
+ "LineNetworks": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.LineTransfer"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork"
}
},
"Count": {
@@ -4268,7 +4430,7 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.LineTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer": {
"title": "LineTransfer",
"description": "台鐵路線站間轉乘基本資料",
"required": [
@@ -4276,203 +4438,249 @@
"FromLineName",
"FromStationID",
"FromStationName",
+ "MinTransferTime",
"ToLineID",
"ToLineName",
"ToStationID",
"ToStationName",
- "MinTransferTime",
"TransferDescription"
],
"type": "object",
"properties": {
"FromLineID": {
+ "title": "String",
"description": "路線間轉乘(起)之路線代碼",
"type": "string"
},
"FromLineName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(起)之路線名稱"
+ "description": "路線間轉乘(起)之路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"FromStationID": {
+ "title": "String",
"description": "路線間轉乘(起)之車站代碼",
"type": "string"
},
"FromStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(起)之車站名稱"
+ "description": "路線間轉乘(起)之車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ToLineID": {
+ "title": "String",
"description": "路線間轉乘(迄)之路線代碼",
"type": "string"
},
"ToLineName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(迄)之路線名稱"
+ "description": "路線間轉乘(迄)之路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ToStationID": {
+ "title": "String",
"description": "路線間轉乘(迄)之車站代碼",
"type": "string"
},
"ToStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線間轉乘(迄)之車站名稱"
+ "description": "路線間轉乘(迄)之車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
+ "title": "Double",
"description": "轉乘耗時參考時間(分)",
"type": "number"
},
"TransferDescription": {
+ "title": "String",
"description": "轉乘方式文字描述",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Network.Network]": {
- "title": "TRANetworkList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer]": {
+ "title": "TRALineTransferList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Networks"
- ],
- "type": "object",
- "properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "UpdateInterval": {
- "format": "int32",
- "description": "本平台資料更新週期(秒)",
- "type": "integer"
- },
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- },
- "SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "Networks": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Network.Network"
- }
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.Network.Network": {
- "title": "Network",
- "description": "臺鐵路網資料",
- "required": [
- "NetworkID",
- "NetworkName",
- "OperatorCode",
- "OperatorName",
- "NetworkMapURL",
- "Lines"
+ "LineTransfers",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
- "properties": {
- "NetworkID": {
- "description": "臺鐵路網代碼",
+ "properties": {
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "NetworkName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "臺鐵路網名稱"
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "本平台資料更新週期(秒)",
+ "type": "integer"
},
- "OperatorCode": {
- "description": "營運業者代碼",
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
},
- "OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "營運業者名稱"
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
},
- "NetworkMapURL": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Network.MapNameType",
- "title": "MapNameType",
- "description": "臺鐵路網圖網址URL"
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
},
- "Lines": {
- "description": "臺鐵路線資訊",
+ "LineTransfers": {
+ "title": "Array",
+ "description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Network.Line"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer"
}
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
}
}
},
- "Service.DTO.Version3.Rail.TRA.Network.MapNameType": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType": {
"title": "MapNameType",
"type": "object",
"properties": {
"MapName": {
+ "title": "String",
"description": "路網圖名稱",
"type": "string"
},
"Zh_tw": {
+ "title": "String",
"description": "臺鐵路網圖網址(中文版)",
"type": "string"
},
"En": {
+ "title": "String",
"description": "臺鐵路網圖網址(英文版)",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.Network.Line": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line": {
"title": "Line",
"description": "路線基本資料",
"required": [
- "LineNo",
- "LineID"
+ "LineID",
+ "LineNo"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRANewsList.News]": {
- "title": "TRANewsList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network": {
+ "title": "Network",
+ "description": "臺鐵路網資料",
+ "required": [
+ "Lines",
+ "NetworkID",
+ "NetworkMapURL",
+ "NetworkName",
+ "OperatorCode",
+ "OperatorName"
+ ],
+ "type": "object",
+ "properties": {
+ "NetworkID": {
+ "title": "String",
+ "description": "臺鐵路網代碼",
+ "type": "string"
+ },
+ "NetworkName": {
+ "title": "NameType",
+ "description": "臺鐵路網名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "OperatorCode": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ },
+ "OperatorName": {
+ "title": "NameType",
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "NetworkMapURL": {
+ "title": "MapNameType",
+ "description": "臺鐵路網圖網址URL",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType"
+ }
+ ]
+ },
+ "Lines": {
+ "title": "Array",
+ "description": "臺鐵路線資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network]": {
+ "title": "TRANetworkList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Newses"
+ "Networks",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4483,6 +4691,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4493,18 +4702,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "Newses": {
+ "Networks": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRANewsList.News"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network"
}
},
"Count": {
@@ -4514,20 +4726,21 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRANewsList.News": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News": {
"title": "News",
"required": [
- "NewsID",
+ "Description",
"Language",
- "Title",
"NewsCategory",
- "Description",
+ "NewsID",
"PublishTime",
+ "Title",
"UpdateTime"
],
"type": "object",
"properties": {
"NewsID": {
+ "title": "String",
"description": "消息代碼",
"type": "string"
},
@@ -4538,10 +4751,12 @@
"type": "integer"
},
"Department": {
+ "title": "String",
"description": "發布單位",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "消息標題",
"type": "string"
},
@@ -4552,14 +4767,17 @@
"type": "integer"
},
"Description": {
+ "title": "String",
"description": "內容描述",
"type": "string"
},
"NewsURL": {
+ "title": "String",
"description": "消息網址連結",
"type": "string"
},
"AttachmentURL": {
+ "title": "String",
"description": "附件網址連結",
"type": "string"
},
@@ -4585,15 +4803,15 @@
}
}
},
- "MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]": {
- "title": "TRAODFareList",
+ "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News]": {
+ "title": "TRANewsList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "ODFares"
+ "Newses",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4604,6 +4822,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4614,30 +4833,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "EffectiveDate": {
- "description": "有效起始日期",
- "type": "string"
- },
- "ExpireDate": {
- "description": "有效終止日期",
- "type": "string"
- },
- "SrcVersion": {
- "description": "資料版本",
- "type": "string"
- },
- "ODFares": {
+ "Newses": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.ODFare.ODFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News"
}
},
"Count": {
@@ -4647,35 +4857,81 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.ODFare.ODFare": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.Fare": {
+ "title": "Fare",
+ "required": [
+ "CabinClass",
+ "FareClass",
+ "Price",
+ "TicketType"
+ ],
+ "type": "object",
+ "properties": {
+ "TicketType": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "票種類型 = ['1: 一般票', '2: 來回票', '3: 電子票證', '4: 回數票', '5: 定期票(30天期)', '6: 定期票(60天期)', '7: 早鳥票']",
+ "type": "integer"
+ },
+ "FareClass": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "費率等級 = ['1: 成人', '2: 學生', '3: 孩童', '4: 敬老', '5: 愛心', '6: 愛心孩童', '7: 愛心優待/愛心陪伴', '8: 團體', '9: 軍警']",
+ "type": "integer"
+ },
+ "CabinClass": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "艙等 = ['1: 標準座車廂', '2: 商務座車廂', '3: 自由座車廂']",
+ "type": "integer"
+ },
+ "Price": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "計費價格(新台幣)",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare": {
"title": "ODFare",
"required": [
- "OriginStationID",
- "OriginStationName",
"DestinationStationID",
"DestinationStationName",
- "TrainType",
- "Fares"
+ "Fares",
+ "OriginStationID",
+ "OriginStationName",
+ "TrainType"
],
"type": "object",
"properties": {
"OriginStationID": {
+ "title": "String",
"description": "起點車站代碼",
"type": "string"
},
"OriginStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "起點車站名稱"
+ "description": "起點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"DestinationStationID": {
+ "title": "String",
"description": "迄點車站代碼",
"type": "string"
},
"DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "迄點車站名稱"
+ "description": "迄點車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -4685,14 +4941,16 @@
},
"TrainType": {
"format": "int32",
+ "title": "Int32",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "integer"
},
"Fares": {
+ "title": "Array",
"description": "票價",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.ODFare.Fare"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.Fare"
}
},
"TravelDistance": {
@@ -4702,47 +4960,15 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.ODFare.Fare": {
- "title": "Fare",
- "required": [
- "TicketType",
- "FareClass",
- "CabinClass",
- "Price"
- ],
- "type": "object",
- "properties": {
- "TicketType": {
- "format": "int32",
- "description": "票種類型 = ['1: 一般票', '2: 來回票', '3: 電子票證', '4: 回數票', '5: 定期票(30天期)', '6: 定期票(60天期)', '7: 早鳥票']",
- "type": "integer"
- },
- "FareClass": {
- "format": "int32",
- "description": "費率等級 = ['1: 成人', '2: 學生', '3: 孩童', '4: 敬老', '5: 愛心', '6: 愛心孩童', '7: 愛心優待/愛心陪伴', '8: 團體', '9: 軍警']",
- "type": "integer"
- },
- "CabinClass": {
- "format": "int32",
- "description": "艙等 = ['1: 標準座車廂', '2: 商務座車廂', '3: 自由座車廂']",
- "type": "integer"
- },
- "Price": {
- "format": "int32",
- "description": "計費價格(新台幣)",
- "type": "integer"
- }
- }
- },
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Operator]": {
- "title": "TRAOperatorList",
+ "PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]": {
+ "title": "TRAODFareList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Operators"
+ "ODFares",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4753,6 +4979,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4763,18 +4990,36 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "Operators": {
+ "EffectiveDate": {
+ "title": "String",
+ "description": "有效起始日期",
+ "type": "string"
+ },
+ "ExpireDate": {
+ "title": "String",
+ "description": "有效終止日期",
+ "type": "string"
+ },
+ "SrcVersion": {
+ "title": "String",
+ "description": "資料版本",
+ "type": "string"
+ },
+ "ODFares": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare"
}
},
"Count": {
@@ -4784,7 +5029,7 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.Operator": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Operator": {
"title": "Operator",
"description": "台鐵者營運業者基本資料",
"required": [
@@ -4794,53 +5039,65 @@
"type": "object",
"properties": {
"OperatorCode": {
+ "title": "String",
"description": "營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorPhone": {
+ "title": "String",
"description": "營運業者連絡電話",
"type": "string"
},
"OperatorEmail": {
+ "title": "String",
"description": "營運業者電子信箱",
"type": "string"
},
"OperatorURL": {
+ "title": "String",
"description": "營運業者網址連結",
"type": "string"
},
"FareURL": {
+ "title": "String",
"description": "營運業者票價查詢網站連結",
"type": "string"
},
"ReservationURL": {
+ "title": "String",
"description": "營運業者訂票網站",
"type": "string"
},
"ReservationPhone": {
+ "title": "String",
"description": "營運業者訂票電話",
"type": "string"
},
"OperatorLogoURL": {
+ "title": "String",
"description": "營運業者Logo網址",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Shape]": {
- "title": "TRAShapeList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Operator]": {
+ "title": "TRAOperatorList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Shapes"
+ "Operators",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4851,6 +5108,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4861,18 +5119,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "Shapes": {
+ "Operators": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Shape"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Operator"
}
},
"Count": {
@@ -4882,32 +5143,39 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.Shape": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Shape": {
"title": "Shape",
"description": "臺鐵線型資料",
"required": [
- "LineNo",
+ "Geometry",
"LineID",
"LineName",
- "Geometry",
+ "LineNo",
"UpdateTime"
],
"type": "object",
"properties": {
"LineNo": {
+ "title": "String",
"description": "路線編號",
"type": "string"
},
"LineID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"LineName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "路線名稱"
+ "description": "路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Geometry": {
+ "title": "String",
"description": "well-known text,為路線軌跡資料",
"type": "string"
},
@@ -4918,16 +5186,15 @@
}
}
},
- "MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]": {
- "title": "TRASpecificTrainTimetableList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Shape]": {
+ "title": "TRAShapeList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "EffectiveDate",
- "TrainTimetables"
+ "Shapes",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -4938,6 +5205,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -4947,41 +5215,22 @@
"type": "string"
},
"SrcUpdateInterval": {
- "format": "int32",
- "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
- "type": "integer"
- },
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "EffectiveDate": {
- "title": "DateTime",
- "description": "有效起始日期",
- "type": "string"
- },
- "ExpireDate": {
- "title": "DateTime",
- "description": "有效終止日期",
- "type": "string"
- },
- "SrcVersion": {
- "description": "來源版號",
- "type": "string"
- },
- "TimetableName": {
- "description": "定期性站別時刻表名稱",
- "type": "string"
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
},
- "ValidityDesciption": {
- "description": "時刻表適用情形說明",
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
"type": "string"
},
- "TrainTimetables": {
+ "Shapes": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Shape"
}
},
"Count": {
@@ -4991,41 +5240,13 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable": {
- "title": "SpecificTrainTimetable",
- "description": "台鐵特殊車次時刻表資料型別",
- "required": [
- "TrainInfo",
- "StopTimes",
- "SpecialDay"
- ],
- "type": "object",
- "properties": {
- "TrainInfo": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.TrainInfo",
- "title": "TrainInfo",
- "description": "定期車次資料"
- },
- "StopTimes": {
- "description": "停靠時間資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.StopTime"
- }
- },
- "SpecialDay": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Common.SpecialDay",
- "title": "SpecialDay",
- "description": "營運日型態"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.Common.SpecialDay": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay": {
"title": "SpecialDay",
"description": "台鐵特定日期",
"type": "object",
"properties": {
"Dates": {
+ "title": "String",
"description": "不連續特殊日期",
"type": "string"
},
@@ -5046,20 +5267,60 @@
"type": "integer"
},
"Description": {
+ "title": "String",
"description": "特殊營運描述",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Station]": {
- "title": "TRAStationList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable": {
+ "title": "SpecificTrainTimetable",
+ "description": "台鐵特殊車次時刻表資料型別",
+ "required": [
+ "SpecialDay",
+ "StopTimes",
+ "TrainInfo"
+ ],
+ "type": "object",
+ "properties": {
+ "TrainInfo": {
+ "title": "TrainInfo",
+ "description": "定期車次資料",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo"
+ }
+ ]
+ },
+ "StopTimes": {
+ "title": "Array",
+ "description": "停靠時間資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime"
+ }
+ },
+ "SpecialDay": {
+ "title": "SpecialDay",
+ "description": "營運日型態",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]": {
+ "title": "TRASpecificTrainTimetableList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "Stations"
+ "EffectiveDate",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "TrainTimetables",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5070,6 +5331,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5080,18 +5342,46 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "Stations": {
+ "EffectiveDate": {
+ "title": "DateTime",
+ "description": "有效起始日期",
+ "type": "string"
+ },
+ "ExpireDate": {
+ "title": "DateTime",
+ "description": "有效終止日期",
+ "type": "string"
+ },
+ "SrcVersion": {
+ "title": "String",
+ "description": "來源版號",
+ "type": "string"
+ },
+ "TimetableName": {
+ "title": "String",
+ "description": "定期性站別時刻表名稱",
+ "type": "string"
+ },
+ "ValidityDesciption": {
+ "title": "String",
+ "description": "時刻表適用情形說明",
+ "type": "string"
+ },
+ "TrainTimetables": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.Station"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable"
}
},
"Count": {
@@ -5101,83 +5391,98 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.Station": {
+ "PTX.Service.DTO.Shared.Specification.V3.Base.PointType": {
+ "title": "PointType",
+ "description": "座標資料型別",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "description": "位置緯度(WGS84)",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "description": "位置經度(WGS84)",
+ "type": "number"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.Station": {
"title": "Station",
"description": "台鐵車站資料",
"required": [
- "StationUID",
"StationID",
"StationName",
- "StationPosition"
+ "StationPosition",
+ "StationUID"
],
"type": "object",
"properties": {
"StationUID": {
+ "title": "String",
"description": "臺鐵車站唯一識別代碼",
"type": "string"
},
"StationID": {
+ "title": "String",
"description": "臺鐵車站代碼",
"type": "string"
},
"ReservationCode": {
+ "title": "String",
"description": "訂票車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StationPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "車站座標(WGS84)"
+ "description": "車站座標(WGS84)",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"StationAddress": {
+ "title": "String",
"description": "車站地址",
"type": "string"
},
"StationPhone": {
+ "title": "String",
"description": "車站聯絡電話",
"type": "string"
},
"StationClass": {
+ "title": "String",
"description": "車站級別 = ['0: 特等', '1: 一等', '2: 二等', '3: 三等', '4: 簡易', '5: 招呼', '6: 號誌', 'A: 貨運', 'B: 基地', 'X: 非車']",
"type": "string"
},
"StationURL": {
+ "title": "String",
"description": "車站資訊說明網址",
"type": "string"
}
}
},
- "Service.DTO.Version3.Base.PointType": {
- "title": "PointType",
- "description": "座標資料型別",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "description": "位置緯度(WGS84)",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "description": "位置經度(WGS84)",
- "type": "number"
- }
- }
- },
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationExit.StationExit]": {
- "title": "TRAStationExitList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Station]": {
+ "title": "TRAStationList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StationExits"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "Stations",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5188,6 +5493,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5198,18 +5504,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "StationExits": {
+ "Stations": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationExit.StationExit"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.Station"
}
},
"Count": {
@@ -5219,94 +5528,74 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationExit.StationExit": {
- "title": "StationExit",
- "description": "台鐵車站出入口資料",
- "required": [
- "StationID",
- "StationName",
- "Exits"
- ],
- "type": "object",
- "properties": {
- "StationID": {
- "description": "出入口所屬車站代碼",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "Exits": {
- "description": "車站出入口",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationExit.Exit"
- }
- },
- "ExitMapURLs": {
- "description": "車站出入口簡圖網址連結資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationExit.ExitMapURL"
- }
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationExit.Exit": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit": {
"title": "Exit",
"description": "車站出入口",
"required": [
+ "Escalator",
"ExitID",
"ExitName",
- "ExitPosition",
- "Escalator"
+ "ExitPosition"
],
"type": "object",
"properties": {
"ExitID": {
+ "title": "String",
"description": "出入口代碼",
"type": "string"
},
"ExitName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "出入口名稱"
+ "description": "出入口名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ExitPosition": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.PointType",
"title": "PointType",
- "description": "出入口座標"
+ "description": "出入口座標",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.PointType"
+ }
+ ]
},
"Bearing": {
+ "title": "String",
"description": "出入口所在道路路段方位角",
"type": "string"
},
"RoadName": {
+ "title": "String",
"description": "出入口所在道路名稱",
"type": "string"
},
"LocationDescription": {
+ "title": "String",
"description": "地址描述",
"type": "string"
},
"Stair": {
+ "title": "Boolean",
"description": "是否有樓梯",
"type": "boolean"
},
"Escalator": {
"format": "int32",
+ "title": "Int32",
"description": "是否有電扶梯 = ['0: 沒有', '1: 雙向皆有', '2: 出站有', '3: 入站有']",
"type": "integer"
},
"Elevator": {
+ "title": "Boolean",
"description": "是否有電梯",
"type": "boolean"
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationExit.ExitMapURL": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL": {
"title": "ExitMapURL",
"required": [
"MapName"
@@ -5314,29 +5603,77 @@
"type": "object",
"properties": {
"MapName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站出入口簡圖名稱"
+ "description": "車站出入口簡圖名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MapURL": {
+ "title": "String",
"description": "車站出入口簡圖網址",
"type": "string"
},
"FloorLevel": {
+ "title": "String",
"description": "樓層",
"type": "string"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility]": {
- "title": "TRAStationFacilityList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit": {
+ "title": "StationExit",
+ "description": "台鐵車站出入口資料",
+ "required": [
+ "Exits",
+ "StationID",
+ "StationName"
+ ],
+ "type": "object",
+ "properties": {
+ "StationID": {
+ "title": "String",
+ "description": "出入口所屬車站代碼",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "Exits": {
+ "title": "Array",
+ "description": "車站出入口",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit"
+ }
+ },
+ "ExitMapURLs": {
+ "title": "Array",
+ "description": "車站出入口簡圖網址連結資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit]": {
+ "title": "TRAStationExitList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StationFacilities"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationExits",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5347,6 +5684,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5357,18 +5695,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "StationFacilities": {
+ "StationExits": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit"
}
},
"Count": {
@@ -5378,116 +5719,134 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL": {
+ "title": "FacilityMapURL",
+ "description": "車站設施簡圖網址連結資訊",
+ "required": [
+ "MapName",
+ "MapURL"
+ ],
+ "type": "object",
+ "properties": {
+ "MapName": {
+ "title": "NameType",
+ "description": "車站設施簡圖名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "MapURL": {
+ "title": "String",
+ "description": "車站設施簡圖網址",
+ "type": "string"
+ },
+ "FloorLevel": {
+ "title": "String",
+ "description": "樓層",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo": {
+ "title": "FacilityInfo",
+ "required": [
+ "Description"
+ ],
+ "type": "object",
+ "properties": {
+ "Description": {
+ "title": "String",
+ "description": "位置描述",
+ "type": "string"
+ },
+ "FloorLevel": {
+ "title": "String",
+ "description": "樓層",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility": {
"title": "StationFacility",
"description": "車站設施資訊",
"required": [
- "StationID",
- "StationName",
- "FacilityMapURLs",
+ "DrinkingFountains",
"Elevators",
+ "FacilityMapURLs",
"InformationSpots",
- "DrinkingFountains",
+ "StationID",
+ "StationName",
"Toilets"
],
"type": "object",
"properties": {
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"FacilityMapURLs": {
+ "title": "Array",
"description": "車站出入口",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.FacilityMapURL"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL"
}
},
"Elevators": {
+ "title": "Array",
"description": "無障礙電梯位置資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo"
}
},
"InformationSpots": {
+ "title": "Array",
"description": "詢問處位置資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo"
}
},
"DrinkingFountains": {
+ "title": "Array",
"description": "飲水機位置資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo"
}
},
"Toilets": {
+ "title": "Array",
"description": "廁所位置資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo"
}
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationFacility.FacilityMapURL": {
- "title": "FacilityMapURL",
- "description": "車站設施簡圖網址連結資訊",
- "required": [
- "MapName",
- "MapURL"
- ],
- "type": "object",
- "properties": {
- "MapName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "車站設施簡圖名稱"
- },
- "MapURL": {
- "description": "車站設施簡圖網址",
- "type": "string"
- },
- "FloorLevel": {
- "description": "樓層",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo": {
- "title": "FacilityInfo",
- "required": [
- "Description"
- ],
- "type": "object",
- "properties": {
- "Description": {
- "description": "位置描述",
- "type": "string"
- },
- "FloorLevel": {
- "description": "樓層",
- "type": "string"
- }
- }
- },
- "MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]": {
- "title": "TRAStationLiveBoardList",
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility]": {
+ "title": "TRAStationFacilityList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StationLiveBoards"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationFacilities",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5498,6 +5857,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5508,18 +5868,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "StationLiveBoards": {
+ "StationFacilities": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility"
}
},
"Count": {
@@ -5529,29 +5892,35 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard": {
"title": "StationLiveBoard",
"required": [
+ "DelayTime",
+ "EndingStationName",
"StationID",
"StationName",
"TrainNo",
"TrainTypeName",
- "EndingStationName",
- "DelayTime",
"UpdateTime"
],
"type": "object",
"properties": {
"StationID": {
+ "title": "String",
"description": "車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
@@ -5562,47 +5931,62 @@
"type": "integer"
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"EndingStationID": {
+ "title": "String",
"description": "終點站代碼",
"type": "string"
},
"EndingStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "終點站名稱"
+ "description": "終點站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TripLine": {
"format": "int32",
"title": "integer",
- "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線']",
+ "description": "山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']",
"type": "integer"
},
"Platform": {
+ "title": "String",
"description": "停靠月台(00代表當時尚未確定停靠的月台,待確定好停靠的月台後,就會更新Platfrom。)",
"type": "string"
},
"ScheduleArrivalTime": {
+ "title": "String",
"description": "表訂到站時刻",
"type": "string"
},
"ScheduleDepartureTime": {
+ "title": "String",
"description": "表定離站時刻",
"type": "string"
},
"DelayTime": {
"format": "int32",
+ "title": "Int32",
"description": "延誤分鐘",
"type": "integer"
},
@@ -5619,15 +6003,15 @@
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine]": {
- "title": "TRAStationOfLineList",
+ "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]": {
+ "title": "TRAStationLiveBoardList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StationOfLines"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationLiveBoards",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5638,6 +6022,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5648,18 +6033,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "StationOfLines": {
+ "StationLiveBoards": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard"
}
},
"Count": {
@@ -5669,74 +6057,84 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine": {
- "title": "StationOfLine",
- "description": "路線車站基本資料",
- "required": [
- "LineNo",
- "LineID",
- "Stations"
- ],
- "type": "object",
- "properties": {
- "LineNo": {
- "description": "路線編號",
- "type": "string"
- },
- "LineID": {
- "description": "路線代碼",
- "type": "string"
- },
- "Stations": {
- "description": "路線車站資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationOfLine.LineStation"
- }
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationOfLine.LineStation": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation": {
"title": "LineStation",
"description": "路線車站資訊",
"required": [
+ "CumulativeDistance",
"Sequence",
"StationID",
- "StationName",
- "CumulativeDistance"
+ "StationName"
],
"type": "object",
"properties": {
"Sequence": {
"format": "int32",
+ "title": "Int32",
"description": "站序",
"type": "integer"
},
"StationID": {
+ "title": "String",
"description": "車站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"CumulativeDistance": {
"format": "float",
+ "title": "Single",
"description": "已累積之里程距離(公里)",
"type": "number"
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer]": {
- "title": "TRAStationTransferList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine": {
+ "title": "StationOfLine",
+ "description": "路線車站基本資料",
+ "required": [
+ "LineID",
+ "LineNo",
+ "Stations"
+ ],
+ "type": "object",
+ "properties": {
+ "LineNo": {
+ "title": "String",
+ "description": "路線編號",
+ "type": "string"
+ },
+ "LineID": {
+ "title": "String",
+ "description": "路線代碼",
+ "type": "string"
+ },
+ "Stations": {
+ "title": "Array",
+ "description": "路線車站資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine]": {
+ "title": "TRAStationOfLineList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "StationTransfers"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationOfLines",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -5747,6 +6145,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -5757,174 +6156,57 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
- "AuthorityCode": {
- "description": "業管機關簡碼",
- "type": "string"
- },
- "StationTransfers": {
- "description": "資料(陣列)",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer"
- }
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer": {
- "title": "StationTransfer",
- "description": "車站跨運具轉乘資訊",
- "required": [
- "StationID",
- "StationName",
- "InteriorMapURLs",
- "ExteriorMapURLs",
- "Transfers"
- ],
- "type": "object",
- "properties": {
- "StationID": {
- "description": "車站代碼",
- "type": "string"
- },
- "StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "車站名稱"
- },
- "TransferDescription": {
- "description": "轉乘文字描述",
- "type": "string"
- },
- "InteriorMapURLs": {
- "description": "車站內部地圖簡圖連結資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.MapURL"
- }
- },
- "ExteriorMapURLs": {
- "description": "外部轉乘地圖簡圖連結資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.MapURL"
- }
- },
- "Transfers": {
- "description": "跨運具轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.Transfer"
- }
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationTransfer.MapURL": {
- "title": "MapURL",
- "description": "轉乘地圖簡圖連結資訊",
- "required": [
- "MapName",
- "MapURL"
- ],
- "type": "object",
- "properties": {
- "MapName": {
- "description": "地圖名稱",
- "type": "string"
- },
- "MapURL": {
- "description": "地圖簡圖連結",
- "type": "string"
- },
- "FloorLevel": {
- "description": "樓層",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version3.Rail.TRA.StationTransfer.Transfer": {
- "title": "Transfer",
- "description": "跨運具轉乘資訊",
- "required": [
- "ExitID",
- "ExitName",
- "RailTransfers",
- "BusTransfers",
- "AirportTransfers",
- "BikeTransfers",
- "ParkingTransfers",
- "TaxiTransfers",
- "FerryTransfers"
- ],
- "type": "object",
- "properties": {
- "ExitID": {
- "description": "出口代碼",
- "type": "string"
- },
- "ExitName": {
- "description": "出口名稱",
- "type": "string"
- },
- "RailTransfers": {
- "description": "軌道轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.RailTransfer"
- }
- },
- "BusTransfers": {
- "description": "公車運具轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.BusTransfer"
- }
- },
- "AirportTransfers": {
- "description": "航空運具轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.AirportTransfer"
- }
- },
- "BikeTransfers": {
- "description": "公共自行車轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.BikeTransfer"
- }
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
},
- "ParkingTransfers": {
- "description": "停車場轉乘資訊",
+ "StationOfLines": {
+ "title": "Array",
+ "description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.ParkingTransfer"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine"
}
},
- "TaxiTransfers": {
- "description": "計程車轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.TaxiTransfer"
- }
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL": {
+ "title": "MapURL",
+ "description": "轉乘地圖簡圖連結資訊",
+ "required": [
+ "MapName",
+ "MapURL"
+ ],
+ "type": "object",
+ "properties": {
+ "MapName": {
+ "title": "String",
+ "description": "地圖名稱",
+ "type": "string"
},
- "FerryTransfers": {
- "description": "航運轉乘資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.StationTransfer.FerryTransfer"
- }
+ "MapURL": {
+ "title": "String",
+ "description": "地圖簡圖連結",
+ "type": "string"
+ },
+ "FloorLevel": {
+ "title": "String",
+ "description": "樓層",
+ "type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.RailTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer": {
"title": "RailTransfer",
"description": "軌道轉乘資訊",
"required": [
@@ -5937,26 +6219,37 @@
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "軌道營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "軌道營運業者名稱"
+ "description": "軌道營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StationID": {
+ "title": "String",
"description": "軌道場站代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "軌道場站名稱"
+ "description": "軌道場站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -5964,10 +6257,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -5977,53 +6272,70 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.BusTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer": {
"title": "BusTransfer",
"description": "公車運具轉乘資訊",
"required": [
+ "Destination",
"Mode",
"OperatorCode",
"OperatorName",
"RouteID",
"RouteName",
"StopID",
- "StopName",
- "Destination"
+ "StopName"
],
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "公車營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "公車營運業者名稱"
+ "description": "公車營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"RouteID": {
+ "title": "String",
"description": "轉乘公車路線代碼",
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "轉乘公車路線名稱"
+ "description": "轉乘公車路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StopID": {
+ "title": "String",
"description": "轉乘公車站牌代碼",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "轉乘公車站牌名稱"
+ "description": "轉乘公車站牌名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Destination": {
+ "title": "String",
"description": "轉乘公車開往方向",
"type": "string"
},
@@ -6033,10 +6345,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6045,44 +6359,56 @@
"type": "boolean"
},
"Platform": {
+ "title": "String",
"description": "轉乘公車所在月台",
"type": "string"
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.AirportTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer": {
"title": "AirportTransfer",
"description": "航空運具轉乘資訊",
"required": [
+ "AirportID",
+ "AirportName",
"Mode",
"OperatorCode",
- "OperatorName",
- "AirportID",
- "AirportName"
+ "OperatorName"
],
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "機場營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "機場營運業者名稱"
+ "description": "機場營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"AirportID": {
+ "title": "String",
"description": "機場代碼",
"type": "string"
},
"AirportName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "機場名稱"
+ "description": "機場名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -6090,10 +6416,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6103,7 +6431,7 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.BikeTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer": {
"title": "BikeTransfer",
"description": "公共自行車轉乘資訊",
"required": [
@@ -6116,26 +6444,37 @@
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "公共自行車營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "公共自行車營運業者名稱"
+ "description": "公共自行車營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StationID": {
+ "title": "String",
"description": "公共自行車租借站位代碼",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "公共自行車租借站位名稱"
+ "description": "公共自行車租借站位名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -6143,10 +6482,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6156,28 +6497,34 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.ParkingTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer": {
"title": "ParkingTransfer",
"description": "停車場轉乘資訊",
"required": [
- "Mode",
"CarParkID",
- "CarParkName"
+ "CarParkName",
+ "Mode"
],
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"CarParkID": {
+ "title": "String",
"description": "停車場代碼",
"type": "string"
},
"CarParkName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "停車場名稱"
+ "description": "停車場名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -6185,10 +6532,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6198,7 +6547,7 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.TaxiTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer": {
"title": "TaxiTransfer",
"description": "計程車轉乘資訊",
"required": [
@@ -6208,17 +6557,23 @@
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"TaxiStopID": {
+ "title": "String",
"description": "計程車招呼站代碼",
"type": "string"
},
"TaxiStopName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "計程車招呼站名稱"
+ "description": "計程車招呼站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -6226,10 +6581,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6239,38 +6596,49 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.StationTransfer.FerryTransfer": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer": {
"title": "FerryTransfer",
"description": "航運轉乘資訊",
"required": [
+ "FerryStationName",
"Mode",
"OperatorCode",
- "OperatorName",
- "FerryStationName"
+ "OperatorName"
],
"type": "object",
"properties": {
"Mode": {
+ "title": "String",
"description": "運具種類代碼",
"type": "string"
},
"OperatorCode": {
+ "title": "String",
"description": "航運營運業者簡碼",
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "航運營運業者名稱"
+ "description": "航運營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"FerryStationID": {
+ "title": "String",
"description": "計程車招呼站代碼",
"type": "string"
},
"FerryStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "計程車招呼站名稱"
+ "description": "計程車招呼站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"MinTransferTime": {
"format": "double",
@@ -6278,10 +6646,12 @@
"type": "number"
},
"FloorLevel": {
+ "title": "String",
"description": "轉乘樓層",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "轉乘描述",
"type": "string"
},
@@ -6291,15 +6661,156 @@
}
}
},
- "MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]": {
- "title": "TRATrainLiveBoardList",
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer": {
+ "title": "Transfer",
+ "description": "跨運具轉乘資訊",
+ "required": [
+ "AirportTransfers",
+ "BikeTransfers",
+ "BusTransfers",
+ "ExitID",
+ "ExitName",
+ "FerryTransfers",
+ "ParkingTransfers",
+ "RailTransfers",
+ "TaxiTransfers"
+ ],
+ "type": "object",
+ "properties": {
+ "ExitID": {
+ "title": "String",
+ "description": "出口代碼",
+ "type": "string"
+ },
+ "ExitName": {
+ "title": "String",
+ "description": "出口名稱",
+ "type": "string"
+ },
+ "RailTransfers": {
+ "title": "Array",
+ "description": "軌道轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer"
+ }
+ },
+ "BusTransfers": {
+ "title": "Array",
+ "description": "公車運具轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer"
+ }
+ },
+ "AirportTransfers": {
+ "title": "Array",
+ "description": "航空運具轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer"
+ }
+ },
+ "BikeTransfers": {
+ "title": "Array",
+ "description": "公共自行車轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer"
+ }
+ },
+ "ParkingTransfers": {
+ "title": "Array",
+ "description": "停車場轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer"
+ }
+ },
+ "TaxiTransfers": {
+ "title": "Array",
+ "description": "計程車轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer"
+ }
+ },
+ "FerryTransfers": {
+ "title": "Array",
+ "description": "航運轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer"
+ }
+ }
+ }
+ },
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer": {
+ "title": "StationTransfer",
+ "description": "車站跨運具轉乘資訊",
+ "required": [
+ "ExteriorMapURLs",
+ "InteriorMapURLs",
+ "StationID",
+ "StationName",
+ "Transfers"
+ ],
+ "type": "object",
+ "properties": {
+ "StationID": {
+ "title": "String",
+ "description": "車站代碼",
+ "type": "string"
+ },
+ "StationName": {
+ "title": "NameType",
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "TransferDescription": {
+ "title": "String",
+ "description": "轉乘文字描述",
+ "type": "string"
+ },
+ "InteriorMapURLs": {
+ "title": "Array",
+ "description": "車站內部地圖簡圖連結資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL"
+ }
+ },
+ "ExteriorMapURLs": {
+ "title": "Array",
+ "description": "外部轉乘地圖簡圖連結資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL"
+ }
+ },
+ "Transfers": {
+ "title": "Array",
+ "description": "跨運具轉乘資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer"
+ }
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer]": {
+ "title": "TRAStationTransferList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "TrainLiveBoards"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "StationTransfers",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -6310,6 +6821,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -6320,18 +6832,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "TrainLiveBoards": {
+ "StationTransfers": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer"
}
},
"Count": {
@@ -6341,41 +6856,53 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard": {
"title": "TrainLiveBoard",
"required": [
- "TrainTypeName",
- "StationName",
"DelayTime",
+ "StationName",
+ "TrainTypeName",
"UpdateTime"
],
"type": "object",
"properties": {
"TrainNo": {
+ "title": "String",
"description": "車次代碼",
"type": "string"
},
"TrainTypeID": {
+ "title": "String",
"description": "車種代嗎",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車種名稱"
+ "description": "車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"StationID": {
+ "title": "String",
"description": "車站代號",
"type": "string"
},
"StationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "車站名稱"
+ "description": "車站名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"TrainStationStatus": {
"format": "int32",
@@ -6385,6 +6912,7 @@
},
"DelayTime": {
"format": "int32",
+ "title": "Int32",
"description": "延誤分鐘",
"type": "integer"
},
@@ -6395,15 +6923,15 @@
}
}
},
- "MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.TrainType]": {
- "title": "TRATrainTypeList",
+ "PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]": {
+ "title": "TRATrainLiveBoardList",
"required": [
- "UpdateTime",
- "UpdateInterval",
- "SrcUpdateTime",
- "SrcUpdateInterval",
"AuthorityCode",
- "TrainTypes"
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "TrainLiveBoards",
+ "UpdateInterval",
+ "UpdateTime"
],
"type": "object",
"properties": {
@@ -6414,6 +6942,7 @@
},
"UpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "本平台資料更新週期(秒)",
"type": "integer"
},
@@ -6424,18 +6953,21 @@
},
"SrcUpdateInterval": {
"format": "int32",
+ "title": "Int32",
"description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
+ "title": "String",
"description": "業管機關簡碼",
"type": "string"
},
- "TrainTypes": {
+ "TrainLiveBoards": {
+ "title": "Array",
"description": "資料(陣列)",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.TrainType"
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard"
}
},
"Count": {
@@ -6445,44 +6977,96 @@
}
}
},
- "Service.DTO.Version3.Rail.TRA.TrainType": {
+ "PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType": {
"title": "TrainType",
"description": "臺鐵列車車種資料",
"required": [
- "TrainTypeID",
"TrainTypeCode",
+ "TrainTypeID",
"TrainTypeName"
],
"type": "object",
"properties": {
"TrainTypeID": {
+ "title": "String",
"description": "列車車種代碼",
"type": "string"
},
"TrainTypeCode": {
+ "title": "String",
"description": "車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']",
"type": "string"
},
"TrainTypeName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
"title": "NameType",
- "description": "列車車種名稱"
+ "description": "列車車種名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType]": {
+ "title": "TRATrainTypeList",
+ "required": [
+ "AuthorityCode",
+ "SrcUpdateInterval",
+ "SrcUpdateTime",
+ "TrainTypes",
+ "UpdateInterval",
+ "UpdateTime"
+ ],
+ "type": "object",
+ "properties": {
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "本平台資料更新週期(秒)",
+ "type": "integer"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "SrcUpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
+ "type": "integer"
+ },
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
+ },
+ "TrainTypes": {
+ "title": "Array",
+ "description": "資料(陣列)",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType"
+ }
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
}
}
}
},
"tags": [
{
- "name": "RailBasic"
- },
- {
- "name": "TRA"
- },
- {
- "name": "THSR"
- },
- {
- "name": "Metro"
+ "name": "TRA",
+ "description": "臺鐵"
}
]
}
diff --git a/oas.tourism.v2.json b/oas.tourism.v2.json
index 5ed1b53c..668a7e77 100644
--- a/oas.tourism.v2.json
+++ b/oas.tourism.v2.json
@@ -1,12 +1,12 @@
{
"swagger": "2.0",
"info": {
- "version": "v2",
"title": "MOTC Transport API V2",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\r\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\r\n
資料使用葵花寶典:[請點我](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/)\r\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\r\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Tourism/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/)\n
資料服務開發實作參考手冊:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/%E5%85%AC%E5%85%B1%E9%81%8B%E8%BC%B8%E6%95%B4%E5%90%88%E8%B3%87%E8%A8%8A%E5%B9%B3%E5%8F%B0%E8%B3%87%E6%96%99%E6%9C%8D%E5%8B%99%E9%96%8B%E7%99%BC%E5%AF%A6%E4%BD%9C.pdf?raw=true)\n
API URI Convention文件說明:[請點我](https://docs.google.com/viewer?url=https://github.com/ptxmotc/PTX_Web/blob/master/Swagger%E6%9C%8D%E5%8B%99%E8%AA%AA%E6%98%8E%E4%B8%8A%E5%82%B3%E5%8F%83%E8%80%83%E6%AA%94%E6%A1%88/API_URI_Convention%E6%96%87%E4%BB%B6_v1.pdf?raw=true)
資料文本OAS描述:[請點我](https://ptx.transportdata.tw/MOTC/v2/Tourism/api-docs/oas)",
+ "version": "v2"
},
"host": "ptx.transportdata.tw",
- "basePath": "/MOTC/",
+ "basePath": "/MOTC",
"schemes": [
"https"
],
@@ -19,52 +19,51 @@
"summary": "取得所有觀光景點資料",
"description": "取得所有觀光景點資料",
"operationId": "TourismApi_ScenicSpot",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -76,11 +75,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.ScenicSpotTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.ScenicSpotTourismInfo"
}
}
}
@@ -92,19 +92,17 @@
"tags": [
"Tourism"
],
- "summary": "取得指定[縣市]觀光景點資料",
- "description": "取得指定[縣市]觀光景點資料",
+ "summary": "取得所有觀光景點資料",
+ "description": "取得所有觀光景點資料",
"operationId": "TourismApi_ScenicSpot_0",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
- "description": "縣市名稱",
+ "name": "City",
"required": true,
"type": "string",
"enum": [
@@ -157,45 +155,45 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -207,11 +205,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.ScenicSpotTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.ScenicSpotTourismInfo"
}
}
}
@@ -226,52 +225,51 @@
"summary": "取得所有觀光餐飲資料",
"description": "取得所有觀光餐飲資料",
"operationId": "TourismApi_Restaurant",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -283,11 +281,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.RestaurantTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.RestaurantTourismInfo"
}
}
}
@@ -302,15 +301,14 @@
"summary": "取得指定[縣市]觀光餐飲資料",
"description": "取得指定[縣市]觀光餐飲資料",
"operationId": "TourismApi_Restaurant_0",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市名稱",
"required": true,
"type": "string",
@@ -364,45 +362,45 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -414,11 +412,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.RestaurantTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.RestaurantTourismInfo"
}
}
}
@@ -433,52 +432,51 @@
"summary": "取得所有觀光旅宿資料",
"description": "取得所有觀光旅宿資料",
"operationId": "TourismApi_Hotel",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -490,11 +488,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.HotelTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.HotelTourismInfo"
}
}
}
@@ -509,15 +508,14 @@
"summary": "取得指定[縣市]觀光旅宿資料",
"description": "取得指定[縣市]觀光旅宿資料",
"operationId": "TourismApi_Hotel_0",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市名稱",
"required": true,
"type": "string",
@@ -546,70 +544,70 @@
"LienchiangCounty"
],
"x-enum": {
- "Taoyuan": "桃園市",
- "Taichung": "臺中市",
- "YilanCounty": "宜蘭縣",
- "HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
+ "KinmenCounty": "金門縣",
+ "Hsinchu": "新竹市",
"PingtungCounty": "屏東縣",
"HsinchuCounty": "新竹縣",
"LienchiangCounty": "連江縣",
- "MiaoliCounty": "苗栗縣",
"Tainan": "臺南市",
- "ChanghuaCounty": "彰化縣",
- "TaitungCounty": "臺東縣",
+ "YilanCounty": "宜蘭縣",
+ "HualienCounty": "花蓮縣",
+ "NantouCounty": "南投縣",
"Chiayi": "嘉義市",
- "Hsinchu": "新竹市",
+ "Keelung": "基隆市",
+ "Taipei": "臺北市",
+ "Kaohsiung": "高雄市",
+ "NewTaipei": "新北市",
+ "MiaoliCounty": "苗栗縣",
"PenghuCounty": "澎湖縣",
"ChiayiCounty": "嘉義縣",
- "NewTaipei": "新北市",
+ "Taichung": "臺中市",
"YunlinCounty": "雲林縣",
- "Taipei": "臺北市",
- "KinmenCounty": "金門縣",
- "Keelung": "基隆市",
- "Kaohsiung": "高雄市"
+ "ChanghuaCounty": "彰化縣",
+ "TaitungCounty": "臺東縣",
+ "Taoyuan": "桃園市"
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -621,11 +619,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.HotelTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.HotelTourismInfo"
}
}
}
@@ -640,52 +639,51 @@
"summary": "取得所有觀光活動資料",
"description": "取得所有觀光活動資料",
"operationId": "TourismApi_Activity",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -697,11 +695,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.ActivityTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.ActivityTourismInfo"
}
}
}
@@ -716,15 +715,14 @@
"summary": "取得指定[縣市]觀光活動資料",
"description": "取得指定[縣市]觀光活動資料",
"operationId": "TourismApi_Activity_0",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "City",
"in": "path",
+ "name": "City",
"description": "縣市名稱",
"required": true,
"type": "string",
@@ -778,45 +776,45 @@
}
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -828,11 +826,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.ActivityTourismInfo"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.ActivityTourismInfo"
}
}
}
@@ -847,52 +846,51 @@
"summary": "取得台灣好行公車的動態定時資料(A1)",
"description": "取得台灣好行公車的動態定時資料(A1)",
"operationId": "TaiwanTripBusApi_RealTimeByFrequency",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -904,11 +902,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusA1Data"
}
}
}
@@ -923,59 +922,58 @@
"summary": "取得指定[路線名稱]的台灣好行公車的動態定時資料(A1)",
"description": "取得指定[路線名稱]的台灣好行公車的動態定時資料(A1)",
"operationId": "TaiwanTripBusApi_RealTimeByFrequency_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$spatialFilter",
"in": "query",
+ "name": "$spatialFilter",
"description": "空間過濾",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -987,11 +985,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusA1Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusA1Data"
}
}
}
@@ -1006,46 +1005,45 @@
"summary": "取得台灣好行公車的動態定點資料(A2)",
"description": "取得台灣好行公車的動態定點資料(A2)",
"operationId": "TaiwanTripBusApi_RealTimeNearStop",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1057,11 +1055,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusA2Data"
}
}
}
@@ -1076,53 +1075,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車的動態定點資料(A2)",
"description": "取得指定[路線名稱]的台灣好行公車的動態定點資料(A2)",
"operationId": "TaiwanTripBusApi_RealTimeNearStop_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1134,11 +1132,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusA2Data"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusA2Data"
}
}
}
@@ -1153,46 +1152,45 @@
"summary": "取得台灣好行公車的預估到站資料(N1)",
"description": "取得台灣好行公車的預估到站資料(N1)",
"operationId": "TaiwanTripBusApi_EstimatedTimeOfArrival",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1204,11 +1202,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusN1EstimateTime"
}
}
}
@@ -1223,53 +1222,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車的預估到站資料(N1)",
"description": "取得指定[路線名稱]的台灣好行公車的預估到站資料(N1)",
"operationId": "TaiwanTripBusApi_EstimatedTimeOfArrival_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1281,11 +1279,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusN1EstimateTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusN1EstimateTime"
}
}
}
@@ -1300,46 +1299,45 @@
"summary": "取得台灣好行公車路線資料",
"description": "取得台灣好行公車路線資料",
"operationId": "TaiwanTripBusApi_Route",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1351,11 +1349,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusRoute"
}
}
}
@@ -1370,53 +1369,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車路線資料",
"description": "取得指定[路線名稱]的台灣好行公車路線資料",
"operationId": "TaiwanTripBusApi_Route_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1428,11 +1426,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusRoute"
}
}
}
@@ -1447,46 +1446,45 @@
"summary": "取得台灣好行公車路線與站牌資料",
"description": "取得台灣好行公車路線與站牌資料",
"operationId": "TaiwanTripBusApi_StopOfRoute",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1498,11 +1496,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusStopOfRoute"
}
}
}
@@ -1517,53 +1516,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車路線與站牌資料",
"description": "取得指定[路線名稱]的台灣好行公車路線與站牌資料",
"operationId": "TaiwanTripBusApi_StopOfRoute_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1575,11 +1573,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusStopOfRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusStopOfRoute"
}
}
}
@@ -1594,46 +1593,45 @@
"summary": "取得台灣好行公車路線班表資料",
"description": "取得台灣好行公車路線班表資料",
"operationId": "TaiwanTripBusApi_Schedule",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1645,11 +1643,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusSchedule"
}
}
}
@@ -1664,53 +1663,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車路線班表資料",
"description": "取得指定[路線名稱]的台灣好行公車路線班表資料",
"operationId": "TaiwanTripBusApi_Schedule_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1722,11 +1720,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusSchedule"
}
}
}
@@ -1741,46 +1740,45 @@
"summary": "取得台灣好行公車線型資料",
"description": "取得台灣好行公車線型資料",
"operationId": "TaiwanTripBusApi_Shape",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1792,11 +1790,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripShape"
}
}
}
@@ -1811,53 +1810,52 @@
"summary": "取得指定[路線名稱]的台灣好行公車線型資料",
"description": "取得指定[路線名稱]的台灣好行公車線型資料",
"operationId": "TaiwanTripBusApi_Shape_1",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "TaiwanTripName",
"in": "path",
+ "name": "TaiwanTripName",
"description": "台灣好行繁體中文路線名稱,如'黃金福隆線'",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1869,11 +1867,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripShape"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripShape"
}
}
}
@@ -1888,46 +1887,45 @@
"summary": "取得台灣好行公車路線站間旅行時間基本資料",
"description": "取得台灣好行公車路線站間旅行時間基本資料",
"operationId": "TaiwanTripBusApi_S2TravelTime",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -1939,11 +1937,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime"
}
}
}
@@ -1958,46 +1957,45 @@
"summary": "取得台灣好行公車之最新消息",
"description": "取得台灣好行公車之最新消息",
"operationId": "TaiwanTripBusApi_News",
- "consumes": [],
"produces": [
"application/json",
- "text/json"
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
"type": "string"
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -2009,11 +2007,12 @@
],
"responses": {
"200": {
- "description": "OK",
+ "description": "Success",
"schema": {
+ "title": "Array",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripNews"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripNews"
}
}
}
@@ -2022,53 +2021,106 @@
}
},
"definitions": {
- "Service.DTO.Version2.TaiwanTripBus.BusA1Data": {
+ "PTX.Service.DTO.Shared.Specification.V2.Base.NameType": {
+ "title": "NameType",
+ "description": "名稱資料型別",
+ "type": "object",
+ "properties": {
+ "Zh_tw": {
+ "title": "String",
+ "description": "中文繁體名稱",
+ "type": "string"
+ },
+ "En": {
+ "title": "String",
+ "description": "英文名稱",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Shared.Specification.V2.Base.PointType": {
+ "title": "PointType",
+ "description": "座標資料型別",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "description": "位置緯度(WGS84)",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "description": "位置經度(WGS84)",
+ "type": "number"
+ },
+ "GeoHash": {
+ "title": "String",
+ "description": "地理空間編碼",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Tourism.Specification.V2.BusA1Data": {
"title": "BusA1Data",
"description": "定時車機資料型別",
"required": [
- "PlateNumb",
- "Speed",
"Azimuth",
- "DutyStatus",
"BusStatus",
+ "DutyStatus",
"GPSTime",
+ "PlateNumb",
+ "Speed",
"UpdateTime"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "台灣好行路線名稱"
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -2077,9 +2129,13 @@
"type": "integer"
},
"BusPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "車輛位置經度"
+ "description": "車輛位置經度",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Speed": {
"format": "double",
@@ -2136,82 +2192,64 @@
}
}
},
- "Service.DTO.Version2.Base.NameType": {
- "title": "NameType",
- "description": "名稱資料型別",
- "type": "object",
- "properties": {
- "Zh_tw": {
- "description": "中文繁體名稱",
- "type": "string"
- },
- "En": {
- "description": "英文名稱",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Base.PointType": {
- "title": "PointType",
- "description": "座標資料型別",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "description": "位置緯度(WGS84)",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "description": "位置經度(WGS84)",
- "type": "number"
- }
- }
- },
- "Service.DTO.Version2.TaiwanTripBus.BusA2Data": {
+ "PTX.Service.DTO.Tourism.Specification.V2.BusA2Data": {
"title": "BusA2Data",
"description": "定點車機資料型別",
"required": [
- "PlateNumb",
"Direction",
"GPSTime",
+ "PlateNumb",
"UpdateTime"
],
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"OperatorID": {
+ "title": "String",
"description": "營運業者代碼",
"type": "string"
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "台灣好行路線名稱"
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -2220,17 +2258,23 @@
"type": "integer"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {平台代碼} + {StopID},其中 {平台代碼} 可於Provider API中的ProviderCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代號(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名"
+ "description": "站牌名",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"MessageType": {
"format": "int32",
@@ -2283,7 +2327,44 @@
}
}
},
- "Service.DTO.Version2.Application.ActivityTourismInfo": {
+ "PTX.Service.DTO.Tourism.Specification.V2.TourismPicture": {
+ "title": "TourismPicture",
+ "description": "觀光照片資料型別",
+ "type": "object",
+ "properties": {
+ "PictureUrl1": {
+ "title": "String",
+ "description": "照片連結網址1",
+ "type": "string"
+ },
+ "PictureDescription1": {
+ "title": "String",
+ "description": "照片說明1",
+ "type": "string"
+ },
+ "PictureUrl2": {
+ "title": "String",
+ "description": "照片連結網址2",
+ "type": "string"
+ },
+ "PictureDescription2": {
+ "title": "String",
+ "description": "照片說明2",
+ "type": "string"
+ },
+ "PictureUrl3": {
+ "title": "String",
+ "description": "照片連結網址3",
+ "type": "string"
+ },
+ "PictureDescription3": {
+ "title": "String",
+ "description": "照片說明3",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Tourism.Specification.V2.ActivityTourismInfo": {
"title": "ActivityTourismInfo",
"description": "取得觀光活動資料",
"required": [
@@ -2294,34 +2375,42 @@
"type": "object",
"properties": {
"ID": {
+ "title": "String",
"description": "活動訊息代碼",
"type": "string"
},
"Name": {
+ "title": "String",
"description": "活動名稱",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "活動簡述",
"type": "string"
},
"Particpation": {
+ "title": "String",
"description": "活動參與對象",
"type": "string"
},
"Location": {
+ "title": "String",
"description": "主要活動地點名稱",
"type": "string"
},
"Address": {
+ "title": "String",
"description": "主要活動地點地址",
"type": "string"
},
"Phone": {
+ "title": "String",
"description": "活動聯絡電話",
"type": "string"
},
"Organizer": {
+ "title": "String",
"description": "活動主辦單位",
"type": "string"
},
@@ -2336,56 +2425,75 @@
"type": "string"
},
"Cycle": {
+ "title": "String",
"description": "週期性活動執行時間",
"type": "string"
},
"NonCycle": {
+ "title": "String",
"description": "非週期性活動執行時間",
"type": "string"
},
"WebsiteUrl": {
+ "title": "String",
"description": "活動網址",
"type": "string"
},
"Picture": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.TourismPicture",
"title": "TourismPicture",
- "description": "活動照片"
+ "description": "活動照片",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.TourismPicture"
+ }
+ ]
},
"Position": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "活動位置"
+ "description": "活動位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Class1": {
+ "title": "String",
"description": "活動分類1",
"type": "string"
},
"Class2": {
+ "title": "String",
"description": "活動分類2",
"type": "string"
},
"MapUrl": {
+ "title": "String",
"description": "活動地圖/簡圖連結網址",
"type": "string"
},
"TravelInfo": {
+ "title": "String",
"description": "交通資訊",
"type": "string"
},
"ParkingInfo": {
+ "title": "String",
"description": "停車資訊",
"type": "string"
},
"Charge": {
+ "title": "String",
"description": "費用標示",
"type": "string"
},
"Remarks": {
+ "title": "String",
"description": "備註(其他活動相關事項)",
"type": "string"
},
"City": {
+ "title": "String",
"description": "所屬縣市",
"type": "string"
},
@@ -2401,38 +2509,7 @@
}
}
},
- "Service.DTO.Version2.Application.TourismPicture": {
- "title": "TourismPicture",
- "description": "觀光照片資料型別",
- "type": "object",
- "properties": {
- "PictureUrl1": {
- "description": "照片連結網址1",
- "type": "string"
- },
- "PictureDescription1": {
- "description": "照片說明1",
- "type": "string"
- },
- "PictureUrl2": {
- "description": "照片連結網址2",
- "type": "string"
- },
- "PictureDescription2": {
- "description": "照片說明2",
- "type": "string"
- },
- "PictureUrl3": {
- "description": "照片連結網址3",
- "type": "string"
- },
- "PictureDescription3": {
- "description": "照片說明3",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Application.HotelTourismInfo": {
+ "PTX.Service.DTO.Tourism.Specification.V2.HotelTourismInfo": {
"title": "HotelTourismInfo",
"description": "取得觀光旅宿資料",
"required": [
@@ -2443,72 +2520,95 @@
"type": "object",
"properties": {
"ID": {
+ "title": "String",
"description": "旅館民宿代碼",
"type": "string"
},
"Name": {
+ "title": "String",
"description": "旅館民宿名稱",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "旅館民宿簡述",
"type": "string"
},
"Grade": {
+ "title": "String",
"description": "觀光旅館星級",
"type": "string"
},
"Address": {
+ "title": "String",
"description": "旅館民宿地址",
"type": "string"
},
"ZipCode": {
+ "title": "String",
"description": "郵遞區號",
"type": "string"
},
"Phone": {
+ "title": "String",
"description": "旅館民宿電話",
"type": "string"
},
"Fax": {
+ "title": "String",
"description": "旅館民宿傳真",
"type": "string"
},
"WebsiteUrl": {
+ "title": "String",
"description": "旅館民宿網站網址",
"type": "string"
},
"Picture": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.TourismPicture",
"title": "TourismPicture",
- "description": "旅館民宿照片"
+ "description": "旅館民宿照片",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.TourismPicture"
+ }
+ ]
},
"Position": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "旅館民宿位置"
+ "description": "旅館民宿位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Class": {
+ "title": "String",
"description": "旅館民宿分類",
"type": "string"
},
"MapUrl": {
+ "title": "String",
"description": "旅館民宿地點簡圖連結網址",
"type": "string"
},
"Spec": {
+ "title": "String",
"description": "房型、價目及數量說明",
"type": "string"
},
"ServiceInfo": {
+ "title": "String",
"description": "服務內容介紹",
"type": "string"
},
"ParkingInfo": {
+ "title": "String",
"description": "停車資訊",
"type": "string"
},
"City": {
+ "title": "String",
"description": "所屬縣市",
"type": "string"
},
@@ -2524,7 +2624,7 @@
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusN1EstimateTime": {
+ "PTX.Service.DTO.Tourism.Specification.V2.BusN1EstimateTime": {
"title": "BusN1EstimateTime",
"required": [
"Direction",
@@ -2533,47 +2633,66 @@
"type": "object",
"properties": {
"PlateNumb": {
+ "title": "String",
"description": "車牌號碼",
"type": "string"
},
"StopUID": {
+ "title": "String",
"description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"StopID": {
+ "title": "String",
"description": "地區既用中之站牌代碼(為原資料內碼)",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名"
+ "description": "站牌名",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "台灣好行路線名稱"
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -2592,10 +2711,12 @@
"type": "integer"
},
"CurrentStop": {
+ "title": "String",
"description": "車輛目前所在站牌代碼",
"type": "string"
},
"DestinationStop": {
+ "title": "String",
"description": "車輛目的站牌代碼",
"type": "string"
},
@@ -2642,35 +2763,40 @@
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripNews": {
+ "PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripNews": {
"title": "BusTaiwanTripNews",
"description": "台灣好行最新消息資料",
"required": [
- "NewsID",
+ "Description",
"Language",
+ "NewsID",
"Title",
- "Description",
"UpdateTime"
],
"type": "object",
"properties": {
"NewsID": {
+ "title": "String",
"description": "最新消息原單位發布代碼",
"type": "string"
},
"Language": {
+ "title": "String",
"description": "語系",
"type": "string"
},
"NewsCategory": {
+ "title": "String",
"description": "消息類別",
"type": "string"
},
"Title": {
+ "title": "String",
"description": "消息標題",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "內容描述",
"type": "string"
},
@@ -2696,7 +2822,7 @@
}
}
},
- "Service.DTO.Version2.Application.RestaurantTourismInfo": {
+ "PTX.Service.DTO.Tourism.Specification.V2.RestaurantTourismInfo": {
"title": "RestaurantTourismInfo",
"description": "取得觀光餐飲資料",
"required": [
@@ -2707,60 +2833,80 @@
"type": "object",
"properties": {
"ID": {
+ "title": "String",
"description": "餐飲店家代碼",
"type": "string"
},
"Name": {
+ "title": "String",
"description": "餐飲店家名稱",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "店家簡述",
"type": "string"
},
"Address": {
+ "title": "String",
"description": "店家地址",
"type": "string"
},
"ZipCode": {
+ "title": "String",
"description": "郵遞區號",
"type": "string"
},
"Phone": {
+ "title": "String",
"description": "預約電話",
"type": "string"
},
"OpenTime": {
+ "title": "String",
"description": "營業時間",
"type": "string"
},
"WebsiteUrl": {
+ "title": "String",
"description": "店家網站網址",
"type": "string"
},
"Picture": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.TourismPicture",
"title": "TourismPicture",
- "description": "店家照片"
+ "description": "店家照片",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.TourismPicture"
+ }
+ ]
},
"Position": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "店家位置"
+ "description": "店家位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Class": {
+ "title": "String",
"description": "店家分類",
"type": "string"
},
"MapUrl": {
+ "title": "String",
"description": "店家地圖/簡圖介紹網址",
"type": "string"
},
"ParkingInfo": {
+ "title": "String",
"description": "停車資訊",
"type": "string"
},
"City": {
+ "title": "String",
"description": "所屬縣市",
"type": "string"
},
@@ -2776,62 +2922,172 @@
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusRoute": {
- "title": "BusRoute",
- "description": "路線資料型別",
+ "PTX.Service.DTO.Bus.Specification.V2.RouteOperator": {
+ "title": "RouteOperator",
"required": [
- "RouteUID",
- "RouteID",
+ "OperatorCode",
+ "OperatorID",
+ "OperatorName",
+ "OperatorNo"
+ ],
+ "type": "object",
+ "properties": {
+ "OperatorID": {
+ "title": "String",
+ "type": "string"
+ },
+ "OperatorName": {
+ "title": "NameType",
+ "description": "名稱資料型別",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "OperatorCode": {
+ "title": "String",
+ "type": "string"
+ },
+ "OperatorNo": {
+ "title": "String",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.BusSubRoute": {
+ "title": "BusSubRoute",
+ "required": [
+ "Direction",
+ "OperatorIDs",
+ "SubRouteID",
+ "SubRouteName",
+ "SubRouteUID"
+ ],
+ "type": "object",
+ "properties": {
+ "SubRouteUID": {
+ "title": "String",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "type": "string"
+ },
+ "OperatorIDs": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "title": "String",
+ "type": "string"
+ }
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "名稱資料型別",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Headsign": {
+ "title": "String",
+ "type": "string"
+ },
+ "HeadsignEn": {
+ "title": "String",
+ "type": "string"
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "FirstBusTime": {
+ "title": "String",
+ "type": "string"
+ },
+ "LastBusTime": {
+ "title": "String",
+ "type": "string"
+ },
+ "HolidayFirstBusTime": {
+ "title": "String",
+ "type": "string"
+ },
+ "HolidayLastBusTime": {
+ "title": "String",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Tourism.Specification.V2.BusRoute": {
+ "title": "BusRoute",
+ "description": "路線資料型別",
+ "required": [
+ "AuthorityID",
+ "BusRouteType",
"HasSubRoutes",
"OperatorIDs",
"Operators",
- "AuthorityID",
"ProviderID",
- "BusRouteType",
+ "RouteID",
+ "RouteUID",
"TaiwanTripName",
"UpdateTime"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"HasSubRoutes": {
+ "title": "Boolean",
"description": "實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)",
"type": "boolean"
},
"OperatorIDs": {
+ "title": "Array",
"description": "營運業者代碼",
"type": "array",
"items": {
+ "title": "String",
"type": "string"
}
},
"Operators": {
+ "title": "Array",
"description": "營運業者",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.RouteOperator"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.RouteOperator"
}
},
"AuthorityID": {
+ "title": "String",
"description": "業管單位代碼",
"type": "string"
},
"ProviderID": {
+ "title": "String",
"description": "資料提供平台代碼",
"type": "string"
},
"SubRoutes": {
+ "title": "Array",
"description": "附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆))",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusSubRoute"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusSubRoute"
}
},
"BusRouteType": {
@@ -2841,59 +3097,76 @@
"type": "integer"
},
"TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "台灣好行路線名稱"
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"DepartureStopNameZh": {
+ "title": "String",
"description": "起站中文名稱",
"type": "string"
},
"DepartureStopNameEn": {
+ "title": "String",
"description": "起站英文名稱",
"type": "string"
},
"DestinationStopNameZh": {
+ "title": "String",
"description": "終點站中文名稱",
"type": "string"
},
"DestinationStopNameEn": {
+ "title": "String",
"description": "終點站英文名稱",
"type": "string"
},
"TicketPriceDescriptionZh": {
+ "title": "String",
"description": "票價中文敘述",
"type": "string"
},
"TicketPriceDescriptionEn": {
+ "title": "String",
"description": "票價英文敘述",
"type": "string"
},
"FareBufferZoneDescriptionZh": {
+ "title": "String",
"description": "收費緩衝區中文敘述",
"type": "string"
},
"FareBufferZoneDescriptionEn": {
+ "title": "String",
"description": "收費緩衝區英文敘述",
"type": "string"
},
"RouteUrl": {
+ "title": "String",
"description": "路線資訊說明網址",
"type": "string"
},
"LiveBusUrl": {
+ "title": "String",
"description": "路線公車動態資訊網址",
"type": "string"
},
"RouteMapImageUrl": {
+ "title": "String",
"description": "路線簡圖網址",
"type": "string"
},
"City": {
+ "title": "String",
"description": "路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]",
"type": "string"
},
"CityCode": {
+ "title": "String",
"description": "路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
"type": "string"
},
@@ -2904,131 +3177,90 @@
}
}
},
- "Service.DTO.Version2.Bus.RouteOperator": {
- "title": "RouteOperator",
- "description": "營運業者資訊",
- "required": [
- "OperatorID",
- "OperatorName",
- "OperatorCode",
- "OperatorNo"
- ],
- "type": "object",
- "properties": {
- "OperatorID": {
- "description": "營運業者代碼",
- "type": "string"
- },
- "OperatorName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "營運業者名稱"
- },
- "OperatorCode": {
- "description": "營運業者簡碼",
- "type": "string"
- },
- "OperatorNo": {
- "description": "營運業者編號[交通部票證資料系統定義]",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusSubRoute": {
- "title": "BusSubRoute",
- "description": "附屬路線資料型別",
+ "PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime+TravelTime": {
+ "title": "TravelTime",
"required": [
- "SubRouteUID",
- "SubRouteID",
- "OperatorIDs",
- "SubRouteName",
- "Direction"
+ "Distance",
+ "FromStopID",
+ "RunTime",
+ "Sequence",
+ "StopTime",
+ "ToStopID"
],
"type": "object",
"properties": {
- "SubRouteUID": {
- "description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
+ "Sequence": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "站間序號",
+ "type": "integer"
},
- "SubRouteID": {
- "description": "地區既用中之附屬路線代碼(為原資料內碼)",
+ "FromStopID": {
+ "title": "String",
+ "description": "起站站牌代碼",
"type": "string"
},
- "OperatorIDs": {
- "description": "營運業者代碼",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "附屬路線名稱"
- },
- "Headsign": {
- "description": "車頭描述",
+ "ToStopID": {
+ "title": "String",
+ "description": "迄站站牌代碼",
"type": "string"
},
- "HeadsignEn": {
- "description": "車頭英文描述",
- "type": "string"
+ "Distance": {
+ "format": "float",
+ "title": "Single",
+ "description": "站間距離",
+ "type": "number"
},
- "Direction": {
+ "RunTime": {
"format": "int32",
- "title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "title": "Int32",
+ "description": "站間預估行駛時間",
"type": "integer"
},
- "FirstBusTime": {
- "description": "平日第一班發車時間",
- "type": "string"
- },
- "LastBusTime": {
- "description": "平日返程第一班發車時間",
- "type": "string"
- },
- "HolidayFirstBusTime": {
- "description": "假日去程第一班發車時間",
- "type": "string"
- },
- "HolidayLastBusTime": {
- "description": "假日返程第一班發車時間",
- "type": "string"
+ "StopTime": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "起站停靠時間",
+ "type": "integer"
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime": {
+ "PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime": {
"title": "BusTaiwanTripS2STravelTime",
"required": [
- "RouteUID",
"RouteID",
+ "RouteUID",
"TravelTimes",
"UpdateTime"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "路線代碼",
"type": "string"
},
"SubRouteUID": {
+ "title": "String",
"description": "附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "附屬路線代碼",
"type": "string"
},
"TravelTimes": {
+ "title": "Array",
"description": "站間運行時間資訊",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime.TravelTime"
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime+TravelTime"
}
},
"UpdateTime": {
@@ -3038,49 +3270,7 @@
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime.TravelTime": {
- "title": "TravelTime",
- "required": [
- "Sequence",
- "FromStopID",
- "ToStopID",
- "Distance",
- "RunTime",
- "StopTime"
- ],
- "type": "object",
- "properties": {
- "Sequence": {
- "format": "int32",
- "description": "站間序號",
- "type": "integer"
- },
- "FromStopID": {
- "description": "起站站牌代碼",
- "type": "string"
- },
- "ToStopID": {
- "description": "迄站站牌代碼",
- "type": "string"
- },
- "Distance": {
- "format": "float",
- "description": "站間距離",
- "type": "number"
- },
- "RunTime": {
- "format": "int32",
- "description": "站間預估行駛時間",
- "type": "integer"
- },
- "StopTime": {
- "format": "int32",
- "description": "起站停靠時間",
- "type": "integer"
- }
- }
- },
- "Service.DTO.Version2.Application.ScenicSpotTourismInfo": {
+ "PTX.Service.DTO.Tourism.Specification.V2.ScenicSpotTourismInfo": {
"title": "ScenicSpotTourismInfo",
"description": "取得觀光景點資料",
"required": [
@@ -3091,97 +3281,129 @@
"type": "object",
"properties": {
"ID": {
+ "title": "String",
"description": "景點代碼",
"type": "string"
},
"Name": {
+ "title": "String",
"description": "景點名稱",
"type": "string"
},
"DescriptionDetail": {
+ "title": "String",
"description": "景點特色詳細說明",
"type": "string"
},
"Description": {
+ "title": "String",
"description": "景點特色精簡說明",
"type": "string"
},
"Phone": {
+ "title": "String",
"description": "景點服務電話",
"type": "string"
},
"Address": {
+ "title": "String",
"description": "景點地址",
"type": "string"
},
"ZipCode": {
+ "title": "String",
"description": "郵遞區號",
"type": "string"
},
"TravelInfo": {
+ "title": "String",
"description": "交通資訊",
"type": "string"
},
"OpenTime": {
+ "title": "String",
"description": "開放時間",
"type": "string"
},
"Picture": {
- "$ref": "#/definitions/Service.DTO.Version2.Application.TourismPicture",
"title": "TourismPicture",
- "description": "景點照片"
+ "description": "景點照片",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Tourism.Specification.V2.TourismPicture"
+ }
+ ]
},
"MapUrl": {
+ "title": "String",
"description": "景點地圖/簡圖介紹網址",
"type": "string"
},
"Position": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "景點位置"
+ "description": "景點位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"Class1": {
+ "title": "String",
"description": "景點分類1",
"type": "string"
},
"Class2": {
+ "title": "String",
"description": "景點分類2",
"type": "string"
},
"Class3": {
+ "title": "String",
"description": "景點分類3",
"type": "string"
},
"Level": {
+ "title": "String",
"description": "古蹟分級",
"type": "string"
},
"WebsiteUrl": {
+ "title": "String",
"description": "景點官方網站網址",
"type": "string"
},
"ParkingInfo": {
+ "title": "String",
"description": "停車資訊",
"type": "string"
},
"ParkingPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "景點主要停車場位置"
+ "description": "景點主要停車場位置",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"TicketInfo": {
+ "title": "String",
"description": "票價資訊",
"type": "string"
},
"Remarks": {
+ "title": "String",
"description": "警告及注意事項",
"type": "string"
},
"Keyword": {
+ "title": "String",
"description": "常用搜尋關鍵字",
"type": "string"
},
"City": {
+ "title": "String",
"description": "所屬縣市",
"type": "string"
},
@@ -3197,387 +3419,290 @@
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusSchedule": {
- "title": "BusSchedule",
+ "PTX.Service.DTO.Bus.Specification.V2.ServiceDay": {
+ "title": "ServiceDay",
"required": [
- "RouteUID",
- "RouteID",
- "TaiwanTripName",
- "SubRouteUID",
- "SubRouteID",
- "SubRouteName",
- "Direction",
- "UpdateTime"
+ "Friday",
+ "Monday",
+ "Saturday",
+ "Sunday",
+ "Thursday",
+ "Tuesday",
+ "Wednesday"
],
"type": "object",
"properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
- "type": "string"
- },
- "TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "台灣好行路線名稱"
- },
- "SubRouteUID": {
- "description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
- "type": "string"
- },
- "SubRouteID": {
- "description": "地區既用中之子路線代碼(為原資料內碼)",
- "type": "string"
- },
- "SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "子路線名稱"
+ "Sunday": {
+ "format": "int32",
+ "title": "integer",
+ "description": "[0:'否',1:'是']",
+ "type": "integer"
},
- "Direction": {
+ "Monday": {
"format": "int32",
"title": "integer",
- "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
- "type": "integer"
- },
- "Timetables": {
- "description": "預定班表",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusTimetable"
- }
- },
- "Frequencys": {
- "description": "發車班距",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusFrequency"
- }
- },
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
- }
- }
- },
- "Service.DTO.Version2.Bus.BusTimetable": {
- "title": "BusTimetable",
- "required": [
- "StopTimes"
- ],
- "type": "object",
- "properties": {
- "TripID": {
- "description": "班次代碼,為無意義之編碼",
- "type": "string"
- },
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.ServiceDay",
- "title": "ServiceDay",
- "description": "週內營運日"
- },
- "SpecialDays": {
- "description": "特殊營運日",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SpecialDay"
- }
- },
- "StopTimes": {
- "description": "公車停靠時間資料",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.BusStopTime"
- }
- }
- }
- },
- "Service.DTO.Version2.Bus.BusFrequency": {
- "title": "BusFrequency",
- "required": [
- "StartTime",
- "EndTime",
- "MinHeadwayMins",
- "MaxHeadwayMins"
- ],
- "type": "object",
- "properties": {
- "StartTime": {
- "description": "發車班距起始適用時間,格式為: HH:mm",
- "type": "string"
- },
- "EndTime": {
- "description": "發車班距結束適用時間,格式為: HH:mm",
- "type": "string"
- },
- "MinHeadwayMins": {
- "format": "int32",
- "description": "最小班距時間(分鐘)",
- "type": "integer"
- },
- "MaxHeadwayMins": {
- "format": "int32",
- "description": "最大班距時間(分鐘)",
- "type": "integer"
- },
- "ServiceDay": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.ServiceDay",
- "title": "ServiceDay",
- "description": "週內營運日"
- },
- "SpecialDays": {
- "description": "特殊營運日",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.SpecialDay"
- }
- }
- }
- },
- "Service.DTO.Version2.Bus.ServiceDay": {
- "title": "ServiceDay",
- "required": [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ],
- "type": "object",
- "properties": {
- "Sunday": {
- "format": "int32",
- "title": "integer",
- "description": "星期日是否營運 : [0:'否',1:'是']",
- "type": "integer"
- },
- "Monday": {
- "format": "int32",
- "title": "integer",
- "description": "星期一是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"Tuesday": {
"format": "int32",
"title": "integer",
- "description": "星期二是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"Wednesday": {
"format": "int32",
"title": "integer",
- "description": "星期三是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"Thursday": {
"format": "int32",
"title": "integer",
- "description": "星期四是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"Friday": {
"format": "int32",
"title": "integer",
- "description": "星期五是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"Saturday": {
"format": "int32",
"title": "integer",
- "description": "星期六是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
},
"NationalHolidays": {
"format": "int32",
"title": "integer",
- "description": "國定假日是否營運 : [0:'否',1:'是']",
+ "description": "[0:'否',1:'是']",
"type": "integer"
}
}
},
- "Service.DTO.Version2.Bus.SpecialDay": {
+ "PTX.Service.DTO.Bus.Specification.V2.DatePeriod": {
+ "title": "DatePeriod",
+ "type": "object",
+ "properties": {
+ "StartDate": {
+ "title": "String",
+ "type": "string"
+ },
+ "EndDate": {
+ "title": "String",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Bus.Specification.V2.SpecialDay": {
"title": "SpecialDay",
"type": "object",
"properties": {
"Dates": {
- "description": "不連續特殊日期",
+ "title": "Array",
"type": "array",
"items": {
+ "title": "String",
"type": "string"
}
},
"DatePeriod": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.DatePeriod",
"title": "DatePeriod",
- "description": "連續特殊日期"
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.DatePeriod"
+ }
+ ]
},
"ServiceStatus": {
"format": "int32",
"title": "integer",
- "description": "營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']",
+ "description": "[0:'正常營運',1:'加班營運',2:'取消/停駛營運']",
"type": "integer"
},
"Description": {
- "description": "特殊營運描述",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.BusStopTime": {
+ "PTX.Service.DTO.Bus.Specification.V2.BusStopTime": {
"title": "BusStopTime",
- "description": "公車停靠時間資料",
"required": [
- "StopSequence",
- "StopUID",
+ "ArrivalTime",
+ "DepartureTime",
"StopID",
"StopName",
- "ArrivalTime",
- "DepartureTime"
+ "StopSequence",
+ "StopUID"
],
"type": "object",
"properties": {
"StopSequence": {
"format": "int32",
- "description": "路線經過站牌之順序(由1開始)",
+ "title": "Int32",
"type": "integer"
},
"StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "title": "String",
"type": "string"
},
"StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "title": "String",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "名稱資料型別",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
- "description": "到站時間,格式為:HH:mm",
+ "title": "String",
"type": "string"
},
"DepartureTime": {
- "description": "離站時間,格式為:HH:mm",
+ "title": "String",
"type": "string"
}
}
},
- "Service.DTO.Version2.Bus.DatePeriod": {
- "title": "DatePeriod",
+ "PTX.Service.DTO.Bus.Specification.V2.BusTimetable": {
+ "title": "BusTimetable",
+ "required": [
+ "StopTimes"
+ ],
"type": "object",
"properties": {
- "StartDate": {
- "description": "營運起始日(格式: yyyy-MM-dd)",
+ "TripID": {
+ "title": "String",
"type": "string"
},
- "EndDate": {
- "description": "營運結束日(格式: yyyy-MM-dd)",
- "type": "string"
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceDay"
+ }
+ ]
+ },
+ "SpecialDays": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay"
+ }
+ },
+ "StopTimes": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusStopTime"
+ }
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripShape": {
- "title": "BusTaiwanTripShape",
- "description": "台灣好行線型資料",
+ "PTX.Service.DTO.Bus.Specification.V2.BusFrequency": {
+ "title": "BusFrequency",
"required": [
- "RouteUID",
- "RouteID",
- "Direction",
- "Geometry",
- "SrcUpdateTime",
- "UpdateTime"
+ "EndTime",
+ "MaxHeadwayMins",
+ "MinHeadwayMins",
+ "StartTime"
],
"type": "object",
"properties": {
- "RouteUID": {
- "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "StartTime": {
+ "title": "String",
"type": "string"
},
- "RouteID": {
- "description": "地區既用中之路線代碼(為原資料內碼)",
+ "EndTime": {
+ "title": "String",
"type": "string"
},
- "TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
- "title": "NameType",
- "description": "台灣好行路線名稱"
- },
- "Direction": {
+ "MinHeadwayMins": {
"format": "int32",
- "title": "integer",
- "description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "title": "Int32",
"type": "integer"
},
- "Geometry": {
- "description": "well-known text,為路線軌跡資料",
- "type": "string"
+ "MaxHeadwayMins": {
+ "format": "int32",
+ "title": "Int32",
+ "type": "integer"
},
- "SrcUpdateTime": {
- "title": "DateTime",
- "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.ServiceDay"
+ }
+ ]
},
- "UpdateTime": {
- "title": "DateTime",
- "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
- "type": "string"
+ "SpecialDays": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.SpecialDay"
+ }
}
}
},
- "Service.DTO.Version2.TaiwanTripBus.BusStopOfRoute": {
- "title": "BusStopOfRoute",
- "description": "路線與站牌對應資料",
+ "PTX.Service.DTO.Tourism.Specification.V2.BusSchedule": {
+ "title": "BusSchedule",
"required": [
- "RouteUID",
+ "Direction",
"RouteID",
- "TaiwanTripName",
- "KeyPattern",
- "SubRouteUID",
+ "RouteUID",
"SubRouteID",
"SubRouteName",
- "Direction",
- "Stops",
+ "SubRouteUID",
+ "TaiwanTripName",
"UpdateTime"
],
"type": "object",
"properties": {
"RouteUID": {
+ "title": "String",
"description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"RouteID": {
+ "title": "String",
"description": "地區既用中之路線代碼(為原資料內碼)",
"type": "string"
},
"TaiwanTripName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "台灣好行路線名稱"
- },
- "KeyPattern": {
- "description": "是否為主路線",
- "type": "boolean"
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"SubRouteUID": {
+ "title": "String",
"description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
"type": "string"
},
"SubRouteID": {
+ "title": "String",
"description": "地區既用中之子路線代碼(為原資料內碼)",
"type": "string"
},
"SubRouteName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "子路線名稱"
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"Direction": {
"format": "int32",
@@ -3585,13 +3710,77 @@
"description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "Stops": {
- "description": "所有經過站牌",
+ "Timetables": {
+ "title": "Array",
+ "description": "預定班表",
"type": "array",
"items": {
- "$ref": "#/definitions/Service.DTO.Version2.Bus.Stop"
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusTimetable"
}
},
+ "Frequencys": {
+ "title": "Array",
+ "description": "發車班距",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.BusFrequency"
+ }
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripShape": {
+ "title": "BusTaiwanTripShape",
+ "description": "台灣好行線型資料",
+ "required": [
+ "Direction",
+ "Geometry",
+ "RouteID",
+ "RouteUID",
+ "SrcUpdateTime",
+ "UpdateTime"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "TaiwanTripName": {
+ "title": "NameType",
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "Geometry": {
+ "title": "String",
+ "description": "well-known text,為路線軌跡資料",
+ "type": "string"
+ },
+ "SrcUpdateTime": {
+ "title": "DateTime",
+ "description": "來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
"UpdateTime": {
"title": "DateTime",
"description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
@@ -3599,58 +3788,146 @@
}
}
},
- "Service.DTO.Version2.Bus.Stop": {
+ "PTX.Service.DTO.Bus.Specification.V2.Stop": {
"title": "Stop",
- "description": "站牌代碼資料",
"required": [
- "StopUID",
+ "StationGroupID",
"StopID",
"StopName",
- "StopSequence",
"StopPosition",
- "StationGroupID"
+ "StopSequence",
+ "StopUID"
],
"type": "object",
"properties": {
"StopUID": {
- "description": "站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "title": "String",
"type": "string"
},
"StopID": {
- "description": "地區既用中之站牌代碼(為原資料內碼)",
+ "title": "String",
"type": "string"
},
"StopName": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
- "description": "站牌名稱"
+ "description": "名稱資料型別",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
},
"StopBoarding": {
"format": "int32",
"title": "integer",
- "description": "上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']",
+ "description": "[-1:'可下車',0:'可上下車',1:'可上車']",
"type": "integer"
},
"StopSequence": {
"format": "int32",
- "description": "路線經過站牌之順序",
+ "title": "Int32",
"type": "integer"
},
"StopPosition": {
- "$ref": "#/definitions/Service.DTO.Version2.Base.PointType",
"title": "PointType",
- "description": "站牌位置"
+ "description": "座標資料型別",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.PointType"
+ }
+ ]
},
"StationID": {
- "description": "站牌所屬的站位ID",
+ "title": "String",
"type": "string"
},
"StationGroupID": {
- "description": "站牌所屬的組站位ID",
+ "title": "String",
"type": "string"
},
"LocationCityCode": {
- "description": "站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]",
+ "title": "String",
+ "type": "string"
+ }
+ }
+ },
+ "PTX.Service.DTO.Tourism.Specification.V2.BusStopOfRoute": {
+ "title": "BusStopOfRoute",
+ "description": "路線與站牌對應資料",
+ "required": [
+ "Direction",
+ "KeyPattern",
+ "RouteID",
+ "RouteUID",
+ "Stops",
+ "SubRouteID",
+ "SubRouteName",
+ "SubRouteUID",
+ "TaiwanTripName",
+ "UpdateTime"
+ ],
+ "type": "object",
+ "properties": {
+ "RouteUID": {
+ "title": "String",
+ "description": "路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "RouteID": {
+ "title": "String",
+ "description": "地區既用中之路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "TaiwanTripName": {
+ "title": "NameType",
+ "description": "台灣好行路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "KeyPattern": {
+ "title": "Boolean",
+ "description": "是否為主路線",
+ "type": "boolean"
+ },
+ "SubRouteUID": {
+ "title": "String",
+ "description": "子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢",
+ "type": "string"
+ },
+ "SubRouteID": {
+ "title": "String",
+ "description": "地區既用中之子路線代碼(為原資料內碼)",
+ "type": "string"
+ },
+ "SubRouteName": {
+ "title": "NameType",
+ "description": "子路線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V2.Base.NameType"
+ }
+ ]
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "Stops": {
+ "title": "Array",
+ "description": "所有經過站牌",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Bus.Specification.V2.Stop"
+ }
+ },
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
}
}
@@ -3658,7 +3935,8 @@
},
"tags": [
{
- "name": "Tourism"
+ "name": "Tourism",
+ "description": "觀光"
}
]
}
diff --git a/rail/v2/client/m_o_t_c_transport_api_v2_client.go b/rail/v2/client/m_o_t_c_transport_api_v2_client.go
index 17ea99cd..e126f8ba 100644
--- a/rail/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/rail/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -25,7 +25,7 @@ const (
DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
- DefaultBasePath string = "/MOTC/"
+ DefaultBasePath string = "/MOTC"
)
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
diff --git a/rail/v2/client/metro/metro_api_alert_parameters.go b/rail/v2/client/metro/metro_api_alert_parameters.go
index 5974d36d..bd122590 100644
--- a/rail/v2/client/metro/metro_api_alert_parameters.go
+++ b/rail/v2/client/metro/metro_api_alert_parameters.go
@@ -77,7 +77,7 @@ type MetroAPIAlertParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -108,7 +108,10 @@ type MetroAPIAlertParams struct {
*/
DollarTop *int64
- /*Operator*/
+ /*Operator
+ 欲查詢縣市
+
+ */
Operator string
timeout time.Duration
@@ -150,13 +153,13 @@ func (o *MetroAPIAlertParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the metro Api alert params
-func (o *MetroAPIAlertParams) WithDollarCount(dollarCount *string) *MetroAPIAlertParams {
+func (o *MetroAPIAlertParams) WithDollarCount(dollarCount *bool) *MetroAPIAlertParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the metro Api alert params
-func (o *MetroAPIAlertParams) SetDollarCount(dollarCount *string) {
+func (o *MetroAPIAlertParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -248,11 +251,11 @@ func (o *MetroAPIAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/metro/metro_api_alert_responses.go b/rail/v2/client/metro/metro_api_alert_responses.go
index a0964cbf..9354a9f2 100644
--- a/rail/v2/client/metro/metro_api_alert_responses.go
+++ b/rail/v2/client/metro/metro_api_alert_responses.go
@@ -42,23 +42,23 @@ func NewMetroAPIAlertOK() *MetroAPIAlertOK {
/*MetroAPIAlertOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIAlertOK struct {
- Payload *models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert
+ Payload *models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert
}
func (o *MetroAPIAlertOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Alert/{Operator}][%d] metroApiAlertOK %+v", 200, o.Payload)
}
-func (o *MetroAPIAlertOK) GetPayload() *models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert {
+func (o *MetroAPIAlertOK) GetPayload() *models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert {
return o.Payload
}
func (o *MetroAPIAlertOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert)
+ o.Payload = new(models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/metro/metro_api_first_last_timetable_responses.go b/rail/v2/client/metro/metro_api_first_last_timetable_responses.go
index f8f2c21d..39359490 100644
--- a/rail/v2/client/metro/metro_api_first_last_timetable_responses.go
+++ b/rail/v2/client/metro/metro_api_first_last_timetable_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIFirstLastTimetableOK() *MetroAPIFirstLastTimetableOK {
/*MetroAPIFirstLastTimetableOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIFirstLastTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroFirstLastTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroFirstLastTimetable
}
func (o *MetroAPIFirstLastTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/FirstLastTimetable/{Operator}][%d] metroApiFirstLastTimetableOK %+v", 200, o.Payload)
}
-func (o *MetroAPIFirstLastTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailMetroFirstLastTimetable {
+func (o *MetroAPIFirstLastTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroFirstLastTimetable {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_frequency_responses.go b/rail/v2/client/metro/metro_api_frequency_responses.go
index 65f1b94c..c6de6170 100644
--- a/rail/v2/client/metro/metro_api_frequency_responses.go
+++ b/rail/v2/client/metro/metro_api_frequency_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIFrequencyOK() *MetroAPIFrequencyOK {
/*MetroAPIFrequencyOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIFrequencyOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroFrequency
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroFrequency
}
func (o *MetroAPIFrequencyOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Frequency/{Operator}][%d] metroApiFrequencyOK %+v", 200, o.Payload)
}
-func (o *MetroAPIFrequencyOK) GetPayload() []*models.ServiceDTOVersion2RailMetroFrequency {
+func (o *MetroAPIFrequencyOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroFrequency {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_line_responses.go b/rail/v2/client/metro/metro_api_line_responses.go
index e19731ff..4bedd664 100644
--- a/rail/v2/client/metro/metro_api_line_responses.go
+++ b/rail/v2/client/metro/metro_api_line_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPILineOK() *MetroAPILineOK {
/*MetroAPILineOK handles this case with default header values.
-OK
+Success
*/
type MetroAPILineOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroLine
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroLine
}
func (o *MetroAPILineOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Line/{Operator}][%d] metroApiLineOK %+v", 200, o.Payload)
}
-func (o *MetroAPILineOK) GetPayload() []*models.ServiceDTOVersion2RailMetroLine {
+func (o *MetroAPILineOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroLine {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_line_transfer_responses.go b/rail/v2/client/metro/metro_api_line_transfer_responses.go
index b69218ce..88b8f82a 100644
--- a/rail/v2/client/metro/metro_api_line_transfer_responses.go
+++ b/rail/v2/client/metro/metro_api_line_transfer_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPILineTransferOK() *MetroAPILineTransferOK {
/*MetroAPILineTransferOK handles this case with default header values.
-OK
+Success
*/
type MetroAPILineTransferOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroLineTransfer
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroLineTransfer
}
func (o *MetroAPILineTransferOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/LineTransfer/{Operator}][%d] metroApiLineTransferOK %+v", 200, o.Payload)
}
-func (o *MetroAPILineTransferOK) GetPayload() []*models.ServiceDTOVersion2RailMetroLineTransfer {
+func (o *MetroAPILineTransferOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroLineTransfer {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_live_board_responses.go b/rail/v2/client/metro/metro_api_live_board_responses.go
index 7c6da329..e113d314 100644
--- a/rail/v2/client/metro/metro_api_live_board_responses.go
+++ b/rail/v2/client/metro/metro_api_live_board_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPILiveBoardOK() *MetroAPILiveBoardOK {
/*MetroAPILiveBoardOK handles this case with default header values.
-OK
+Success
*/
type MetroAPILiveBoardOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroLiveBoard
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroLiveBoard
}
func (o *MetroAPILiveBoardOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/LiveBoard/{Operator}][%d] metroApiLiveBoardOK %+v", 200, o.Payload)
}
-func (o *MetroAPILiveBoardOK) GetPayload() []*models.ServiceDTOVersion2RailMetroLiveBoard {
+func (o *MetroAPILiveBoardOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroLiveBoard {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_network_responses.go b/rail/v2/client/metro/metro_api_network_responses.go
index 069ac8a5..48f38f13 100644
--- a/rail/v2/client/metro/metro_api_network_responses.go
+++ b/rail/v2/client/metro/metro_api_network_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPINetworkOK() *MetroAPINetworkOK {
/*MetroAPINetworkOK handles this case with default header values.
-OK
+Success
*/
type MetroAPINetworkOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroNetwork
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroNetwork
}
func (o *MetroAPINetworkOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Network/{Operator}][%d] metroApiNetworkOK %+v", 200, o.Payload)
}
-func (o *MetroAPINetworkOK) GetPayload() []*models.ServiceDTOVersion2RailMetroNetwork {
+func (o *MetroAPINetworkOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroNetwork {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_news_parameters.go b/rail/v2/client/metro/metro_api_news_parameters.go
index d182327d..10fb9627 100644
--- a/rail/v2/client/metro/metro_api_news_parameters.go
+++ b/rail/v2/client/metro/metro_api_news_parameters.go
@@ -77,7 +77,7 @@ type MetroAPINewsParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -108,7 +108,10 @@ type MetroAPINewsParams struct {
*/
DollarTop *int64
- /*Operator*/
+ /*Operator
+ 欲查詢縣市
+
+ */
Operator string
timeout time.Duration
@@ -150,13 +153,13 @@ func (o *MetroAPINewsParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the metro Api news params
-func (o *MetroAPINewsParams) WithDollarCount(dollarCount *string) *MetroAPINewsParams {
+func (o *MetroAPINewsParams) WithDollarCount(dollarCount *bool) *MetroAPINewsParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the metro Api news params
-func (o *MetroAPINewsParams) SetDollarCount(dollarCount *string) {
+func (o *MetroAPINewsParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -248,11 +251,11 @@ func (o *MetroAPINewsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/metro/metro_api_news_responses.go b/rail/v2/client/metro/metro_api_news_responses.go
index 977673b3..0e254a13 100644
--- a/rail/v2/client/metro/metro_api_news_responses.go
+++ b/rail/v2/client/metro/metro_api_news_responses.go
@@ -42,23 +42,23 @@ func NewMetroAPINewsOK() *MetroAPINewsOK {
/*MetroAPINewsOK handles this case with default header values.
-OK
+Success
*/
type MetroAPINewsOK struct {
- Payload *models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews
+ Payload *models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews
}
func (o *MetroAPINewsOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/News/{Operator}][%d] metroApiNewsOK %+v", 200, o.Payload)
}
-func (o *MetroAPINewsOK) GetPayload() *models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews {
+func (o *MetroAPINewsOK) GetPayload() *models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews {
return o.Payload
}
func (o *MetroAPINewsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews)
+ o.Payload = new(models.PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/metro/metro_api_o_d_fare_responses.go b/rail/v2/client/metro/metro_api_o_d_fare_responses.go
index c4edfe1d..8f74dcff 100644
--- a/rail/v2/client/metro/metro_api_o_d_fare_responses.go
+++ b/rail/v2/client/metro/metro_api_o_d_fare_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIODFareOK() *MetroAPIODFareOK {
/*MetroAPIODFareOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIODFareOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroODFare
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroODFare
}
func (o *MetroAPIODFareOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/ODFare/{Operator}][%d] metroApiODFareOK %+v", 200, o.Payload)
}
-func (o *MetroAPIODFareOK) GetPayload() []*models.ServiceDTOVersion2RailMetroODFare {
+func (o *MetroAPIODFareOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroODFare {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_route_responses.go b/rail/v2/client/metro/metro_api_route_responses.go
index 3611fb1b..65ea3d78 100644
--- a/rail/v2/client/metro/metro_api_route_responses.go
+++ b/rail/v2/client/metro/metro_api_route_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIRouteOK() *MetroAPIRouteOK {
/*MetroAPIRouteOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIRouteOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroRoute
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroRoute
}
func (o *MetroAPIRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Route/{Operator}][%d] metroApiRouteOK %+v", 200, o.Payload)
}
-func (o *MetroAPIRouteOK) GetPayload() []*models.ServiceDTOVersion2RailMetroRoute {
+func (o *MetroAPIRouteOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroRoute {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_s2_s_travel_time_responses.go b/rail/v2/client/metro/metro_api_s2_s_travel_time_responses.go
index c0129cc8..d1ddeb6f 100644
--- a/rail/v2/client/metro/metro_api_s2_s_travel_time_responses.go
+++ b/rail/v2/client/metro/metro_api_s2_s_travel_time_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIS2STravelTimeOK() *MetroAPIS2STravelTimeOK {
/*MetroAPIS2STravelTimeOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIS2STravelTimeOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroS2STravelTime
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroS2STravelTime
}
func (o *MetroAPIS2STravelTimeOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/S2STravelTime/{Operator}][%d] metroApiS2STravelTimeOK %+v", 200, o.Payload)
}
-func (o *MetroAPIS2STravelTimeOK) GetPayload() []*models.ServiceDTOVersion2RailMetroS2STravelTime {
+func (o *MetroAPIS2STravelTimeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroS2STravelTime {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_shape_responses.go b/rail/v2/client/metro/metro_api_shape_responses.go
index 8f3f2441..83dc189a 100644
--- a/rail/v2/client/metro/metro_api_shape_responses.go
+++ b/rail/v2/client/metro/metro_api_shape_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIShapeOK() *MetroAPIShapeOK {
/*MetroAPIShapeOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIShapeOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroMetroShape
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroMetroShape
}
func (o *MetroAPIShapeOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Shape/{Operator}][%d] metroApiShapeOK %+v", 200, o.Payload)
}
-func (o *MetroAPIShapeOK) GetPayload() []*models.ServiceDTOVersion2RailMetroMetroShape {
+func (o *MetroAPIShapeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroMetroShape {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_exit_responses.go b/rail/v2/client/metro/metro_api_station_exit_responses.go
index 589f2c98..0f6b911f 100644
--- a/rail/v2/client/metro/metro_api_station_exit_responses.go
+++ b/rail/v2/client/metro/metro_api_station_exit_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationExitOK() *MetroAPIStationExitOK {
/*MetroAPIStationExitOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationExitOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStationExit
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStationExit
}
func (o *MetroAPIStationExitOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/StationExit/{Operator}][%d] metroApiStationExitOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationExitOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStationExit {
+func (o *MetroAPIStationExitOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStationExit {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_facility_responses.go b/rail/v2/client/metro/metro_api_station_facility_responses.go
index 0c7d2871..60fa87b9 100644
--- a/rail/v2/client/metro/metro_api_station_facility_responses.go
+++ b/rail/v2/client/metro/metro_api_station_facility_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationFacilityOK() *MetroAPIStationFacilityOK {
/*MetroAPIStationFacilityOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationFacilityOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStationFacility
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStationFacility
}
func (o *MetroAPIStationFacilityOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/StationFacility/{Operator}][%d] metroApiStationFacilityOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationFacilityOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStationFacility {
+func (o *MetroAPIStationFacilityOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStationFacility {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_of_line_responses.go b/rail/v2/client/metro/metro_api_station_of_line_responses.go
index 117843de..b22e2e91 100644
--- a/rail/v2/client/metro/metro_api_station_of_line_responses.go
+++ b/rail/v2/client/metro/metro_api_station_of_line_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationOfLineOK() *MetroAPIStationOfLineOK {
/*MetroAPIStationOfLineOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationOfLineOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStationOfLine
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStationOfLine
}
func (o *MetroAPIStationOfLineOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/StationOfLine/{Operator}][%d] metroApiStationOfLineOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationOfLineOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStationOfLine {
+func (o *MetroAPIStationOfLineOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStationOfLine {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_of_route_responses.go b/rail/v2/client/metro/metro_api_station_of_route_responses.go
index d1439868..235fa61a 100644
--- a/rail/v2/client/metro/metro_api_station_of_route_responses.go
+++ b/rail/v2/client/metro/metro_api_station_of_route_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationOfRouteOK() *MetroAPIStationOfRouteOK {
/*MetroAPIStationOfRouteOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationOfRouteOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStationOfRoute
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStationOfRoute
}
func (o *MetroAPIStationOfRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/StationOfRoute/{Operator}][%d] metroApiStationOfRouteOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationOfRouteOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStationOfRoute {
+func (o *MetroAPIStationOfRouteOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStationOfRoute {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_responses.go b/rail/v2/client/metro/metro_api_station_responses.go
index fc9f52fa..356e70e3 100644
--- a/rail/v2/client/metro/metro_api_station_responses.go
+++ b/rail/v2/client/metro/metro_api_station_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationOK() *MetroAPIStationOK {
/*MetroAPIStationOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStation
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStation
}
func (o *MetroAPIStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/Station/{Operator}][%d] metroApiStationOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStation {
+func (o *MetroAPIStationOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStation {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_api_station_time_table_responses.go b/rail/v2/client/metro/metro_api_station_time_table_responses.go
index 4f34ba3c..d3db65ae 100644
--- a/rail/v2/client/metro/metro_api_station_time_table_responses.go
+++ b/rail/v2/client/metro/metro_api_station_time_table_responses.go
@@ -42,17 +42,17 @@ func NewMetroAPIStationTimeTableOK() *MetroAPIStationTimeTableOK {
/*MetroAPIStationTimeTableOK handles this case with default header values.
-OK
+Success
*/
type MetroAPIStationTimeTableOK struct {
- Payload []*models.ServiceDTOVersion2RailMetroStationTimeTable
+ Payload []*models.PTXServiceDTORailSpecificationV2MetroStationTimeTable
}
func (o *MetroAPIStationTimeTableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Metro/StationTimeTable/{Operator}][%d] metroApiStationTimeTableOK %+v", 200, o.Payload)
}
-func (o *MetroAPIStationTimeTableOK) GetPayload() []*models.ServiceDTOVersion2RailMetroStationTimeTable {
+func (o *MetroAPIStationTimeTableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2MetroStationTimeTable {
return o.Payload
}
diff --git a/rail/v2/client/metro/metro_client.go b/rail/v2/client/metro/metro_client.go
index 37fa56d7..e5ee6e9c 100644
--- a/rail/v2/client/metro/metro_client.go
+++ b/rail/v2/client/metro/metro_client.go
@@ -81,7 +81,7 @@ func (a *Client) MetroAPIAlert(params *MetroAPIAlertParams) (*MetroAPIAlertOK, e
ID: "MetroApi_Alert",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Alert/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -117,7 +117,7 @@ func (a *Client) MetroAPIFirstLastTimetable(params *MetroAPIFirstLastTimetablePa
ID: "MetroApi_FirstLastTimetable",
Method: "GET",
PathPattern: "/v2/Rail/Metro/FirstLastTimetable/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -153,7 +153,7 @@ func (a *Client) MetroAPIFrequency(params *MetroAPIFrequencyParams) (*MetroAPIFr
ID: "MetroApi_Frequency",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Frequency/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -189,7 +189,7 @@ func (a *Client) MetroAPILine(params *MetroAPILineParams) (*MetroAPILineOK, erro
ID: "MetroApi_Line",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Line/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -225,7 +225,7 @@ func (a *Client) MetroAPILineTransfer(params *MetroAPILineTransferParams) (*Metr
ID: "MetroApi_LineTransfer",
Method: "GET",
PathPattern: "/v2/Rail/Metro/LineTransfer/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -261,7 +261,7 @@ func (a *Client) MetroAPILiveBoard(params *MetroAPILiveBoardParams) (*MetroAPILi
ID: "MetroApi_LiveBoard",
Method: "GET",
PathPattern: "/v2/Rail/Metro/LiveBoard/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -297,7 +297,7 @@ func (a *Client) MetroAPINetwork(params *MetroAPINetworkParams) (*MetroAPINetwor
ID: "MetroApi_Network",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Network/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -333,7 +333,7 @@ func (a *Client) MetroAPINews(params *MetroAPINewsParams) (*MetroAPINewsOK, erro
ID: "MetroApi_News",
Method: "GET",
PathPattern: "/v2/Rail/Metro/News/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -369,7 +369,7 @@ func (a *Client) MetroAPIODFare(params *MetroAPIODFareParams) (*MetroAPIODFareOK
ID: "MetroApi_ODFare",
Method: "GET",
PathPattern: "/v2/Rail/Metro/ODFare/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -405,7 +405,7 @@ func (a *Client) MetroAPIRoute(params *MetroAPIRouteParams) (*MetroAPIRouteOK, e
ID: "MetroApi_Route",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Route/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -441,7 +441,7 @@ func (a *Client) MetroAPIS2STravelTime(params *MetroAPIS2STravelTimeParams) (*Me
ID: "MetroApi_S2STravelTime",
Method: "GET",
PathPattern: "/v2/Rail/Metro/S2STravelTime/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -477,7 +477,7 @@ func (a *Client) MetroAPIShape(params *MetroAPIShapeParams) (*MetroAPIShapeOK, e
ID: "MetroApi_Shape",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Shape/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -513,7 +513,7 @@ func (a *Client) MetroAPIStation(params *MetroAPIStationParams) (*MetroAPIStatio
ID: "MetroApi_Station",
Method: "GET",
PathPattern: "/v2/Rail/Metro/Station/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -549,7 +549,7 @@ func (a *Client) MetroAPIStationExit(params *MetroAPIStationExitParams) (*MetroA
ID: "MetroApi_StationExit",
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationExit/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -585,7 +585,7 @@ func (a *Client) MetroAPIStationFacility(params *MetroAPIStationFacilityParams)
ID: "MetroApi_StationFacility",
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationFacility/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -621,7 +621,7 @@ func (a *Client) MetroAPIStationOfLine(params *MetroAPIStationOfLineParams) (*Me
ID: "MetroApi_StationOfLine",
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationOfLine/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -657,7 +657,7 @@ func (a *Client) MetroAPIStationOfRoute(params *MetroAPIStationOfRouteParams) (*
ID: "MetroApi_StationOfRoute",
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationOfRoute/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -696,7 +696,7 @@ func (a *Client) MetroAPIStationTimeTable(params *MetroAPIStationTimeTableParams
ID: "MetroApi_StationTimeTable",
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationTimeTable/{Operator}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/rail/v2/client/rail_basic/rail_api_operator_responses.go b/rail/v2/client/rail_basic/rail_api_operator_responses.go
index 16c6de0b..423ee399 100644
--- a/rail/v2/client/rail_basic/rail_api_operator_responses.go
+++ b/rail/v2/client/rail_basic/rail_api_operator_responses.go
@@ -42,17 +42,17 @@ func NewRailAPIOperatorOK() *RailAPIOperatorOK {
/*RailAPIOperatorOK handles this case with default header values.
-OK
+Success
*/
type RailAPIOperatorOK struct {
- Payload []*models.ServiceDTOVersion2BaseOperator
+ Payload []*models.PTXServiceDTOSharedSpecificationV2BaseOperator
}
func (o *RailAPIOperatorOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/Operator][%d] railApiOperatorOK %+v", 200, o.Payload)
}
-func (o *RailAPIOperatorOK) GetPayload() []*models.ServiceDTOVersion2BaseOperator {
+func (o *RailAPIOperatorOK) GetPayload() []*models.PTXServiceDTOSharedSpecificationV2BaseOperator {
return o.Payload
}
diff --git a/rail/v2/client/rail_basic/rail_basic_client.go b/rail/v2/client/rail_basic/rail_basic_client.go
index e66c7d5f..7550c948 100644
--- a/rail/v2/client/rail_basic/rail_basic_client.go
+++ b/rail/v2/client/rail_basic/rail_basic_client.go
@@ -33,7 +33,7 @@ type ClientService interface {
}
/*
- RailAPIOperator rail Api operator API
+ RailAPIOperator 取得軌道營運業者資料s
*/
func (a *Client) RailAPIOperator(params *RailAPIOperatorParams) (*RailAPIOperatorOK, error) {
// TODO: Validate the params before sending
@@ -45,7 +45,7 @@ func (a *Client) RailAPIOperator(params *RailAPIOperatorParams) (*RailAPIOperato
ID: "RailApi_Operator",
Method: "GET",
PathPattern: "/v2/Rail/Operator",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_responses.go
index 9700e534..aab94cbb 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIAlertInfoOK() *THSRAPIAlertInfoOK {
/*THSRAPIAlertInfoOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIAlertInfoOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRAlertInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRAlertInfo
}
func (o *THSRAPIAlertInfoOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/AlertInfo][%d] tHSRApiAlertInfoOK %+v", 200, o.Payload)
}
-func (o *THSRAPIAlertInfoOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRAlertInfo {
+func (o *THSRAPIAlertInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRAlertInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_parameters.go
index dbfa0945..80b90d05 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_parameters.go
@@ -77,7 +77,7 @@ type THSRAPIAvailableSeatStatus1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *THSRAPIAvailableSeatStatus1Params) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the t h s r Api available seat status 1 params
-func (o *THSRAPIAvailableSeatStatus1Params) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatus1Params {
+func (o *THSRAPIAvailableSeatStatus1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the t h s r Api available seat status 1 params
-func (o *THSRAPIAvailableSeatStatus1Params) SetDollarCount(dollarCount *string) {
+func (o *THSRAPIAvailableSeatStatus1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *THSRAPIAvailableSeatStatus1Params) WriteToRequest(r runtime.ClientReque
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_responses.go
index 78f38873..b5a11066 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status1_responses.go
@@ -42,23 +42,23 @@ func NewTHSRAPIAvailableSeatStatus1OK() *THSRAPIAvailableSeatStatus1OK {
/*THSRAPIAvailableSeatStatus1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIAvailableSeatStatus1OK struct {
- Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
+ Payload *models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat
}
func (o *THSRAPIAvailableSeatStatus1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatus/Train/Leg/TrainDate/{TrainDate}][%d] tHSRApiAvailableSeatStatus1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIAvailableSeatStatus1OK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat {
+func (o *THSRAPIAvailableSeatStatus1OK) GetPayload() *models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat {
return o.Payload
}
func (o *THSRAPIAvailableSeatStatus1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat)
+ o.Payload = new(models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_parameters.go
new file mode 100644
index 00000000..8a24ed99
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_parameters.go
@@ -0,0 +1,365 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewTHSRAPIAvailableSeatStatus2Params creates a new THSRAPIAvailableSeatStatus2Params object
+// with the default values initialized.
+func NewTHSRAPIAvailableSeatStatus2Params() *THSRAPIAvailableSeatStatus2Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus2Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus2ParamsWithTimeout creates a new THSRAPIAvailableSeatStatus2Params object
+// with the default values initialized, and the ability to set a timeout on a request
+func NewTHSRAPIAvailableSeatStatus2ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus2Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus2Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: timeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus2ParamsWithContext creates a new THSRAPIAvailableSeatStatus2Params object
+// with the default values initialized, and the ability to set a context for a request
+func NewTHSRAPIAvailableSeatStatus2ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatus2Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus2Params{
+ DollarTop: &dollarTopDefault,
+
+ Context: ctx,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus2ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatus2Params object
+// with the default values initialized, and the ability to set a custom HTTPClient for a request
+func NewTHSRAPIAvailableSeatStatus2ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus2Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus2Params{
+ DollarTop: &dollarTopDefault,
+ HTTPClient: client,
+ }
+}
+
+/*THSRAPIAvailableSeatStatus2Params contains all the parameters to send to the API endpoint
+for the t h s r Api available seat status 2 operation typically these are written to a http.Request
+*/
+type THSRAPIAvailableSeatStatus2Params struct {
+
+ /*DollarCount
+ 查詢數量
+
+ */
+ DollarCount *bool
+ /*DollarFilter
+ 過濾
+
+ */
+ DollarFilter *string
+ /*DollarFormat
+ 指定來源格式
+
+ */
+ DollarFormat string
+ /*DollarOrderby
+ 排序
+
+ */
+ DollarOrderby *string
+ /*DollarSelect
+ 挑選
+
+ */
+ DollarSelect *string
+ /*DollarSkip
+ 跳過前幾筆
+
+ */
+ DollarSkip *string
+ /*DollarTop
+ 取前幾筆
+
+ */
+ DollarTop *int64
+ /*TrainDate
+ 欲查詢車次的日期(格式: yyyy-MM-dd)
+
+ */
+ TrainDate string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithTimeout adds the timeout to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus2Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatus2Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus2Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDollarCount adds the dollarCount to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarCount(dollarCount)
+ return o
+}
+
+// SetDollarCount adds the dollarCount to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarCount(dollarCount *bool) {
+ o.DollarCount = dollarCount
+}
+
+// WithDollarFilter adds the dollarFilter to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarFilter(dollarFilter)
+ return o
+}
+
+// SetDollarFilter adds the dollarFilter to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarFilter(dollarFilter *string) {
+ o.DollarFilter = dollarFilter
+}
+
+// WithDollarFormat adds the dollarFormat to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarFormat(dollarFormat)
+ return o
+}
+
+// SetDollarFormat adds the dollarFormat to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarFormat(dollarFormat string) {
+ o.DollarFormat = dollarFormat
+}
+
+// WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarOrderby(dollarOrderby)
+ return o
+}
+
+// SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarOrderby(dollarOrderby *string) {
+ o.DollarOrderby = dollarOrderby
+}
+
+// WithDollarSelect adds the dollarSelect to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarSelect(dollarSelect)
+ return o
+}
+
+// SetDollarSelect adds the dollarSelect to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarSelect(dollarSelect *string) {
+ o.DollarSelect = dollarSelect
+}
+
+// WithDollarSkip adds the dollarSkip to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarSkip(dollarSkip)
+ return o
+}
+
+// SetDollarSkip adds the dollarSkip to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarSkip(dollarSkip *string) {
+ o.DollarSkip = dollarSkip
+}
+
+// WithDollarTop adds the dollarTop to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatus2Params {
+ o.SetDollarTop(dollarTop)
+ return o
+}
+
+// SetDollarTop adds the dollarTop to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetDollarTop(dollarTop *int64) {
+ o.DollarTop = dollarTop
+}
+
+// WithTrainDate adds the trainDate to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) WithTrainDate(trainDate string) *THSRAPIAvailableSeatStatus2Params {
+ o.SetTrainDate(trainDate)
+ return o
+}
+
+// SetTrainDate adds the trainDate to the t h s r Api available seat status 2 params
+func (o *THSRAPIAvailableSeatStatus2Params) SetTrainDate(trainDate string) {
+ o.TrainDate = trainDate
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *THSRAPIAvailableSeatStatus2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.DollarCount != nil {
+
+ // query param $count
+ var qrDollarCount bool
+ if o.DollarCount != nil {
+ qrDollarCount = *o.DollarCount
+ }
+ qDollarCount := swag.FormatBool(qrDollarCount)
+ if qDollarCount != "" {
+ if err := r.SetQueryParam("$count", qDollarCount); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarFilter != nil {
+
+ // query param $filter
+ var qrDollarFilter string
+ if o.DollarFilter != nil {
+ qrDollarFilter = *o.DollarFilter
+ }
+ qDollarFilter := qrDollarFilter
+ if qDollarFilter != "" {
+ if err := r.SetQueryParam("$filter", qDollarFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // query param $format
+ qrDollarFormat := o.DollarFormat
+ qDollarFormat := qrDollarFormat
+ if qDollarFormat != "" {
+ if err := r.SetQueryParam("$format", qDollarFormat); err != nil {
+ return err
+ }
+ }
+
+ if o.DollarOrderby != nil {
+
+ // query param $orderby
+ var qrDollarOrderby string
+ if o.DollarOrderby != nil {
+ qrDollarOrderby = *o.DollarOrderby
+ }
+ qDollarOrderby := qrDollarOrderby
+ if qDollarOrderby != "" {
+ if err := r.SetQueryParam("$orderby", qDollarOrderby); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSelect != nil {
+
+ // query param $select
+ var qrDollarSelect string
+ if o.DollarSelect != nil {
+ qrDollarSelect = *o.DollarSelect
+ }
+ qDollarSelect := qrDollarSelect
+ if qDollarSelect != "" {
+ if err := r.SetQueryParam("$select", qDollarSelect); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSkip != nil {
+
+ // query param $skip
+ var qrDollarSkip string
+ if o.DollarSkip != nil {
+ qrDollarSkip = *o.DollarSkip
+ }
+ qDollarSkip := qrDollarSkip
+ if qDollarSkip != "" {
+ if err := r.SetQueryParam("$skip", qDollarSkip); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarTop != nil {
+
+ // query param $top
+ var qrDollarTop int64
+ if o.DollarTop != nil {
+ qrDollarTop = *o.DollarTop
+ }
+ qDollarTop := swag.FormatInt64(qrDollarTop)
+ if qDollarTop != "" {
+ if err := r.SetQueryParam("$top", qDollarTop); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // path param TrainDate
+ if err := r.SetPathParam("TrainDate", o.TrainDate); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_responses.go
new file mode 100644
index 00000000..1272c49f
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status2_responses.go
@@ -0,0 +1,69 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/rail/v2/models"
+)
+
+// THSRAPIAvailableSeatStatus2Reader is a Reader for the THSRAPIAvailableSeatStatus2 structure.
+type THSRAPIAvailableSeatStatus2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *THSRAPIAvailableSeatStatus2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewTHSRAPIAvailableSeatStatus2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus2OK creates a THSRAPIAvailableSeatStatus2OK with default headers values
+func NewTHSRAPIAvailableSeatStatus2OK() *THSRAPIAvailableSeatStatus2OK {
+ return &THSRAPIAvailableSeatStatus2OK{}
+}
+
+/*THSRAPIAvailableSeatStatus2OK handles this case with default header values.
+
+Success
+*/
+type THSRAPIAvailableSeatStatus2OK struct {
+ Payload *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
+}
+
+func (o *THSRAPIAvailableSeatStatus2OK) Error() string {
+ return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatus/Train/OD/TrainDate/{TrainDate}][%d] tHSRApiAvailableSeatStatus2OK %+v", 200, o.Payload)
+}
+
+func (o *THSRAPIAvailableSeatStatus2OK) GetPayload() *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat {
+ return o.Payload
+}
+
+func (o *THSRAPIAvailableSeatStatus2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_parameters.go
new file mode 100644
index 00000000..c25863d7
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_parameters.go
@@ -0,0 +1,407 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewTHSRAPIAvailableSeatStatus3Params creates a new THSRAPIAvailableSeatStatus3Params object
+// with the default values initialized.
+func NewTHSRAPIAvailableSeatStatus3Params() *THSRAPIAvailableSeatStatus3Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus3Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus3ParamsWithTimeout creates a new THSRAPIAvailableSeatStatus3Params object
+// with the default values initialized, and the ability to set a timeout on a request
+func NewTHSRAPIAvailableSeatStatus3ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus3Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus3Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: timeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus3ParamsWithContext creates a new THSRAPIAvailableSeatStatus3Params object
+// with the default values initialized, and the ability to set a context for a request
+func NewTHSRAPIAvailableSeatStatus3ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatus3Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus3Params{
+ DollarTop: &dollarTopDefault,
+
+ Context: ctx,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus3ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatus3Params object
+// with the default values initialized, and the ability to set a custom HTTPClient for a request
+func NewTHSRAPIAvailableSeatStatus3ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus3Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus3Params{
+ DollarTop: &dollarTopDefault,
+ HTTPClient: client,
+ }
+}
+
+/*THSRAPIAvailableSeatStatus3Params contains all the parameters to send to the API endpoint
+for the t h s r Api available seat status 3 operation typically these are written to a http.Request
+*/
+type THSRAPIAvailableSeatStatus3Params struct {
+
+ /*DollarCount
+ 查詢數量
+
+ */
+ DollarCount *bool
+ /*DollarFilter
+ 過濾
+
+ */
+ DollarFilter *string
+ /*DollarFormat
+ 指定來源格式
+
+ */
+ DollarFormat string
+ /*DollarOrderby
+ 排序
+
+ */
+ DollarOrderby *string
+ /*DollarSelect
+ 挑選
+
+ */
+ DollarSelect *string
+ /*DollarSkip
+ 跳過前幾筆
+
+ */
+ DollarSkip *string
+ /*DollarTop
+ 取前幾筆
+
+ */
+ DollarTop *int64
+ /*DestinationStationID
+ 指定迄止車站
+
+ */
+ DestinationStationID string
+ /*OriginStationID
+ 指定起始車站
+
+ */
+ OriginStationID string
+ /*TrainDate
+ 欲查詢車次的日期(格式: yyyy-MM-dd)
+
+ */
+ TrainDate string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithTimeout adds the timeout to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus3Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatus3Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus3Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDollarCount adds the dollarCount to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarCount(dollarCount)
+ return o
+}
+
+// SetDollarCount adds the dollarCount to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarCount(dollarCount *bool) {
+ o.DollarCount = dollarCount
+}
+
+// WithDollarFilter adds the dollarFilter to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarFilter(dollarFilter)
+ return o
+}
+
+// SetDollarFilter adds the dollarFilter to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarFilter(dollarFilter *string) {
+ o.DollarFilter = dollarFilter
+}
+
+// WithDollarFormat adds the dollarFormat to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarFormat(dollarFormat)
+ return o
+}
+
+// SetDollarFormat adds the dollarFormat to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarFormat(dollarFormat string) {
+ o.DollarFormat = dollarFormat
+}
+
+// WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarOrderby(dollarOrderby)
+ return o
+}
+
+// SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarOrderby(dollarOrderby *string) {
+ o.DollarOrderby = dollarOrderby
+}
+
+// WithDollarSelect adds the dollarSelect to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarSelect(dollarSelect)
+ return o
+}
+
+// SetDollarSelect adds the dollarSelect to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarSelect(dollarSelect *string) {
+ o.DollarSelect = dollarSelect
+}
+
+// WithDollarSkip adds the dollarSkip to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarSkip(dollarSkip)
+ return o
+}
+
+// SetDollarSkip adds the dollarSkip to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarSkip(dollarSkip *string) {
+ o.DollarSkip = dollarSkip
+}
+
+// WithDollarTop adds the dollarTop to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDollarTop(dollarTop)
+ return o
+}
+
+// SetDollarTop adds the dollarTop to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDollarTop(dollarTop *int64) {
+ o.DollarTop = dollarTop
+}
+
+// WithDestinationStationID adds the destinationStationID to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetDestinationStationID(destinationStationID)
+ return o
+}
+
+// SetDestinationStationID adds the destinationStationId to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetDestinationStationID(destinationStationID string) {
+ o.DestinationStationID = destinationStationID
+}
+
+// WithOriginStationID adds the originStationID to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetOriginStationID(originStationID)
+ return o
+}
+
+// SetOriginStationID adds the originStationId to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetOriginStationID(originStationID string) {
+ o.OriginStationID = originStationID
+}
+
+// WithTrainDate adds the trainDate to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) WithTrainDate(trainDate string) *THSRAPIAvailableSeatStatus3Params {
+ o.SetTrainDate(trainDate)
+ return o
+}
+
+// SetTrainDate adds the trainDate to the t h s r Api available seat status 3 params
+func (o *THSRAPIAvailableSeatStatus3Params) SetTrainDate(trainDate string) {
+ o.TrainDate = trainDate
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *THSRAPIAvailableSeatStatus3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.DollarCount != nil {
+
+ // query param $count
+ var qrDollarCount bool
+ if o.DollarCount != nil {
+ qrDollarCount = *o.DollarCount
+ }
+ qDollarCount := swag.FormatBool(qrDollarCount)
+ if qDollarCount != "" {
+ if err := r.SetQueryParam("$count", qDollarCount); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarFilter != nil {
+
+ // query param $filter
+ var qrDollarFilter string
+ if o.DollarFilter != nil {
+ qrDollarFilter = *o.DollarFilter
+ }
+ qDollarFilter := qrDollarFilter
+ if qDollarFilter != "" {
+ if err := r.SetQueryParam("$filter", qDollarFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // query param $format
+ qrDollarFormat := o.DollarFormat
+ qDollarFormat := qrDollarFormat
+ if qDollarFormat != "" {
+ if err := r.SetQueryParam("$format", qDollarFormat); err != nil {
+ return err
+ }
+ }
+
+ if o.DollarOrderby != nil {
+
+ // query param $orderby
+ var qrDollarOrderby string
+ if o.DollarOrderby != nil {
+ qrDollarOrderby = *o.DollarOrderby
+ }
+ qDollarOrderby := qrDollarOrderby
+ if qDollarOrderby != "" {
+ if err := r.SetQueryParam("$orderby", qDollarOrderby); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSelect != nil {
+
+ // query param $select
+ var qrDollarSelect string
+ if o.DollarSelect != nil {
+ qrDollarSelect = *o.DollarSelect
+ }
+ qDollarSelect := qrDollarSelect
+ if qDollarSelect != "" {
+ if err := r.SetQueryParam("$select", qDollarSelect); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSkip != nil {
+
+ // query param $skip
+ var qrDollarSkip string
+ if o.DollarSkip != nil {
+ qrDollarSkip = *o.DollarSkip
+ }
+ qDollarSkip := qrDollarSkip
+ if qDollarSkip != "" {
+ if err := r.SetQueryParam("$skip", qDollarSkip); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarTop != nil {
+
+ // query param $top
+ var qrDollarTop int64
+ if o.DollarTop != nil {
+ qrDollarTop = *o.DollarTop
+ }
+ qDollarTop := swag.FormatInt64(qrDollarTop)
+ if qDollarTop != "" {
+ if err := r.SetQueryParam("$top", qDollarTop); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // path param DestinationStationID
+ if err := r.SetPathParam("DestinationStationID", o.DestinationStationID); err != nil {
+ return err
+ }
+
+ // path param OriginStationID
+ if err := r.SetPathParam("OriginStationID", o.OriginStationID); err != nil {
+ return err
+ }
+
+ // path param TrainDate
+ if err := r.SetPathParam("TrainDate", o.TrainDate); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_responses.go
new file mode 100644
index 00000000..5280aa01
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status3_responses.go
@@ -0,0 +1,69 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/rail/v2/models"
+)
+
+// THSRAPIAvailableSeatStatus3Reader is a Reader for the THSRAPIAvailableSeatStatus3 structure.
+type THSRAPIAvailableSeatStatus3Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *THSRAPIAvailableSeatStatus3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewTHSRAPIAvailableSeatStatus3OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus3OK creates a THSRAPIAvailableSeatStatus3OK with default headers values
+func NewTHSRAPIAvailableSeatStatus3OK() *THSRAPIAvailableSeatStatus3OK {
+ return &THSRAPIAvailableSeatStatus3OK{}
+}
+
+/*THSRAPIAvailableSeatStatus3OK handles this case with default header values.
+
+Success
+*/
+type THSRAPIAvailableSeatStatus3OK struct {
+ Payload *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
+}
+
+func (o *THSRAPIAvailableSeatStatus3OK) Error() string {
+ return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}][%d] tHSRApiAvailableSeatStatus3OK %+v", 200, o.Payload)
+}
+
+func (o *THSRAPIAvailableSeatStatus3OK) GetPayload() *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat {
+ return o.Payload
+}
+
+func (o *THSRAPIAvailableSeatStatus3OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_parameters.go
new file mode 100644
index 00000000..2ae30a92
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_parameters.go
@@ -0,0 +1,428 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewTHSRAPIAvailableSeatStatus4Params creates a new THSRAPIAvailableSeatStatus4Params object
+// with the default values initialized.
+func NewTHSRAPIAvailableSeatStatus4Params() *THSRAPIAvailableSeatStatus4Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus4Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus4ParamsWithTimeout creates a new THSRAPIAvailableSeatStatus4Params object
+// with the default values initialized, and the ability to set a timeout on a request
+func NewTHSRAPIAvailableSeatStatus4ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus4Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus4Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: timeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus4ParamsWithContext creates a new THSRAPIAvailableSeatStatus4Params object
+// with the default values initialized, and the ability to set a context for a request
+func NewTHSRAPIAvailableSeatStatus4ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatus4Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus4Params{
+ DollarTop: &dollarTopDefault,
+
+ Context: ctx,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus4ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatus4Params object
+// with the default values initialized, and the ability to set a custom HTTPClient for a request
+func NewTHSRAPIAvailableSeatStatus4ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus4Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatus4Params{
+ DollarTop: &dollarTopDefault,
+ HTTPClient: client,
+ }
+}
+
+/*THSRAPIAvailableSeatStatus4Params contains all the parameters to send to the API endpoint
+for the t h s r Api available seat status 4 operation typically these are written to a http.Request
+*/
+type THSRAPIAvailableSeatStatus4Params struct {
+
+ /*DollarCount
+ 查詢數量
+
+ */
+ DollarCount *bool
+ /*DollarFilter
+ 過濾
+
+ */
+ DollarFilter *string
+ /*DollarFormat
+ 指定來源格式
+
+ */
+ DollarFormat string
+ /*DollarOrderby
+ 排序
+
+ */
+ DollarOrderby *string
+ /*DollarSelect
+ 挑選
+
+ */
+ DollarSelect *string
+ /*DollarSkip
+ 跳過前幾筆
+
+ */
+ DollarSkip *string
+ /*DollarTop
+ 取前幾筆
+
+ */
+ DollarTop *int64
+ /*DestinationStationID
+ 指定迄止車站
+
+ */
+ DestinationStationID string
+ /*OriginStationID
+ 指定起始車站
+
+ */
+ OriginStationID string
+ /*TrainDate
+ 欲查詢車次的日期(格式: yyyy-MM-dd)
+
+ */
+ TrainDate string
+ /*TrainNo
+ 欲查詢車次號碼(格式: yyyy-MM-dd)
+
+ */
+ TrainNo string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithTimeout adds the timeout to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus4Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatus4Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus4Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDollarCount adds the dollarCount to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarCount(dollarCount)
+ return o
+}
+
+// SetDollarCount adds the dollarCount to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarCount(dollarCount *bool) {
+ o.DollarCount = dollarCount
+}
+
+// WithDollarFilter adds the dollarFilter to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarFilter(dollarFilter)
+ return o
+}
+
+// SetDollarFilter adds the dollarFilter to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarFilter(dollarFilter *string) {
+ o.DollarFilter = dollarFilter
+}
+
+// WithDollarFormat adds the dollarFormat to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarFormat(dollarFormat)
+ return o
+}
+
+// SetDollarFormat adds the dollarFormat to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarFormat(dollarFormat string) {
+ o.DollarFormat = dollarFormat
+}
+
+// WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarOrderby(dollarOrderby)
+ return o
+}
+
+// SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarOrderby(dollarOrderby *string) {
+ o.DollarOrderby = dollarOrderby
+}
+
+// WithDollarSelect adds the dollarSelect to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarSelect(dollarSelect)
+ return o
+}
+
+// SetDollarSelect adds the dollarSelect to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarSelect(dollarSelect *string) {
+ o.DollarSelect = dollarSelect
+}
+
+// WithDollarSkip adds the dollarSkip to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarSkip(dollarSkip)
+ return o
+}
+
+// SetDollarSkip adds the dollarSkip to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarSkip(dollarSkip *string) {
+ o.DollarSkip = dollarSkip
+}
+
+// WithDollarTop adds the dollarTop to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDollarTop(dollarTop)
+ return o
+}
+
+// SetDollarTop adds the dollarTop to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDollarTop(dollarTop *int64) {
+ o.DollarTop = dollarTop
+}
+
+// WithDestinationStationID adds the destinationStationID to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetDestinationStationID(destinationStationID)
+ return o
+}
+
+// SetDestinationStationID adds the destinationStationId to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetDestinationStationID(destinationStationID string) {
+ o.DestinationStationID = destinationStationID
+}
+
+// WithOriginStationID adds the originStationID to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetOriginStationID(originStationID)
+ return o
+}
+
+// SetOriginStationID adds the originStationId to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetOriginStationID(originStationID string) {
+ o.OriginStationID = originStationID
+}
+
+// WithTrainDate adds the trainDate to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithTrainDate(trainDate string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetTrainDate(trainDate)
+ return o
+}
+
+// SetTrainDate adds the trainDate to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetTrainDate(trainDate string) {
+ o.TrainDate = trainDate
+}
+
+// WithTrainNo adds the trainNo to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) WithTrainNo(trainNo string) *THSRAPIAvailableSeatStatus4Params {
+ o.SetTrainNo(trainNo)
+ return o
+}
+
+// SetTrainNo adds the trainNo to the t h s r Api available seat status 4 params
+func (o *THSRAPIAvailableSeatStatus4Params) SetTrainNo(trainNo string) {
+ o.TrainNo = trainNo
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *THSRAPIAvailableSeatStatus4Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.DollarCount != nil {
+
+ // query param $count
+ var qrDollarCount bool
+ if o.DollarCount != nil {
+ qrDollarCount = *o.DollarCount
+ }
+ qDollarCount := swag.FormatBool(qrDollarCount)
+ if qDollarCount != "" {
+ if err := r.SetQueryParam("$count", qDollarCount); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarFilter != nil {
+
+ // query param $filter
+ var qrDollarFilter string
+ if o.DollarFilter != nil {
+ qrDollarFilter = *o.DollarFilter
+ }
+ qDollarFilter := qrDollarFilter
+ if qDollarFilter != "" {
+ if err := r.SetQueryParam("$filter", qDollarFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // query param $format
+ qrDollarFormat := o.DollarFormat
+ qDollarFormat := qrDollarFormat
+ if qDollarFormat != "" {
+ if err := r.SetQueryParam("$format", qDollarFormat); err != nil {
+ return err
+ }
+ }
+
+ if o.DollarOrderby != nil {
+
+ // query param $orderby
+ var qrDollarOrderby string
+ if o.DollarOrderby != nil {
+ qrDollarOrderby = *o.DollarOrderby
+ }
+ qDollarOrderby := qrDollarOrderby
+ if qDollarOrderby != "" {
+ if err := r.SetQueryParam("$orderby", qDollarOrderby); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSelect != nil {
+
+ // query param $select
+ var qrDollarSelect string
+ if o.DollarSelect != nil {
+ qrDollarSelect = *o.DollarSelect
+ }
+ qDollarSelect := qrDollarSelect
+ if qDollarSelect != "" {
+ if err := r.SetQueryParam("$select", qDollarSelect); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarSkip != nil {
+
+ // query param $skip
+ var qrDollarSkip string
+ if o.DollarSkip != nil {
+ qrDollarSkip = *o.DollarSkip
+ }
+ qDollarSkip := qrDollarSkip
+ if qDollarSkip != "" {
+ if err := r.SetQueryParam("$skip", qDollarSkip); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ if o.DollarTop != nil {
+
+ // query param $top
+ var qrDollarTop int64
+ if o.DollarTop != nil {
+ qrDollarTop = *o.DollarTop
+ }
+ qDollarTop := swag.FormatInt64(qrDollarTop)
+ if qDollarTop != "" {
+ if err := r.SetQueryParam("$top", qDollarTop); err != nil {
+ return err
+ }
+ }
+
+ }
+
+ // path param DestinationStationID
+ if err := r.SetPathParam("DestinationStationID", o.DestinationStationID); err != nil {
+ return err
+ }
+
+ // path param OriginStationID
+ if err := r.SetPathParam("OriginStationID", o.OriginStationID); err != nil {
+ return err
+ }
+
+ // path param TrainDate
+ if err := r.SetPathParam("TrainDate", o.TrainDate); err != nil {
+ return err
+ }
+
+ // path param TrainNo
+ if err := r.SetPathParam("TrainNo", o.TrainNo); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_responses.go
new file mode 100644
index 00000000..dc924e9f
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status4_responses.go
@@ -0,0 +1,69 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package t_h_s_r
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/minchao/go-ptx/rail/v2/models"
+)
+
+// THSRAPIAvailableSeatStatus4Reader is a Reader for the THSRAPIAvailableSeatStatus4 structure.
+type THSRAPIAvailableSeatStatus4Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *THSRAPIAvailableSeatStatus4Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewTHSRAPIAvailableSeatStatus4OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatus4OK creates a THSRAPIAvailableSeatStatus4OK with default headers values
+func NewTHSRAPIAvailableSeatStatus4OK() *THSRAPIAvailableSeatStatus4OK {
+ return &THSRAPIAvailableSeatStatus4OK{}
+}
+
+/*THSRAPIAvailableSeatStatus4OK handles this case with default header values.
+
+Success
+*/
+type THSRAPIAvailableSeatStatus4OK struct {
+ Payload *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
+}
+
+func (o *THSRAPIAvailableSeatStatus4OK) Error() string {
+ return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}/TrainNo/{TrainNo}][%d] tHSRApiAvailableSeatStatus4OK %+v", 200, o.Payload)
+}
+
+func (o *THSRAPIAvailableSeatStatus4OK) GetPayload() *models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat {
+ return o.Payload
+}
+
+func (o *THSRAPIAvailableSeatStatus4OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_parameters.go
index 69c2da7d..5a9b620d 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_parameters.go
@@ -77,7 +77,7 @@ type THSRAPIAvailableSeatStatusListStation1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *THSRAPIAvailableSeatStatusListStation1Params) SetHTTPClient(client *htt
}
// WithDollarCount adds the dollarCount to the t h s r Api available seat status list station 1 params
-func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatusListStation1Params {
+func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStation1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the t h s r Api available seat status list station 1 params
-func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarCount(dollarCount *string) {
+func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *THSRAPIAvailableSeatStatusListStation1Params) WriteToRequest(r runtime.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_responses.go
index 3f1d0fd1..840d8ffe 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station1_responses.go
@@ -42,23 +42,23 @@ func NewTHSRAPIAvailableSeatStatusListStation1OK() *THSRAPIAvailableSeatStatusLi
/*THSRAPIAvailableSeatStatusListStation1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIAvailableSeatStatusListStation1OK struct {
- Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat
+ Payload *models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat
}
func (o *THSRAPIAvailableSeatStatusListStation1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatusList/{StationID}][%d] tHSRApiAvailableSeatStatusListStation1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIAvailableSeatStatusListStation1OK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat {
+func (o *THSRAPIAvailableSeatStatusListStation1OK) GetPayload() *models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat {
return o.Payload
}
func (o *THSRAPIAvailableSeatStatusListStation1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat)
+ o.Payload = new(models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_parameters.go
index 904f9371..d2b337ef 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_parameters.go
@@ -77,7 +77,7 @@ type THSRAPIAvailableSeatStatusListStationParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *THSRAPIAvailableSeatStatusListStationParams) SetHTTPClient(client *http
}
// WithDollarCount adds the dollarCount to the t h s r Api available seat status list station params
-func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatusListStationParams {
+func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStationParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the t h s r Api available seat status list station params
-func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarCount(dollarCount *string) {
+func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *THSRAPIAvailableSeatStatusListStationParams) WriteToRequest(r runtime.C
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_responses.go
index 6e67bfe4..44cfa977 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_station_responses.go
@@ -42,23 +42,23 @@ func NewTHSRAPIAvailableSeatStatusListStationOK() *THSRAPIAvailableSeatStatusLis
/*THSRAPIAvailableSeatStatusListStationOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIAvailableSeatStatusListStationOK struct {
- Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat
+ Payload *models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat
}
func (o *THSRAPIAvailableSeatStatusListStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatusList][%d] tHSRApiAvailableSeatStatusListStationOK %+v", 200, o.Payload)
}
-func (o *THSRAPIAvailableSeatStatusListStationOK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat {
+func (o *THSRAPIAvailableSeatStatusListStationOK) GetPayload() *models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat {
return o.Payload
}
func (o *THSRAPIAvailableSeatStatusListStationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat)
+ o.Payload = new(models.PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_parameters.go
index 52a3cf81..9c837eec 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_parameters.go
@@ -77,7 +77,7 @@ type THSRAPIAvailableSeatStatusParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *THSRAPIAvailableSeatStatusParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the t h s r Api available seat status params
-func (o *THSRAPIAvailableSeatStatusParams) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatusParams {
+func (o *THSRAPIAvailableSeatStatusParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the t h s r Api available seat status params
-func (o *THSRAPIAvailableSeatStatusParams) SetDollarCount(dollarCount *string) {
+func (o *THSRAPIAvailableSeatStatusParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *THSRAPIAvailableSeatStatusParams) WriteToRequest(r runtime.ClientReques
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_responses.go
index 9eb3ac56..11e5433e 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_responses.go
@@ -42,23 +42,23 @@ func NewTHSRAPIAvailableSeatStatusOK() *THSRAPIAvailableSeatStatusOK {
/*THSRAPIAvailableSeatStatusOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIAvailableSeatStatusOK struct {
- Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
+ Payload *models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat
}
func (o *THSRAPIAvailableSeatStatusOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatus/Train/Leg/Today][%d] tHSRApiAvailableSeatStatusOK %+v", 200, o.Payload)
}
-func (o *THSRAPIAvailableSeatStatusOK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat {
+func (o *THSRAPIAvailableSeatStatusOK) GetPayload() *models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat {
return o.Payload
}
func (o *THSRAPIAvailableSeatStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat)
+ o.Payload = new(models.PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_responses.go
index ff10f666..1353c839 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTimetable1OK() *THSRAPIDailyTimetable1OK {
/*THSRAPIDailyTimetable1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTimetable1OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
func (o *THSRAPIDailyTimetable1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/Today/TrainNo/{TrainNo}][%d] tHSRApiDailyTimetable1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTimetable1OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable {
+func (o *THSRAPIDailyTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_responses.go
index 40fc41ed..1fc6a477 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTimetable2OK() *THSRAPIDailyTimetable2OK {
/*THSRAPIDailyTimetable2OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTimetable2OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
func (o *THSRAPIDailyTimetable2OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/TrainDate/{TrainDate}][%d] tHSRApiDailyTimetable2OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTimetable2OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable {
+func (o *THSRAPIDailyTimetable2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_responses.go
index 648426f9..de631b69 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTimetable3OK() *THSRAPIDailyTimetable3OK {
/*THSRAPIDailyTimetable3OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTimetable3OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
func (o *THSRAPIDailyTimetable3OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}][%d] tHSRApiDailyTimetable3OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTimetable3OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable {
+func (o *THSRAPIDailyTimetable3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_responses.go
index cc32313d..f5703374 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTimetableOK() *THSRAPIDailyTimetableOK {
/*THSRAPIDailyTimetableOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
func (o *THSRAPIDailyTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/Today][%d] tHSRApiDailyTimetableOK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTimetable {
+func (o *THSRAPIDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_responses.go
index 1852b83e..df441c38 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTrainInfo1OK() *THSRAPIDailyTrainInfo1OK {
/*THSRAPIDailyTrainInfo1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTrainInfo1OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
func (o *THSRAPIDailyTrainInfo1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTrainInfo/Today/TrainNo/{TrainNo}][%d] tHSRApiDailyTrainInfo1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTrainInfo1OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo {
+func (o *THSRAPIDailyTrainInfo1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_responses.go
index 68b43345..b23fe40f 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTrainInfo2OK() *THSRAPIDailyTrainInfo2OK {
/*THSRAPIDailyTrainInfo2OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTrainInfo2OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
func (o *THSRAPIDailyTrainInfo2OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTrainInfo/TrainDate/{TrainDate}][%d] tHSRApiDailyTrainInfo2OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTrainInfo2OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo {
+func (o *THSRAPIDailyTrainInfo2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_responses.go
index bd9c2d7d..4c96c669 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTrainInfo3OK() *THSRAPIDailyTrainInfo3OK {
/*THSRAPIDailyTrainInfo3OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTrainInfo3OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
func (o *THSRAPIDailyTrainInfo3OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}][%d] tHSRApiDailyTrainInfo3OK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTrainInfo3OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo {
+func (o *THSRAPIDailyTrainInfo3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_responses.go
index e85e2d65..6585a9ca 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIDailyTrainInfoOK() *THSRAPIDailyTrainInfoOK {
/*THSRAPIDailyTrainInfoOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIDailyTrainInfoOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
func (o *THSRAPIDailyTrainInfoOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTrainInfo/Today][%d] tHSRApiDailyTrainInfoOK %+v", 200, o.Payload)
}
-func (o *THSRAPIDailyTrainInfoOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailDailyTrainInfo {
+func (o *THSRAPIDailyTrainInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_responses.go
index 14708244..b6aed931 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIGeneralTimetable1OK() *THSRAPIGeneralTimetable1OK {
/*THSRAPIGeneralTimetable1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIGeneralTimetable1OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailGeneralTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
}
func (o *THSRAPIGeneralTimetable1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/GeneralTimetable/TrainNo/{TrainNo}][%d] tHSRApiGeneralTimetable1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIGeneralTimetable1OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailGeneralTimetable {
+func (o *THSRAPIGeneralTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_responses.go
index 2e263997..38c8ae19 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIGeneralTimetableOK() *THSRAPIGeneralTimetableOK {
/*THSRAPIGeneralTimetableOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIGeneralTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailGeneralTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
}
func (o *THSRAPIGeneralTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/GeneralTimetable][%d] tHSRApiGeneralTimetableOK %+v", 200, o.Payload)
}
-func (o *THSRAPIGeneralTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailGeneralTimetable {
+func (o *THSRAPIGeneralTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_news_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_news_responses.go
index 22b12c6a..04421e57 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_news_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_news_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPINewsOK() *THSRAPINewsOK {
/*THSRAPINewsOK handles this case with default header values.
-OK
+Success
*/
type THSRAPINewsOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRNews
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRNews
}
func (o *THSRAPINewsOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/News][%d] tHSRApiNewsOK %+v", 200, o.Payload)
}
-func (o *THSRAPINewsOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRNews {
+func (o *THSRAPINewsOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRNews {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_responses.go
index e060cca2..615721ab 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIODDailyTimetableOK() *THSRAPIODDailyTimetableOK {
/*THSRAPIODDailyTimetableOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIODDailyTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailODDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable
}
func (o *THSRAPIODDailyTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}][%d] tHSRApiODDailyTimetableOK %+v", 200, o.Payload)
}
-func (o *THSRAPIODDailyTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailODDailyTimetable {
+func (o *THSRAPIODDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_responses.go
index 46fb84fc..5efde095 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIODFare1OK() *THSRAPIODFare1OK {
/*THSRAPIODFare1OK handles this case with default header values.
-OK
+Success
*/
type THSRAPIODFare1OK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailODFare
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
}
func (o *THSRAPIODFare1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/ODFare/{OriginStationID}/to/{DestinationStationID}][%d] tHSRApiODFare1OK %+v", 200, o.Payload)
}
-func (o *THSRAPIODFare1OK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailODFare {
+func (o *THSRAPIODFare1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODFare {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_responses.go
index 24a23b3a..c53ebc38 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIODFareOK() *THSRAPIODFareOK {
/*THSRAPIODFareOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIODFareOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailODFare
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
}
func (o *THSRAPIODFareOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/ODFare][%d] tHSRApiODFareOK %+v", 200, o.Payload)
}
-func (o *THSRAPIODFareOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailODFare {
+func (o *THSRAPIODFareOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODFare {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_responses.go
index 048e4362..282985d9 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIShapeOK() *THSRAPIShapeOK {
/*THSRAPIShapeOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIShapeOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRTHSRShape
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRTHSRShape
}
func (o *THSRAPIShapeOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/Shape][%d] tHSRApiShapeOK %+v", 200, o.Payload)
}
-func (o *THSRAPIShapeOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRTHSRShape {
+func (o *THSRAPIShapeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRTHSRShape {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_responses.go
index 07428c2a..90296ea9 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIStationExitOK() *THSRAPIStationExitOK {
/*THSRAPIStationExitOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIStationExitOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRStationExit
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRStationExit
}
func (o *THSRAPIStationExitOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/StationExit][%d] tHSRApiStationExitOK %+v", 200, o.Payload)
}
-func (o *THSRAPIStationExitOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRStationExit {
+func (o *THSRAPIStationExitOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRStationExit {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_responses.go
index 0499a235..e169507f 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIStationOK() *THSRAPIStationOK {
/*THSRAPIStationOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIStationOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailStation
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailStation
}
func (o *THSRAPIStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/Station][%d] tHSRApiStationOK %+v", 200, o.Payload)
}
-func (o *THSRAPIStationOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailStation {
+func (o *THSRAPIStationOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailStation {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_responses.go
index 5f999192..72d010c2 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTHSRAPIStationTimetableOK() *THSRAPIStationTimetableOK {
/*THSRAPIStationTimetableOK handles this case with default header values.
-OK
+Success
*/
type THSRAPIStationTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRRailStationTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2THSRRailStationTimetable
}
func (o *THSRAPIStationTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/THSR/DailyTimetable/Station/{StationID}/{TrainDate}][%d] tHSRApiStationTimetableOK %+v", 200, o.Payload)
}
-func (o *THSRAPIStationTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRRailStationTimetable {
+func (o *THSRAPIStationTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailStationTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_h_s_r/thsr_client.go b/rail/v2/client/t_h_s_r/thsr_client.go
index c5285780..c43d0cfa 100644
--- a/rail/v2/client/t_h_s_r/thsr_client.go
+++ b/rail/v2/client/t_h_s_r/thsr_client.go
@@ -37,6 +37,12 @@ type ClientService interface {
THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1Params) (*THSRAPIAvailableSeatStatus1OK, error)
+ THSRAPIAvailableSeatStatus2(params *THSRAPIAvailableSeatStatus2Params) (*THSRAPIAvailableSeatStatus2OK, error)
+
+ THSRAPIAvailableSeatStatus3(params *THSRAPIAvailableSeatStatus3Params) (*THSRAPIAvailableSeatStatus3OK, error)
+
+ THSRAPIAvailableSeatStatus4(params *THSRAPIAvailableSeatStatus4Params) (*THSRAPIAvailableSeatStatus4OK, error)
+
THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*THSRAPIDailyTimetableOK, error)
THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*THSRAPIDailyTimetable1OK, error)
@@ -91,7 +97,7 @@ func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlert
ID: "THSRApi_AlertInfo",
Method: "GET",
PathPattern: "/v2/Rail/THSR/AlertInfo",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -116,8 +122,7 @@ func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlert
THSRAPIAvailableSeatStatus 開發用測試版s 取得當天對號座即時剩餘位資料 原始 列車區段 leg角度
取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)
-- 高鐵對號座即時剩餘位(列車區段Leg角度)之資料使用注意事項([連結](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/api-zi-liao-shi-yong-zhu-yi-shi-xiang/rail))
-- 當日(D)之更新頻率為每10分鐘
+- (更新頻率為10分鐘)
- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
*/
func (a *Client) THSRAPIAvailableSeatStatus(params *THSRAPIAvailableSeatStatusParams) (*THSRAPIAvailableSeatStatusOK, error) {
@@ -130,7 +135,7 @@ func (a *Client) THSRAPIAvailableSeatStatus(params *THSRAPIAvailableSeatStatusPa
ID: "THSRApi_AvailableSeatStatus",
Method: "GET",
PathPattern: "/v2/Rail/THSR/AvailableSeatStatus/Train/Leg/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -166,7 +171,7 @@ func (a *Client) THSRAPIAvailableSeatStatusListStation(params *THSRAPIAvailableS
ID: "THSRApi_AvailableSeatStatusList_Station",
Method: "GET",
PathPattern: "/v2/Rail/THSR/AvailableSeatStatusList",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -202,7 +207,7 @@ func (a *Client) THSRAPIAvailableSeatStatusListStation1(params *THSRAPIAvailable
ID: "THSRApi_AvailableSeatStatusList_Station_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/AvailableSeatStatusList/{StationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -227,8 +232,7 @@ func (a *Client) THSRAPIAvailableSeatStatusListStation1(params *THSRAPIAvailable
THSRAPIAvailableSeatStatus1 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 原始 列車區段 leg角度
取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)
-- 高鐵對號座即時剩餘位(列車區段Leg角度)之資料使用注意事項([連結](https://motc-ptx-api-documentation.gitbook.io/motc-ptx-api-documentation/api-zi-liao-shi-yong-zhu-yi-shi-xiang/rail))
-- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時
+- (更新頻率為每日的10、16、22時)
- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
*/
func (a *Client) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1Params) (*THSRAPIAvailableSeatStatus1OK, error) {
@@ -241,7 +245,7 @@ func (a *Client) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1
ID: "THSRApi_AvailableSeatStatus_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/AvailableSeatStatus/Train/Leg/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -262,6 +266,123 @@ func (a *Client) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1
panic(msg)
}
+/*
+ THSRAPIAvailableSeatStatus2 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 加值型列車起迄段 o d角度
+
+ 取得指定[日期]對號座即時剩餘位資料(加值型列車起迄段OD角度)
+- 當日(D)之更新頻率為每10分鐘
+- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時
+- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
+*/
+func (a *Client) THSRAPIAvailableSeatStatus2(params *THSRAPIAvailableSeatStatus2Params) (*THSRAPIAvailableSeatStatus2OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewTHSRAPIAvailableSeatStatus2Params()
+ }
+
+ result, err := a.transport.Submit(&runtime.ClientOperation{
+ ID: "THSRApi_AvailableSeatStatus_2",
+ Method: "GET",
+ PathPattern: "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/TrainDate/{TrainDate}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &THSRAPIAvailableSeatStatus2Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ })
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*THSRAPIAvailableSeatStatus2OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for THSRApi_AvailableSeatStatus_2: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ THSRAPIAvailableSeatStatus3 開發用測試版s 取得指定 日期 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度
+
+ 取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)
+- 當日(D)之更新頻率為每10分鐘
+- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時
+- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
+*/
+func (a *Client) THSRAPIAvailableSeatStatus3(params *THSRAPIAvailableSeatStatus3Params) (*THSRAPIAvailableSeatStatus3OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewTHSRAPIAvailableSeatStatus3Params()
+ }
+
+ result, err := a.transport.Submit(&runtime.ClientOperation{
+ ID: "THSRApi_AvailableSeatStatus_3",
+ Method: "GET",
+ PathPattern: "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &THSRAPIAvailableSeatStatus3Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ })
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*THSRAPIAvailableSeatStatus3OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for THSRApi_AvailableSeatStatus_3: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ THSRAPIAvailableSeatStatus4 開發用測試版s 取得指定 日期 車次 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度
+
+ 取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)
+- 當日(D)之更新頻率為每10分鐘
+- 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時
+- **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
+*/
+func (a *Client) THSRAPIAvailableSeatStatus4(params *THSRAPIAvailableSeatStatus4Params) (*THSRAPIAvailableSeatStatus4OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewTHSRAPIAvailableSeatStatus4Params()
+ }
+
+ result, err := a.transport.Submit(&runtime.ClientOperation{
+ ID: "THSRApi_AvailableSeatStatus_4",
+ Method: "GET",
+ PathPattern: "/v2/Rail/THSR/AvailableSeatStatus/Train/OD/{OriginStationID}/to/{DestinationStationID}/TrainDate/{TrainDate}/TrainNo/{TrainNo}",
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &THSRAPIAvailableSeatStatus4Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ })
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*THSRAPIAvailableSeatStatus4OK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for THSRApi_AvailableSeatStatus_4: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
/*
THSRAPIDailyTimetable 取得當天所有車次的時刻表資料s
@@ -277,7 +398,7 @@ func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*TH
ID: "THSRApi_DailyTimetable",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -313,7 +434,7 @@ func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*
ID: "THSRApi_DailyTimetable_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Today/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -349,7 +470,7 @@ func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params) (*
ID: "THSRApi_DailyTimetable_2",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -385,7 +506,7 @@ func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params) (*
ID: "THSRApi_DailyTimetable_3",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -421,7 +542,7 @@ func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams) (*TH
ID: "THSRApi_DailyTrainInfo",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -457,7 +578,7 @@ func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params) (*
ID: "THSRApi_DailyTrainInfo_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/Today/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -493,7 +614,7 @@ func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params) (*
ID: "THSRApi_DailyTrainInfo_2",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -529,7 +650,7 @@ func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params) (*
ID: "THSRApi_DailyTrainInfo_3",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -565,7 +686,7 @@ func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams)
ID: "THSRApi_GeneralTimetable",
Method: "GET",
PathPattern: "/v2/Rail/THSR/GeneralTimetable",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -601,7 +722,7 @@ func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params
ID: "THSRApi_GeneralTimetable_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/GeneralTimetable/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -637,7 +758,7 @@ func (a *Client) THSRAPINews(params *THSRAPINewsParams) (*THSRAPINewsOK, error)
ID: "THSRApi_News",
Method: "GET",
PathPattern: "/v2/Rail/THSR/News",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -673,7 +794,7 @@ func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams)
ID: "THSRApi_ODDailyTimetable",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -709,7 +830,7 @@ func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams) (*THSRAPIODFareOK, e
ID: "THSRApi_ODFare",
Method: "GET",
PathPattern: "/v2/Rail/THSR/ODFare",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -745,7 +866,7 @@ func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params) (*THSRAPIODFare1OK
ID: "THSRApi_ODFare_1",
Method: "GET",
PathPattern: "/v2/Rail/THSR/ODFare/{OriginStationID}/to/{DestinationStationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -781,7 +902,7 @@ func (a *Client) THSRAPIShape(params *THSRAPIShapeParams) (*THSRAPIShapeOK, erro
ID: "THSRApi_Shape",
Method: "GET",
PathPattern: "/v2/Rail/THSR/Shape",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -817,7 +938,7 @@ func (a *Client) THSRAPIStation(params *THSRAPIStationParams) (*THSRAPIStationOK
ID: "THSRApi_Station",
Method: "GET",
PathPattern: "/v2/Rail/THSR/Station",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -853,7 +974,7 @@ func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams) (*THSRAPIS
ID: "THSRApi_StationExit",
Method: "GET",
PathPattern: "/v2/Rail/THSR/StationExit",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -889,7 +1010,7 @@ func (a *Client) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams)
ID: "THSRApi_StationTimetable",
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Station/{StationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_responses.go
index 63593c0f..b83cdedd 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTimetable1OK() *TRAAPIDailyTimetable1OK {
/*TRAAPIDailyTimetable1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTimetable1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable
}
func (o *TRAAPIDailyTimetable1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/Today/TrainNo/{TrainNo}][%d] tRAApiDailyTimetable1OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTimetable1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTimetable {
+func (o *TRAAPIDailyTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_responses.go
index 9281d9e2..5d3a0903 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTimetable2OK() *TRAAPIDailyTimetable2OK {
/*TRAAPIDailyTimetable2OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTimetable2OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable
}
func (o *TRAAPIDailyTimetable2OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/TrainDate/{TrainDate}][%d] tRAApiDailyTimetable2OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTimetable2OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTimetable {
+func (o *TRAAPIDailyTimetable2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_responses.go
index b0f08046..62fb295c 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTimetable3OK() *TRAAPIDailyTimetable3OK {
/*TRAAPIDailyTimetable3OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTimetable3OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable
}
func (o *TRAAPIDailyTimetable3OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}][%d] tRAApiDailyTimetable3OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTimetable3OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTimetable {
+func (o *TRAAPIDailyTimetable3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_responses.go
index e6a21f1e..106f53ae 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTimetableOK() *TRAAPIDailyTimetableOK {
/*TRAAPIDailyTimetableOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable
}
func (o *TRAAPIDailyTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/Today][%d] tRAApiDailyTimetableOK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTimetable {
+func (o *TRAAPIDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_responses.go
index 40e5d623..4dfbda97 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTrainInfo1OK() *TRAAPIDailyTrainInfo1OK {
/*TRAAPIDailyTrainInfo1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTrainInfo1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo
}
func (o *TRAAPIDailyTrainInfo1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTrainInfo/Today/TrainNo/{TrainNo}][%d] tRAApiDailyTrainInfo1OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTrainInfo1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo {
+func (o *TRAAPIDailyTrainInfo1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_responses.go
index 2631078c..1d6d6a41 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTrainInfo2OK() *TRAAPIDailyTrainInfo2OK {
/*TRAAPIDailyTrainInfo2OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTrainInfo2OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo
}
func (o *TRAAPIDailyTrainInfo2OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTrainInfo/TrainDate/{TrainDate}][%d] tRAApiDailyTrainInfo2OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTrainInfo2OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo {
+func (o *TRAAPIDailyTrainInfo2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_responses.go
index 38e2a17e..13476601 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTrainInfo3OK() *TRAAPIDailyTrainInfo3OK {
/*TRAAPIDailyTrainInfo3OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTrainInfo3OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo
}
func (o *TRAAPIDailyTrainInfo3OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}][%d] tRAApiDailyTrainInfo3OK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTrainInfo3OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo {
+func (o *TRAAPIDailyTrainInfo3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_responses.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_responses.go
index 194486b1..69f4035d 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIDailyTrainInfoOK() *TRAAPIDailyTrainInfoOK {
/*TRAAPIDailyTrainInfoOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIDailyTrainInfoOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo
}
func (o *TRAAPIDailyTrainInfoOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTrainInfo/Today][%d] tRAApiDailyTrainInfoOK %+v", 200, o.Payload)
}
-func (o *TRAAPIDailyTrainInfoOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailDailyTrainInfo {
+func (o *TRAAPIDailyTrainInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_responses.go
index 5dc13be9..8ec934bb 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIGeneralTimetable1OK() *TRAAPIGeneralTimetable1OK {
/*TRAAPIGeneralTimetable1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIGeneralTimetable1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailGeneralTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailGeneralTimetable
}
func (o *TRAAPIGeneralTimetable1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/GeneralTimetable/TrainNo/{TrainNo}][%d] tRAApiGeneralTimetable1OK %+v", 200, o.Payload)
}
-func (o *TRAAPIGeneralTimetable1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailGeneralTimetable {
+func (o *TRAAPIGeneralTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailGeneralTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_timetable_responses.go b/rail/v2/client/t_r_a/t_r_a_api_general_timetable_responses.go
index d2a070d5..1e5cc777 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_timetable_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIGeneralTimetableOK() *TRAAPIGeneralTimetableOK {
/*TRAAPIGeneralTimetableOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIGeneralTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailGeneralTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailGeneralTimetable
}
func (o *TRAAPIGeneralTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/GeneralTimetable][%d] tRAApiGeneralTimetableOK %+v", 200, o.Payload)
}
-func (o *TRAAPIGeneralTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailGeneralTimetable {
+func (o *TRAAPIGeneralTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailGeneralTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_responses.go
index 7e533133..5227b819 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIGeneralTrainInfo1OK() *TRAAPIGeneralTrainInfo1OK {
/*TRAAPIGeneralTrainInfo1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIGeneralTrainInfo1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailGeneralTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo
}
func (o *TRAAPIGeneralTrainInfo1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/GeneralTrainInfo/TrainNo/{TrainNo}][%d] tRAApiGeneralTrainInfo1OK %+v", 200, o.Payload)
}
-func (o *TRAAPIGeneralTrainInfo1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailGeneralTrainInfo {
+func (o *TRAAPIGeneralTrainInfo1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_train_info_responses.go b/rail/v2/client/t_r_a/t_r_a_api_general_train_info_responses.go
index fb78a0e0..091c370b 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_train_info_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_train_info_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIGeneralTrainInfoOK() *TRAAPIGeneralTrainInfoOK {
/*TRAAPIGeneralTrainInfoOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIGeneralTrainInfoOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailGeneralTrainInfo
+ Payload []*models.PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo
}
func (o *TRAAPIGeneralTrainInfoOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/GeneralTrainInfo][%d] tRAApiGeneralTrainInfoOK %+v", 200, o.Payload)
}
-func (o *TRAAPIGeneralTrainInfoOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailGeneralTrainInfo {
+func (o *TRAAPIGeneralTrainInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_line_responses.go b/rail/v2/client/t_r_a/t_r_a_api_line_responses.go
index 4e146290..0da014eb 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_line_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_line_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPILineOK() *TRAAPILineOK {
/*TRAAPILineOK handles this case with default header values.
-OK
+Success
*/
type TRAAPILineOK struct {
- Payload []*models.ServiceDTOVersion2RailTRALine
+ Payload []*models.PTXServiceDTORailSpecificationV2TRALine
}
func (o *TRAAPILineOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/Line][%d] tRAApiLineOK %+v", 200, o.Payload)
}
-func (o *TRAAPILineOK) GetPayload() []*models.ServiceDTOVersion2RailTRALine {
+func (o *TRAAPILineOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRALine {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_board1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_live_board1_responses.go
index 7d1a9df2..a0c05147 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_board1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_board1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPILiveBoard1OK() *TRAAPILiveBoard1OK {
/*TRAAPILiveBoard1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPILiveBoard1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailLiveBoard
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailLiveBoard
}
func (o *TRAAPILiveBoard1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/LiveBoard/Station/{StationID}][%d] tRAApiLiveBoard1OK %+v", 200, o.Payload)
}
-func (o *TRAAPILiveBoard1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailLiveBoard {
+func (o *TRAAPILiveBoard1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailLiveBoard {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_board_responses.go b/rail/v2/client/t_r_a/t_r_a_api_live_board_responses.go
index 96414b6e..f27d053f 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_board_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_board_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPILiveBoardOK() *TRAAPILiveBoardOK {
/*TRAAPILiveBoardOK handles this case with default header values.
-OK
+Success
*/
type TRAAPILiveBoardOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailLiveBoard
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailLiveBoard
}
func (o *TRAAPILiveBoardOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/LiveBoard][%d] tRAApiLiveBoardOK %+v", 200, o.Payload)
}
-func (o *TRAAPILiveBoardOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailLiveBoard {
+func (o *TRAAPILiveBoardOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailLiveBoard {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_responses.go b/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_responses.go
index 937e6ab2..135da173 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPILiveTrainDelayOK() *TRAAPILiveTrainDelayOK {
/*TRAAPILiveTrainDelayOK handles this case with default header values.
-OK
+Success
*/
type TRAAPILiveTrainDelayOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailLiveTrainDelay
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay
}
func (o *TRAAPILiveTrainDelayOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/LiveTrainDelay][%d] tRAApiLiveTrainDelayOK %+v", 200, o.Payload)
}
-func (o *TRAAPILiveTrainDelayOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailLiveTrainDelay {
+func (o *TRAAPILiveTrainDelayOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_network_responses.go b/rail/v2/client/t_r_a/t_r_a_api_network_responses.go
index fa536e90..afa1fbe3 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_network_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_network_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPINetworkOK() *TRAAPINetworkOK {
/*TRAAPINetworkOK handles this case with default header values.
-OK
+Success
*/
type TRAAPINetworkOK struct {
- Payload []*models.ServiceDTOVersion2RailTRANetwork
+ Payload []*models.PTXServiceDTORailSpecificationV2TRANetwork
}
func (o *TRAAPINetworkOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/Network][%d] tRAApiNetworkOK %+v", 200, o.Payload)
}
-func (o *TRAAPINetworkOK) GetPayload() []*models.ServiceDTOVersion2RailTRANetwork {
+func (o *TRAAPINetworkOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRANetwork {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_responses.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_responses.go
index faa03d9a..bba221da 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIODDailyTimetableOK() *TRAAPIODDailyTimetableOK {
/*TRAAPIODDailyTimetableOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIODDailyTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailODDailyTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailODDailyTimetable
}
func (o *TRAAPIODDailyTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}][%d] tRAApiODDailyTimetableOK %+v", 200, o.Payload)
}
-func (o *TRAAPIODDailyTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailODDailyTimetable {
+func (o *TRAAPIODDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailODDailyTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_responses.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_responses.go
index 04cf70a2..ba15f119 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIODFareStation1OK() *TRAAPIODFareStation1OK {
/*TRAAPIODFareStation1OK handles this case with default header values.
-OK
+Success
*/
type TRAAPIODFareStation1OK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailODFare
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailODFare
}
func (o *TRAAPIODFareStation1OK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/ODFare][%d] tRAApiODFareStation1OK %+v", 200, o.Payload)
}
-func (o *TRAAPIODFareStation1OK) GetPayload() []*models.ServiceDTOVersion2RailTRARailODFare {
+func (o *TRAAPIODFareStation1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailODFare {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_responses.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_responses.go
index bdcb457a..0e875531 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIODFareStationOK() *TRAAPIODFareStationOK {
/*TRAAPIODFareStationOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIODFareStationOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailODFare
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailODFare
}
func (o *TRAAPIODFareStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}][%d] tRAApiODFareStationOK %+v", 200, o.Payload)
}
-func (o *TRAAPIODFareStationOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailODFare {
+func (o *TRAAPIODFareStationOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailODFare {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_shape_responses.go b/rail/v2/client/t_r_a/t_r_a_api_shape_responses.go
index dd2a8db2..31c4d5be 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_shape_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_shape_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIShapeOK() *TRAAPIShapeOK {
/*TRAAPIShapeOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIShapeOK struct {
- Payload []*models.ServiceDTOVersion2RailTRATRAShape
+ Payload []*models.PTXServiceDTORailSpecificationV2TRATRAShape
}
func (o *TRAAPIShapeOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/Shape][%d] tRAApiShapeOK %+v", 200, o.Payload)
}
-func (o *TRAAPIShapeOK) GetPayload() []*models.ServiceDTOVersion2RailTRATRAShape {
+func (o *TRAAPIShapeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRATRAShape {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_of_line_responses.go b/rail/v2/client/t_r_a/t_r_a_api_station_of_line_responses.go
index 5cc063f4..c3cb07a9 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_of_line_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_of_line_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIStationOfLineOK() *TRAAPIStationOfLineOK {
/*TRAAPIStationOfLineOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIStationOfLineOK struct {
- Payload []*models.ServiceDTOVersion2RailTRAStationOfLine
+ Payload []*models.PTXServiceDTORailSpecificationV2TRAStationOfLine
}
func (o *TRAAPIStationOfLineOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/StationOfLine][%d] tRAApiStationOfLineOK %+v", 200, o.Payload)
}
-func (o *TRAAPIStationOfLineOK) GetPayload() []*models.ServiceDTOVersion2RailTRAStationOfLine {
+func (o *TRAAPIStationOfLineOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRAStationOfLine {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_responses.go b/rail/v2/client/t_r_a/t_r_a_api_station_responses.go
index dea2c842..d7f6087a 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIStationOK() *TRAAPIStationOK {
/*TRAAPIStationOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIStationOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailStation
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailStation
}
func (o *TRAAPIStationOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/Station][%d] tRAApiStationOK %+v", 200, o.Payload)
}
-func (o *TRAAPIStationOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailStation {
+func (o *TRAAPIStationOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailStation {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_timetable_responses.go b/rail/v2/client/t_r_a/t_r_a_api_station_timetable_responses.go
index 68058c72..4c7e90a2 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_timetable_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_timetable_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPIStationTimetableOK() *TRAAPIStationTimetableOK {
/*TRAAPIStationTimetableOK handles this case with default header values.
-OK
+Success
*/
type TRAAPIStationTimetableOK struct {
- Payload []*models.ServiceDTOVersion2RailTRARailStationTimetable
+ Payload []*models.PTXServiceDTORailSpecificationV2TRARailStationTimetable
}
func (o *TRAAPIStationTimetableOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/DailyTimetable/Station/{StationID}/{TrainDate}][%d] tRAApiStationTimetableOK %+v", 200, o.Payload)
}
-func (o *TRAAPIStationTimetableOK) GetPayload() []*models.ServiceDTOVersion2RailTRARailStationTimetable {
+func (o *TRAAPIStationTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRARailStationTimetable {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/t_r_a_api_train_type_responses.go b/rail/v2/client/t_r_a/t_r_a_api_train_type_responses.go
index cbcf0499..5669efcd 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_train_type_responses.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_train_type_responses.go
@@ -42,17 +42,17 @@ func NewTRAAPITrainTypeOK() *TRAAPITrainTypeOK {
/*TRAAPITrainTypeOK handles this case with default header values.
-OK
+Success
*/
type TRAAPITrainTypeOK struct {
- Payload []*models.ServiceDTOVersion2RailTRATrainType
+ Payload []*models.PTXServiceDTORailSpecificationV2TRATrainType
}
func (o *TRAAPITrainTypeOK) Error() string {
return fmt.Sprintf("[GET /v2/Rail/TRA/TrainType][%d] tRAApiTrainTypeOK %+v", 200, o.Payload)
}
-func (o *TRAAPITrainTypeOK) GetPayload() []*models.ServiceDTOVersion2RailTRATrainType {
+func (o *TRAAPITrainTypeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2TRATrainType {
return o.Payload
}
diff --git a/rail/v2/client/t_r_a/tra_client.go b/rail/v2/client/t_r_a/tra_client.go
index 096782f2..b5d249f3 100644
--- a/rail/v2/client/t_r_a/tra_client.go
+++ b/rail/v2/client/t_r_a/tra_client.go
@@ -95,7 +95,7 @@ func (a *Client) TRAAPIDailyTimetable(params *TRAAPIDailyTimetableParams) (*TRAA
ID: "TRAApi_DailyTimetable",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -131,7 +131,7 @@ func (a *Client) TRAAPIDailyTimetable1(params *TRAAPIDailyTimetable1Params) (*TR
ID: "TRAApi_DailyTimetable_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Today/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -167,7 +167,7 @@ func (a *Client) TRAAPIDailyTimetable2(params *TRAAPIDailyTimetable2Params) (*TR
ID: "TRAApi_DailyTimetable_2",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -203,7 +203,7 @@ func (a *Client) TRAAPIDailyTimetable3(params *TRAAPIDailyTimetable3Params) (*TR
ID: "TRAApi_DailyTimetable_3",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -239,7 +239,7 @@ func (a *Client) TRAAPIDailyTrainInfo(params *TRAAPIDailyTrainInfoParams) (*TRAA
ID: "TRAApi_DailyTrainInfo",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -275,7 +275,7 @@ func (a *Client) TRAAPIDailyTrainInfo1(params *TRAAPIDailyTrainInfo1Params) (*TR
ID: "TRAApi_DailyTrainInfo_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/Today/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -311,7 +311,7 @@ func (a *Client) TRAAPIDailyTrainInfo2(params *TRAAPIDailyTrainInfo2Params) (*TR
ID: "TRAApi_DailyTrainInfo_2",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -347,7 +347,7 @@ func (a *Client) TRAAPIDailyTrainInfo3(params *TRAAPIDailyTrainInfo3Params) (*TR
ID: "TRAApi_DailyTrainInfo_3",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -383,7 +383,7 @@ func (a *Client) TRAAPIGeneralTimetable(params *TRAAPIGeneralTimetableParams) (*
ID: "TRAApi_GeneralTimetable",
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTimetable",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -419,7 +419,7 @@ func (a *Client) TRAAPIGeneralTimetable1(params *TRAAPIGeneralTimetable1Params)
ID: "TRAApi_GeneralTimetable_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTimetable/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -455,7 +455,7 @@ func (a *Client) TRAAPIGeneralTrainInfo(params *TRAAPIGeneralTrainInfoParams) (*
ID: "TRAApi_GeneralTrainInfo",
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTrainInfo",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -491,7 +491,7 @@ func (a *Client) TRAAPIGeneralTrainInfo1(params *TRAAPIGeneralTrainInfo1Params)
ID: "TRAApi_GeneralTrainInfo_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTrainInfo/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -527,7 +527,7 @@ func (a *Client) TRAAPILine(params *TRAAPILineParams) (*TRAAPILineOK, error) {
ID: "TRAApi_Line",
Method: "GET",
PathPattern: "/v2/Rail/TRA/Line",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -563,7 +563,7 @@ func (a *Client) TRAAPILiveBoard(params *TRAAPILiveBoardParams) (*TRAAPILiveBoar
ID: "TRAApi_LiveBoard",
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveBoard",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -599,7 +599,7 @@ func (a *Client) TRAAPILiveBoard1(params *TRAAPILiveBoard1Params) (*TRAAPILiveBo
ID: "TRAApi_LiveBoard_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveBoard/Station/{StationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -635,7 +635,7 @@ func (a *Client) TRAAPILiveTrainDelay(params *TRAAPILiveTrainDelayParams) (*TRAA
ID: "TRAApi_LiveTrainDelay",
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveTrainDelay",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -671,7 +671,7 @@ func (a *Client) TRAAPINetwork(params *TRAAPINetworkParams) (*TRAAPINetworkOK, e
ID: "TRAApi_Network",
Method: "GET",
PathPattern: "/v2/Rail/TRA/Network",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -707,7 +707,7 @@ func (a *Client) TRAAPIODDailyTimetable(params *TRAAPIODDailyTimetableParams) (*
ID: "TRAApi_ODDailyTimetable",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -743,7 +743,7 @@ func (a *Client) TRAAPIODFareStation(params *TRAAPIODFareStationParams) (*TRAAPI
ID: "TRAApi_ODFareStation",
Method: "GET",
PathPattern: "/v2/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -779,7 +779,7 @@ func (a *Client) TRAAPIODFareStation1(params *TRAAPIODFareStation1Params) (*TRAA
ID: "TRAApi_ODFareStation_1",
Method: "GET",
PathPattern: "/v2/Rail/TRA/ODFare",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -815,7 +815,7 @@ func (a *Client) TRAAPIShape(params *TRAAPIShapeParams) (*TRAAPIShapeOK, error)
ID: "TRAApi_Shape",
Method: "GET",
PathPattern: "/v2/Rail/TRA/Shape",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -851,7 +851,7 @@ func (a *Client) TRAAPIStation(params *TRAAPIStationParams) (*TRAAPIStationOK, e
ID: "TRAApi_Station",
Method: "GET",
PathPattern: "/v2/Rail/TRA/Station",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -887,7 +887,7 @@ func (a *Client) TRAAPIStationOfLine(params *TRAAPIStationOfLineParams) (*TRAAPI
ID: "TRAApi_StationOfLine",
Method: "GET",
PathPattern: "/v2/Rail/TRA/StationOfLine",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -923,7 +923,7 @@ func (a *Client) TRAAPIStationTimetable(params *TRAAPIStationTimetableParams) (*
ID: "TRAApi_StationTimetable",
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Station/{StationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -959,7 +959,7 @@ func (a *Client) TRAAPITrainType(params *TRAAPITrainTypeParams) (*TRAAPITrainTyp
ID: "TRAApi_TrainType",
Method: "GET",
PathPattern: "/v2/Rail/TRA/TrainType",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
similarity index 62%
rename from rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
rename to rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
index 9b9750be..13abb267 100644
--- a/rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
+++ b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
@@ -14,15 +14,19 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert MRTAlertList
+// PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert MRTAlertList
//
-// swagger:model MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert]
-type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert struct {
+// swagger:model PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.Alert]
+type PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert struct {
+ // Array
+ //
// 資料(陣列)
// Required: true
- Alerts []*ServiceDTOVersion2RailMetroMRTAlertListAlert `json:"Alerts"`
+ Alerts []*PTXServiceDTORailSpecificationV2MetroAlert `json:"Alerts"`
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -30,6 +34,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListA
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListA
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListA
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models m r t real time wrapper service d t o version2 rail metro m r t alert list alert
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model m r t real time wrapper p t x service d t o rail specification v2 metro alert
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlerts(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateAlerts(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateAlerts(formats strfmt.Registry) error {
if err := validate.Required("Alerts", "body", m.Alerts); err != nil {
return err
@@ -110,7 +118,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroAlert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
similarity index 60%
rename from rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
rename to rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
index f6737687..874b4e61 100644
--- a/rail/v2/models/m_o_t_c_api_rail_models_m_r_t_real_time_wrapper_service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
+++ b/rail/v2/models/p_t_x_api_rail_model_m_r_t_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews MRTNewsList
+// PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews MRTNewsList
//
-// swagger:model MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTNewsList.News]
-type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews struct {
+// swagger:model PTX.API.Rail.Model.MRTRealTimeWrapper[PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News]
+type PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNe
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Newses []*ServiceDTOVersion2RailMetroMRTNewsListNews `json:"Newses"`
+ Newses []*PTXServiceDTORailSpecificationV2MetroMRTNewsListNews `json:"Newses"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNe
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNe
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models m r t real time wrapper service d t o version2 rail metro m r t news list news
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model m r t real time wrapper p t x service d t o rail specification v2 metro m r t news list news
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateNewses(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateNewses(formats strfmt.Registry) error {
if err := validate.Required("Newses", "body", m.Newses); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews
+func (m *PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelMRTRealTimeWrapperPTXServiceDTORailSpecificationV2MetroMRTNewsListNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_old_wrapper_service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
similarity index 55%
rename from rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_old_wrapper_service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go
rename to rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
index 4f7c57ea..c6d01809 100644
--- a/rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_old_wrapper_service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go
+++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_old_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
@@ -14,14 +14,16 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat V2THSRAvaliableSeatStatusWrapper
+// PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat V2THSRAvaliableSeatStatusWrapper
//
-// swagger:model MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusOldWrapper[Service.DTO.Version2.Rail.THSR.Old.AvailableSeat]
-type MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat struct {
+// swagger:model PTX.API.Rail.Model.V2THSRAvaliableSeatStatusOldWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat]
+type PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat struct {
+ // Array
+ //
// 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)
// Required: true
- AvailableSeats []*ServiceDTOVersion2RailTHSROldAvailableSeat `json:"AvailableSeats"`
+ AvailableSeats []*PTXServiceDTORailSpecificationV2THSROldAvailableSeat `json:"AvailableSeats"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
@@ -32,8 +34,8 @@ type MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailT
UpdateTime string `json:"UpdateTime,omitempty"`
}
-// Validate validates this m o t c API rail models v2 t h s r avaliable seat status old wrapper service d t o version2 rail t h s r old available seat
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model v2 t h s r avaliable seat status old wrapper p t x service d t o rail specification v2 t h s r old available seat
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAvailableSeats(formats); err != nil {
@@ -46,7 +48,7 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2R
return nil
}
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
if err := validate.Required("AvailableSeats", "body", m.AvailableSeats); err != nil {
return err
@@ -72,7 +74,7 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2R
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -80,8 +82,8 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2R
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsV2THSRAvaliableSeatStatusOldWrapperServiceDTOVersion2RailTHSROldAvailableSeat
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelV2THSRAvaliableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_wrapper_service_d_t_o_version2_rail_t_h_s_r_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
similarity index 59%
rename from rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_wrapper_service_d_t_o_version2_rail_t_h_s_r_available_seat.go
rename to rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
index 1c7976ce..31a60117 100644
--- a/rail/v2/models/m_o_t_c_api_rail_models_v2_t_h_s_r_avaliable_seat_status_wrapper_service_d_t_o_version2_rail_t_h_s_r_available_seat.go
+++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
@@ -14,14 +14,16 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat AvaliableSeatStatus
+// PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat AvaliableSeatStatus
//
-// swagger:model MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]
-type MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat struct {
+// swagger:model PTX.API.Rail.Model.V2THSRAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat]
+type PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat struct {
+ // Array
+ //
// 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)
// Required: true
- AvailableSeats []*ServiceDTOVersion2RailTHSRAvailableSeat `json:"AvailableSeats"`
+ AvailableSeats []*PTXServiceDTORailSpecificationV2THSRAvailableSeat `json:"AvailableSeats"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
@@ -31,6 +33,8 @@ type MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSR
// 來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // String
+ //
// 營運日說明(格式: yyyy-MM-dd)
TrainDate string `json:"TrainDate,omitempty"`
@@ -40,8 +44,8 @@ type MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSR
UpdateTime string `json:"UpdateTime,omitempty"`
}
-// Validate validates this m o t c API rail models v2 t h s r avaliable seat status wrapper service d t o version2 rail t h s r available seat
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model v2 t h s r avaliable seat status wrapper p t x service d t o rail specification v2 t h s r available seat
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAvailableSeats(formats); err != nil {
@@ -54,7 +58,7 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2Rail
return nil
}
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
if err := validate.Required("AvailableSeats", "body", m.AvailableSeats); err != nil {
return err
@@ -80,7 +84,7 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2Rail
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -88,8 +92,8 @@ func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2Rail
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
+func (m *PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelV2THSRAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go
new file mode 100644
index 00000000..901ebd09
--- /dev/null
+++ b/rail/v2/models/p_t_x_api_rail_model_v2_t_h_s_r_o_d_avaliable_seat_status_wrapper_p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go
@@ -0,0 +1,112 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat AvaliableSeatStatus
+//
+// swagger:model PTX.API.Rail.Model.V2THSRODAvaliableSeatStatusWrapper[PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat]
+type PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat struct {
+
+ // Array
+ //
+ // 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)
+ // Required: true
+ AvailableSeats []*PTXServiceDTORailSpecificationV2THSRODAvailableSeat `json:"AvailableSeats"`
+
+ // 資料總筆數
+ Count int64 `json:"Count,omitempty"`
+
+ // Int32
+ //
+ // 來源平台更新週期(秒)
+ SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+
+ // DateTime
+ //
+ // 來源平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
+ SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+
+ // String
+ //
+ // 營運日說明(格式: yyyy-MM-dd)
+ TrainDate string `json:"TrainDate,omitempty"`
+
+ // Int32
+ //
+ // PTX平台更新調期(秒)
+ UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+
+ // DateTime
+ //
+ // PTX平台更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
+ UpdateTime string `json:"UpdateTime,omitempty"`
+}
+
+// Validate validates this p t x API rail model v2 t h s r o d avaliable seat status wrapper p t x service d t o rail specification v2 t h s r o d available seat
+func (m *PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAvailableSeats(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
+
+ if err := validate.Required("AvailableSeats", "body", m.AvailableSeats); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.AvailableSeats); i++ {
+ if swag.IsZero(m.AvailableSeats[i]) { // not required
+ continue
+ }
+
+ if m.AvailableSeats[i] != nil {
+ if err := m.AvailableSeats[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("AvailableSeats" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelV2THSRODAvaliableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
similarity index 71%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
index 73a32ea9..4c44c501 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_alert.go
@@ -12,27 +12,35 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATRAAlertListAlert Alert
+// PTXServiceDTORailSpecificationV2MetroAlert Alert
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert
-type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Alert
+type PTXServiceDTORailSpecificationV2MetroAlert struct {
+ // String
+ //
// 通阻訊息代碼
// Required: true
AlertID *string `json:"AlertID"`
+ // String
+ //
// 通阻訊息網址連結
AlertURL string `json:"AlertURL,omitempty"`
+ // String
+ //
// 通阻訊息說明
// Required: true
Description *string `json:"Description"`
// integer
//
- // 影響方向 : [0:'南下',1:'北上',2:'雙向']
+ // 影響方向 : [0:'去程',1:'返程']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 影響說明
Effect string `json:"Effect,omitempty"`
@@ -51,6 +59,8 @@ type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
// 消息發佈日期時間
PublishTime string `json:"PublishTime,omitempty"`
+ // String
+ //
// 影響原因
Reason string `json:"Reason,omitempty"`
@@ -58,7 +68,9 @@ type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
//
// 影響範圍
// Required: true
- Scope *ServiceDTOVersion3RailTRATRAAlertListAlertScope `json:"Scope"`
+ Scope struct {
+ PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope
+ } `json:"Scope"`
// DateTime
//
@@ -71,6 +83,8 @@ type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
// Required: true
Status *int32 `json:"Status"`
+ // String
+ //
// 通阻訊息標題
// Required: true
Title *string `json:"Title"`
@@ -82,8 +96,8 @@ type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version3 rail t r a t r a alert list alert
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro alert
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlertID(formats); err != nil {
@@ -116,7 +130,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateAlertID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateAlertID(formats strfmt.Registry) error {
if err := validate.Required("AlertID", "body", m.AlertID); err != nil {
return err
@@ -125,7 +139,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateAlertID(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -134,25 +148,12 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateDescription(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateScope(formats strfmt.Registry) error {
-
- if err := validate.Required("Scope", "body", m.Scope); err != nil {
- return err
- }
-
- if m.Scope != nil {
- if err := m.Scope.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Scope")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateScope(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -161,7 +162,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateStatus(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -170,7 +171,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateTitle(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -180,7 +181,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -188,8 +189,8 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlert) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlert
+func (m *PTXServiceDTORailSpecificationV2MetroAlert) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroAlert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go
index d55cba68..d39d6389 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_drinking_fountain.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFacilityDrinkingFountain DrinkingFountain
+// PTXServiceDTORailSpecificationV2MetroDrinkingFountain DrinkingFountain
//
// 飲水機位置資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Facility.DrinkingFountain
-type ServiceDTOVersion2RailMetroFacilityDrinkingFountain struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.DrinkingFountain
+type PTXServiceDTORailSpecificationV2MetroDrinkingFountain struct {
+ // String
+ //
// 位置描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 樓層
// Required: true
FloorLevel *string `json:"FloorLevel"`
}
-// Validate validates this service d t o version2 rail metro facility drinking fountain
-func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro drinking fountain
+func (m *PTXServiceDTORailSpecificationV2MetroDrinkingFountain) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroDrinkingFountain) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) validateDescriptio
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) validateFloorLevel(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroDrinkingFountain) validateFloorLevel(formats strfmt.Registry) error {
if err := validate.Required("FloorLevel", "body", m.FloorLevel); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) validateFloorLevel
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroDrinkingFountain) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityDrinkingFountain) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFacilityDrinkingFountain
+func (m *PTXServiceDTORailSpecificationV2MetroDrinkingFountain) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroDrinkingFountain
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go
similarity index 58%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go
index 50a8450b..d635cbe6 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_elevator.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFacilityToilet Toilet
+// PTXServiceDTORailSpecificationV2MetroElevator Elevator
//
-// 廁所位置資訊
+// 無障礙電梯位置資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Facility.Toilet
-type ServiceDTOVersion2RailMetroFacilityToilet struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Elevator
+type PTXServiceDTORailSpecificationV2MetroElevator struct {
+ // String
+ //
// 位置描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 樓層
// Required: true
FloorLevel *string `json:"FloorLevel"`
}
-// Validate validates this service d t o version2 rail metro facility toilet
-func (m *ServiceDTOVersion2RailMetroFacilityToilet) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro elevator
+func (m *PTXServiceDTORailSpecificationV2MetroElevator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityToilet) Validate(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityToilet) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroElevator) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityToilet) validateDescription(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityToilet) validateFloorLevel(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroElevator) validateFloorLevel(formats strfmt.Registry) error {
if err := validate.Required("FloorLevel", "body", m.FloorLevel); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityToilet) validateFloorLevel(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityToilet) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroElevator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailMetroFacilityToilet) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityToilet) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFacilityToilet
+func (m *PTXServiceDTORailSpecificationV2MetroElevator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroElevator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go
similarity index 56%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go
index 04171815..57a4336d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_first_last_timetable.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFirstLastTimetable FirstLastTimetable
+// PTXServiceDTORailSpecificationV2MetroFirstLastTimetable FirstLastTimetable
//
// 首末班車時刻表資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.FirstLastTimetable
-type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.FirstLastTimetable
+type PTXServiceDTORailSpecificationV2MetroFirstLastTimetable struct {
+ // String
+ //
// 目的站車站代號
// Required: true
DestinationStaionID *string `json:"DestinationStaionID"`
@@ -27,20 +29,30 @@ type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
//
// 目的站車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
+ // String
+ //
// 首班車時刻
// Required: true
FirstTrainTime *string `json:"FirstTrainTime"`
+ // String
+ //
// 末班車時刻
// Required: true
LastTrainTime *string `json:"LastTrainTime"`
+ // String
+ //
// 首末班車次之路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 首末班車次之路線代號
LineNo string `json:"LineNo,omitempty"`
@@ -48,7 +60,9 @@ type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
//
// 服務日型態
// Required: true
- ServiceDays *ServiceDTOVersion2RailMetroSubClassServiceDays `json:"ServiceDays"`
+ ServiceDays struct {
+ PTXServiceDTORailSpecificationV2MetroSubClassServiceDays
+ } `json:"ServiceDays"`
// DateTime
//
@@ -56,6 +70,8 @@ type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -64,11 +80,15 @@ type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
// 車種(0:不分車種, 1:普通車, 2:直達車)
TrainType int32 `json:"TrainType,omitempty"`
+ // String
+ //
// 首末班車次之目的地方向描述
TripHeadSign string `json:"TripHeadSign,omitempty"`
@@ -78,13 +98,15 @@ type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro first last timetable
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro first last timetable
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStaionID(formats); err != nil {
@@ -137,7 +159,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateDestinationStaionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateDestinationStaionID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStaionID", "body", m.DestinationStaionID); err != nil {
return err
@@ -146,25 +168,12 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateDestinationStaio
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateFirstTrainTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateFirstTrainTime(formats strfmt.Registry) error {
if err := validate.Required("FirstTrainTime", "body", m.FirstTrainTime); err != nil {
return err
@@ -173,7 +182,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateFirstTrainTime(f
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateLastTrainTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateLastTrainTime(formats strfmt.Registry) error {
if err := validate.Required("LastTrainTime", "body", m.LastTrainTime); err != nil {
return err
@@ -182,7 +191,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateLastTrainTime(fo
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -191,25 +200,12 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateLineID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateServiceDays(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDays", "body", m.ServiceDays); err != nil {
- return err
- }
-
- if m.ServiceDays != nil {
- if err := m.ServiceDays.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDays")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateServiceDays(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -218,7 +214,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateSrcUpdateTime(fo
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -227,25 +223,12 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateStationID(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -254,7 +237,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateUpdateTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -264,7 +247,7 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) validateVersionID(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -272,8 +255,8 @@ func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFirstLastTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFirstLastTimetable
+func (m *PTXServiceDTORailSpecificationV2MetroFirstLastTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroFirstLastTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go
index 2b468b84..e3fc71e9 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_frequency.go
@@ -14,21 +14,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFrequency Frequency
+// PTXServiceDTORailSpecificationV2MetroFrequency Frequency
//
// 路線發車班距頻率資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Frequency
-type ServiceDTOVersion2RailMetroFrequency struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Frequency
+type PTXServiceDTORailSpecificationV2MetroFrequency struct {
+ // Array
+ //
// 班距頻率資訊
// Required: true
- Headways []*ServiceDTOVersion2RailMetroSubClassHeadway `json:"Headways"`
+ Headways []*PTXServiceDTORailSpecificationV2MetroSubClassHeadway `json:"Headways"`
+ // String
+ //
// 營運路線所屬之路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 營運路線所屬之路線編號
LineNo string `json:"LineNo,omitempty"`
@@ -36,8 +42,12 @@ type ServiceDTOVersion2RailMetroFrequency struct {
//
// 營運時間資訊
// Required: true
- OperationTime *ServiceDTOVersion2RailMetroSubClassOperationTime `json:"OperationTime"`
+ OperationTime struct {
+ PTXServiceDTORailSpecificationV2MetroSubClassOperationTime
+ } `json:"OperationTime"`
+ // String
+ //
// 營運路線代碼
// Required: true
RouteID *string `json:"RouteID"`
@@ -46,7 +56,9 @@ type ServiceDTOVersion2RailMetroFrequency struct {
//
// 服務日型態
// Required: true
- ServiceDays *ServiceDTOVersion2RailMetroSubClassServiceDays `json:"ServiceDays"`
+ ServiceDays struct {
+ PTXServiceDTORailSpecificationV2MetroSubClassServiceDays
+ } `json:"ServiceDays"`
// DateTime
//
@@ -63,13 +75,15 @@ type ServiceDTOVersion2RailMetroFrequency struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro frequency
-func (m *ServiceDTOVersion2RailMetroFrequency) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro frequency
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateHeadways(formats); err != nil {
@@ -110,7 +124,7 @@ func (m *ServiceDTOVersion2RailMetroFrequency) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateHeadways(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateHeadways(formats strfmt.Registry) error {
if err := validate.Required("Headways", "body", m.Headways); err != nil {
return err
@@ -135,7 +149,7 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateHeadways(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -144,25 +158,12 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateLineID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateOperationTime(formats strfmt.Registry) error {
-
- if err := validate.Required("OperationTime", "body", m.OperationTime); err != nil {
- return err
- }
-
- if m.OperationTime != nil {
- if err := m.OperationTime.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperationTime")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateOperationTime(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -171,25 +172,12 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateRouteID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateServiceDays(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDays", "body", m.ServiceDays); err != nil {
- return err
- }
-
- if m.ServiceDays != nil {
- if err := m.ServiceDays.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDays")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateServiceDays(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -198,7 +186,7 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateSrcUpdateTime(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -207,7 +195,7 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateUpdateTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroFrequency) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -217,7 +205,7 @@ func (m *ServiceDTOVersion2RailMetroFrequency) validateVersionID(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFrequency) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -225,8 +213,8 @@ func (m *ServiceDTOVersion2RailMetroFrequency) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFrequency) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFrequency
+func (m *PTXServiceDTORailSpecificationV2MetroFrequency) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroFrequency
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go
index 7a47cb38..9a0310a9 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_information_spot.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFacilityInformationSpot InformationSpot
+// PTXServiceDTORailSpecificationV2MetroInformationSpot InformationSpot
//
// 詢問處位置資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Facility.InformationSpot
-type ServiceDTOVersion2RailMetroFacilityInformationSpot struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.InformationSpot
+type PTXServiceDTORailSpecificationV2MetroInformationSpot struct {
+ // String
+ //
// 位置描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 樓層
// Required: true
FloorLevel *string `json:"FloorLevel"`
}
-// Validate validates this service d t o version2 rail metro facility information spot
-func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro information spot
+func (m *PTXServiceDTORailSpecificationV2MetroInformationSpot) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) Validate(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroInformationSpot) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) validateDescription
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) validateFloorLevel(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroInformationSpot) validateFloorLevel(formats strfmt.Registry) error {
if err := validate.Required("FloorLevel", "body", m.FloorLevel); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) validateFloorLevel(
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroInformationSpot) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) MarshalBinary() ([]
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityInformationSpot) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFacilityInformationSpot
+func (m *PTXServiceDTORailSpecificationV2MetroInformationSpot) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroInformationSpot
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_line.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go
index a6a047da..c7d32a4c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_line.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroLine Line
+// PTXServiceDTORailSpecificationV2MetroLine Line
//
// 捷運路線資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Line
-type ServiceDTOVersion2RailMetroLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Line
+type PTXServiceDTORailSpecificationV2MetroLine struct {
+ // Boolean
+ //
// 是否位於支線
// Required: true
IsBranch *bool `json:"IsBranch"`
+ // String
+ //
// 路線顏色
// Required: true
LineColor *string `json:"LineColor"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -35,8 +41,12 @@ type ServiceDTOVersion2RailMetroLine struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion2BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineName"`
+ // String
+ //
// 路線編號
LineNo string `json:"LineNo,omitempty"`
@@ -44,7 +54,9 @@ type ServiceDTOVersion2RailMetroLine struct {
//
// 路線區間名稱
// Required: true
- LineSectionName *ServiceDTOVersion2BaseNameType `json:"LineSectionName"`
+ LineSectionName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineSectionName"`
// DateTime
//
@@ -58,13 +70,15 @@ type ServiceDTOVersion2RailMetroLine struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro line
-func (m *ServiceDTOVersion2RailMetroLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro line
+func (m *PTXServiceDTORailSpecificationV2MetroLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateIsBranch(formats); err != nil {
@@ -105,7 +119,7 @@ func (m *ServiceDTOVersion2RailMetroLine) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateIsBranch(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateIsBranch(formats strfmt.Registry) error {
if err := validate.Required("IsBranch", "body", m.IsBranch); err != nil {
return err
@@ -114,7 +128,7 @@ func (m *ServiceDTOVersion2RailMetroLine) validateIsBranch(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateLineColor(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateLineColor(formats strfmt.Registry) error {
if err := validate.Required("LineColor", "body", m.LineColor); err != nil {
return err
@@ -123,7 +137,7 @@ func (m *ServiceDTOVersion2RailMetroLine) validateLineColor(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -132,43 +146,17 @@ func (m *ServiceDTOVersion2RailMetroLine) validateLineID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
- return err
- }
-
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateLineSectionName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineSectionName", "body", m.LineSectionName); err != nil {
- return err
- }
-
- if m.LineSectionName != nil {
- if err := m.LineSectionName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineSectionName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateLineSectionName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -177,7 +165,7 @@ func (m *ServiceDTOVersion2RailMetroLine) validateSrcUpdateTime(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -186,7 +174,7 @@ func (m *ServiceDTOVersion2RailMetroLine) validateUpdateTime(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailMetroLine) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -196,7 +184,7 @@ func (m *ServiceDTOVersion2RailMetroLine) validateVersionID(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -204,8 +192,8 @@ func (m *ServiceDTOVersion2RailMetroLine) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroLine
+func (m *PTXServiceDTORailSpecificationV2MetroLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go
index fa63bf3f..e5d7cd5f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_line_transfer.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroLineTransfer LineTransfer
+// PTXServiceDTORailSpecificationV2MetroLineTransfer LineTransfer
//
// 捷運路線站間轉乘基本資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.LineTransfer
-type ServiceDTOVersion2RailMetroLineTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.LineTransfer
+type PTXServiceDTORailSpecificationV2MetroLineTransfer struct {
+ // String
+ //
// 路線間轉乘(起)之路線代碼
// Required: true
FromLineID *string `json:"FromLineID"`
@@ -27,11 +29,17 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
//
// 路線間轉乘(起)之路線名稱
// Required: true
- FromLineName *ServiceDTOVersion2BaseNameType `json:"FromLineName"`
+ FromLineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"FromLineName"`
+ // String
+ //
// 路線間轉乘(起)之路線編號
FromLineNo string `json:"FromLineNo,omitempty"`
+ // String
+ //
// 路線間轉乘(起)之車站代碼
// Required: true
FromStationID *string `json:"FromStationID"`
@@ -40,7 +48,9 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
//
// 路線間轉乘(起)之車站名稱
// Required: true
- FromStationName *ServiceDTOVersion2BaseNameType `json:"FromStationName"`
+ FromStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"FromStationName"`
// integer
//
@@ -53,6 +63,8 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 路線間轉乘(迄)之路線代碼
// Required: true
ToLineID *string `json:"ToLineID"`
@@ -61,12 +73,18 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
//
// 路線間轉乘(迄)之路線名稱
// Required: true
- ToLineName *ServiceDTOVersion2BaseNameType `json:"ToLineName"`
+ ToLineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"ToLineName"`
+ // String
+ //
// 路線間轉乘(迄)之路線編號
// Required: true
ToLineNo *string `json:"ToLineNo"`
+ // String
+ //
// 路線間轉乘(迄)之車站代碼
// Required: true
ToStationID *string `json:"ToStationID"`
@@ -75,12 +93,18 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
//
// 路線間轉乘(迄)之車站名稱
// Required: true
- ToStationName *ServiceDTOVersion2BaseNameType `json:"ToStationName"`
+ ToStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"ToStationName"`
+ // String
+ //
// 轉乘方式文字描述
// Required: true
TransferDescription *string `json:"TransferDescription"`
+ // Int32
+ //
// 轉乘耗時參考時間(分)
// Required: true
TransferTime *int32 `json:"TransferTime"`
@@ -91,13 +115,15 @@ type ServiceDTOVersion2RailMetroLineTransfer struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro line transfer
-func (m *ServiceDTOVersion2RailMetroLineTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro line transfer
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFromLineID(formats); err != nil {
@@ -162,7 +188,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateFromLineID(formats strfmt.Registry) error {
if err := validate.Required("FromLineID", "body", m.FromLineID); err != nil {
return err
@@ -171,25 +197,12 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromLineID(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("FromLineName", "body", m.FromLineName); err != nil {
- return err
- }
-
- if m.FromLineName != nil {
- if err := m.FromLineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FromLineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateFromLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateFromStationID(formats strfmt.Registry) error {
if err := validate.Required("FromStationID", "body", m.FromStationID); err != nil {
return err
@@ -198,25 +211,12 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromStationID(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateFromStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("FromStationName", "body", m.FromStationName); err != nil {
- return err
- }
-
- if m.FromStationName != nil {
- if err := m.FromStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FromStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateFromStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -225,7 +225,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateSrcUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateToLineID(formats strfmt.Registry) error {
if err := validate.Required("ToLineID", "body", m.ToLineID); err != nil {
return err
@@ -234,25 +234,12 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToLineID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("ToLineName", "body", m.ToLineName); err != nil {
- return err
- }
-
- if m.ToLineName != nil {
- if err := m.ToLineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ToLineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateToLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateToLineNo(formats strfmt.Registry) error {
if err := validate.Required("ToLineNo", "body", m.ToLineNo); err != nil {
return err
@@ -261,7 +248,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToLineNo(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateToStationID(formats strfmt.Registry) error {
if err := validate.Required("ToStationID", "body", m.ToStationID); err != nil {
return err
@@ -270,25 +257,12 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToStationID(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateToStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("ToStationName", "body", m.ToStationName); err != nil {
- return err
- }
-
- if m.ToStationName != nil {
- if err := m.ToStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ToStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateToStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateTransferDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateTransferDescription(formats strfmt.Registry) error {
if err := validate.Required("TransferDescription", "body", m.TransferDescription); err != nil {
return err
@@ -297,7 +271,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateTransferDescription(fo
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateTransferTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateTransferTime(formats strfmt.Registry) error {
if err := validate.Required("TransferTime", "body", m.TransferTime); err != nil {
return err
@@ -306,7 +280,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateTransferTime(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -315,7 +289,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateUpdateTime(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroLineTransfer) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -325,7 +299,7 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) validateVersionID(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLineTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -333,8 +307,8 @@ func (m *ServiceDTOVersion2RailMetroLineTransfer) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLineTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroLineTransfer
+func (m *PTXServiceDTORailSpecificationV2MetroLineTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroLineTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go
index 9b46c943..9d838885 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_live_board.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroLiveBoard LiveBoard
+// PTXServiceDTORailSpecificationV2MetroLiveBoard LiveBoard
//
// 捷運列車到離站動態資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.LiveBoard
-type ServiceDTOVersion2RailMetroLiveBoard struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.LiveBoard
+type PTXServiceDTORailSpecificationV2MetroLiveBoard struct {
+ // String
+ //
// 目的地車站代號
// Required: true
DestinationStaionID *string `json:"DestinationStaionID"`
+ // String
+ //
// 目的地車站代號
// Required: true
DestinationStationID *string `json:"DestinationStationID"`
@@ -31,16 +35,24 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
//
// 目的地車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
+ // Int32
+ //
// 下班車次抵達時間預估(分)
// Required: true
EstimateTime *int32 `json:"EstimateTime"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
LineNO string `json:"LineNO,omitempty"`
@@ -48,7 +60,9 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion2BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineName"`
// DateTime
//
@@ -56,6 +70,8 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 所在車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -64,8 +80,12 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
//
// 所在車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 下班車次方向描述
// Required: true
TripHeadSign *string `json:"TripHeadSign"`
@@ -77,8 +97,8 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail metro live board
-func (m *ServiceDTOVersion2RailMetroLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro live board
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStaionID(formats); err != nil {
@@ -131,7 +151,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStaionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateDestinationStaionID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStaionID", "body", m.DestinationStaionID); err != nil {
return err
@@ -140,7 +160,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStaionID(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateDestinationStationID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
return err
@@ -149,25 +169,12 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStationID(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateEstimateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateEstimateTime(formats strfmt.Registry) error {
if err := validate.Required("EstimateTime", "body", m.EstimateTime); err != nil {
return err
@@ -176,7 +183,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateEstimateTime(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -185,25 +192,12 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateLineID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
- return err
- }
-
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -212,7 +206,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateSrcUpdateTime(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -221,25 +215,12 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateStationID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateTripHeadSign(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateTripHeadSign(formats strfmt.Registry) error {
if err := validate.Required("TripHeadSign", "body", m.TripHeadSign); err != nil {
return err
@@ -248,7 +229,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateTripHeadSign(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -258,7 +239,7 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateUpdateTime(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -266,8 +247,8 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroLiveBoard) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroLiveBoard
+func (m *PTXServiceDTORailSpecificationV2MetroLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go
similarity index 63%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go
index f562169a..99c55bbb 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope.go
@@ -14,39 +14,53 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScope AlertScope
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope AlertScope
//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScope
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScope struct {
+// 影響範圍
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScope
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope struct {
+ // AlertScopeLineSection[]
+ //
// 受影響的路線區間
// Required: true
- LineSections []*ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection `json:"LineSections"`
+ LineSections []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection `json:"LineSections"`
+ // AlertScopeLine[]
+ //
// 受影響的實體路線
// Required: true
- Lines []*ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine `json:"Lines"`
+ Lines []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine `json:"Lines"`
// AlertScopeNetwork
//
// 受影響的路網
- Network *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork `json:"Network,omitempty"`
+ Network struct {
+ PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork
+ } `json:"Network,omitempty"`
+ // AlertScopeRoute[]
+ //
// 受影響的營運路線
// Required: true
- Routes []*ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute `json:"Routes"`
+ Routes []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute `json:"Routes"`
+ // AlertScopeStation[]
+ //
// 受影響的車站
// Required: true
- Stations []*ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation `json:"Stations"`
+ // AlertScopeTrain[]
+ //
// 受影響的車次
// Required: true
- Trains []*ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain `json:"Trains"`
+ Trains []*PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain `json:"Trains"`
}
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineSections(formats); err != nil {
@@ -79,7 +93,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) Validate(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateLineSections(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateLineSections(formats strfmt.Registry) error {
if err := validate.Required("LineSections", "body", m.LineSections); err != nil {
return err
@@ -104,7 +118,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateLineSections
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateLines(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateLines(formats strfmt.Registry) error {
if err := validate.Required("Lines", "body", m.Lines); err != nil {
return err
@@ -129,25 +143,16 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateLines(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateNetwork(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateNetwork(formats strfmt.Registry) error {
if swag.IsZero(m.Network) { // not required
return nil
}
- if m.Network != nil {
- if err := m.Network.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Network")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateRoutes(formats strfmt.Registry) error {
if err := validate.Required("Routes", "body", m.Routes); err != nil {
return err
@@ -172,7 +177,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateRoutes(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -197,7 +202,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateStations(for
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateTrains(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) validateTrains(formats strfmt.Registry) error {
if err := validate.Required("Trains", "body", m.Trains); err != nil {
return err
@@ -223,7 +228,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) validateTrains(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -231,8 +236,8 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScope) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScope
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScope
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go
new file mode 100644
index 00000000..4e3d1c07
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line.go
@@ -0,0 +1,52 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine AlertScopeLine
+//
+// 受影響的實體路線
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLine
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine struct {
+
+ // String
+ //
+ // 實體路線代碼
+ LineID string `json:"LineID,omitempty"`
+
+ // String
+ //
+ // 實體路線名稱
+ LineName string `json:"LineName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope line
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLine
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line_section.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go
similarity index 52%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line_section.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go
index 67106bc6..b8096c42 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line_section.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_line_section.go
@@ -10,37 +10,51 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection AlertScopeLineSection
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection AlertScopeLineSection
//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLineSection
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection struct {
+// 受影響的路線區間
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeLineSection
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection struct {
+ // String
+ //
// 影響區間輔助描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 區間迄站車站代碼
EndingStationID string `json:"EndingStationID,omitempty"`
+ // String
+ //
// 區間迄站車站名稱
EndingStationName string `json:"EndingStationName,omitempty"`
+ // String
+ //
// 路線區間所在路線代碼
LineID string `json:"LineID,omitempty"`
+ // String
+ //
// 區間起站車站代碼
StartingStationID string `json:"StartingStationID,omitempty"`
+ // String
+ //
// 區間起站車站名稱
StartingStationName string `json:"StartingStationName,omitempty"`
}
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope line section
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope line section
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -48,8 +62,8 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection) MarshalBi
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeLineSection
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go
new file mode 100644
index 00000000..e838ef25
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_network.go
@@ -0,0 +1,47 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork AlertScopeNetwork
+//
+// 受影響的路網
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeNetwork
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork struct {
+
+ // String
+ //
+ // 路網代碼
+ NetworkID string `json:"NetworkID,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope network
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeNetwork
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go
new file mode 100644
index 00000000..adcbdaae
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_route.go
@@ -0,0 +1,52 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute AlertScopeRoute
+//
+// 受影響的營運路線
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeRoute
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute struct {
+
+ // String
+ //
+ // 營運路線代碼
+ RouteID string `json:"RouteID,omitempty"`
+
+ // String
+ //
+ // 營運路線名稱
+ RouteName string `json:"RouteName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope route
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeRoute
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go
new file mode 100644
index 00000000..7ff162e6
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_station.go
@@ -0,0 +1,52 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation AlertScopeStation
+//
+// 受影響的車站
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeStation
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation struct {
+
+ // String
+ //
+ // 車站代碼
+ StationID string `json:"StationID,omitempty"`
+
+ // String
+ //
+ // 車站名稱
+ StationName string `json:"StationName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope station
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeStation
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go
new file mode 100644
index 00000000..e22334e3
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_alert_list_alert_scope_train.go
@@ -0,0 +1,47 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain AlertScopeTrain
+//
+// 受影響的車次
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTAlertList.AlertScopeTrain
+type PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain struct {
+
+ // String
+ //
+ // 受影響的車次
+ TrainNo string `json:"TrainNo,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 metro m r t alert list alert scope train
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTAlertListAlertScopeTrain
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
similarity index 68%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
index 196d1501..7fce74a5 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_m_r_t_news_list_news.go
@@ -12,17 +12,23 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroMRTNewsListNews News
+// PTXServiceDTORailSpecificationV2MetroMRTNewsListNews News
//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTNewsList.News
-type ServiceDTOVersion2RailMetroMRTNewsListNews struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MRTNewsList.News
+type PTXServiceDTORailSpecificationV2MetroMRTNewsListNews struct {
+ // String
+ //
// 附件網址連結
AttachmentURL string `json:"AttachmentURL,omitempty"`
+ // String
+ //
// 發布單位
Department string `json:"Department,omitempty"`
+ // String
+ //
// 內容描述
// Required: true
Description *string `json:"Description"`
@@ -43,10 +49,14 @@ type ServiceDTOVersion2RailMetroMRTNewsListNews struct {
// Required: true
NewsCategory *int32 `json:"NewsCategory"`
+ // String
+ //
// 消息代碼
// Required: true
NewsID *string `json:"NewsID"`
+ // String
+ //
// 消息網址連結
NewsURL string `json:"NewsURL,omitempty"`
@@ -61,6 +71,8 @@ type ServiceDTOVersion2RailMetroMRTNewsListNews struct {
// 消息起始日期時間
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
@@ -72,8 +84,8 @@ type ServiceDTOVersion2RailMetroMRTNewsListNews struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail metro m r t news list news
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro m r t news list news
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -106,7 +118,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -115,7 +127,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateDescription(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateNewsCategory(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateNewsCategory(formats strfmt.Registry) error {
if err := validate.Required("NewsCategory", "body", m.NewsCategory); err != nil {
return err
@@ -124,7 +136,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateNewsCategory(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -133,7 +145,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateNewsID(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validatePublishTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validatePublishTime(formats strfmt.Registry) error {
if err := validate.Required("PublishTime", "body", m.PublishTime); err != nil {
return err
@@ -142,7 +154,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validatePublishTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -151,7 +163,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateTitle(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -161,7 +173,7 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -169,8 +181,8 @@ func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTNewsListNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTNewsListNews
+func (m *PTXServiceDTORailSpecificationV2MetroMRTNewsListNews) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMRTNewsListNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_t_h_s_r_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_t_h_s_r_shape.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go
index 76725def..fcaa868d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_t_h_s_r_shape.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_metro_shape.go
@@ -12,15 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRTHSRShape THSRShape
+// PTXServiceDTORailSpecificationV2MetroMetroShape MetroShape
//
-// swagger:model Service.DTO.Version2.Rail.THSR.THSRShape
-type ServiceDTOVersion2RailTHSRTHSRShape struct {
+// 捷運線型資料
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.MetroShape
+type PTXServiceDTORailSpecificationV2MetroMetroShape struct {
+ // String
+ //
+ // 路線軌跡編碼(encoded polyline)
+ // Required: true
+ EncodedPolyline *string `json:"EncodedPolyline"`
+
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -29,7 +41,14 @@ type ServiceDTOVersion2RailTHSRTHSRShape struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion2BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineName"`
+
+ // String
+ //
+ // 路線編號
+ LineNo string `json:"LineNo,omitempty"`
// DateTime
//
@@ -38,10 +57,14 @@ type ServiceDTOVersion2RailTHSRTHSRShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t h s r t h s r shape
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro metro shape
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateEncodedPolyline(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateGeometry(formats); err != nil {
res = append(res, err)
}
@@ -64,43 +87,39 @@ func (m *ServiceDTOVersion2RailTHSRTHSRShape) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) validateEncodedPolyline(formats strfmt.Registry) error {
- if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
+ if err := validate.Required("EncodedPolyline", "body", m.EncodedPolyline); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) validateGeometry(formats strfmt.Registry) error {
- if err := validate.Required("LineID", "body", m.LineID); err != nil {
+ if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) validateLineName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) validateLineID(formats strfmt.Registry) error {
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
+ if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
}
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -110,7 +129,7 @@ func (m *ServiceDTOVersion2RailTHSRTHSRShape) validateUpdateTime(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +137,8 @@ func (m *ServiceDTOVersion2RailTHSRTHSRShape) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRTHSRShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRTHSRShape
+func (m *PTXServiceDTORailSpecificationV2MetroMetroShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroMetroShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go
similarity index 60%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_network.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go
index b4cc03aa..7f5650bd 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_network.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network.go
@@ -14,21 +14,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroNetwork Network
+// PTXServiceDTORailSpecificationV2MetroNetwork Network
//
// 捷運路網資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Network
-type ServiceDTOVersion2RailMetroNetwork struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Network
+type PTXServiceDTORailSpecificationV2MetroNetwork struct {
+ // Array
+ //
// 捷運路線資訊
// Required: true
- Lines []*ServiceDTOVersion2RailMetroNetworkSubClassLine `json:"Lines"`
+ Lines []*PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine `json:"Lines"`
+ // String
+ //
// 捷運路網代碼
// Required: true
NetworkID *string `json:"NetworkID"`
+ // String
+ //
// 捷運路網圖網址URL
// Required: true
NetworkMapURL *string `json:"NetworkMapURL"`
@@ -37,8 +43,12 @@ type ServiceDTOVersion2RailMetroNetwork struct {
//
// 捷運路網名稱
// Required: true
- NetworkName *ServiceDTOVersion2BaseNameType `json:"NetworkName"`
+ NetworkName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"NetworkName"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -47,7 +57,9 @@ type ServiceDTOVersion2RailMetroNetwork struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion2BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OperatorName"`
// DateTime
//
@@ -55,13 +67,15 @@ type ServiceDTOVersion2RailMetroNetwork struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro network
-func (m *ServiceDTOVersion2RailMetroNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro network
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLines(formats); err != nil {
@@ -102,7 +116,7 @@ func (m *ServiceDTOVersion2RailMetroNetwork) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateLines(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateLines(formats strfmt.Registry) error {
if err := validate.Required("Lines", "body", m.Lines); err != nil {
return err
@@ -127,7 +141,7 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateLines(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateNetworkID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateNetworkID(formats strfmt.Registry) error {
if err := validate.Required("NetworkID", "body", m.NetworkID); err != nil {
return err
@@ -136,7 +150,7 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateNetworkID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateNetworkMapURL(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateNetworkMapURL(formats strfmt.Registry) error {
if err := validate.Required("NetworkMapURL", "body", m.NetworkMapURL); err != nil {
return err
@@ -145,25 +159,12 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateNetworkMapURL(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateNetworkName(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkName", "body", m.NetworkName); err != nil {
- return err
- }
-
- if m.NetworkName != nil {
- if err := m.NetworkName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateNetworkName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -172,25 +173,12 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateOperatorCode(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -199,7 +187,7 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateUpdateTime(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetwork) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -209,7 +197,7 @@ func (m *ServiceDTOVersion2RailMetroNetwork) validateVersionID(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -217,8 +205,8 @@ func (m *ServiceDTOVersion2RailMetroNetwork) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroNetwork
+func (m *PTXServiceDTORailSpecificationV2MetroNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go
similarity index 55%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go
index fb6039f3..3be5f914 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_network_sub_class_line.go
@@ -12,23 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroNetworkSubClassLine Line
+// PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine Line
//
// 捷運路網資料-捷運路線資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.NetworkSubClass.Line
-type ServiceDTOVersion2RailMetroNetworkSubClassLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.NetworkSubClass.Line
+type PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
LineNo string `json:"LineNo,omitempty"`
}
-// Validate validates this service d t o version2 rail metro network sub class line
-func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro network sub class line
+func (m *PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -41,7 +45,7 @@ func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -51,7 +55,7 @@ func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) validateLineID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -59,8 +63,8 @@ func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroNetworkSubClassLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroNetworkSubClassLine
+func (m *PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroNetworkSubClassLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go
index 0e38a1e3..57595488 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_o_d_fare.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroODFare ODFare
+// PTXServiceDTORailSpecificationV2MetroODFare ODFare
//
// 起迄站間票價資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.ODFare
-type ServiceDTOVersion2RailMetroODFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.ODFare
+type PTXServiceDTORailSpecificationV2MetroODFare struct {
+ // String
+ //
// 迄站車站代碼
// Required: true
DestinationStationID *string `json:"DestinationStationID"`
@@ -29,12 +31,18 @@ type ServiceDTOVersion2RailMetroODFare struct {
//
// 迄站車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
+ // Array
+ //
// 票價資訊
// Required: true
- Fares []*ServiceDTOVersion2RailMetroSubClassFare `json:"Fares"`
+ Fares []*PTXServiceDTORailSpecificationV2MetroSubClassFare `json:"Fares"`
+ // String
+ //
// 起站車站代碼
// Required: true
OriginStationID *string `json:"OriginStationID"`
@@ -43,7 +51,9 @@ type ServiceDTOVersion2RailMetroODFare struct {
//
// 起站車站名稱
// Required: true
- OriginStationName *ServiceDTOVersion2BaseNameType `json:"OriginStationName"`
+ OriginStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OriginStationName"`
// DateTime
//
@@ -66,13 +76,15 @@ type ServiceDTOVersion2RailMetroODFare struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro o d fare
-func (m *ServiceDTOVersion2RailMetroODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro o d fare
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationID(formats); err != nil {
@@ -113,7 +125,7 @@ func (m *ServiceDTOVersion2RailMetroODFare) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateDestinationStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateDestinationStationID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
return err
@@ -122,25 +134,12 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateDestinationStationID(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -165,7 +164,7 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateFares(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateOriginStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateOriginStationID(formats strfmt.Registry) error {
if err := validate.Required("OriginStationID", "body", m.OriginStationID); err != nil {
return err
@@ -174,25 +173,12 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateOriginStationID(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateOriginStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStationName", "body", m.OriginStationName); err != nil {
- return err
- }
-
- if m.OriginStationName != nil {
- if err := m.OriginStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateOriginStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -201,7 +187,7 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateSrcUpdateTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -210,7 +196,7 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateUpdateTime(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroODFare) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -220,7 +206,7 @@ func (m *ServiceDTOVersion2RailMetroODFare) validateVersionID(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -228,8 +214,8 @@ func (m *ServiceDTOVersion2RailMetroODFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroODFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroODFare
+func (m *PTXServiceDTORailSpecificationV2MetroODFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_route.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go
index 844702c6..fd28463e 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_route.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_route.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroRoute Route
+// PTXServiceDTORailSpecificationV2MetroRoute Route
//
// 營運路線基本資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Route
-type ServiceDTOVersion2RailMetroRoute struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Route
+type PTXServiceDTORailSpecificationV2MetroRoute struct {
+ // String
+ //
// 營運路線迄站代號
// Required: true
EndStationID *string `json:"EndStationID"`
@@ -27,27 +29,41 @@ type ServiceDTOVersion2RailMetroRoute struct {
//
// 營運路線迄站名稱
// Required: true
- EndStationName *ServiceDTOVersion2BaseNameType `json:"EndStationName"`
+ EndStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndStationName"`
+ // String
+ //
// 營運路線所屬之路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 營運路線所屬之路線編號
LineNo string `json:"LineNo,omitempty"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // Int32
+ //
// 軌道路線類別(33:都市捷運;34:機場捷運)
// Required: true
RailRouteType *int32 `json:"RailRouteType"`
+ // String
+ //
// 營運路線代碼
// Required: true
RouteID *string `json:"RouteID"`
+ // Single
+ //
// 營運路線長度距離
// Required: true
RouteLength *float32 `json:"RouteLength"`
@@ -56,7 +72,9 @@ type ServiceDTOVersion2RailMetroRoute struct {
//
// 營運路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
// DateTime
//
@@ -64,6 +82,8 @@ type ServiceDTOVersion2RailMetroRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 營運路線起站代號
// Required: true
StartStationID *string `json:"StartStationID"`
@@ -72,8 +92,12 @@ type ServiceDTOVersion2RailMetroRoute struct {
//
// 營運路線起站名稱
// Required: true
- StartStationName *ServiceDTOVersion2BaseNameType `json:"StartStationName"`
+ StartStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartStationName"`
+ // Int32
+ //
// 營運路線運行時間
// Required: true
TravelTime *int32 `json:"TravelTime"`
@@ -84,13 +108,15 @@ type ServiceDTOVersion2RailMetroRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro route
-func (m *ServiceDTOVersion2RailMetroRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro route
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndStationID(formats); err != nil {
@@ -155,7 +181,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateEndStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateEndStationID(formats strfmt.Registry) error {
if err := validate.Required("EndStationID", "body", m.EndStationID); err != nil {
return err
@@ -164,25 +190,12 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateEndStationID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateEndStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndStationName", "body", m.EndStationName); err != nil {
- return err
- }
-
- if m.EndStationName != nil {
- if err := m.EndStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateEndStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -191,7 +204,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateLineID(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -200,7 +213,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateOperatorCode(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateRailRouteType(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateRailRouteType(formats strfmt.Registry) error {
if err := validate.Required("RailRouteType", "body", m.RailRouteType); err != nil {
return err
@@ -209,7 +222,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateRailRouteType(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -218,7 +231,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateRouteID(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateRouteLength(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateRouteLength(formats strfmt.Registry) error {
if err := validate.Required("RouteLength", "body", m.RouteLength); err != nil {
return err
@@ -227,25 +240,12 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateRouteLength(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -254,7 +254,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateSrcUpdateTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateStartStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateStartStationID(formats strfmt.Registry) error {
if err := validate.Required("StartStationID", "body", m.StartStationID); err != nil {
return err
@@ -263,25 +263,12 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateStartStationID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateStartStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StartStationName", "body", m.StartStationName); err != nil {
- return err
- }
-
- if m.StartStationName != nil {
- if err := m.StartStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateStartStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateTravelTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateTravelTime(formats strfmt.Registry) error {
if err := validate.Required("TravelTime", "body", m.TravelTime); err != nil {
return err
@@ -290,7 +277,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateTravelTime(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -299,7 +286,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateUpdateTime(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroRoute) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -309,7 +296,7 @@ func (m *ServiceDTOVersion2RailMetroRoute) validateVersionID(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -317,8 +304,8 @@ func (m *ServiceDTOVersion2RailMetroRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroRoute
+func (m *PTXServiceDTORailSpecificationV2MetroRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go
similarity index 67%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go
index ff5ae6c3..c336d25f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_s2_s_travel_time.go
@@ -14,20 +14,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroS2STravelTime S2STravelTime
+// PTXServiceDTORailSpecificationV2MetroS2STravelTime S2STravelTime
//
// 列車站間運行時間基本資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.S2STravelTime
-type ServiceDTOVersion2RailMetroS2STravelTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.S2STravelTime
+type PTXServiceDTORailSpecificationV2MetroS2STravelTime struct {
+ // String
+ //
// 營運路線所屬之路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 營運路線所屬之路線編號
LineNo string `json:"LineNo,omitempty"`
+ // String
+ //
// 營運路線代碼
// Required: true
RouteID *string `json:"RouteID"`
@@ -41,9 +47,11 @@ type ServiceDTOVersion2RailMetroS2STravelTime struct {
// 車種(0:不分車種, 1:普通車, 2:直達車)
TrainType int32 `json:"TrainType,omitempty"`
+ // Array
+ //
// 站間運行時間資訊
// Required: true
- TravelTimes []*ServiceDTOVersion2RailMetroSubClassTravelTime `json:"TravelTimes"`
+ TravelTimes []*PTXServiceDTORailSpecificationV2MetroSubClassTravelTime `json:"TravelTimes"`
// DateTime
//
@@ -51,13 +59,15 @@ type ServiceDTOVersion2RailMetroS2STravelTime struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro s2 s travel time
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro s2 s travel time
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -90,7 +100,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -99,7 +109,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateLineID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -108,7 +118,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateRouteID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -117,7 +127,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateSrcUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
if err := validate.Required("TravelTimes", "body", m.TravelTimes); err != nil {
return err
@@ -142,7 +152,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateTravelTimes(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -151,7 +161,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateUpdateTime(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -161,7 +171,7 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) validateVersionID(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -169,8 +179,8 @@ func (m *ServiceDTOVersion2RailMetroS2STravelTime) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroS2STravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroS2STravelTime
+func (m *PTXServiceDTORailSpecificationV2MetroS2STravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroS2STravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go
similarity index 60%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go
index 5be46c2d..4d76dc43 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStation Station
+// PTXServiceDTORailSpecificationV2MetroStation Station
//
// 捷運車站資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Station
-type ServiceDTOVersion2RailMetroStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Station
+type PTXServiceDTORailSpecificationV2MetroStation struct {
+ // Boolean
+ //
// 假日自行車進出與否
// Required: true
BikeAllowOnHoliday *bool `json:"BikeAllowOnHoliday"`
@@ -29,10 +31,14 @@ type ServiceDTOVersion2RailMetroStation struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 車站地址
// Required: true
StationAddress *string `json:"StationAddress"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -41,14 +47,20 @@ type ServiceDTOVersion2RailMetroStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
// PointType
//
// 車站座標
// Required: true
- StationPosition *ServiceDTOVersion2BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 車站唯一識別代碼
// Required: true
StationUID *string `json:"StationUID"`
@@ -59,13 +71,15 @@ type ServiceDTOVersion2RailMetroStation struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station
-func (m *ServiceDTOVersion2RailMetroStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station
+func (m *PTXServiceDTORailSpecificationV2MetroStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeAllowOnHoliday(formats); err != nil {
@@ -110,7 +124,7 @@ func (m *ServiceDTOVersion2RailMetroStation) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateBikeAllowOnHoliday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateBikeAllowOnHoliday(formats strfmt.Registry) error {
if err := validate.Required("BikeAllowOnHoliday", "body", m.BikeAllowOnHoliday); err != nil {
return err
@@ -119,7 +133,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateBikeAllowOnHoliday(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -128,7 +142,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateSrcUpdateTime(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateStationAddress(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateStationAddress(formats strfmt.Registry) error {
if err := validate.Required("StationAddress", "body", m.StationAddress); err != nil {
return err
@@ -137,7 +151,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateStationAddress(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -146,43 +160,17 @@ func (m *ServiceDTOVersion2RailMetroStation) validateStationID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -191,7 +179,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateStationUID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -200,7 +188,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateUpdateTime(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroStation) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -210,7 +198,7 @@ func (m *ServiceDTOVersion2RailMetroStation) validateVersionID(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -218,8 +206,8 @@ func (m *ServiceDTOVersion2RailMetroStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStation
+func (m *PTXServiceDTORailSpecificationV2MetroStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go
index 7fec0a4d..d0cff755 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_exit.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStationExit StationExit
+// PTXServiceDTORailSpecificationV2MetroStationExit StationExit
//
// 捷運車站出入口基本資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.StationExit
-type ServiceDTOVersion2RailMetroStationExit struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.StationExit
+type PTXServiceDTORailSpecificationV2MetroStationExit struct {
// 是否有電梯
// Required: true
@@ -27,6 +27,8 @@ type ServiceDTOVersion2RailMetroStationExit struct {
// Required: true
Escalator *int32 `json:"Escalator"`
+ // String
+ //
// 出入口代碼
// Required: true
ExitID *string `json:"ExitID"`
@@ -35,14 +37,20 @@ type ServiceDTOVersion2RailMetroStationExit struct {
//
// 出入口名稱
// Required: true
- ExitName *ServiceDTOVersion2BaseNameType `json:"ExitName"`
+ ExitName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"ExitName"`
// PointType
//
// 出入口座標
// Required: true
- ExitPosition *ServiceDTOVersion2BasePointType `json:"ExitPosition"`
+ ExitPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"ExitPosition"`
+ // String
+ //
// 地址描述
// Required: true
LocationDescription *string `json:"LocationDescription"`
@@ -57,6 +65,8 @@ type ServiceDTOVersion2RailMetroStationExit struct {
// Required: true
Stair *bool `json:"Stair"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -65,7 +75,9 @@ type ServiceDTOVersion2RailMetroStationExit struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
// DateTime
//
@@ -73,13 +85,15 @@ type ServiceDTOVersion2RailMetroStationExit struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station exit
-func (m *ServiceDTOVersion2RailMetroStationExit) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station exit
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateElevator(formats); err != nil {
@@ -136,7 +150,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateElevator(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateElevator(formats strfmt.Registry) error {
if err := validate.Required("Elevator", "body", m.Elevator); err != nil {
return err
@@ -145,7 +159,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateElevator(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateEscalator(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateEscalator(formats strfmt.Registry) error {
if err := validate.Required("Escalator", "body", m.Escalator); err != nil {
return err
@@ -154,7 +168,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateEscalator(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateExitID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateExitID(formats strfmt.Registry) error {
if err := validate.Required("ExitID", "body", m.ExitID); err != nil {
return err
@@ -163,43 +177,17 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateExitID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateExitName(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitName", "body", m.ExitName); err != nil {
- return err
- }
-
- if m.ExitName != nil {
- if err := m.ExitName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateExitName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateExitPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitPosition", "body", m.ExitPosition); err != nil {
- return err
- }
-
- if m.ExitPosition != nil {
- if err := m.ExitPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateExitPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateLocationDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateLocationDescription(formats strfmt.Registry) error {
if err := validate.Required("LocationDescription", "body", m.LocationDescription); err != nil {
return err
@@ -208,7 +196,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateLocationDescription(for
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -217,7 +205,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateSrcUpdateTime(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateStair(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateStair(formats strfmt.Registry) error {
if err := validate.Required("Stair", "body", m.Stair); err != nil {
return err
@@ -226,7 +214,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateStair(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -235,25 +223,12 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateStationID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -262,7 +237,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateUpdateTime(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationExit) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -272,7 +247,7 @@ func (m *ServiceDTOVersion2RailMetroStationExit) validateVersionID(formats strfm
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationExit) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -280,8 +255,8 @@ func (m *ServiceDTOVersion2RailMetroStationExit) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationExit) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStationExit
+func (m *PTXServiceDTORailSpecificationV2MetroStationExit) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStationExit
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go
similarity index 67%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go
index 8a1119b6..57908035 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_facility.go
@@ -14,24 +14,30 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStationFacility StationFacility
+// PTXServiceDTORailSpecificationV2MetroStationFacility StationFacility
//
// 捷運車站設施資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.StationFacility
-type ServiceDTOVersion2RailMetroStationFacility struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.StationFacility
+type PTXServiceDTORailSpecificationV2MetroStationFacility struct {
+ // Array
+ //
// 飲水機位置資訊
// Required: true
- DrinkingFountains []*ServiceDTOVersion2RailMetroFacilityDrinkingFountain `json:"DrinkingFountains"`
+ DrinkingFountains []*PTXServiceDTORailSpecificationV2MetroDrinkingFountain `json:"DrinkingFountains"`
+ // Array
+ //
// 無障礙電梯位置資訊
// Required: true
- Elevators []*ServiceDTOVersion2RailMetroFacilityElevator `json:"Elevators"`
+ Elevators []*PTXServiceDTORailSpecificationV2MetroElevator `json:"Elevators"`
+ // Array
+ //
// 詢問處位置資訊
// Required: true
- InformationSpots []*ServiceDTOVersion2RailMetroFacilityInformationSpot `json:"InformationSpots"`
+ InformationSpots []*PTXServiceDTORailSpecificationV2MetroInformationSpot `json:"InformationSpots"`
// DateTime
//
@@ -39,6 +45,8 @@ type ServiceDTOVersion2RailMetroStationFacility struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -47,11 +55,15 @@ type ServiceDTOVersion2RailMetroStationFacility struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Array
+ //
// 廁所位置資訊
// Required: true
- Toilets []*ServiceDTOVersion2RailMetroFacilityToilet `json:"Toilets"`
+ Toilets []*PTXServiceDTORailSpecificationV2MetroToilet `json:"Toilets"`
// DateTime
//
@@ -59,13 +71,15 @@ type ServiceDTOVersion2RailMetroStationFacility struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station facility
-func (m *ServiceDTOVersion2RailMetroStationFacility) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station facility
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDrinkingFountains(formats); err != nil {
@@ -110,7 +124,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateDrinkingFountains(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateDrinkingFountains(formats strfmt.Registry) error {
if err := validate.Required("DrinkingFountains", "body", m.DrinkingFountains); err != nil {
return err
@@ -135,7 +149,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateDrinkingFountains(f
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateElevators(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateElevators(formats strfmt.Registry) error {
if err := validate.Required("Elevators", "body", m.Elevators); err != nil {
return err
@@ -160,7 +174,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateElevators(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateInformationSpots(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateInformationSpots(formats strfmt.Registry) error {
if err := validate.Required("InformationSpots", "body", m.InformationSpots); err != nil {
return err
@@ -185,7 +199,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateInformationSpots(fo
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -194,7 +208,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateSrcUpdateTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -203,25 +217,12 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateStationID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateToilets(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateToilets(formats strfmt.Registry) error {
if err := validate.Required("Toilets", "body", m.Toilets); err != nil {
return err
@@ -246,7 +247,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateToilets(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -255,7 +256,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationFacility) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -265,7 +266,7 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) validateVersionID(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationFacility) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -273,8 +274,8 @@ func (m *ServiceDTOVersion2RailMetroStationFacility) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationFacility) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStationFacility
+func (m *PTXServiceDTORailSpecificationV2MetroStationFacility) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStationFacility
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go
similarity index 65%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go
index aac11ac8..41a73d8c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_line.go
@@ -14,17 +14,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStationOfLine StationOfLine
+// PTXServiceDTORailSpecificationV2MetroStationOfLine StationOfLine
//
// 路線車站資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.StationOfLine
-type ServiceDTOVersion2RailMetroStationOfLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfLine
+type PTXServiceDTORailSpecificationV2MetroStationOfLine struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
LineNo string `json:"LineNo,omitempty"`
@@ -34,9 +38,11 @@ type ServiceDTOVersion2RailMetroStationOfLine struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 路線車站資訊
// Required: true
- Stations []*ServiceDTOVersion2RailMetroSubClassStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation `json:"Stations"`
// DateTime
//
@@ -44,13 +50,15 @@ type ServiceDTOVersion2RailMetroStationOfLine struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station of line
-func (m *ServiceDTOVersion2RailMetroStationOfLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station of line
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -79,7 +87,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -88,7 +96,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) validateLineID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfLine) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -97,7 +105,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) validateSrcUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfLine) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -122,7 +130,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) validateStations(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -131,7 +139,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) validateUpdateTime(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfLine) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -141,7 +149,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) validateVersionID(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationOfLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +157,8 @@ func (m *ServiceDTOVersion2RailMetroStationOfLine) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationOfLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStationOfLine
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStationOfLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go
similarity index 64%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go
index fd55c948..ee60da0b 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_of_route.go
@@ -14,24 +14,32 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStationOfRoute StationOfRoute
+// PTXServiceDTORailSpecificationV2MetroStationOfRoute StationOfRoute
//
// 路線車站資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.StationOfRoute
-type ServiceDTOVersion2RailMetroStationOfRoute struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.StationOfRoute
+type PTXServiceDTORailSpecificationV2MetroStationOfRoute struct {
+ // Int32
+ //
// 營運路線方向描述(0:去程,1:返程)
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 營運路線所屬之路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 營運路線所屬之路線編號
LineNo string `json:"LineNo,omitempty"`
+ // String
+ //
// 營運路線代碼
// Required: true
RouteID *string `json:"RouteID"`
@@ -40,7 +48,9 @@ type ServiceDTOVersion2RailMetroStationOfRoute struct {
//
// 營運路線名稱
// Required: true
- RouteName *ServiceDTOVersion2BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"RouteName"`
// DateTime
//
@@ -48,9 +58,11 @@ type ServiceDTOVersion2RailMetroStationOfRoute struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 營運路線車站資訊
// Required: true
- Stations []*ServiceDTOVersion2RailMetroSubClassStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV2MetroSubClassStation `json:"Stations"`
// DateTime
//
@@ -58,13 +70,15 @@ type ServiceDTOVersion2RailMetroStationOfRoute struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station of route
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station of route
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -105,7 +119,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) Validate(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -114,7 +128,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateDirection(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -123,7 +137,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateLineID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -132,25 +146,12 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateRouteID(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -159,7 +160,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateSrcUpdateTime(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -184,7 +185,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateStations(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -193,7 +194,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateUpdateTime(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -203,7 +204,7 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) validateVersionID(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -211,8 +212,8 @@ func (m *ServiceDTOVersion2RailMetroStationOfRoute) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStationOfRoute
+func (m *PTXServiceDTORailSpecificationV2MetroStationOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStationOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go
similarity index 58%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go
index face6344..1c895ead 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_station_time_table.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroStationTimeTable StationTimeTable
+// PTXServiceDTORailSpecificationV2MetroStationTimeTable StationTimeTable
//
// 站別時刻表資料
//
-// swagger:model Service.DTO.Version2.Rail.Metro.StationTimeTable
-type ServiceDTOVersion2RailMetroStationTimeTable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.StationTimeTable
+type PTXServiceDTORailSpecificationV2MetroStationTimeTable struct {
+ // String
+ //
// 目的站車站代號
// Required: true
DestinationStaionID *string `json:"DestinationStaionID"`
@@ -29,17 +31,23 @@ type ServiceDTOVersion2RailMetroStationTimeTable struct {
//
// 目的站車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
// integer
//
// 營運路線方向描述 : [0:'去程',1:'返程']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 營運路線代碼
RouteID string `json:"RouteID,omitempty"`
@@ -47,10 +55,14 @@ type ServiceDTOVersion2RailMetroStationTimeTable struct {
//
// 服務日型態
// Required: true
- ServiceDays *ServiceDTOVersion2RailMetroSubClassServiceDays `json:"ServiceDays"`
+ ServiceDays struct {
+ PTXServiceDTORailSpecificationV2MetroSubClassServiceDays
+ } `json:"ServiceDays"`
+ // Array
+ //
// 特定日期
- SpecialDays []*ServiceDTOVersion2RailMetroSubClassSpecialDay `json:"SpecialDays"`
+ SpecialDays []*PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay `json:"SpecialDays"`
// DateTime
//
@@ -58,6 +70,8 @@ type ServiceDTOVersion2RailMetroStationTimeTable struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -66,11 +80,15 @@ type ServiceDTOVersion2RailMetroStationTimeTable struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Array
+ //
// 車站發車時刻資訊
// Required: true
- Timetables []*ServiceDTOVersion2RailMetroSubClassTimetable `json:"Timetables"`
+ Timetables []*PTXServiceDTORailSpecificationV2MetroSubClassTimetable `json:"Timetables"`
// DateTime
//
@@ -78,13 +96,15 @@ type ServiceDTOVersion2RailMetroStationTimeTable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail metro station time table
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro station time table
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStaionID(formats); err != nil {
@@ -137,7 +157,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateDestinationStaionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateDestinationStaionID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStaionID", "body", m.DestinationStaionID); err != nil {
return err
@@ -146,25 +166,12 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateDestinationStaionI
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -173,25 +180,12 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateLineID(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateServiceDays(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDays", "body", m.ServiceDays); err != nil {
- return err
- }
-
- if m.ServiceDays != nil {
- if err := m.ServiceDays.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDays")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateServiceDays(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateSpecialDays(formats strfmt.Registry) error {
if swag.IsZero(m.SpecialDays) { // not required
return nil
@@ -216,7 +210,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateSpecialDays(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -225,7 +219,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateSrcUpdateTime(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -234,25 +228,12 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateStationID(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateTimetables(formats strfmt.Registry) error {
if err := validate.Required("Timetables", "body", m.Timetables); err != nil {
return err
@@ -277,7 +258,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateTimetables(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -286,7 +267,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -296,7 +277,7 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) validateVersionID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -304,8 +285,8 @@ func (m *ServiceDTOVersion2RailMetroStationTimeTable) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroStationTimeTable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroStationTimeTable
+func (m *PTXServiceDTORailSpecificationV2MetroStationTimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroStationTimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go
similarity index 66%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go
index 68c2a1a1..a7586676 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_fare.go
@@ -12,34 +12,44 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassFare Fare
+// PTXServiceDTORailSpecificationV2MetroSubClassFare Fare
//
// 票價資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Fare
-type ServiceDTOVersion2RailMetroSubClassFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Fare
+type PTXServiceDTORailSpecificationV2MetroSubClassFare struct {
+ // String
+ //
// 市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)
CitizenCode string `json:"CitizenCode,omitempty"`
+ // Int32
+ //
// 費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))
// Required: true
FareClass *int32 `json:"FareClass"`
+ // Int32
+ //
// 票價
// Required: true
Price *int32 `json:"Price"`
+ // String
+ //
// 販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)
SaleType string `json:"SaleType,omitempty"`
+ // Int32
+ //
// 票種(1:一般票(單程票), 2:來回票(悠遊卡/一卡通), 3:電子票証, 4:回數票, 5:定期票(30天期), 6:定期票(60天期))
// Required: true
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version2 rail metro sub class fare
-func (m *ServiceDTOVersion2RailMetroSubClassFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class fare
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFareClass(formats); err != nil {
@@ -60,7 +70,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassFare) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -69,7 +79,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassFare) validateFareClass(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -78,7 +88,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassFare) validatePrice(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -88,7 +98,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassFare) validateTicketType(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -96,8 +106,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassFare) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassFare
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go
similarity index 63%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go
index 0554ef83..c042df85 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_headway.go
@@ -12,36 +12,46 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassHeadway Headway
+// PTXServiceDTORailSpecificationV2MetroSubClassHeadway Headway
//
// 班距頻率資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Headway
-type ServiceDTOVersion2RailMetroSubClassHeadway struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Headway
+type PTXServiceDTORailSpecificationV2MetroSubClassHeadway struct {
+ // String
+ //
// 結束時間
// Required: true
EndTime *string `json:"EndTime"`
+ // Int32
+ //
// 最大班距時間(分)
// Required: true
MaxHeadwayMins *int32 `json:"MaxHeadwayMins"`
+ // Int32
+ //
// 最小班距時間(分)
// Required: true
MinHeadwayMins *int32 `json:"MinHeadwayMins"`
+ // String
+ //
// 尖峰/離峰狀態(0:離峰, 1:尖峰)
// Required: true
PeakFlag *string `json:"PeakFlag"`
+ // String
+ //
// 開始時間
// Required: true
StartTime *string `json:"StartTime"`
}
-// Validate validates this service d t o version2 rail metro sub class headway
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class headway
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndTime(formats); err != nil {
@@ -70,7 +80,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -79,7 +89,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateEndTime(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateMaxHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) validateMaxHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MaxHeadwayMins", "body", m.MaxHeadwayMins); err != nil {
return err
@@ -88,7 +98,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateMaxHeadwayMins(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateMinHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) validateMinHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MinHeadwayMins", "body", m.MinHeadwayMins); err != nil {
return err
@@ -97,7 +107,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateMinHeadwayMins(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validatePeakFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) validatePeakFlag(formats strfmt.Registry) error {
if err := validate.Required("PeakFlag", "body", m.PeakFlag); err != nil {
return err
@@ -106,7 +116,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validatePeakFlag(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -116,7 +126,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) validateStartTime(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -124,8 +134,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassHeadway) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassHeadway) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassHeadway
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassHeadway) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassHeadway
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go
similarity index 55%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go
index 0097831a..08a96102 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_operation_time.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassOperationTime OperationTime
+// PTXServiceDTORailSpecificationV2MetroSubClassOperationTime OperationTime
//
// 營運時間資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.OperationTime
-type ServiceDTOVersion2RailMetroSubClassOperationTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.OperationTime
+type PTXServiceDTORailSpecificationV2MetroSubClassOperationTime struct {
+ // String
+ //
// 營運結束時間
// Required: true
EndTime *string `json:"EndTime"`
+ // String
+ //
// 營運開始時間
// Required: true
StartTime *string `json:"StartTime"`
}
-// Validate validates this service d t o version2 rail metro sub class operation time
-func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class operation time
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassOperationTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndTime(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) Validate(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassOperationTime) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) validateEndTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassOperationTime) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) validateStartTime(for
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassOperationTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassOperationTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassOperationTime
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassOperationTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassOperationTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_days.go
similarity index 62%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_days.go
index 6075882e..69c8b062 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_service_days.go
@@ -12,51 +12,69 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassServiceDays ServiceDays
+// PTXServiceDTORailSpecificationV2MetroSubClassServiceDays ServiceDays
//
// 服務日型態
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays
-type ServiceDTOVersion2RailMetroSubClassServiceDays struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.ServiceDays
+type PTXServiceDTORailSpecificationV2MetroSubClassServiceDays struct {
+ // Boolean
+ //
// 星期五營運與否
// Required: true
Friday *bool `json:"Friday"`
+ // Boolean
+ //
// 星期一營運與否
// Required: true
Monday *bool `json:"Monday"`
+ // Boolean
+ //
// 國定假日營運與否
// Required: true
NationalHolidays *bool `json:"NationalHolidays"`
+ // Boolean
+ //
// 星期六營運與否
// Required: true
Saturday *bool `json:"Saturday"`
+ // String
+ //
// 營運日標籤
ServiceTag string `json:"ServiceTag,omitempty"`
+ // Boolean
+ //
// 星期日營運與否
// Required: true
Sunday *bool `json:"Sunday"`
+ // Boolean
+ //
// 星期四營運與否
// Required: true
Thursday *bool `json:"Thursday"`
+ // Boolean
+ //
// 星期二營運與否
// Required: true
Tuesday *bool `json:"Tuesday"`
+ // Boolean
+ //
// 星期三營運與否
// Required: true
Wednesday *bool `json:"Wednesday"`
}
-// Validate validates this service d t o version2 rail metro sub class service days
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class service days
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -97,7 +115,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -106,7 +124,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateFriday(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -115,7 +133,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateMonday(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateNationalHolidays(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateNationalHolidays(formats strfmt.Registry) error {
if err := validate.Required("NationalHolidays", "body", m.NationalHolidays); err != nil {
return err
@@ -124,7 +142,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateNationalHoliday
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -133,7 +151,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateSaturday(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -142,7 +160,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateSunday(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -151,7 +169,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateThursday(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -160,7 +178,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateTuesday(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -170,7 +188,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) validateWednesday(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -178,8 +196,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassServiceDays) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassServiceDays
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassServiceDays) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassServiceDays
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go
index 212179fb..8eb3004b 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_special_day.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassSpecialDay SpecialDay
+// PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay SpecialDay
//
// 特定日期
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.SpecialDay
-type ServiceDTOVersion2RailMetroSubClassSpecialDay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.SpecialDay
+type PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay struct {
+ // String
+ //
// 描述
// Required: true
Description *string `json:"Description"`
@@ -36,8 +38,8 @@ type ServiceDTOVersion2RailMetroSubClassSpecialDay struct {
SaterDate *string `json:"SaterDate"`
}
-// Validate validates this service d t o version2 rail metro sub class special day
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class special day
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -58,7 +60,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -67,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateDescription(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateEndDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) validateEndDate(formats strfmt.Registry) error {
if err := validate.Required("EndDate", "body", m.EndDate); err != nil {
return err
@@ -76,7 +78,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateEndDate(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateSaterDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) validateSaterDate(formats strfmt.Registry) error {
if err := validate.Required("SaterDate", "body", m.SaterDate); err != nil {
return err
@@ -86,7 +88,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) validateSaterDate(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -94,8 +96,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassSpecialDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassSpecialDay
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassSpecialDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go
similarity index 54%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go
index da686b9a..94df23e2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_station.go
@@ -12,20 +12,24 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassStation Station
+// PTXServiceDTORailSpecificationV2MetroSubClassStation Station
//
// 路線車站資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Station
-type ServiceDTOVersion2RailMetroSubClassStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Station
+type PTXServiceDTORailSpecificationV2MetroSubClassStation struct {
// 已累積之里程距離(公里)
CumulativeDistance float32 `json:"CumulativeDistance,omitempty"`
+ // Int32
+ //
// 站序
// Required: true
Sequence *int32 `json:"Sequence"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -34,11 +38,13 @@ type ServiceDTOVersion2RailMetroSubClassStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
}
-// Validate validates this service d t o version2 rail metro sub class station
-func (m *ServiceDTOVersion2RailMetroSubClassStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class station
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSequence(formats); err != nil {
@@ -59,7 +65,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassStation) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassStation) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -68,7 +74,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassStation) validateSequence(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -77,26 +83,13 @@ func (m *ServiceDTOVersion2RailMetroSubClassStation) validateStationID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) validateStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -104,8 +97,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassStation) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassStation
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go
index 9883dc37..6529025c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_timetable.go
@@ -12,25 +12,33 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassTimetable Timetable
+// PTXServiceDTORailSpecificationV2MetroSubClassTimetable Timetable
//
// 車站發車時刻資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Timetable
-type ServiceDTOVersion2RailMetroSubClassTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.Timetable
+type PTXServiceDTORailSpecificationV2MetroSubClassTimetable struct {
+ // String
+ //
// 到站時刻(hh:mm)
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 發車時刻(hh:mm)
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // Int32
+ //
// 發車順序
// Required: true
Sequence *int32 `json:"Sequence"`
+ // String
+ //
// 車次號碼(捷運通常沒有TrainNo車次資訊)
// Required: true
TrainNo *string `json:"TrainNo"`
@@ -39,8 +47,8 @@ type ServiceDTOVersion2RailMetroSubClassTimetable struct {
TrainType int32 `json:"TrainType,omitempty"`
}
-// Validate validates this service d t o version2 rail metro sub class timetable
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class timetable
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -65,7 +73,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) Validate(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -74,7 +82,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateArrivalTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -83,7 +91,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateDepartureTime(for
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -92,7 +100,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateSequence(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -102,7 +110,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) validateTrainNo(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -110,8 +118,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassTimetable) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassTimetable
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go
similarity index 52%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go
index 7d571d82..3eea4a42 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_sub_class_travel_time.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroSubClassTravelTime TravelTime
+// PTXServiceDTORailSpecificationV2MetroSubClassTravelTime TravelTime
//
// 站間運行時間資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.TravelTime
-type ServiceDTOVersion2RailMetroSubClassTravelTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.SubClass.TravelTime
+type PTXServiceDTORailSpecificationV2MetroSubClassTravelTime struct {
+ // String
+ //
// 起站車站代號
// Required: true
FromStationID *string `json:"FromStationID"`
@@ -27,12 +29,18 @@ type ServiceDTOVersion2RailMetroSubClassTravelTime struct {
//
// 起站車站名稱
// Required: true
- FromStationName *ServiceDTOVersion2BaseNameType `json:"FromStationName"`
+ FromStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"FromStationName"`
+ // Int32
+ //
// 站間行駛時間(秒)
// Required: true
RunTime *int32 `json:"RunTime"`
+ // Int32
+ //
// 站間序號
// Required: true
Sequence *int32 `json:"Sequence"`
@@ -40,6 +48,8 @@ type ServiceDTOVersion2RailMetroSubClassTravelTime struct {
// 起站停靠時間(秒)
StopTime int32 `json:"StopTime,omitempty"`
+ // String
+ //
// 迄站車站代號
// Required: true
ToStationID *string `json:"ToStationID"`
@@ -48,11 +58,13 @@ type ServiceDTOVersion2RailMetroSubClassTravelTime struct {
//
// 迄站車站名稱
// Required: true
- ToStationName *ServiceDTOVersion2BaseNameType `json:"ToStationName"`
+ ToStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"ToStationName"`
}
-// Validate validates this service d t o version2 rail metro sub class travel time
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro sub class travel time
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFromStationID(formats); err != nil {
@@ -85,7 +97,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateFromStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateFromStationID(formats strfmt.Registry) error {
if err := validate.Required("FromStationID", "body", m.FromStationID); err != nil {
return err
@@ -94,25 +106,12 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateFromStationID(fo
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateFromStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("FromStationName", "body", m.FromStationName); err != nil {
- return err
- }
-
- if m.FromStationName != nil {
- if err := m.FromStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FromStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateFromStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateRunTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateRunTime(formats strfmt.Registry) error {
if err := validate.Required("RunTime", "body", m.RunTime); err != nil {
return err
@@ -121,7 +120,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateRunTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -130,7 +129,7 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateSequence(formats
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateToStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateToStationID(formats strfmt.Registry) error {
if err := validate.Required("ToStationID", "body", m.ToStationID); err != nil {
return err
@@ -139,26 +138,13 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateToStationID(form
return nil
}
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) validateToStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("ToStationName", "body", m.ToStationName); err != nil {
- return err
- }
-
- if m.ToStationName != nil {
- if err := m.ToStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ToStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) validateToStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -166,8 +152,8 @@ func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroSubClassTravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroSubClassTravelTime
+func (m *PTXServiceDTORailSpecificationV2MetroSubClassTravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroSubClassTravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go
similarity index 67%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go
index 39360e3c..534ca67a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_metro_toilet.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroFacilityElevator Elevator
+// PTXServiceDTORailSpecificationV2MetroToilet Toilet
//
-// 無障礙電梯位置資訊
+// 廁所位置資訊
//
-// swagger:model Service.DTO.Version2.Rail.Metro.Facility.Elevator
-type ServiceDTOVersion2RailMetroFacilityElevator struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.Metro.Toilet
+type PTXServiceDTORailSpecificationV2MetroToilet struct {
+ // String
+ //
// 位置描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 樓層
// Required: true
FloorLevel *string `json:"FloorLevel"`
}
-// Validate validates this service d t o version2 rail metro facility elevator
-func (m *ServiceDTOVersion2RailMetroFacilityElevator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 metro toilet
+func (m *PTXServiceDTORailSpecificationV2MetroToilet) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityElevator) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityElevator) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroToilet) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityElevator) validateDescription(format
return nil
}
-func (m *ServiceDTOVersion2RailMetroFacilityElevator) validateFloorLevel(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2MetroToilet) validateFloorLevel(formats strfmt.Registry) error {
if err := validate.Required("FloorLevel", "body", m.FloorLevel); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailMetroFacilityElevator) validateFloorLevel(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityElevator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2MetroToilet) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailMetroFacilityElevator) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroFacilityElevator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroFacilityElevator
+func (m *PTXServiceDTORailSpecificationV2MetroToilet) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2MetroToilet
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go
similarity index 70%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go
index 5944cc0f..e24ef541 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_alert_info.go
@@ -12,25 +12,33 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRAlertInfo AlertInfo
+// PTXServiceDTORailSpecificationV2THSRAlertInfo AlertInfo
//
// 高鐵即時通阻事件資料
//
-// swagger:model Service.DTO.Version2.Rail.THSR.AlertInfo
-type ServiceDTOVersion2RailTHSRAlertInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.AlertInfo
+type PTXServiceDTORailSpecificationV2THSRAlertInfo struct {
+ // String
+ //
// 事件簡易描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 運行方向
// Required: true
Direction *string `json:"Direction"`
+ // String
+ //
// 影響區間
// Required: true
EffectedSection *string `json:"EffectedSection"`
+ // String
+ //
// 影響狀態
// Required: true
Effects *string `json:"Effects"`
@@ -57,10 +65,14 @@ type ServiceDTOVersion2RailTHSRAlertInfo struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 營運狀態 = ['空白: 正常' or '▲: 其他的異常狀態' or 'X: 全線停止運行']
// Required: true
Status *string `json:"Status"`
+ // String
+ //
// 標題
// Required: true
Title *string `json:"Title"`
@@ -72,8 +84,8 @@ type ServiceDTOVersion2RailTHSRAlertInfo struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t h s r alert info
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r alert info
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -118,7 +130,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -127,7 +139,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateDescription(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -136,7 +148,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateDirection(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateEffectedSection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateEffectedSection(formats strfmt.Registry) error {
if err := validate.Required("EffectedSection", "body", m.EffectedSection); err != nil {
return err
@@ -145,7 +157,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateEffectedSection(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateEffects(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateEffects(formats strfmt.Registry) error {
if err := validate.Required("Effects", "body", m.Effects); err != nil {
return err
@@ -154,7 +166,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateEffects(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateLevel(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateLevel(formats strfmt.Registry) error {
if err := validate.Required("Level", "body", m.Level); err != nil {
return err
@@ -163,7 +175,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateLevel(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -172,7 +184,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateSrcUpdateTime(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -181,7 +193,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateStatus(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -190,7 +202,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateTitle(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -200,7 +212,7 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) validateUpdateTime(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -208,8 +220,8 @@ func (m *ServiceDTOVersion2RailTHSRAlertInfo) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAlertInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRAlertInfo
+func (m *PTXServiceDTORailSpecificationV2THSRAlertInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRAlertInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
index 8ca40219..81a09132 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_available_seat.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRAvailableSeat AvailableSeat
+// PTXServiceDTORailSpecificationV2THSRAvailableSeat AvailableSeat
//
// 高鐵對號座位狀態資訊
//
-// swagger:model Service.DTO.Version2.Rail.THSR.AvailableSeat
-type ServiceDTOVersion2RailTHSRAvailableSeat struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.AvailableSeat
+type PTXServiceDTORailSpecificationV2THSRAvailableSeat struct {
// integer
//
@@ -27,11 +27,15 @@ type ServiceDTOVersion2RailTHSRAvailableSeat struct {
// Required: true
Direction *int32 `json:"Direction"`
- // 終點車站簡碼(訂票系統用)
+ // String
+ //
+ // 終點車站代碼
// Required: true
EndingStationCode *string `json:"EndingStationCode"`
- // 終點車站代碼
+ // String
+ //
+ // 終點車站簡碼(訂票系統用)
// Required: true
EndingStationID *string `json:"EndingStationID"`
@@ -39,12 +43,18 @@ type ServiceDTOVersion2RailTHSRAvailableSeat struct {
//
// 終點車站名稱
// Required: true
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName"`
+ // String
+ //
// 起站車站簡碼(訂票系統用)
// Required: true
StartingStationCode *string `json:"StartingStationCode"`
+ // String
+ //
// 起點車站代碼
// Required: true
StartingStationID *string `json:"StartingStationID"`
@@ -53,19 +63,25 @@ type ServiceDTOVersion2RailTHSRAvailableSeat struct {
//
// 起點車站名稱
// Required: true
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName"`
+ // Array
+ //
// 車次停靠站點組合
// Required: true
- StopStations []*ServiceDTOVersion2RailTHSRStopStation `json:"StopStations"`
+ StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation `json:"StopStations"`
+ // String
+ //
// 車次號碼
// Required: true
TrainNo *string `json:"TrainNo"`
}
-// Validate validates this service d t o version2 rail t h s r available seat
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r available seat
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -110,7 +126,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -119,7 +135,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateDirection(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateEndingStationCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateEndingStationCode(formats strfmt.Registry) error {
if err := validate.Required("EndingStationCode", "body", m.EndingStationCode); err != nil {
return err
@@ -128,7 +144,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateEndingStationCode(form
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateEndingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateEndingStationID(formats strfmt.Registry) error {
if err := validate.Required("EndingStationID", "body", m.EndingStationID); err != nil {
return err
@@ -137,25 +153,12 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateEndingStationID(format
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStartingStationCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateStartingStationCode(formats strfmt.Registry) error {
if err := validate.Required("StartingStationCode", "body", m.StartingStationCode); err != nil {
return err
@@ -164,7 +167,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStartingStationCode(fo
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStartingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateStartingStationID(formats strfmt.Registry) error {
if err := validate.Required("StartingStationID", "body", m.StartingStationID); err != nil {
return err
@@ -173,25 +176,12 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStartingStationID(form
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStartingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StartingStationName", "body", m.StartingStationName); err != nil {
- return err
- }
-
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateStartingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStopStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateStopStations(formats strfmt.Registry) error {
if err := validate.Required("StopStations", "body", m.StopStations); err != nil {
return err
@@ -216,7 +206,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateStopStations(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -226,7 +216,7 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) validateTrainNo(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -234,8 +224,8 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeat) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAvailableSeat) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRAvailableSeat
+func (m *PTXServiceDTORailSpecificationV2THSRAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRAvailableSeat
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go
similarity index 51%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go
index 9d1434ed..780f4f83 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_general_timetable.go
@@ -14,24 +14,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRGeneralTimetable GeneralTimetable
+// PTXServiceDTORailSpecificationV2THSRGeneralTimetable GeneralTimetable
//
// 高鐵定期時刻表資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.GeneralTimetable
-type ServiceDTOVersion2RailTHSRGeneralTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.GeneralTimetable
+type PTXServiceDTORailSpecificationV2THSRGeneralTimetable struct {
// RailGeneralTrainInfo
//
// 定期車次資料
// Required: true
- GeneralTrainInfo *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo `json:"GeneralTrainInfo"`
+ GeneralTrainInfo struct {
+ PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo
+ } `json:"GeneralTrainInfo"`
// ServiceDay
//
// 營運日型態
// Required: true
- ServiceDay *ServiceDTOVersion2RailTHSRServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTORailSpecificationV2THSRServiceDay
+ } `json:"ServiceDay"`
// DateTime
//
@@ -39,13 +43,15 @@ type ServiceDTOVersion2RailTHSRGeneralTimetable struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion2RailTHSRRailStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime `json:"StopTimes"`
}
-// Validate validates this service d t o version2 rail t h s r general timetable
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r general timetable
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGeneralTrainInfo(formats); err != nil {
@@ -70,43 +76,17 @@ func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateGeneralTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("GeneralTrainInfo", "body", m.GeneralTrainInfo); err != nil {
- return err
- }
-
- if m.GeneralTrainInfo != nil {
- if err := m.GeneralTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("GeneralTrainInfo")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) validateGeneralTrainInfo(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) validateServiceDay(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -115,7 +95,7 @@ func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateSrcUpdateTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -141,7 +121,7 @@ func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) validateStopTimes(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -149,8 +129,8 @@ func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRGeneralTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRGeneralTimetable
+func (m *PTXServiceDTORailSpecificationV2THSRGeneralTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRGeneralTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go
similarity index 69%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go
index fbe797d9..636f6a61 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_news.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRNews News
+// PTXServiceDTORailSpecificationV2THSRNews News
//
// 高鐵最新消息
//
-// swagger:model Service.DTO.Version2.Rail.THSR.News
-type ServiceDTOVersion2RailTHSRNews struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.News
+type PTXServiceDTORailSpecificationV2THSRNews struct {
+ // Array
+ //
// 消息附件網址連結
// Required: true
AttachmentURLList []string `json:"AttachmentUrlList"`
+ // String
+ //
// 消息內容描述
// Required: true
Description *string `json:"Description"`
@@ -33,19 +37,27 @@ type ServiceDTOVersion2RailTHSRNews struct {
// Required: true
EndTime *string `json:"EndTime"`
+ // String
+ //
// 語系
// Required: true
Language *string `json:"Language"`
+ // String
+ //
// 消息類別
// Required: true
NewsCategory *string `json:"NewsCategory"`
+ // Guid
+ //
// 消息編號
// Required: true
// Format: uuid
NewsID *strfmt.UUID `json:"NewsID"`
+ // String
+ //
// 消息網址連結
// Required: true
NewsURL *string `json:"NewsUrl"`
@@ -62,6 +74,8 @@ type ServiceDTOVersion2RailTHSRNews struct {
// Required: true
StartTime *string `json:"StartTime"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
@@ -73,8 +87,8 @@ type ServiceDTOVersion2RailTHSRNews struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t h s r news
-func (m *ServiceDTOVersion2RailTHSRNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r news
+func (m *PTXServiceDTORailSpecificationV2THSRNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAttachmentURLList(formats); err != nil {
@@ -127,7 +141,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateAttachmentURLList(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateAttachmentURLList(formats strfmt.Registry) error {
if err := validate.Required("AttachmentUrlList", "body", m.AttachmentURLList); err != nil {
return err
@@ -136,7 +150,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateAttachmentURLList(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -145,7 +159,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateDescription(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -154,7 +168,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateEndTime(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateLanguage(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateLanguage(formats strfmt.Registry) error {
if err := validate.Required("Language", "body", m.Language); err != nil {
return err
@@ -163,7 +177,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateLanguage(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateNewsCategory(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateNewsCategory(formats strfmt.Registry) error {
if err := validate.Required("NewsCategory", "body", m.NewsCategory); err != nil {
return err
@@ -172,7 +186,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateNewsCategory(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -185,7 +199,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateNewsID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateNewsURL(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateNewsURL(formats strfmt.Registry) error {
if err := validate.Required("NewsUrl", "body", m.NewsURL); err != nil {
return err
@@ -194,7 +208,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateNewsURL(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validatePublishTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validatePublishTime(formats strfmt.Registry) error {
if err := validate.Required("PublishTime", "body", m.PublishTime); err != nil {
return err
@@ -203,7 +217,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validatePublishTime(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -212,7 +226,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateStartTime(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -221,7 +235,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateTitle(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -231,7 +245,7 @@ func (m *ServiceDTOVersion2RailTHSRNews) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -239,8 +253,8 @@ func (m *ServiceDTOVersion2RailTHSRNews) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRNews
+func (m *PTXServiceDTORailSpecificationV2THSRNews) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go
new file mode 100644
index 00000000..982a8582
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_o_d_available_seat.go
@@ -0,0 +1,235 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV2THSRODAvailableSeat AvailableSeat
+//
+// 高鐵站間對號座位狀態資訊
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.OD.AvailableSeat
+type PTXServiceDTORailSpecificationV2THSRODAvailableSeat struct {
+
+ // String
+ //
+ // 商務席剩餘座位狀態
+ // Required: true
+ BusinessSeatStatus *string `json:"BusinessSeatStatus"`
+
+ // String
+ //
+ // 迄站車站簡碼(訂票系統用)
+ // Required: true
+ DestinationStationCode *string `json:"DestinationStationCode"`
+
+ // String
+ //
+ // 迄點車站代碼
+ // Required: true
+ DestinationStationID *string `json:"DestinationStationID"`
+
+ // NameType
+ //
+ // 迄點車站名稱
+ // Required: true
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
+
+ // Int32
+ //
+ // 行駛方向
+ // Required: true
+ Direction *int32 `json:"Direction"`
+
+ // String
+ //
+ // 起站車站簡碼(訂票系統用)
+ // Required: true
+ OriginStationCode *string `json:"OriginStationCode"`
+
+ // String
+ //
+ // 起點車站代碼
+ // Required: true
+ OriginStationID *string `json:"OriginStationID"`
+
+ // NameType
+ //
+ // 起點車站名稱
+ // Required: true
+ OriginStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OriginStationName"`
+
+ // String
+ //
+ // 標準席剩餘座位狀態
+ // Required: true
+ StandardSeatStatus *string `json:"StandardSeatStatus"`
+
+ // String
+ //
+ // 車次號碼
+ // Required: true
+ TrainNo *string `json:"TrainNo"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 t h s r o d available seat
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateBusinessSeatStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestinationStationCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestinationStationID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestinationStationName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDirection(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOriginStationCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOriginStationID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOriginStationName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStandardSeatStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrainNo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateBusinessSeatStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("BusinessSeatStatus", "body", m.BusinessSeatStatus); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateDestinationStationCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("DestinationStationCode", "body", m.DestinationStationCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateDestinationStationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateDestinationStationName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateDirection(formats strfmt.Registry) error {
+
+ if err := validate.Required("Direction", "body", m.Direction); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateOriginStationCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("OriginStationCode", "body", m.OriginStationCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateOriginStationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("OriginStationID", "body", m.OriginStationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateOriginStationName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateStandardSeatStatus(formats strfmt.Registry) error {
+
+ if err := validate.Required("StandardSeatStatus", "body", m.StandardSeatStatus); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) validateTrainNo(formats strfmt.Registry) error {
+
+ if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2THSRODAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRODAvailableSeat
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
similarity index 60%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
index 9eb72c32..ea684cb3 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_available_seat.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_old_available_seat.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSROldAvailableSeat AvailableSeat
+// PTXServiceDTORailSpecificationV2THSROldAvailableSeat AvailableSeat
//
// 高鐵對號座位狀態資訊
//
-// swagger:model Service.DTO.Version2.Rail.THSR.Old.AvailableSeat
-type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.Old.AvailableSeat
+type PTXServiceDTORailSpecificationV2THSROldAvailableSeat struct {
+ // String
+ //
// 發車時間(格式: HH:mm)
// Required: true
DepartureTime *string `json:"DepartureTime"`
@@ -31,6 +33,8 @@ type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 終點車站代碼
// Required: true
EndingStationID *string `json:"EndingStationID"`
@@ -39,7 +43,9 @@ type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
//
// 終點車站名稱
// Required: true
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName"`
// DateTime
//
@@ -47,6 +53,8 @@ type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
// Required: true
SrcRecTime *string `json:"SrcRecTime"`
+ // String
+ //
// 查詢車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -55,12 +63,18 @@ type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
//
// 查詢車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Array
+ //
// 車次停靠站點組合
// Required: true
- StopStations []*ServiceDTOVersion2RailTHSROldStopStation `json:"StopStations"`
+ StopStations []*PTXServiceDTORailSpecificationV2THSRStopStation `json:"StopStations"`
+ // String
+ //
// 車次號碼
// Required: true
TrainNo *string `json:"TrainNo"`
@@ -72,8 +86,8 @@ type ServiceDTOVersion2RailTHSROldAvailableSeat struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t h s r old available seat
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r old available seat
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepartureTime(formats); err != nil {
@@ -122,7 +136,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -131,7 +145,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateDepartureTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -140,7 +154,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateDirection(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateEndingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateEndingStationID(formats strfmt.Registry) error {
if err := validate.Required("EndingStationID", "body", m.EndingStationID); err != nil {
return err
@@ -149,25 +163,12 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateEndingStationID(for
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateSrcRecTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateSrcRecTime(formats strfmt.Registry) error {
if err := validate.Required("SrcRecTime", "body", m.SrcRecTime); err != nil {
return err
@@ -176,7 +177,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateSrcRecTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -185,25 +186,12 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateStationID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateStopStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateStopStations(formats strfmt.Registry) error {
if err := validate.Required("StopStations", "body", m.StopStations); err != nil {
return err
@@ -228,7 +216,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateStopStations(format
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -237,7 +225,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateTrainNo(formats str
return nil
}
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -247,7 +235,7 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -255,8 +243,8 @@ func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSROldAvailableSeat) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSROldAvailableSeat
+func (m *PTXServiceDTORailSpecificationV2THSROldAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSROldAvailableSeat
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go
index 9cf70465..7caa801c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_timetable.go
@@ -14,23 +14,29 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailDailyTimetable RailDailyTimetable
+// PTXServiceDTORailSpecificationV2THSRRailDailyTimetable RailDailyTimetable
//
// 高鐵到離站時刻資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailDailyTimetable
-type ServiceDTOVersion2RailTHSRRailDailyTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTimetable
+type PTXServiceDTORailSpecificationV2THSRRailDailyTimetable struct {
// RailDailyTrainInfo
//
// 車次資料
// Required: true
- DailyTrainInfo *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo `json:"DailyTrainInfo"`
+ DailyTrainInfo struct {
+ PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo
+ } `json:"DailyTrainInfo"`
+ // Array
+ //
// 停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion2RailTHSRRailStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTORailSpecificationV2THSRRailStopTime `json:"StopTimes"`
+ // String
+ //
// 行駛日期(格式: yyyy:MM:dd)
// Required: true
TrainDate *string `json:"TrainDate"`
@@ -41,13 +47,15 @@ type ServiceDTOVersion2RailTHSRRailDailyTimetable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail daily timetable
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail daily timetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDailyTrainInfo(formats); err != nil {
@@ -76,25 +84,12 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) Validate(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("DailyTrainInfo", "body", m.DailyTrainInfo); err != nil {
- return err
- }
-
- if m.DailyTrainInfo != nil {
- if err := m.DailyTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DailyTrainInfo")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -119,7 +114,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateStopTimes(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -128,7 +123,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateTrainDate(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -137,7 +132,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateUpdateTime(format
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -147,7 +142,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) validateVersionID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -155,8 +150,8 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailDailyTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailDailyTimetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go
similarity index 55%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go
index d8e29dd9..df12de18 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_daily_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailDailyTrainInfo RailDailyTrainInfo
+// PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo RailDailyTrainInfo
//
// 高鐵車次資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo
-type ServiceDTOVersion2RailTHSRRailDailyTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailDailyTrainInfo
+type PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo struct {
// integer
//
@@ -25,27 +25,39 @@ type ServiceDTOVersion2RailTHSRRailDailyTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
@@ -56,13 +68,15 @@ type ServiceDTOVersion2RailTHSRRailDailyTrainInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail daily train info
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail daily train info
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -99,7 +113,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) Validate(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -108,61 +122,34 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateDirection(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -171,7 +158,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateTrainNo(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -180,7 +167,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateUpdateTime(format
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -190,7 +177,7 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) validateVersionID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -198,8 +185,8 @@ func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailDailyTrainInfo
+func (m *PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go
similarity index 56%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go
index b96b8d05..ab15e272 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_timetable.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailGeneralTimetable RailGeneralTimetable
+// PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable RailGeneralTimetable
//
// 高鐵到離站時刻資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailGeneralTimetable
-type ServiceDTOVersion2RailTHSRRailGeneralTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTimetable
+type PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable struct {
+ // String
+ //
// 有效日期(格式: yyyy:MM:dd)
// Required: true
EffectiveDate *string `json:"EffectiveDate"`
+ // String
+ //
// 結束日期(格式: yyyy:MM:dd)
// Required: true
ExpiringDate *string `json:"ExpiringDate"`
@@ -31,20 +35,24 @@ type ServiceDTOVersion2RailTHSRRailGeneralTimetable struct {
//
// 定期時刻表資料
// Required: true
- GeneralTimetable *ServiceDTOVersion2RailTHSRGeneralTimetable `json:"GeneralTimetable"`
+ GeneralTimetable struct {
+ PTXServiceDTORailSpecificationV2THSRGeneralTimetable
+ } `json:"GeneralTimetable"`
// DateTime
//
// 發布時間(格式: yyyy-MM-dd)
UpdateTime string `json:"UpdateTime,omitempty"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail general timetable
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail general timetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEffectiveDate(formats); err != nil {
@@ -69,7 +77,7 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateEffectiveDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) validateEffectiveDate(formats strfmt.Registry) error {
if err := validate.Required("EffectiveDate", "body", m.EffectiveDate); err != nil {
return err
@@ -78,7 +86,7 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateEffectiveDate(f
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateExpiringDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) validateExpiringDate(formats strfmt.Registry) error {
if err := validate.Required("ExpiringDate", "body", m.ExpiringDate); err != nil {
return err
@@ -87,25 +95,12 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateExpiringDate(fo
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateGeneralTimetable(formats strfmt.Registry) error {
-
- if err := validate.Required("GeneralTimetable", "body", m.GeneralTimetable); err != nil {
- return err
- }
-
- if m.GeneralTimetable != nil {
- if err := m.GeneralTimetable.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("GeneralTimetable")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) validateGeneralTimetable(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -115,7 +110,7 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) validateVersionID(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -123,8 +118,8 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailGeneralTimetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go
index 60df3d59..13c42310 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_general_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailGeneralTrainInfo RailGeneralTrainInfo
+// PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo RailGeneralTrainInfo
//
// 高鐵車次定期資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailGeneralTrainInfo
-type ServiceDTOVersion2RailTHSRRailGeneralTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailGeneralTrainInfo
+type PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo struct {
// integer
//
@@ -25,34 +25,46 @@ type ServiceDTOVersion2RailTHSRRailGeneralTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
}
-// Validate validates this service d t o version2 rail t h s r rail general train info
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail general train info
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -81,7 +93,7 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -90,61 +102,34 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateDirection(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -154,7 +139,7 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) validateTrainNo(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -162,8 +147,8 @@ func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailGeneralTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailGeneralTrainInfo
+func (m *PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailGeneralTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go
new file mode 100644
index 00000000..0d3a34b0
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_daily_timetable.go
@@ -0,0 +1,157 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable RailODDailyTimetable
+//
+// 高鐵起訖站間到離站時刻資料型別
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailODDailyTimetable
+type PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable struct {
+
+ // RailDailyTrainInfo
+ //
+ // 車次資料
+ // Required: true
+ DailyTrainInfo struct {
+ PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo
+ } `json:"DailyTrainInfo"`
+
+ // RailStopTime
+ //
+ // 迄站停靠時間資料
+ // Required: true
+ DestinationStopTime struct {
+ PTXServiceDTORailSpecificationV2THSRRailStopTime
+ } `json:"DestinationStopTime"`
+
+ // RailStopTime
+ //
+ // 起站停靠時間資料
+ // Required: true
+ OriginStopTime struct {
+ PTXServiceDTORailSpecificationV2THSRRailStopTime
+ } `json:"OriginStopTime"`
+
+ // String
+ //
+ // 行駛日期(格式: yyyy:MM:dd)
+ // Required: true
+ TrainDate *string `json:"TrainDate"`
+
+ // DateTime
+ //
+ // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
+
+ // Int32
+ //
+ // 資料版本編號
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 t h s r rail o d daily timetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDailyTrainInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestinationStopTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOriginStopTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrainDate(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateDestinationStopTime(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateOriginStopTime(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go
similarity index 62%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go
index a84164bb..faa10e59 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_o_d_fare.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailODFare RailODFare
+// PTXServiceDTORailSpecificationV2THSRRailODFare RailODFare
//
// 高鐵起訖站票價資料
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailODFare
-type ServiceDTOVersion2RailTHSRRailODFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailODFare
+type PTXServiceDTORailSpecificationV2THSRRailODFare struct {
+ // String
+ //
// 迄點車站代碼
// Required: true
DestinationStationID *string `json:"DestinationStationID"`
@@ -29,7 +31,9 @@ type ServiceDTOVersion2RailTHSRRailODFare struct {
//
// 迄點車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
// integer
//
@@ -37,10 +41,14 @@ type ServiceDTOVersion2RailTHSRRailODFare struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 票價收費資訊(本項僅列標準、商務及自由之基本票價,其他優待票及團體票之折扣計算請參考高鐵網站票價產品一覽表http://www.thsrc.com.tw/tw/Article/ArticleContent/caa6fac8-b875-4ad6-b1e6-96c2902d12a6 說明)
// Required: true
- Fares []*ServiceDTOVersion2BaseFare `json:"Fares"`
+ Fares []*PTXServiceDTOSharedSpecificationV2BaseFare `json:"Fares"`
+ // String
+ //
// 起點車站代碼
// Required: true
OriginStationID *string `json:"OriginStationID"`
@@ -49,7 +57,9 @@ type ServiceDTOVersion2RailTHSRRailODFare struct {
//
// 起點車站名稱
// Required: true
- OriginStationName *ServiceDTOVersion2BaseNameType `json:"OriginStationName"`
+ OriginStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OriginStationName"`
// DateTime
//
@@ -63,13 +73,15 @@ type ServiceDTOVersion2RailTHSRRailODFare struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail o d fare
-func (m *ServiceDTOVersion2RailTHSRRailODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail o d fare
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationID(formats); err != nil {
@@ -114,7 +126,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateDestinationStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateDestinationStationID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
return err
@@ -123,25 +135,12 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateDestinationStationID(form
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -150,7 +149,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateDirection(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -175,7 +174,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateFares(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateOriginStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateOriginStationID(formats strfmt.Registry) error {
if err := validate.Required("OriginStationID", "body", m.OriginStationID); err != nil {
return err
@@ -184,25 +183,12 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateOriginStationID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateOriginStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStationName", "body", m.OriginStationName); err != nil {
- return err
- }
-
- if m.OriginStationName != nil {
- if err := m.OriginStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateOriginStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -211,7 +197,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateSrcUpdateTime(formats str
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -220,7 +206,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateUpdateTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailODFare) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -230,7 +216,7 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) validateVersionID(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -238,8 +224,8 @@ func (m *ServiceDTOVersion2RailTHSRRailODFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailODFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailODFare
+func (m *PTXServiceDTORailSpecificationV2THSRRailODFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go
index d8e1e9a5..2f1025d1 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailStation RailStation
+// PTXServiceDTORailSpecificationV2THSRRailStation RailStation
//
// 高鐵車站資料
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailStation
-type ServiceDTOVersion2RailTHSRRailStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailStation
+type PTXServiceDTORailSpecificationV2THSRRailStation struct {
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 車站地址
// Required: true
StationAddress *string `json:"StationAddress"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -35,8 +41,12 @@ type ServiceDTOVersion2RailTHSRRailStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車站聯絡電話
StationPhone string `json:"StationPhone,omitempty"`
@@ -44,8 +54,12 @@ type ServiceDTOVersion2RailTHSRRailStation struct {
//
// 車站位置
// Required: true
- StationPosition *ServiceDTOVersion2BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 車站唯一識別代碼
// Required: true
StationUID *string `json:"StationUID"`
@@ -56,13 +70,15 @@ type ServiceDTOVersion2RailTHSRRailStation struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail station
-func (m *ServiceDTOVersion2RailTHSRRailStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail station
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorID(formats); err != nil {
@@ -103,7 +119,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -112,7 +128,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateOperatorID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationAddress(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateStationAddress(formats strfmt.Registry) error {
if err := validate.Required("StationAddress", "body", m.StationAddress); err != nil {
return err
@@ -121,7 +137,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationAddress(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -130,43 +146,17 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -175,7 +165,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateStationUID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -184,7 +174,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateUpdateTime(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStation) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -194,7 +184,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) validateVersionID(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -202,8 +192,8 @@ func (m *ServiceDTOVersion2RailTHSRRailStation) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailStation
+func (m *PTXServiceDTORailSpecificationV2THSRRailStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go
index 61a6ecc7..dc2a7770 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_station_timetable.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailStationTimetable RailStationTimetable
+// PTXServiceDTORailSpecificationV2THSRRailStationTimetable RailStationTimetable
//
// 高鐵車站站別時刻表資料型別
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailStationTimetable
-type ServiceDTOVersion2RailTHSRRailStationTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailStationTimetable
+type PTXServiceDTORailSpecificationV2THSRRailStationTimetable struct {
+ // String
+ //
// 到站時間(格式: HH:mm:ss)
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間(格式: HH:mm:ss)
// Required: true
DepartureTime *string `json:"DepartureTime"`
@@ -33,22 +37,36 @@ type ServiceDTOVersion2RailTHSRRailStationTimetable struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 終點車站代號
// Required: true
EndingStationID *string `json:"EndingStationID"`
+ // NameType
+ //
// 終點車站名稱
// Required: true
- EndingStationName *string `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName"`
+ // String
+ //
// 起點車站代號
// Required: true
StartingStationID *string `json:"StartingStationID"`
+ // NameType
+ //
// 起點車站名稱
// Required: true
- StartingStationName *string `json:"StartingStationName"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -57,12 +75,18 @@ type ServiceDTOVersion2RailTHSRRailStationTimetable struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 時刻表日期(格式: yyyy-MM-dd)
// Required: true
TrainDate *string `json:"TrainDate"`
+ // String
+ //
// 車次代號
// Required: true
TrainNo *string `json:"TrainNo"`
@@ -73,13 +97,15 @@ type ServiceDTOVersion2RailTHSRRailStationTimetable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t h s r rail station timetable
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail station timetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -140,7 +166,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -149,7 +175,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateArrivalTime(for
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -158,7 +184,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateDepartureTime(f
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -167,7 +193,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateDirection(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateEndingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateEndingStationID(formats strfmt.Registry) error {
if err := validate.Required("EndingStationID", "body", m.EndingStationID); err != nil {
return err
@@ -176,16 +202,12 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateEndingStationID
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStartingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateStartingStationID(formats strfmt.Registry) error {
if err := validate.Required("StartingStationID", "body", m.StartingStationID); err != nil {
return err
@@ -194,16 +216,12 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStartingStation
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStartingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StartingStationName", "body", m.StartingStationName); err != nil {
- return err
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateStartingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -212,25 +230,12 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStationID(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -239,7 +244,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateTrainDate(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -248,7 +253,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateTrainNo(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -257,7 +262,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateUpdateTime(form
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -267,7 +272,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) validateVersionID(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -275,8 +280,8 @@ func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStationTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailStationTimetable
+func (m *PTXServiceDTORailSpecificationV2THSRRailStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go
similarity index 57%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go
index fe3f3df2..8ad7157f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_rail_stop_time.go
@@ -12,20 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRRailStopTime RailStopTime
+// PTXServiceDTORailSpecificationV2THSRRailStopTime RailStopTime
//
// 高鐵停靠時間資料
//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailStopTime
-type ServiceDTOVersion2RailTHSRRailStopTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.RailStopTime
+type PTXServiceDTORailSpecificationV2THSRRailStopTime struct {
+ // String
+ //
// 到站時間(格式: HH:mm:ss)
ArrivalTime string `json:"ArrivalTime,omitempty"`
+ // String
+ //
// 離站時間(格式: HH:mm:ss)
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -34,15 +40,19 @@ type ServiceDTOVersion2RailTHSRRailStopTime struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Int32
+ //
// 跑法站序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
}
-// Validate validates this service d t o version2 rail t h s r rail stop time
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r rail stop time
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDepartureTime(formats); err != nil {
@@ -67,7 +77,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStopTime) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -76,7 +86,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateDepartureTime(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -85,25 +95,12 @@ func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateStationID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -113,7 +110,7 @@ func (m *ServiceDTOVersion2RailTHSRRailStopTime) validateStopSequence(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -121,8 +118,8 @@ func (m *ServiceDTOVersion2RailTHSRRailStopTime) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailStopTime
+func (m *PTXServiceDTORailSpecificationV2THSRRailStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRRailStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go
similarity index 66%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go
index bc0c9488..cbe6e9a8 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_service_day.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRAServiceDay ServiceDay
+// PTXServiceDTORailSpecificationV2THSRServiceDay ServiceDay
//
-// 台鐵服務日型態
+// 高鐵服務日型態
//
-// swagger:model Service.DTO.Version2.Rail.TRA.ServiceDay
-type ServiceDTOVersion2RailTRAServiceDay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.ServiceDay
+type PTXServiceDTORailSpecificationV2THSRServiceDay struct {
// integer
//
@@ -62,8 +62,8 @@ type ServiceDTOVersion2RailTRAServiceDay struct {
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version2 rail t r a service day
-func (m *ServiceDTOVersion2RailTRAServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r service day
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -100,7 +100,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -109,7 +109,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateFriday(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -118,7 +118,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateMonday(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -127,7 +127,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateSaturday(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -136,7 +136,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateSunday(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -145,7 +145,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateThursday(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -154,7 +154,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateTuesday(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTRAServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -164,7 +164,7 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) validateWednesday(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -172,8 +172,8 @@ func (m *ServiceDTOVersion2RailTRAServiceDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRAServiceDay
+func (m *PTXServiceDTORailSpecificationV2THSRServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go
similarity index 56%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go
index 9cbe58d1..b0dc6dd3 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_station_exit.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRStationExit StationExit
+// PTXServiceDTORailSpecificationV2THSRStationExit StationExit
//
// 高鐵車站出入口資料
//
-// swagger:model Service.DTO.Version2.Rail.THSR.StationExit
-type ServiceDTOVersion2RailTHSRStationExit struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.StationExit
+type PTXServiceDTORailSpecificationV2THSRStationExit struct {
// 是否有電梯
// Required: true
@@ -27,6 +27,8 @@ type ServiceDTOVersion2RailTHSRStationExit struct {
// Required: true
Escalator *bool `json:"Escalator"`
+ // String
+ //
// 出入口代碼
// Required: true
ExitID *string `json:"ExitID"`
@@ -35,14 +37,20 @@ type ServiceDTOVersion2RailTHSRStationExit struct {
//
// 出入口名稱
// Required: true
- ExitName *ServiceDTOVersion2BaseNameType `json:"ExitName"`
+ ExitName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"ExitName"`
// PointType
//
// 出入口座標
// Required: true
- ExitPosition *ServiceDTOVersion2BasePointType `json:"ExitPosition"`
+ ExitPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"ExitPosition"`
+ // String
+ //
// 地址描述
// Required: true
LocationDescription *string `json:"LocationDescription"`
@@ -57,6 +65,8 @@ type ServiceDTOVersion2RailTHSRStationExit struct {
// Required: true
Stair *bool `json:"Stair"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -65,7 +75,9 @@ type ServiceDTOVersion2RailTHSRStationExit struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
// DateTime
//
@@ -74,8 +86,8 @@ type ServiceDTOVersion2RailTHSRStationExit struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t h s r station exit
-func (m *ServiceDTOVersion2RailTHSRStationExit) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r station exit
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateElevator(formats); err != nil {
@@ -128,7 +140,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateElevator(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateElevator(formats strfmt.Registry) error {
if err := validate.Required("Elevator", "body", m.Elevator); err != nil {
return err
@@ -137,7 +149,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateElevator(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateEscalator(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateEscalator(formats strfmt.Registry) error {
if err := validate.Required("Escalator", "body", m.Escalator); err != nil {
return err
@@ -146,7 +158,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateEscalator(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateExitID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateExitID(formats strfmt.Registry) error {
if err := validate.Required("ExitID", "body", m.ExitID); err != nil {
return err
@@ -155,43 +167,17 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateExitID(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateExitName(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitName", "body", m.ExitName); err != nil {
- return err
- }
-
- if m.ExitName != nil {
- if err := m.ExitName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateExitName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateExitPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitPosition", "body", m.ExitPosition); err != nil {
- return err
- }
-
- if m.ExitPosition != nil {
- if err := m.ExitPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateExitPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateLocationDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateLocationDescription(formats strfmt.Registry) error {
if err := validate.Required("LocationDescription", "body", m.LocationDescription); err != nil {
return err
@@ -200,7 +186,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateLocationDescription(form
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -209,7 +195,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateSrcUpdateTime(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateStair(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateStair(formats strfmt.Registry) error {
if err := validate.Required("Stair", "body", m.Stair); err != nil {
return err
@@ -218,7 +204,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateStair(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -227,25 +213,12 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateStationID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStationExit) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -255,7 +228,7 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) validateUpdateTime(formats strfm
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRStationExit) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -263,8 +236,8 @@ func (m *ServiceDTOVersion2RailTHSRStationExit) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRStationExit) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRStationExit
+func (m *PTXServiceDTORailSpecificationV2THSRStationExit) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRStationExit
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go
index ae8222a8..047b7371 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_stop_station.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRStopStation StopStation
+// PTXServiceDTORailSpecificationV2THSRStopStation StopStation
//
// 車次停靠站點組合
//
-// swagger:model Service.DTO.Version2.Rail.THSR.StopStation
-type ServiceDTOVersion2RailTHSRStopStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.StopStation
+type PTXServiceDTORailSpecificationV2THSRStopStation struct {
+ // String
+ //
// 商務席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']
// Required: true
BusinessSeatStatus *string `json:"BusinessSeatStatus"`
+ // String
+ //
// 下一停靠站車站簡碼(訂票系統用)
// Required: true
NextStationCode *string `json:"NextStationCode"`
+ // String
+ //
// 下一停靠站車站代碼
// Required: true
NextStationID *string `json:"NextStationID"`
@@ -35,16 +41,24 @@ type ServiceDTOVersion2RailTHSRStopStation struct {
//
// 下一停靠站車站名稱
// Required: true
- NextStationName *ServiceDTOVersion2BaseNameType `json:"NextStationName"`
+ NextStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"NextStationName"`
+ // String
+ //
// 標準席剩餘座位狀態 = ['O: 尚有座位' or 'L: 座位有限' or 'X: 已無座位']
// Required: true
StandardSeatStatus *string `json:"StandardSeatStatus"`
+ // String
+ //
// 車站簡碼(訂票系統用)
// Required: true
StationCode *string `json:"StationCode"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -53,15 +67,19 @@ type ServiceDTOVersion2RailTHSRStopStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Int32
+ //
// 跑法站序
// Required: true
StopSequence *int32 `json:"StopSequence"`
}
-// Validate validates this service d t o version2 rail t h s r stop station
-func (m *ServiceDTOVersion2RailTHSRStopStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r stop station
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBusinessSeatStatus(formats); err != nil {
@@ -106,7 +124,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateBusinessSeatStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateBusinessSeatStatus(formats strfmt.Registry) error {
if err := validate.Required("BusinessSeatStatus", "body", m.BusinessSeatStatus); err != nil {
return err
@@ -115,7 +133,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateBusinessSeatStatus(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateNextStationCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateNextStationCode(formats strfmt.Registry) error {
if err := validate.Required("NextStationCode", "body", m.NextStationCode); err != nil {
return err
@@ -124,7 +142,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateNextStationCode(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateNextStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateNextStationID(formats strfmt.Registry) error {
if err := validate.Required("NextStationID", "body", m.NextStationID); err != nil {
return err
@@ -133,25 +151,12 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateNextStationID(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateNextStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("NextStationName", "body", m.NextStationName); err != nil {
- return err
- }
-
- if m.NextStationName != nil {
- if err := m.NextStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NextStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateNextStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateStandardSeatStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateStandardSeatStatus(formats strfmt.Registry) error {
if err := validate.Required("StandardSeatStatus", "body", m.StandardSeatStatus); err != nil {
return err
@@ -160,7 +165,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateStandardSeatStatus(forma
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateStationCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateStationCode(formats strfmt.Registry) error {
if err := validate.Required("StationCode", "body", m.StationCode); err != nil {
return err
@@ -169,7 +174,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateStationCode(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -178,25 +183,12 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateStationID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTHSRStopStation) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -206,7 +198,7 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) validateStopSequence(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRStopStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -214,8 +206,8 @@ func (m *ServiceDTOVersion2RailTHSRStopStation) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRStopStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRStopStation
+func (m *PTXServiceDTORailSpecificationV2THSRStopStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRStopStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go
similarity index 53%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go
index 9715899c..9d1057e2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_t_h_s_r_shape.go
@@ -12,17 +12,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroMetroShape MetroShape
+// PTXServiceDTORailSpecificationV2THSRTHSRShape THSRShape
//
-// 捷運線型資料
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MetroShape
-type ServiceDTOVersion2RailMetroMetroShape struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.THSRShape
+type PTXServiceDTORailSpecificationV2THSRTHSRShape struct {
+ // String
+ //
+ // 路線軌跡編碼(encoded polyline)
+ // Required: true
+ EncodedPolyline *string `json:"EncodedPolyline"`
+
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -31,10 +39,9 @@ type ServiceDTOVersion2RailMetroMetroShape struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion2BaseNameType `json:"LineName"`
-
- // 路線編號
- LineNo string `json:"LineNo,omitempty"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineName"`
// DateTime
//
@@ -43,10 +50,14 @@ type ServiceDTOVersion2RailMetroMetroShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail metro metro shape
-func (m *ServiceDTOVersion2RailMetroMetroShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r t h s r shape
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateEncodedPolyline(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateGeometry(formats); err != nil {
res = append(res, err)
}
@@ -69,43 +80,39 @@ func (m *ServiceDTOVersion2RailMetroMetroShape) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailMetroMetroShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) validateEncodedPolyline(formats strfmt.Registry) error {
- if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
+ if err := validate.Required("EncodedPolyline", "body", m.EncodedPolyline); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailMetroMetroShape) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) validateGeometry(formats strfmt.Registry) error {
- if err := validate.Required("LineID", "body", m.LineID); err != nil {
+ if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailMetroMetroShape) validateLineName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) validateLineID(formats strfmt.Registry) error {
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
+ if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
}
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroMetroShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -115,7 +122,7 @@ func (m *ServiceDTOVersion2RailMetroMetroShape) validateUpdateTime(formats strfm
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMetroShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -123,8 +130,8 @@ func (m *ServiceDTOVersion2RailMetroMetroShape) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMetroShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMetroShape
+func (m *PTXServiceDTORailSpecificationV2THSRTHSRShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRTHSRShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_time_info_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_time_info_rail_daily_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go
index fa9f7f13..d6386f82 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_time_info_rail_daily_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_h_s_r_time_info_rail_daily_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo RailDailyTrainInfo
+// PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo RailDailyTrainInfo
//
// 高鐵車次資料型別(時刻表用)
//
-// swagger:model Service.DTO.Version2.Rail.THSR.TimeInfo.RailDailyTrainInfo
-type ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.THSR.TimeInfo.RailDailyTrainInfo
+type PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo struct {
// integer
//
@@ -25,34 +25,46 @@ type ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
}
-// Validate validates this service d t o version2 rail t h s r time info rail daily train info
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t h s r time info rail daily train info
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -81,7 +93,7 @@ func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) Validate(formats
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -90,61 +102,34 @@ func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateDirection
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -154,7 +139,7 @@ func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) validateTrainNo(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -162,8 +147,8 @@ func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo
+func (m *PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2THSRTimeInfoRailDailyTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go
index fe2bb66d..b75c316c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_general_timetable.go
@@ -14,37 +14,43 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRAGeneralTimetable GeneralTimetable
+// PTXServiceDTORailSpecificationV2TRAGeneralTimetable GeneralTimetable
//
// 台鐵定期時刻表資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.GeneralTimetable
-type ServiceDTOVersion2RailTRAGeneralTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.GeneralTimetable
+type PTXServiceDTORailSpecificationV2TRAGeneralTimetable struct {
// RailGeneralTrainInfo
//
// 定期車次資料
// Required: true
- GeneralTrainInfo *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo `json:"GeneralTrainInfo"`
+ GeneralTrainInfo struct {
+ PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo
+ } `json:"GeneralTrainInfo"`
// ServiceDay
//
// 營運日型態
// Required: true
- ServiceDay *ServiceDTOVersion2RailTRAServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTORailSpecificationV2TRAServiceDay
+ } `json:"ServiceDay"`
// DateTime
//
// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Array
+ //
// 停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion2RailTRARailStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime `json:"StopTimes"`
}
-// Validate validates this service d t o version2 rail t r a general timetable
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a general timetable
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGeneralTrainInfo(formats); err != nil {
@@ -65,43 +71,17 @@ func (m *ServiceDTOVersion2RailTRAGeneralTimetable) Validate(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) validateGeneralTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("GeneralTrainInfo", "body", m.GeneralTrainInfo); err != nil {
- return err
- }
-
- if m.GeneralTrainInfo != nil {
- if err := m.GeneralTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("GeneralTrainInfo")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) validateGeneralTrainInfo(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) validateServiceDay(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -127,7 +107,7 @@ func (m *ServiceDTOVersion2RailTRAGeneralTimetable) validateStopTimes(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -135,8 +115,8 @@ func (m *ServiceDTOVersion2RailTRAGeneralTimetable) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAGeneralTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRAGeneralTimetable
+func (m *PTXServiceDTORailSpecificationV2TRAGeneralTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRAGeneralTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go
similarity index 67%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go
index 58235b6f..cbcbd5b0 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line.go
@@ -12,40 +12,56 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRALine Line
+// PTXServiceDTORailSpecificationV2TRALine Line
//
// 路線基本資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.Line
-type ServiceDTOVersion2RailTRALine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.Line
+type PTXServiceDTORailSpecificationV2TRALine struct {
+ // Boolean
+ //
// 是否位於支線
// Required: true
IsBranch *bool `json:"IsBranch"`
+ // String
+ //
// 路線顏色
LineColor string `json:"LineColor,omitempty"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線英文名稱
// Required: true
LineNameEn *string `json:"LineNameEn"`
+ // String
+ //
// 路線中文名稱
// Required: true
LineNameZh *string `json:"LineNameZh"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
+ // String
+ //
// 路線區間英文名稱
// Required: true
LineSectionNameEn *string `json:"LineSectionNameEn"`
+ // String
+ //
// 路線區間中文名稱
// Required: true
LineSectionNameZh *string `json:"LineSectionNameZh"`
@@ -57,8 +73,8 @@ type ServiceDTOVersion2RailTRALine struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a line
-func (m *ServiceDTOVersion2RailTRALine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a line
+func (m *PTXServiceDTORailSpecificationV2TRALine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateIsBranch(formats); err != nil {
@@ -99,7 +115,7 @@ func (m *ServiceDTOVersion2RailTRALine) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateIsBranch(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateIsBranch(formats strfmt.Registry) error {
if err := validate.Required("IsBranch", "body", m.IsBranch); err != nil {
return err
@@ -108,7 +124,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateIsBranch(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -117,7 +133,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineNameEn(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineNameEn(formats strfmt.Registry) error {
if err := validate.Required("LineNameEn", "body", m.LineNameEn); err != nil {
return err
@@ -126,7 +142,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineNameEn(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineNameZh(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineNameZh(formats strfmt.Registry) error {
if err := validate.Required("LineNameZh", "body", m.LineNameZh); err != nil {
return err
@@ -135,7 +151,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineNameZh(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -144,7 +160,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineNo(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineSectionNameEn(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineSectionNameEn(formats strfmt.Registry) error {
if err := validate.Required("LineSectionNameEn", "body", m.LineSectionNameEn); err != nil {
return err
@@ -153,7 +169,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineSectionNameEn(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateLineSectionNameZh(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateLineSectionNameZh(formats strfmt.Registry) error {
if err := validate.Required("LineSectionNameZh", "body", m.LineSectionNameZh); err != nil {
return err
@@ -162,7 +178,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateLineSectionNameZh(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRALine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -172,7 +188,7 @@ func (m *ServiceDTOVersion2RailTRALine) validateUpdateTime(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRALine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -180,8 +196,8 @@ func (m *ServiceDTOVersion2RailTRALine) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRALine
+func (m *PTXServiceDTORailSpecificationV2TRALine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRALine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go
similarity index 58%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go
index 94ace1f0..01fb5eb2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_simple.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRALineSimple Line_Simple
+// PTXServiceDTORailSpecificationV2TRALineSimple Line_Simple
//
// 路線基本資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.Line_Simple
-type ServiceDTOVersion2RailTRALineSimple struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.Line_Simple
+type PTXServiceDTORailSpecificationV2TRALineSimple struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
}
-// Validate validates this service d t o version2 rail t r a line simple
-func (m *ServiceDTOVersion2RailTRALineSimple) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a line simple
+func (m *PTXServiceDTORailSpecificationV2TRALineSimple) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion2RailTRALineSimple) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRALineSimple) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineSimple) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion2RailTRALineSimple) validateLineID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRALineSimple) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineSimple) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion2RailTRALineSimple) validateLineNo(formats strfmt.Regi
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALineSimple) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRALineSimple) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion2RailTRALineSimple) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALineSimple) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRALineSimple
+func (m *PTXServiceDTORailSpecificationV2TRALineSimple) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRALineSimple
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go
similarity index 62%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go
index 762c32d2..cd9fd5fa 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_line_station.go
@@ -12,32 +12,40 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRALineStation LineStation
+// PTXServiceDTORailSpecificationV2TRALineStation LineStation
//
// 路線車站資訊
//
-// swagger:model Service.DTO.Version2.Rail.TRA.LineStation
-type ServiceDTOVersion2RailTRALineStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.LineStation
+type PTXServiceDTORailSpecificationV2TRALineStation struct {
+ // Int32
+ //
// 站序
// Required: true
Sequence *int32 `json:"Sequence"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
+ // String
+ //
// 車站名稱
// Required: true
StationName *string `json:"StationName"`
+ // Single
+ //
// 已累積之里程距離(公里)
// Required: true
TraveledDistance *float32 `json:"TraveledDistance"`
}
-// Validate validates this service d t o version2 rail t r a line station
-func (m *ServiceDTOVersion2RailTRALineStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a line station
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSequence(formats); err != nil {
@@ -62,7 +70,7 @@ func (m *ServiceDTOVersion2RailTRALineStation) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRALineStation) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -71,7 +79,7 @@ func (m *ServiceDTOVersion2RailTRALineStation) validateSequence(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTRALineStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -80,7 +88,7 @@ func (m *ServiceDTOVersion2RailTRALineStation) validateStationID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRALineStation) validateStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) validateStationName(formats strfmt.Registry) error {
if err := validate.Required("StationName", "body", m.StationName); err != nil {
return err
@@ -89,7 +97,7 @@ func (m *ServiceDTOVersion2RailTRALineStation) validateStationName(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTRALineStation) validateTraveledDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) validateTraveledDistance(formats strfmt.Registry) error {
if err := validate.Required("TraveledDistance", "body", m.TraveledDistance); err != nil {
return err
@@ -99,7 +107,7 @@ func (m *ServiceDTOVersion2RailTRALineStation) validateTraveledDistance(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALineStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -107,8 +115,8 @@ func (m *ServiceDTOVersion2RailTRALineStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRALineStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRALineStation
+func (m *PTXServiceDTORailSpecificationV2TRALineStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRALineStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go
similarity index 68%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go
index 162aae29..5a4a95d6 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_network.go
@@ -14,41 +14,57 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRANetwork Network
+// PTXServiceDTORailSpecificationV2TRANetwork Network
//
// 臺鐵路網資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.Network
-type ServiceDTOVersion2RailTRANetwork struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.Network
+type PTXServiceDTORailSpecificationV2TRANetwork struct {
+ // Array
+ //
// 臺鐵路線資訊
// Required: true
- Lines []*ServiceDTOVersion2RailTRALineSimple `json:"Lines"`
+ Lines []*PTXServiceDTORailSpecificationV2TRALineSimple `json:"Lines"`
+ // String
+ //
// 臺鐵路網代碼
// Required: true
NetworkID *string `json:"NetworkID"`
+ // String
+ //
// 臺鐵路網圖網址URL
// Required: true
NetworkMapURL *string `json:"NetworkMapUrl"`
+ // String
+ //
// 臺鐵路網英文名稱
// Required: true
NetworkNameEn *string `json:"NetworkNameEn"`
+ // String
+ //
// 臺鐵路網中文名稱
// Required: true
NetworkNameZh *string `json:"NetworkNameZh"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 臺鐵路網英文名稱
// Required: true
OperatorNameEn *string `json:"OperatorNameEn"`
+ // String
+ //
// 臺鐵路網中文名稱
// Required: true
OperatorNameZh *string `json:"OperatorNameZh"`
@@ -60,8 +76,8 @@ type ServiceDTOVersion2RailTRANetwork struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a network
-func (m *ServiceDTOVersion2RailTRANetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a network
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLines(formats); err != nil {
@@ -106,7 +122,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateLines(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateLines(formats strfmt.Registry) error {
if err := validate.Required("Lines", "body", m.Lines); err != nil {
return err
@@ -131,7 +147,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateLines(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateNetworkID(formats strfmt.Registry) error {
if err := validate.Required("NetworkID", "body", m.NetworkID); err != nil {
return err
@@ -140,7 +156,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkMapURL(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateNetworkMapURL(formats strfmt.Registry) error {
if err := validate.Required("NetworkMapUrl", "body", m.NetworkMapURL); err != nil {
return err
@@ -149,7 +165,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkMapURL(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkNameEn(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateNetworkNameEn(formats strfmt.Registry) error {
if err := validate.Required("NetworkNameEn", "body", m.NetworkNameEn); err != nil {
return err
@@ -158,7 +174,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkNameEn(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkNameZh(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateNetworkNameZh(formats strfmt.Registry) error {
if err := validate.Required("NetworkNameZh", "body", m.NetworkNameZh); err != nil {
return err
@@ -167,7 +183,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateNetworkNameZh(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -176,7 +192,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorNameEn(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateOperatorNameEn(formats strfmt.Registry) error {
if err := validate.Required("OperatorNameEn", "body", m.OperatorNameEn); err != nil {
return err
@@ -185,7 +201,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorNameEn(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorNameZh(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateOperatorNameZh(formats strfmt.Registry) error {
if err := validate.Required("OperatorNameZh", "body", m.OperatorNameZh); err != nil {
return err
@@ -194,7 +210,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateOperatorNameZh(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRANetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -204,7 +220,7 @@ func (m *ServiceDTOVersion2RailTRANetwork) validateUpdateTime(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRANetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -212,8 +228,8 @@ func (m *ServiceDTOVersion2RailTRANetwork) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRANetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRANetwork
+func (m *PTXServiceDTORailSpecificationV2TRANetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRANetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go
index 6350338d..db022ecb 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_timetable.go
@@ -14,23 +14,29 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailDailyTimetable RailDailyTimetable
+// PTXServiceDTORailSpecificationV2TRARailDailyTimetable RailDailyTimetable
//
// 台鐵到離站時刻資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailDailyTimetable
-type ServiceDTOVersion2RailTRARailDailyTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTimetable
+type PTXServiceDTORailSpecificationV2TRARailDailyTimetable struct {
// RailDailyTrainInfo
//
// 車次資料
// Required: true
- DailyTrainInfo *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo `json:"DailyTrainInfo"`
+ DailyTrainInfo struct {
+ PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo
+ } `json:"DailyTrainInfo"`
+ // Array
+ //
// 停靠時間資料
// Required: true
- StopTimes []*ServiceDTOVersion2RailTRARailStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTORailSpecificationV2TRARailStopTime `json:"StopTimes"`
+ // String
+ //
// 行駛日期(格式: yyyy-MM-dd)
// Required: true
TrainDate *string `json:"TrainDate"`
@@ -41,13 +47,15 @@ type ServiceDTOVersion2RailTRARailDailyTimetable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a rail daily timetable
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail daily timetable
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDailyTrainInfo(formats); err != nil {
@@ -76,25 +84,12 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("DailyTrainInfo", "body", m.DailyTrainInfo); err != nil {
- return err
- }
-
- if m.DailyTrainInfo != nil {
- if err := m.DailyTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DailyTrainInfo")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -119,7 +114,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateStopTimes(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -128,7 +123,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateTrainDate(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -137,7 +132,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -147,7 +142,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) validateVersionID(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -155,8 +150,8 @@ func (m *ServiceDTOVersion2RailTRARailDailyTimetable) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailDailyTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailDailyTimetable
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailDailyTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go
similarity index 62%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go
index db155127..66deb442 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_daily_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailDailyTrainInfo RailDailyTrainInfo
+// PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo RailDailyTrainInfo
//
// 臺鐵車次資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo
-type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailDailyTrainInfo
+type PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo struct {
// integer
//
@@ -49,19 +49,27 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 跨夜車站代碼
OverNightStationID string `json:"OverNightStationID,omitempty"`
@@ -77,22 +85,32 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
// Required: true
ServiceAddedFlag *int32 `json:"ServiceAddedFlag"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 列車車種簡碼
// Required: true
TrainTypeCode *string `json:"TrainTypeCode"`
+ // String
+ //
// 列車車種代碼
// Required: true
TrainTypeID *string `json:"TrainTypeID"`
@@ -101,14 +119,18 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
//
// 列車車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName"`
+ // String
+ //
// 車次車頭文字描述(通用以"往"+ 迄站中文站名")
TripHeadsign string `json:"TripHeadsign,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// DateTime
@@ -117,6 +139,8 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
@@ -128,8 +152,8 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
WheelchairFlag *int32 `json:"WheelchairFlag"`
}
-// Validate validates this service d t o version2 rail t r a rail daily train info
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail daily train info
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeFlag(formats); err != nil {
@@ -206,7 +230,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
return err
@@ -215,7 +239,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateBikeFlag(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
if err := validate.Required("BreastFeedingFlag", "body", m.BreastFeedingFlag); err != nil {
return err
@@ -224,7 +248,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateBreastFeedingFlag(
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
return err
@@ -233,7 +257,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDailyFlag(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
return err
@@ -242,7 +266,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDiningFlag(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -251,43 +275,25 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateDirection(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
return err
@@ -296,7 +302,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validatePackageServiceFlag
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateServiceAddedFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateServiceAddedFlag(formats strfmt.Registry) error {
if err := validate.Required("ServiceAddedFlag", "body", m.ServiceAddedFlag); err != nil {
return err
@@ -305,25 +311,16 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateServiceAddedFlag(f
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -332,7 +329,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainNo(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainTypeCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateTrainTypeCode(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeCode", "body", m.TrainTypeCode); err != nil {
return err
@@ -341,7 +338,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainTypeCode(form
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainTypeID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateTrainTypeID(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeID", "body", m.TrainTypeID); err != nil {
return err
@@ -350,25 +347,12 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainTypeID(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -377,7 +361,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateUpdateTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -386,7 +370,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateVersionID(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
if err := validate.Required("WheelchairFlag", "body", m.WheelchairFlag); err != nil {
return err
@@ -396,7 +380,7 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) validateWheelchairFlag(for
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -404,8 +388,8 @@ func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailDailyTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailDailyTrainInfo
+func (m *PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailDailyTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go
index 1d957277..c98c586e 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_general_timetable.go
@@ -12,31 +12,35 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailGeneralTimetable RailGeneralTimetable
+// PTXServiceDTORailSpecificationV2TRARailGeneralTimetable RailGeneralTimetable
//
// 台鐵到離站時刻資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailGeneralTimetable
-type ServiceDTOVersion2RailTRARailGeneralTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailGeneralTimetable
+type PTXServiceDTORailSpecificationV2TRARailGeneralTimetable struct {
// GeneralTimetable
//
// 定期時刻表資料
// Required: true
- GeneralTimetable *ServiceDTOVersion2RailTRAGeneralTimetable `json:"GeneralTimetable"`
+ GeneralTimetable struct {
+ PTXServiceDTORailSpecificationV2TRAGeneralTimetable
+ } `json:"GeneralTimetable"`
// DateTime
//
// 資料更新日期(格式: yyyy-MM-dd)
UpdateTime string `json:"UpdateTime,omitempty"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a rail general timetable
-func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail general timetable
+func (m *PTXServiceDTORailSpecificationV2TRARailGeneralTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGeneralTimetable(formats); err != nil {
@@ -53,25 +57,12 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) validateGeneralTimetable(formats strfmt.Registry) error {
-
- if err := validate.Required("GeneralTimetable", "body", m.GeneralTimetable); err != nil {
- return err
- }
-
- if m.GeneralTimetable != nil {
- if err := m.GeneralTimetable.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("GeneralTimetable")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailGeneralTimetable) validateGeneralTimetable(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailGeneralTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -81,7 +72,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) validateVersionID(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailGeneralTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -89,8 +80,8 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailGeneralTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailGeneralTimetable
+func (m *PTXServiceDTORailSpecificationV2TRARailGeneralTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailGeneralTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go
similarity index 60%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go
index 8c31ba78..21085ca9 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_board.go
@@ -12,14 +12,16 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailLiveBoard RailLiveBoard
+// PTXServiceDTORailSpecificationV2TRARailLiveBoard RailLiveBoard
//
// 台鐵車次動態車次站別即時電子看板資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailLiveBoard
-type ServiceDTOVersion2RailTRARailLiveBoard struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveBoard
+type PTXServiceDTORailSpecificationV2TRARailLiveBoard struct {
- // 誤點時間(0:準點;>=1誤點)
+ // Int32
+ //
+ // 誤點時間(0:準點;>=1誤點)
// Required: true
DelayTime *int32 `json:"DelayTime"`
@@ -29,6 +31,8 @@ type ServiceDTOVersion2RailTRARailLiveBoard struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 車次終點車站代號
// Required: true
EndingStationID *string `json:"EndingStationID"`
@@ -37,12 +41,18 @@ type ServiceDTOVersion2RailTRARailLiveBoard struct {
//
// 車次終點車站名稱
// Required: true
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName"`
+ // String
+ //
// 表訂到站時間(格式: HH:mm:ss)
// Required: true
ScheduledArrivalTime *string `json:"ScheduledArrivalTime"`
+ // String
+ //
// 表訂離站時間(格式: HH:mm:ss)
// Required: true
ScheduledDepartureTime *string `json:"ScheduledDepartureTime"`
@@ -53,6 +63,8 @@ type ServiceDTOVersion2RailTRARailLiveBoard struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -61,26 +73,36 @@ type ServiceDTOVersion2RailTRARailLiveBoard struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 列車車種簡碼
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 列車車種代碼
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 列車車種名稱
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// DateTime
@@ -90,8 +112,8 @@ type ServiceDTOVersion2RailTRARailLiveBoard struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a rail live board
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail live board
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDelayTime(formats); err != nil {
@@ -148,7 +170,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateDelayTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateDelayTime(formats strfmt.Registry) error {
if err := validate.Required("DelayTime", "body", m.DelayTime); err != nil {
return err
@@ -157,7 +179,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateDelayTime(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -166,7 +188,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateDirection(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateEndingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateEndingStationID(formats strfmt.Registry) error {
if err := validate.Required("EndingStationID", "body", m.EndingStationID); err != nil {
return err
@@ -175,25 +197,12 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateEndingStationID(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateScheduledArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateScheduledArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ScheduledArrivalTime", "body", m.ScheduledArrivalTime); err != nil {
return err
@@ -202,7 +211,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateScheduledArrivalTime(fo
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateScheduledDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateScheduledDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("ScheduledDepartureTime", "body", m.ScheduledDepartureTime); err != nil {
return err
@@ -211,7 +220,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateScheduledDepartureTime(
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -220,7 +229,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateSrcUpdateTime(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -229,25 +238,12 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateStationID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -256,25 +252,16 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateTrainNo(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -284,7 +271,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) validateUpdateTime(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -292,8 +279,8 @@ func (m *ServiceDTOVersion2RailTRARailLiveBoard) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailLiveBoard) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailLiveBoard
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go
index 23f8cd69..2d52f7b6 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_live_train_delay.go
@@ -12,14 +12,16 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailLiveTrainDelay RailLiveTrainDelay
+// PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay RailLiveTrainDelay
//
// 台鐵列車即時準點/延誤時間資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailLiveTrainDelay
-type ServiceDTOVersion2RailTRARailLiveTrainDelay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailLiveTrainDelay
+type PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay struct {
- // 誤點時間(0:準點;>=1誤點)
+ // Int32
+ //
+ // 誤點時間(0:準點;>=1誤點)
// Required: true
DelayTime *int32 `json:"DelayTime"`
@@ -29,6 +31,8 @@ type ServiceDTOVersion2RailTRARailLiveTrainDelay struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 最近通過車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -37,8 +41,12 @@ type ServiceDTOVersion2RailTRARailLiveTrainDelay struct {
//
// 最近通過車站名稱[屬離站壓軌觸發]
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
@@ -50,8 +58,8 @@ type ServiceDTOVersion2RailTRARailLiveTrainDelay struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a rail live train delay
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail live train delay
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDelayTime(formats); err != nil {
@@ -84,7 +92,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) Validate(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateDelayTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateDelayTime(formats strfmt.Registry) error {
if err := validate.Required("DelayTime", "body", m.DelayTime); err != nil {
return err
@@ -93,7 +101,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateDelayTime(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -102,7 +110,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateSrcUpdateTime(form
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -111,25 +119,12 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateStationID(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -138,7 +133,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateTrainNo(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -148,7 +143,7 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -156,8 +151,8 @@ func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailLiveTrainDelay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailLiveTrainDelay
+func (m *PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailLiveTrainDelay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go
new file mode 100644
index 00000000..930032b4
--- /dev/null
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_daily_timetable.go
@@ -0,0 +1,157 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV2TRARailODDailyTimetable RailODDailyTimetable
+//
+// 台鐵起訖站間到離站時刻資料型別
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailODDailyTimetable
+type PTXServiceDTORailSpecificationV2TRARailODDailyTimetable struct {
+
+ // RailDailyTrainInfo
+ //
+ // 車次資料
+ // Required: true
+ DailyTrainInfo struct {
+ PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo
+ } `json:"DailyTrainInfo"`
+
+ // RailStopTime
+ //
+ // 迄站停靠時間資料
+ // Required: true
+ DestinationStopTime struct {
+ PTXServiceDTORailSpecificationV2TRARailStopTime
+ } `json:"DestinationStopTime"`
+
+ // RailStopTime
+ //
+ // 起站停靠時間資料
+ // Required: true
+ OriginStopTime struct {
+ PTXServiceDTORailSpecificationV2TRARailStopTime
+ } `json:"OriginStopTime"`
+
+ // String
+ //
+ // 行駛日期(格式: yyyy:MM:dd)
+ // Required: true
+ TrainDate *string `json:"TrainDate"`
+
+ // DateTime
+ //
+ // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
+
+ // Int32
+ //
+ // 資料版本編號
+ // Required: true
+ VersionID *int32 `json:"VersionID"`
+}
+
+// Validate validates this p t x service d t o rail specification v2 t r a rail o d daily timetable
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDailyTrainInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateDestinationStopTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOriginStopTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrainDate(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateVersionID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateDestinationStopTime(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateOriginStopTime(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) validateVersionID(formats strfmt.Registry) error {
+
+ if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV2TRARailODDailyTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailODDailyTimetable
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go
index 369791c8..ae7f171c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_o_d_fare.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailODFare RailODFare
+// PTXServiceDTORailSpecificationV2TRARailODFare RailODFare
//
// 臺鐵起訖站票價資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailODFare
-type ServiceDTOVersion2RailTRARailODFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailODFare
+type PTXServiceDTORailSpecificationV2TRARailODFare struct {
+ // String
+ //
// 迄點車站代碼
// Required: true
DestinationStationID *string `json:"DestinationStationID"`
@@ -29,7 +31,9 @@ type ServiceDTOVersion2RailTRARailODFare struct {
//
// 迄點車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"DestinationStationName"`
// integer
//
@@ -37,10 +41,14 @@ type ServiceDTOVersion2RailTRARailODFare struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 票價收費資訊
// Required: true
- Fares []*ServiceDTOVersion2BaseFare `json:"Fares"`
+ Fares []*PTXServiceDTOSharedSpecificationV2BaseFare `json:"Fares"`
+ // String
+ //
// 起點車站代碼
// Required: true
OriginStationID *string `json:"OriginStationID"`
@@ -49,7 +57,9 @@ type ServiceDTOVersion2RailTRARailODFare struct {
//
// 起點車站名稱
// Required: true
- OriginStationName *ServiceDTOVersion2BaseNameType `json:"OriginStationName"`
+ OriginStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OriginStationName"`
// DateTime
//
@@ -57,13 +67,15 @@ type ServiceDTOVersion2RailTRARailODFare struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a rail o d fare
-func (m *ServiceDTOVersion2RailTRARailODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail o d fare
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationID(formats); err != nil {
@@ -104,7 +116,7 @@ func (m *ServiceDTOVersion2RailTRARailODFare) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateDestinationStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateDestinationStationID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
return err
@@ -113,25 +125,12 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateDestinationStationID(forma
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -140,7 +139,7 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateDirection(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -165,7 +164,7 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateFares(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateOriginStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateOriginStationID(formats strfmt.Registry) error {
if err := validate.Required("OriginStationID", "body", m.OriginStationID); err != nil {
return err
@@ -174,25 +173,12 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateOriginStationID(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateOriginStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStationName", "body", m.OriginStationName); err != nil {
- return err
- }
-
- if m.OriginStationName != nil {
- if err := m.OriginStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateOriginStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -201,7 +187,7 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateUpdateTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailODFare) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -211,7 +197,7 @@ func (m *ServiceDTOVersion2RailTRARailODFare) validateVersionID(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -219,8 +205,8 @@ func (m *ServiceDTOVersion2RailTRARailODFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailODFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailODFare
+func (m *PTXServiceDTORailSpecificationV2TRARailODFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go
index 36b7f300..13233e95 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station.go
@@ -12,27 +12,37 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailStation RailStation
+// PTXServiceDTORailSpecificationV2TRARailStation RailStation
//
// 台鐵車站資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailStation
-type ServiceDTOVersion2RailTRARailStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailStation
+type PTXServiceDTORailSpecificationV2TRARailStation struct {
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
+ // String
+ //
// 票價用站牌代碼
ReservationCode string `json:"ReservationCode,omitempty"`
+ // String
+ //
// 車站地址
// Required: true
StationAddress *string `json:"StationAddress"`
+ // String
+ //
// 車站級別
StationClass string `json:"StationClass,omitempty"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -41,8 +51,12 @@ type ServiceDTOVersion2RailTRARailStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車站聯絡電話
StationPhone string `json:"StationPhone,omitempty"`
@@ -50,8 +64,12 @@ type ServiceDTOVersion2RailTRARailStation struct {
//
// 車站位置
// Required: true
- StationPosition *ServiceDTOVersion2BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 車站唯一識別代碼
// Required: true
StationUID *string `json:"StationUID"`
@@ -62,13 +80,15 @@ type ServiceDTOVersion2RailTRARailStation struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a rail station
-func (m *ServiceDTOVersion2RailTRARailStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail station
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorID(formats); err != nil {
@@ -109,7 +129,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -118,7 +138,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateOperatorID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateStationAddress(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateStationAddress(formats strfmt.Registry) error {
if err := validate.Required("StationAddress", "body", m.StationAddress); err != nil {
return err
@@ -127,7 +147,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateStationAddress(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -136,43 +156,17 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateStationID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -181,7 +175,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateStationUID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -190,7 +184,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateUpdateTime(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStation) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -200,7 +194,7 @@ func (m *ServiceDTOVersion2RailTRARailStation) validateVersionID(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -208,8 +202,8 @@ func (m *ServiceDTOVersion2RailTRARailStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailStation
+func (m *PTXServiceDTORailSpecificationV2TRARailStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go
index 5f82a8fe..3adc29bd 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_station_timetable.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailStationTimetable RailStationTimetable
+// PTXServiceDTORailSpecificationV2TRARailStationTimetable RailStationTimetable
//
// 台鐵車站站別時刻表資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailStationTimetable
-type ServiceDTOVersion2RailTRARailStationTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailStationTimetable
+type PTXServiceDTORailSpecificationV2TRARailStationTimetable struct {
+ // String
+ //
// 到站時間(格式: HH:mm:ss)
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間(格式: HH:mm:ss)
// Required: true
DepartureTime *string `json:"DepartureTime"`
@@ -33,22 +37,36 @@ type ServiceDTOVersion2RailTRARailStationTimetable struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 終點車站代號
// Required: true
EndingStationID *string `json:"EndingStationID"`
+ // NameType
+ //
// 終點車站名稱
// Required: true
- EndingStationName *string `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName"`
+ // String
+ //
// 起點車站代號
// Required: true
StartingStationID *string `json:"StartingStationID"`
+ // NameType
+ //
// 起點車站名稱
// Required: true
- StartingStationName *string `json:"StartingStationName"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -57,30 +75,42 @@ type ServiceDTOVersion2RailTRARailStationTimetable struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 時刻表日期(格式: yyyy-MM-dd)
// Required: true
TrainDate *string `json:"TrainDate"`
+ // String
+ //
// 車次代號
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 列車車種簡碼
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 列車車種代碼
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 列車車種名稱
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// DateTime
@@ -89,13 +119,15 @@ type ServiceDTOVersion2RailTRARailStationTimetable struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a rail station timetable
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail station timetable
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -160,7 +192,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -169,7 +201,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateArrivalTime(form
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -178,7 +210,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateDepartureTime(fo
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -187,7 +219,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateDirection(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateEndingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateEndingStationID(formats strfmt.Registry) error {
if err := validate.Required("EndingStationID", "body", m.EndingStationID); err != nil {
return err
@@ -196,16 +228,12 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateEndingStationID(
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStartingStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateStartingStationID(formats strfmt.Registry) error {
if err := validate.Required("StartingStationID", "body", m.StartingStationID); err != nil {
return err
@@ -214,16 +242,12 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStartingStationI
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStartingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StartingStationName", "body", m.StartingStationName); err != nil {
- return err
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateStartingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -232,25 +256,12 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStationID(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -259,7 +270,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateTrainDate(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -268,25 +279,16 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateTrainNo(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -295,7 +297,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateUpdateTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -305,7 +307,7 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) validateVersionID(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -313,8 +315,8 @@ func (m *ServiceDTOVersion2RailTRARailStationTimetable) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStationTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailStationTimetable
+func (m *PTXServiceDTORailSpecificationV2TRARailStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go
similarity index 59%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go
index b112ee4a..a2042f5a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_rail_stop_time.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailStopTime RailStopTime
+// PTXServiceDTORailSpecificationV2TRARailStopTime RailStopTime
//
// 台鐵停靠時間資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailStopTime
-type ServiceDTOVersion2RailTRARailStopTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.RailStopTime
+type PTXServiceDTORailSpecificationV2TRARailStopTime struct {
+ // String
+ //
// 到站時間(格式: HH:mm:ss)
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間(格式: HH:mm:ss)
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -35,15 +41,19 @@ type ServiceDTOVersion2RailTRARailStopTime struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StationName"`
+ // Int32
+ //
// 跑法站序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
}
-// Validate validates this service d t o version2 rail t r a rail stop time
-func (m *ServiceDTOVersion2RailTRARailStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a rail stop time
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -72,7 +82,7 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -81,7 +91,7 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) validateArrivalTime(formats strf
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -90,7 +100,7 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) validateDepartureTime(formats st
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStopTime) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -99,25 +109,12 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) validateStationID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStopTime) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRARailStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -127,7 +124,7 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) validateStopSequence(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -135,8 +132,8 @@ func (m *ServiceDTOVersion2RailTRARailStopTime) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailStopTime
+func (m *PTXServiceDTORailSpecificationV2TRARailStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRARailStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go
similarity index 68%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go
index ab9439d2..87b643dc 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_service_day.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRServiceDay ServiceDay
+// PTXServiceDTORailSpecificationV2TRAServiceDay ServiceDay
//
-// 高鐵服務日型態
+// 台鐵服務日型態
//
-// swagger:model Service.DTO.Version2.Rail.THSR.ServiceDay
-type ServiceDTOVersion2RailTHSRServiceDay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.ServiceDay
+type PTXServiceDTORailSpecificationV2TRAServiceDay struct {
// integer
//
@@ -62,8 +62,8 @@ type ServiceDTOVersion2RailTHSRServiceDay struct {
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version2 rail t h s r service day
-func (m *ServiceDTOVersion2RailTHSRServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a service day
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -100,7 +100,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -109,7 +109,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateFriday(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -118,7 +118,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateMonday(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -127,7 +127,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateSaturday(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -136,7 +136,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateSunday(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -145,7 +145,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateThursday(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -154,7 +154,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateTuesday(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2RailTHSRServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -164,7 +164,7 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) validateWednesday(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -172,8 +172,8 @@ func (m *ServiceDTOVersion2RailTHSRServiceDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRServiceDay
+func (m *PTXServiceDTORailSpecificationV2TRAServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRAServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go
similarity index 64%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go
index 3e2c2e5b..a52db0b0 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_station_of_line.go
@@ -14,24 +14,30 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRAStationOfLine StationOfLine
+// PTXServiceDTORailSpecificationV2TRAStationOfLine StationOfLine
//
// 路線車站基本資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.StationOfLine
-type ServiceDTOVersion2RailTRAStationOfLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.StationOfLine
+type PTXServiceDTORailSpecificationV2TRAStationOfLine struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
+ // Array
+ //
// 路線車站資訊
// Required: true
- Stations []*ServiceDTOVersion2RailTRALineStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV2TRALineStation `json:"Stations"`
// DateTime
//
@@ -40,8 +46,8 @@ type ServiceDTOVersion2RailTRAStationOfLine struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a station of line
-func (m *ServiceDTOVersion2RailTRAStationOfLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a station of line
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -66,7 +72,7 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) Validate(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2RailTRAStationOfLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -75,7 +81,7 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) validateLineID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTRAStationOfLine) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -84,7 +90,7 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) validateLineNo(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTRAStationOfLine) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -109,7 +115,7 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) validateStations(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2RailTRAStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -119,7 +125,7 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) validateUpdateTime(formats strf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAStationOfLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +133,8 @@ func (m *ServiceDTOVersion2RailTRAStationOfLine) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRAStationOfLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRAStationOfLine
+func (m *PTXServiceDTORailSpecificationV2TRAStationOfLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRAStationOfLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go
similarity index 55%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go
index bca02c05..795c8a31 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_t_r_a_shape.go
@@ -12,17 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRATRAShape TRAShape
+// PTXServiceDTORailSpecificationV2TRATRAShape TRAShape
//
// 臺鐵線型資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.TRAShape
-type ServiceDTOVersion2RailTRATRAShape struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.TRAShape
+type PTXServiceDTORailSpecificationV2TRATRAShape struct {
+ // String
+ //
+ // 路線軌跡編碼(encoded polyline)
+ // Required: true
+ EncodedPolyline *string `json:"EncodedPolyline"`
+
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -31,8 +41,12 @@ type ServiceDTOVersion2RailTRATRAShape struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion2BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"LineName"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
@@ -44,10 +58,14 @@ type ServiceDTOVersion2RailTRATRAShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail t r a t r a shape
-func (m *ServiceDTOVersion2RailTRATRAShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a t r a shape
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateEncodedPolyline(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateGeometry(formats); err != nil {
res = append(res, err)
}
@@ -74,43 +92,39 @@ func (m *ServiceDTOVersion2RailTRATRAShape) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2RailTRATRAShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateEncodedPolyline(formats strfmt.Registry) error {
- if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
+ if err := validate.Required("EncodedPolyline", "body", m.EncodedPolyline); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailTRATRAShape) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateGeometry(formats strfmt.Registry) error {
- if err := validate.Required("LineID", "body", m.LineID); err != nil {
+ if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
}
return nil
}
-func (m *ServiceDTOVersion2RailTRATRAShape) validateLineName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateLineID(formats strfmt.Registry) error {
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
+ if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
}
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRATRAShape) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -119,7 +133,7 @@ func (m *ServiceDTOVersion2RailTRATRAShape) validateLineNo(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2RailTRATRAShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -129,7 +143,7 @@ func (m *ServiceDTOVersion2RailTRATRAShape) validateUpdateTime(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATRAShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -137,8 +151,8 @@ func (m *ServiceDTOVersion2RailTRATRAShape) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATRAShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRATRAShape
+func (m *PTXServiceDTORailSpecificationV2TRATRAShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRATRAShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_daily_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go
similarity index 60%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_daily_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go
index 9ed4e587..a2de2a36 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_daily_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_daily_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo RailDailyTrainInfo
+// PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo RailDailyTrainInfo
//
// 臺鐵車次資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.TimeInfo.RailDailyTrainInfo
-type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailDailyTrainInfo
+type PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo struct {
// integer
//
@@ -49,19 +49,27 @@ type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 跨夜車站代碼
OverNightStationID string `json:"OverNightStationID,omitempty"`
@@ -71,39 +79,55 @@ type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
// Required: true
PackageServiceFlag *int32 `json:"PackageServiceFlag"`
+ // Boolean
+ //
// 是否為加班車
// Required: true
ServiceAddedFlag *bool `json:"ServiceAddedFlag"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 列車車種簡碼
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 列車車種代碼
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 列車車種名稱
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName,omitempty"`
+ // String
+ //
// 車次車頭文字描述(通用以"往"+ 迄站中文站名")
TripHeadsign string `json:"TripHeadsign,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// integer
@@ -113,8 +137,8 @@ type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
WheelchairFlag *int32 `json:"WheelchairFlag"`
}
-// Validate validates this service d t o version2 rail t r a time info rail daily train info
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a time info rail daily train info
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeFlag(formats); err != nil {
@@ -175,7 +199,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
return err
@@ -184,7 +208,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateBikeFlag(f
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
if err := validate.Required("BreastFeedingFlag", "body", m.BreastFeedingFlag); err != nil {
return err
@@ -193,7 +217,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateBreastFeed
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
return err
@@ -202,7 +226,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDailyFlag(
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
return err
@@ -211,7 +235,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDiningFlag
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -220,43 +244,25 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateDirection(
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
return err
@@ -265,7 +271,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validatePackageSer
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateServiceAddedFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateServiceAddedFlag(formats strfmt.Registry) error {
if err := validate.Required("ServiceAddedFlag", "body", m.ServiceAddedFlag); err != nil {
return err
@@ -274,25 +280,16 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateServiceAdd
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -301,25 +298,16 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateTrainNo(fo
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
if err := validate.Required("WheelchairFlag", "body", m.WheelchairFlag); err != nil {
return err
@@ -329,7 +317,7 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) validateWheelchair
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -337,8 +325,8 @@ func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRATimeInfoRailDailyTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go
index 68bd9b96..60eb3fbe 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_time_info_rail_general_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRARailGeneralTrainInfo RailGeneralTrainInfo
+// PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo RailGeneralTrainInfo
//
// 臺鐵車次定期資料型別
//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailGeneralTrainInfo
-type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.TimeInfo.RailGeneralTrainInfo
+type PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo struct {
// integer
//
@@ -49,19 +49,27 @@ type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"EndingStationName,omitempty"`
// NameType
//
// 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
+ Note struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"Note,omitempty"`
+ // String
+ //
// 跨夜車站代碼
OverNightStationID string `json:"OverNightStationID,omitempty"`
@@ -71,32 +79,44 @@ type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
// Required: true
PackageServiceFlag *int32 `json:"PackageServiceFlag"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 列車車種簡碼
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 列車車種代碼
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 列車車種名稱
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// DateTime
@@ -105,6 +125,8 @@ type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
@@ -116,8 +138,8 @@ type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
WheelchairFlag *int32 `json:"WheelchairFlag"`
}
-// Validate validates this service d t o version2 rail t r a rail general train info
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a time info rail general train info
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeFlag(formats); err != nil {
@@ -182,7 +204,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
return err
@@ -191,7 +213,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateBikeFlag(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
if err := validate.Required("BreastFeedingFlag", "body", m.BreastFeedingFlag); err != nil {
return err
@@ -200,7 +222,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateBreastFeedingFla
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
return err
@@ -209,7 +231,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDailyFlag(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
return err
@@ -218,7 +240,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDiningFlag(forma
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -227,43 +249,25 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateDirection(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateNote(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateNote(formats strfmt.Registry) error {
if swag.IsZero(m.Note) { // not required
return nil
}
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
return err
@@ -272,25 +276,16 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validatePackageServiceFl
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -299,25 +294,16 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateTrainNo(formats
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -326,7 +312,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateUpdateTime(forma
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -335,7 +321,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateVersionID(format
return nil
}
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
if err := validate.Required("WheelchairFlag", "body", m.WheelchairFlag); err != nil {
return err
@@ -345,7 +331,7 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) validateWheelchairFlag(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -353,8 +339,8 @@ func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailGeneralTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailGeneralTrainInfo
+func (m *PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRATimeInfoRailGeneralTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go
similarity index 61%
rename from rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go
rename to rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go
index 8f8fea25..1bd2e99b 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_rail_specification_v2_t_r_a_train_type.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTRATrainType TrainType
+// PTXServiceDTORailSpecificationV2TRATrainType TrainType
//
// 臺鐵列車車種資料
//
-// swagger:model Service.DTO.Version2.Rail.TRA.TrainType
-type ServiceDTOVersion2RailTRATrainType struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V2.TRA.TrainType
+type PTXServiceDTORailSpecificationV2TRATrainType struct {
+ // String
+ //
// 列車車種簡碼 [1:太魯閣;2:普悠瑪;3:自強;4:莒光;5:復興;6:區間;7:普快]
// Required: true
TrainTypeCode *string `json:"TrainTypeCode"`
+ // String
+ //
// 列車車種代碼
// Required: true
TrainTypeID *string `json:"TrainTypeID"`
@@ -31,7 +35,9 @@ type ServiceDTOVersion2RailTRATrainType struct {
//
// 列車車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TrainTypeName"`
// DateTime
//
@@ -39,13 +45,15 @@ type ServiceDTOVersion2RailTRATrainType struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // Int32
+ //
// 資料版本編號
// Required: true
VersionID *int32 `json:"VersionID"`
}
-// Validate validates this service d t o version2 rail t r a train type
-func (m *ServiceDTOVersion2RailTRATrainType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v2 t r a train type
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateTrainTypeCode(formats); err != nil {
@@ -74,7 +82,7 @@ func (m *ServiceDTOVersion2RailTRATrainType) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2RailTRATrainType) validateTrainTypeCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) validateTrainTypeCode(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeCode", "body", m.TrainTypeCode); err != nil {
return err
@@ -83,7 +91,7 @@ func (m *ServiceDTOVersion2RailTRATrainType) validateTrainTypeCode(formats strfm
return nil
}
-func (m *ServiceDTOVersion2RailTRATrainType) validateTrainTypeID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) validateTrainTypeID(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeID", "body", m.TrainTypeID); err != nil {
return err
@@ -92,25 +100,12 @@ func (m *ServiceDTOVersion2RailTRATrainType) validateTrainTypeID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2RailTRATrainType) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailTRATrainType) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -119,7 +114,7 @@ func (m *ServiceDTOVersion2RailTRATrainType) validateUpdateTime(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailTRATrainType) validateVersionID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) validateVersionID(formats strfmt.Registry) error {
if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
return err
@@ -129,7 +124,7 @@ func (m *ServiceDTOVersion2RailTRATrainType) validateVersionID(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATrainType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -137,8 +132,8 @@ func (m *ServiceDTOVersion2RailTRATrainType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATrainType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRATrainType
+func (m *PTXServiceDTORailSpecificationV2TRATrainType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV2TRATrainType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_base_fare.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go
similarity index 53%
rename from rail/v2/models/service_d_t_o_version2_base_fare.go
rename to rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go
index e6280810..ee02b1cf 100644
--- a/rail/v2/models/service_d_t_o_version2_base_fare.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_fare.go
@@ -10,27 +10,29 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BaseFare Fare
+// PTXServiceDTOSharedSpecificationV2BaseFare Fare
//
// 票價資料型別
//
-// swagger:model Service.DTO.Version2.Base.Fare
-type ServiceDTOVersion2BaseFare struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Fare
+type PTXServiceDTOSharedSpecificationV2BaseFare struct {
// 收費價格(新台幣)
Price float64 `json:"Price,omitempty"`
+ // String
+ //
// 票種名稱
TicketType string `json:"TicketType,omitempty"`
}
-// Validate validates this service d t o version2 base fare
-func (m *ServiceDTOVersion2BaseFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base fare
+func (m *PTXServiceDTOSharedSpecificationV2BaseFare) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +40,8 @@ func (m *ServiceDTOVersion2BaseFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseFare
+func (m *PTXServiceDTOSharedSpecificationV2BaseFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v3/models/service_d_t_o_version3_base_name_type.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
similarity index 50%
rename from bus/v3/models/service_d_t_o_version3_base_name_type.go
rename to rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
index 9f26b43b..ae2f0ea5 100644
--- a/bus/v3/models/service_d_t_o_version3_base_name_type.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
@@ -10,27 +10,31 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BaseNameType NameType
+// PTXServiceDTOSharedSpecificationV2BaseNameType NameType
//
// 名稱資料型別
//
-// swagger:model Service.DTO.Version3.Base.NameType
-type ServiceDTOVersion3BaseNameType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.NameType
+type PTXServiceDTOSharedSpecificationV2BaseNameType struct {
+ // String
+ //
// 英文名稱
En string `json:"En,omitempty"`
+ // String
+ //
// 中文繁體名稱
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version3 base name type
-func (m *ServiceDTOVersion3BaseNameType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base name type
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseNameType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +42,8 @@ func (m *ServiceDTOVersion3BaseNameType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseNameType
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseNameType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_base_operator.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
similarity index 65%
rename from bus/v2/models/service_d_t_o_version2_base_operator.go
rename to rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
index 910f2faa..84cf731f 100644
--- a/bus/v2/models/service_d_t_o_version2_base_operator.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_operator.go
@@ -12,24 +12,32 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BaseOperator Operator
+// PTXServiceDTOSharedSpecificationV2BaseOperator Operator
//
// 營運業者資料型別
//
-// swagger:model Service.DTO.Version2.Base.Operator
-type ServiceDTOVersion2BaseOperator struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Operator
+type PTXServiceDTOSharedSpecificationV2BaseOperator struct {
- // 營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)
+ // String
+ //
+ // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者電子信箱
OperatorEmail string `json:"OperatorEmail,omitempty"`
+ // String
+ //
// 營運業者代碼
// Required: true
OperatorID *string `json:"OperatorID"`
@@ -38,28 +46,44 @@ type ServiceDTOVersion2BaseOperator struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion2BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者編號[交通部票證資料系統定義]
// Required: true
OperatorNo *string `json:"OperatorNo"`
+ // String
+ //
// 營運業者連絡電話
OperatorPhone string `json:"OperatorPhone,omitempty"`
+ // String
+ //
// 營運業者網址鏈結
OperatorURL string `json:"OperatorUrl,omitempty"`
+ // String
+ //
// 資料提供平台代碼
// Required: true
ProviderID *string `json:"ProviderID"`
+ // String
+ //
// 訂票連絡電話
ReservationPhone string `json:"ReservationPhone,omitempty"`
+ // String
+ //
// 訂票網址鏈結
ReservationURL string `json:"ReservationUrl,omitempty"`
+ // String
+ //
// 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)
SubAuthorityCode string `json:"SubAuthorityCode,omitempty"`
@@ -70,8 +94,8 @@ type ServiceDTOVersion2BaseOperator struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 base operator
-func (m *ServiceDTOVersion2BaseOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base operator
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -108,7 +132,7 @@ func (m *ServiceDTOVersion2BaseOperator) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -117,7 +141,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateAuthorityCode(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -126,7 +150,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorCode(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -135,25 +159,12 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -162,7 +173,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateOperatorNo(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateProviderID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateProviderID(formats strfmt.Registry) error {
if err := validate.Required("ProviderID", "body", m.ProviderID); err != nil {
return err
@@ -171,7 +182,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateProviderID(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BaseOperator) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -181,7 +192,7 @@ func (m *ServiceDTOVersion2BaseOperator) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -189,8 +200,8 @@ func (m *ServiceDTOVersion2BaseOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseOperator
+func (m *PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_base_point_type.go b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
similarity index 50%
rename from rail/v3/models/service_d_t_o_version3_base_point_type.go
rename to rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
index 324a7bb5..33cfe90a 100644
--- a/rail/v3/models/service_d_t_o_version3_base_point_type.go
+++ b/rail/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
@@ -10,12 +10,17 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BasePointType PointType
+// PTXServiceDTOSharedSpecificationV2BasePointType PointType
//
// 座標資料型別
//
-// swagger:model Service.DTO.Version3.Base.PointType
-type ServiceDTOVersion3BasePointType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.PointType
+type PTXServiceDTOSharedSpecificationV2BasePointType struct {
+
+ // String
+ //
+ // 地理空間編碼
+ GeoHash string `json:"GeoHash,omitempty"`
// 位置緯度(WGS84)
PositionLat float64 `json:"PositionLat,omitempty"`
@@ -24,13 +29,13 @@ type ServiceDTOVersion3BasePointType struct {
PositionLon float64 `json:"PositionLon,omitempty"`
}
-// Validate validates this service d t o version3 base point type
-func (m *ServiceDTOVersion3BasePointType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base point type
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BasePointType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +43,8 @@ func (m *ServiceDTOVersion3BasePointType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BasePointType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BasePointType
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BasePointType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line.go
deleted file mode 100644
index d1012cd4..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine AlertScopeLine
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLine
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine struct {
-
- // 實體路線代碼
- LineID string `json:"LineID,omitempty"`
-
- // 實體路線名稱
- LineName string `json:"LineName,omitempty"`
-}
-
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope line
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_network.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_network.go
deleted file mode 100644
index c0e44011..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_network.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork AlertScopeNetwork
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeNetwork
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork struct {
-
- // 路網代碼
- NetworkID string `json:"NetworkID,omitempty"`
-}
-
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope network
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_route.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_route.go
deleted file mode 100644
index 2fbc2c46..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_route.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute AlertScopeRoute
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeRoute
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute struct {
-
- // 營運路線代碼
- RouteID string `json:"RouteID,omitempty"`
-
- // 營運路線名稱
- RouteName string `json:"RouteName,omitempty"`
-}
-
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope route
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_station.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_station.go
deleted file mode 100644
index 17d7b717..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_station.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation AlertScopeStation
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeStation
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation struct {
-
- // 車站代碼
- StationID string `json:"StationID,omitempty"`
-
- // 車站名稱
- StationName string `json:"StationName,omitempty"`
-}
-
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope station
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_train.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_train.go
deleted file mode 100644
index 4ce23145..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_train.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain AlertScopeTrain
-//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeTrain
-type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain struct {
-
- // 受影響的車次
- TrainNo string `json:"TrainNo,omitempty"`
-}
-
-// Validate validates this service d t o version2 rail metro m r t alert list alert scope train
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_stop_station.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_stop_station.go
deleted file mode 100644
index b4abb081..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_old_stop_station.go
+++ /dev/null
@@ -1,128 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2RailTHSROldStopStation StopStation
-//
-// 車次停靠站點組合
-//
-// swagger:model Service.DTO.Version2.Rail.THSR.Old.StopStation
-type ServiceDTOVersion2RailTHSROldStopStation struct {
-
- // 商務席剩餘座位狀態 = ['Available: 尚有座位' or 'Limited: 座位有限' or 'Full: 已無座位']
- // Required: true
- BusinessSeatStatus *string `json:"BusinessSeatStatus"`
-
- // 標準席剩餘座位狀態 = ['Available: 尚有座位' or 'Limited: 座位有限' or 'Full: 已無座位']
- // Required: true
- StandardSeatStatus *string `json:"StandardSeatStatus"`
-
- // 車站代碼
- // Required: true
- StationID *string `json:"StationID"`
-
- // NameType
- //
- // 車站名稱
- // Required: true
- StationName *ServiceDTOVersion2BaseNameType `json:"StationName"`
-}
-
-// Validate validates this service d t o version2 rail t h s r old stop station
-func (m *ServiceDTOVersion2RailTHSROldStopStation) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateBusinessSeatStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStandardSeatStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStationID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStationName(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSROldStopStation) validateBusinessSeatStatus(formats strfmt.Registry) error {
-
- if err := validate.Required("BusinessSeatStatus", "body", m.BusinessSeatStatus); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSROldStopStation) validateStandardSeatStatus(formats strfmt.Registry) error {
-
- if err := validate.Required("StandardSeatStatus", "body", m.StandardSeatStatus); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSROldStopStation) validateStationID(formats strfmt.Registry) error {
-
- if err := validate.Required("StationID", "body", m.StationID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSROldStopStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSROldStopStation) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSROldStopStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSROldStopStation
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_daily_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_daily_timetable.go
deleted file mode 100644
index 8959e249..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_daily_timetable.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2RailTHSRRailODDailyTimetable RailODDailyTimetable
-//
-// 高鐵起訖站間到離站時刻資料型別
-//
-// swagger:model Service.DTO.Version2.Rail.THSR.RailODDailyTimetable
-type ServiceDTOVersion2RailTHSRRailODDailyTimetable struct {
-
- // RailDailyTrainInfo
- //
- // 車次資料
- // Required: true
- DailyTrainInfo *ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo `json:"DailyTrainInfo"`
-
- // RailStopTime
- //
- // 迄站停靠時間資料
- // Required: true
- DestinationStopTime *ServiceDTOVersion2RailTHSRRailStopTime `json:"DestinationStopTime"`
-
- // RailStopTime
- //
- // 起站停靠時間資料
- // Required: true
- OriginStopTime *ServiceDTOVersion2RailTHSRRailStopTime `json:"OriginStopTime"`
-
- // 行駛日期(格式: yyyy:MM:dd)
- // Required: true
- TrainDate *string `json:"TrainDate"`
-
- // DateTime
- //
- // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- // Required: true
- UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- // Required: true
- VersionID *int32 `json:"VersionID"`
-}
-
-// Validate validates this service d t o version2 rail t h s r rail o d daily timetable
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDailyTrainInfo(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDestinationStopTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateOriginStopTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainDate(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateUpdateTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateVersionID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("DailyTrainInfo", "body", m.DailyTrainInfo); err != nil {
- return err
- }
-
- if m.DailyTrainInfo != nil {
- if err := m.DailyTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DailyTrainInfo")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateDestinationStopTime(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStopTime", "body", m.DestinationStopTime); err != nil {
- return err
- }
-
- if m.DestinationStopTime != nil {
- if err := m.DestinationStopTime.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStopTime")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateOriginStopTime(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStopTime", "body", m.OriginStopTime); err != nil {
- return err
- }
-
- if m.OriginStopTime != nil {
- if err := m.OriginStopTime.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStopTime")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
-
- if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) validateVersionID(formats strfmt.Registry) error {
-
- if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRRailODDailyTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRRailODDailyTimetable
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_daily_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_daily_timetable.go
deleted file mode 100644
index a0a53faa..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_daily_timetable.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2RailTRARailODDailyTimetable RailODDailyTimetable
-//
-// 台鐵起訖站間到離站時刻資料型別
-//
-// swagger:model Service.DTO.Version2.Rail.TRA.RailODDailyTimetable
-type ServiceDTOVersion2RailTRARailODDailyTimetable struct {
-
- // RailDailyTrainInfo
- //
- // 車次資料
- // Required: true
- DailyTrainInfo *ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo `json:"DailyTrainInfo"`
-
- // RailStopTime
- //
- // 迄站停靠時間資料
- // Required: true
- DestinationStopTime *ServiceDTOVersion2RailTRARailStopTime `json:"DestinationStopTime"`
-
- // RailStopTime
- //
- // 起站停靠時間資料
- // Required: true
- OriginStopTime *ServiceDTOVersion2RailTRARailStopTime `json:"OriginStopTime"`
-
- // 行駛日期(格式: yyyy:MM:dd)
- // Required: true
- TrainDate *string `json:"TrainDate"`
-
- // DateTime
- //
- // 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- // Required: true
- UpdateTime *string `json:"UpdateTime"`
-
- // 資料版本編號
- // Required: true
- VersionID *int32 `json:"VersionID"`
-}
-
-// Validate validates this service d t o version2 rail t r a rail o d daily timetable
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDailyTrainInfo(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDestinationStopTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateOriginStopTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainDate(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateUpdateTime(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateVersionID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateDailyTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("DailyTrainInfo", "body", m.DailyTrainInfo); err != nil {
- return err
- }
-
- if m.DailyTrainInfo != nil {
- if err := m.DailyTrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DailyTrainInfo")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateDestinationStopTime(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStopTime", "body", m.DestinationStopTime); err != nil {
- return err
- }
-
- if m.DestinationStopTime != nil {
- if err := m.DestinationStopTime.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStopTime")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateOriginStopTime(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStopTime", "body", m.OriginStopTime); err != nil {
- return err
- }
-
- if m.OriginStopTime != nil {
- if err := m.OriginStopTime.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStopTime")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateTrainDate(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateUpdateTime(formats strfmt.Registry) error {
-
- if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) validateVersionID(formats strfmt.Registry) error {
-
- if err := validate.Required("VersionID", "body", m.VersionID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRARailODDailyTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRARailODDailyTimetable
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_general_train_info.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_general_train_info.go
deleted file mode 100644
index 944b1048..00000000
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_time_info_rail_general_train_info.go
+++ /dev/null
@@ -1,327 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo RailGeneralTrainInfo
-//
-// 臺鐵車次定期資料型別(時刻表用)
-//
-// swagger:model Service.DTO.Version2.Rail.TRA.TimeInfo.RailGeneralTrainInfo
-type ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo struct {
-
- // integer
- //
- // 是否人車同行班次(置於攜車袋之自行車各級列車均可乘車) : [0:'否',1:'是']
- // Required: true
- BikeFlag *int32 `json:"BikeFlag"`
-
- // integer
- //
- // 是否設有哺(集)乳室車廂 : [0:'否',1:'是']
- // Required: true
- BreastFeedingFlag *int32 `json:"BreastFeedingFlag"`
-
- // integer
- //
- // 是否為每日行駛 : [0:'否',1:'是']
- // Required: true
- DailyFlag *int32 `json:"DailyFlag"`
-
- // integer
- //
- // 是否提供訂便當服務 : [0:'否',1:'是']
- // Required: true
- DiningFlag *int32 `json:"DiningFlag"`
-
- // integer
- //
- // 順逆行 : [0:'順行',1:'逆行']
- // Required: true
- Direction *int32 `json:"Direction"`
-
- // 列車終點車站代號
- EndingStationID string `json:"EndingStationID,omitempty"`
-
- // NameType
- //
- // 列車終點車站名稱
- EndingStationName *ServiceDTOVersion2BaseNameType `json:"EndingStationName,omitempty"`
-
- // NameType
- //
- // 附註說明
- Note *ServiceDTOVersion2BaseNameType `json:"Note,omitempty"`
-
- // 跨夜車站代碼
- OverNightStationID string `json:"OverNightStationID,omitempty"`
-
- // integer
- //
- // 是否提供行李服務 : [0:'否',1:'是']
- // Required: true
- PackageServiceFlag *int32 `json:"PackageServiceFlag"`
-
- // 列車起點車站代號
- StartingStationID string `json:"StartingStationID,omitempty"`
-
- // NameType
- //
- // 列車起點車站名稱
- StartingStationName *ServiceDTOVersion2BaseNameType `json:"StartingStationName,omitempty"`
-
- // 車次代碼
- // Required: true
- TrainNo *string `json:"TrainNo"`
-
- // 列車車種簡碼
- TrainTypeCode string `json:"TrainTypeCode,omitempty"`
-
- // 列車車種代碼
- TrainTypeID string `json:"TrainTypeID,omitempty"`
-
- // NameType
- //
- // 列車車種名稱
- TrainTypeName *ServiceDTOVersion2BaseNameType `json:"TrainTypeName,omitempty"`
-
- // integer
- //
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
- TripLine int32 `json:"TripLine,omitempty"`
-
- // integer
- //
- // 是否設身障旅客專用座位車 : [0:'否',1:'是']
- // Required: true
- WheelchairFlag *int32 `json:"WheelchairFlag"`
-}
-
-// Validate validates this service d t o version2 rail t r a time info rail general train info
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateBikeFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateBreastFeedingFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDailyFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDiningFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDirection(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateEndingStationName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateNote(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validatePackageServiceFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStartingStationName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainNo(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainTypeName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateWheelchairFlag(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateBreastFeedingFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("BreastFeedingFlag", "body", m.BreastFeedingFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateDirection(formats strfmt.Registry) error {
-
- if err := validate.Required("Direction", "body", m.Direction); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
-
- if swag.IsZero(m.EndingStationName) { // not required
- return nil
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateNote(formats strfmt.Registry) error {
-
- if swag.IsZero(m.Note) { // not required
- return nil
- }
-
- if m.Note != nil {
- if err := m.Note.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Note")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
-
- if swag.IsZero(m.StartingStationName) { // not required
- return nil
- }
-
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateTrainNo(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
-
- if swag.IsZero(m.TrainTypeName) { // not required
- return nil
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) validateWheelchairFlag(formats strfmt.Registry) error {
-
- if err := validate.Required("WheelchairFlag", "body", m.WheelchairFlag); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/client/m_o_t_c_transport_api_v3_client.go b/rail/v3/client/m_o_t_c_transport_api_v3_client.go
index db7fff61..c6961722 100644
--- a/rail/v3/client/m_o_t_c_transport_api_v3_client.go
+++ b/rail/v3/client/m_o_t_c_transport_api_v3_client.go
@@ -22,7 +22,7 @@ const (
DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
- DefaultBasePath string = "/MOTC/"
+ DefaultBasePath string = "/MOTC"
)
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
diff --git a/rail/v3/client/t_r_a/alert_api_controller_get_parameters.go b/rail/v3/client/t_r_a/alert_api_controller_get_parameters.go
index ae9fbeb6..5b5943ff 100644
--- a/rail/v3/client/t_r_a/alert_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/alert_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type AlertAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *AlertAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the alert Api controller get params
-func (o *AlertAPIControllerGetParams) WithDollarCount(dollarCount *string) *AlertAPIControllerGetParams {
+func (o *AlertAPIControllerGetParams) WithDollarCount(dollarCount *bool) *AlertAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the alert Api controller get params
-func (o *AlertAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *AlertAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *AlertAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest, re
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/alert_api_controller_get_responses.go b/rail/v3/client/t_r_a/alert_api_controller_get_responses.go
index a9935772..34c3dd44 100644
--- a/rail/v3/client/t_r_a/alert_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/alert_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewAlertAPIControllerGetOK() *AlertAPIControllerGetOK {
/*AlertAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type AlertAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert
}
func (o *AlertAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Alert][%d] alertApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *AlertAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert {
+func (o *AlertAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert {
return o.Payload
}
func (o *AlertAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_parameters.go
index f3a0462d..650fa111 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type DailyStationTimeTableAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *DailyStationTimeTableAPIControllerGet1Params) SetHTTPClient(client *htt
}
// WithDollarCount adds the dollarCount to the daily station time table Api controller get 1 params
-func (o *DailyStationTimeTableAPIControllerGet1Params) WithDollarCount(dollarCount *string) *DailyStationTimeTableAPIControllerGet1Params {
+func (o *DailyStationTimeTableAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *DailyStationTimeTableAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily station time table Api controller get 1 params
-func (o *DailyStationTimeTableAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *DailyStationTimeTableAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *DailyStationTimeTableAPIControllerGet1Params) WriteToRequest(r runtime.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_responses.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_responses.go
index e91d353d..a2d5f7df 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewDailyStationTimeTableAPIControllerGet1OK() *DailyStationTimeTableAPICont
/*DailyStationTimeTableAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type DailyStationTimeTableAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable
+ Payload *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable
}
func (o *DailyStationTimeTableAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyStationTimetable/Today/Station/{StationID}][%d] dailyStationTimeTableApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *DailyStationTimeTableAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable {
+func (o *DailyStationTimeTableAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable {
return o.Payload
}
func (o *DailyStationTimeTableAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_parameters.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_parameters.go
index 41c037ed..ffc13710 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_parameters.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_parameters.go
@@ -77,7 +77,7 @@ type DailyStationTimeTableAPIControllerGet2Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *DailyStationTimeTableAPIControllerGet2Params) SetHTTPClient(client *htt
}
// WithDollarCount adds the dollarCount to the daily station time table Api controller get 2 params
-func (o *DailyStationTimeTableAPIControllerGet2Params) WithDollarCount(dollarCount *string) *DailyStationTimeTableAPIControllerGet2Params {
+func (o *DailyStationTimeTableAPIControllerGet2Params) WithDollarCount(dollarCount *bool) *DailyStationTimeTableAPIControllerGet2Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily station time table Api controller get 2 params
-func (o *DailyStationTimeTableAPIControllerGet2Params) SetDollarCount(dollarCount *string) {
+func (o *DailyStationTimeTableAPIControllerGet2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *DailyStationTimeTableAPIControllerGet2Params) WriteToRequest(r runtime.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_responses.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_responses.go
index 6e65e8ef..f4bd30c9 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_responses.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get2_responses.go
@@ -42,23 +42,23 @@ func NewDailyStationTimeTableAPIControllerGet2OK() *DailyStationTimeTableAPICont
/*DailyStationTimeTableAPIControllerGet2OK handles this case with default header values.
-OK
+Success
*/
type DailyStationTimeTableAPIControllerGet2OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable
+ Payload *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable
}
func (o *DailyStationTimeTableAPIControllerGet2OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyStationTimetable/TrainDate/{TrainDate}][%d] dailyStationTimeTableApiControllerGet2OK %+v", 200, o.Payload)
}
-func (o *DailyStationTimeTableAPIControllerGet2OK) GetPayload() *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable {
+func (o *DailyStationTimeTableAPIControllerGet2OK) GetPayload() *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable {
return o.Payload
}
func (o *DailyStationTimeTableAPIControllerGet2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_parameters.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_parameters.go
index 6cbb4635..2e96c13f 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type DailyStationTimeTableAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *DailyStationTimeTableAPIControllerGetParams) SetHTTPClient(client *http
}
// WithDollarCount adds the dollarCount to the daily station time table Api controller get params
-func (o *DailyStationTimeTableAPIControllerGetParams) WithDollarCount(dollarCount *string) *DailyStationTimeTableAPIControllerGetParams {
+func (o *DailyStationTimeTableAPIControllerGetParams) WithDollarCount(dollarCount *bool) *DailyStationTimeTableAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily station time table Api controller get params
-func (o *DailyStationTimeTableAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *DailyStationTimeTableAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *DailyStationTimeTableAPIControllerGetParams) WriteToRequest(r runtime.C
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_responses.go b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_responses.go
index 197a8778..d5469c80 100644
--- a/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/daily_station_time_table_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewDailyStationTimeTableAPIControllerGetOK() *DailyStationTimeTableAPIContr
/*DailyStationTimeTableAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type DailyStationTimeTableAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable
+ Payload *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable
}
func (o *DailyStationTimeTableAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyStationTimetable/Today][%d] dailyStationTimeTableApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *DailyStationTimeTableAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable {
+func (o *DailyStationTimeTableAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable {
return o.Payload
}
func (o *DailyStationTimeTableAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_parameters.go
index 31744140..cc035b85 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type DailyTrainTimeTableAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *DailyTrainTimeTableAPIControllerGet1Params) SetHTTPClient(client *http.
}
// WithDollarCount adds the dollarCount to the daily train time table Api controller get 1 params
-func (o *DailyTrainTimeTableAPIControllerGet1Params) WithDollarCount(dollarCount *string) *DailyTrainTimeTableAPIControllerGet1Params {
+func (o *DailyTrainTimeTableAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *DailyTrainTimeTableAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily train time table Api controller get 1 params
-func (o *DailyTrainTimeTableAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *DailyTrainTimeTableAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *DailyTrainTimeTableAPIControllerGet1Params) WriteToRequest(r runtime.Cl
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_responses.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_responses.go
index 1602ba01..486c45da 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewDailyTrainTimeTableAPIControllerGet1OK() *DailyTrainTimeTableAPIControll
/*DailyTrainTimeTableAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type DailyTrainTimeTableAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+ Payload *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
}
func (o *DailyTrainTimeTableAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyTrainTimetable/Today/TrainNo/{TrainNo}][%d] dailyTrainTimeTableApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *DailyTrainTimeTableAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable {
+func (o *DailyTrainTimeTableAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable {
return o.Payload
}
func (o *DailyTrainTimeTableAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_parameters.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_parameters.go
index 1075a159..4a84d920 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_parameters.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_parameters.go
@@ -77,7 +77,7 @@ type DailyTrainTimeTableAPIControllerGet2Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *DailyTrainTimeTableAPIControllerGet2Params) SetHTTPClient(client *http.
}
// WithDollarCount adds the dollarCount to the daily train time table Api controller get 2 params
-func (o *DailyTrainTimeTableAPIControllerGet2Params) WithDollarCount(dollarCount *string) *DailyTrainTimeTableAPIControllerGet2Params {
+func (o *DailyTrainTimeTableAPIControllerGet2Params) WithDollarCount(dollarCount *bool) *DailyTrainTimeTableAPIControllerGet2Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily train time table Api controller get 2 params
-func (o *DailyTrainTimeTableAPIControllerGet2Params) SetDollarCount(dollarCount *string) {
+func (o *DailyTrainTimeTableAPIControllerGet2Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *DailyTrainTimeTableAPIControllerGet2Params) WriteToRequest(r runtime.Cl
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_responses.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_responses.go
index 0fcafa76..c855aff7 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_responses.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get2_responses.go
@@ -42,23 +42,23 @@ func NewDailyTrainTimeTableAPIControllerGet2OK() *DailyTrainTimeTableAPIControll
/*DailyTrainTimeTableAPIControllerGet2OK handles this case with default header values.
-OK
+Success
*/
type DailyTrainTimeTableAPIControllerGet2OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+ Payload *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
}
func (o *DailyTrainTimeTableAPIControllerGet2OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyTrainTimetable/TrainDate/{TrainDate}][%d] dailyTrainTimeTableApiControllerGet2OK %+v", 200, o.Payload)
}
-func (o *DailyTrainTimeTableAPIControllerGet2OK) GetPayload() *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable {
+func (o *DailyTrainTimeTableAPIControllerGet2OK) GetPayload() *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable {
return o.Payload
}
func (o *DailyTrainTimeTableAPIControllerGet2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_parameters.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_parameters.go
index 19390cca..0a7bf394 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_parameters.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_parameters.go
@@ -77,7 +77,7 @@ type DailyTrainTimeTableAPIControllerGet3Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -163,13 +163,13 @@ func (o *DailyTrainTimeTableAPIControllerGet3Params) SetHTTPClient(client *http.
}
// WithDollarCount adds the dollarCount to the daily train time table Api controller get 3 params
-func (o *DailyTrainTimeTableAPIControllerGet3Params) WithDollarCount(dollarCount *string) *DailyTrainTimeTableAPIControllerGet3Params {
+func (o *DailyTrainTimeTableAPIControllerGet3Params) WithDollarCount(dollarCount *bool) *DailyTrainTimeTableAPIControllerGet3Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily train time table Api controller get 3 params
-func (o *DailyTrainTimeTableAPIControllerGet3Params) SetDollarCount(dollarCount *string) {
+func (o *DailyTrainTimeTableAPIControllerGet3Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -283,11 +283,11 @@ func (o *DailyTrainTimeTableAPIControllerGet3Params) WriteToRequest(r runtime.Cl
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_responses.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_responses.go
index f874d1fb..7361470d 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_responses.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get3_responses.go
@@ -42,23 +42,23 @@ func NewDailyTrainTimeTableAPIControllerGet3OK() *DailyTrainTimeTableAPIControll
/*DailyTrainTimeTableAPIControllerGet3OK handles this case with default header values.
-OK
+Success
*/
type DailyTrainTimeTableAPIControllerGet3OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+ Payload *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
}
func (o *DailyTrainTimeTableAPIControllerGet3OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyTrainTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}][%d] dailyTrainTimeTableApiControllerGet3OK %+v", 200, o.Payload)
}
-func (o *DailyTrainTimeTableAPIControllerGet3OK) GetPayload() *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable {
+func (o *DailyTrainTimeTableAPIControllerGet3OK) GetPayload() *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable {
return o.Payload
}
func (o *DailyTrainTimeTableAPIControllerGet3OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_parameters.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_parameters.go
index 2dcc6256..ad590469 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_parameters.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_parameters.go
@@ -77,7 +77,7 @@ type DailyTrainTimeTableAPIControllerGet4Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -163,13 +163,13 @@ func (o *DailyTrainTimeTableAPIControllerGet4Params) SetHTTPClient(client *http.
}
// WithDollarCount adds the dollarCount to the daily train time table Api controller get 4 params
-func (o *DailyTrainTimeTableAPIControllerGet4Params) WithDollarCount(dollarCount *string) *DailyTrainTimeTableAPIControllerGet4Params {
+func (o *DailyTrainTimeTableAPIControllerGet4Params) WithDollarCount(dollarCount *bool) *DailyTrainTimeTableAPIControllerGet4Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily train time table Api controller get 4 params
-func (o *DailyTrainTimeTableAPIControllerGet4Params) SetDollarCount(dollarCount *string) {
+func (o *DailyTrainTimeTableAPIControllerGet4Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -283,11 +283,11 @@ func (o *DailyTrainTimeTableAPIControllerGet4Params) WriteToRequest(r runtime.Cl
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_responses.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_responses.go
index 567892b6..db3740eb 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_responses.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get4_responses.go
@@ -42,23 +42,23 @@ func NewDailyTrainTimeTableAPIControllerGet4OK() *DailyTrainTimeTableAPIControll
/*DailyTrainTimeTableAPIControllerGet4OK handles this case with default header values.
-OK
+Success
*/
type DailyTrainTimeTableAPIControllerGet4OK struct {
- Payload *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+ Payload *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
}
func (o *DailyTrainTimeTableAPIControllerGet4OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyTrainTimetable/OD/Inclusive/{OriginStationID}/to/{DestinationStationID}/{TrainDate}][%d] dailyTrainTimeTableApiControllerGet4OK %+v", 200, o.Payload)
}
-func (o *DailyTrainTimeTableAPIControllerGet4OK) GetPayload() *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable {
+func (o *DailyTrainTimeTableAPIControllerGet4OK) GetPayload() *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable {
return o.Payload
}
func (o *DailyTrainTimeTableAPIControllerGet4OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_parameters.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_parameters.go
index a95ed817..43a77448 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type DailyTrainTimeTableAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *DailyTrainTimeTableAPIControllerGetParams) SetHTTPClient(client *http.C
}
// WithDollarCount adds the dollarCount to the daily train time table Api controller get params
-func (o *DailyTrainTimeTableAPIControllerGetParams) WithDollarCount(dollarCount *string) *DailyTrainTimeTableAPIControllerGetParams {
+func (o *DailyTrainTimeTableAPIControllerGetParams) WithDollarCount(dollarCount *bool) *DailyTrainTimeTableAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the daily train time table Api controller get params
-func (o *DailyTrainTimeTableAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *DailyTrainTimeTableAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *DailyTrainTimeTableAPIControllerGetParams) WriteToRequest(r runtime.Cli
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_responses.go b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_responses.go
index b98c8446..53b7f8a9 100644
--- a/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/daily_train_time_table_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewDailyTrainTimeTableAPIControllerGetOK() *DailyTrainTimeTableAPIControlle
/*DailyTrainTimeTableAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type DailyTrainTimeTableAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+ Payload *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
}
func (o *DailyTrainTimeTableAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/DailyTrainTimetable/Today][%d] dailyTrainTimeTableApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *DailyTrainTimeTableAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable {
+func (o *DailyTrainTimeTableAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable {
return o.Payload
}
func (o *DailyTrainTimeTableAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_parameters.go
index 559e30d8..1c2e8630 100644
--- a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type GeneralStationTimetableAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *GeneralStationTimetableAPIControllerGet1Params) SetHTTPClient(client *h
}
// WithDollarCount adds the dollarCount to the general station timetable Api controller get 1 params
-func (o *GeneralStationTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *string) *GeneralStationTimetableAPIControllerGet1Params {
+func (o *GeneralStationTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *GeneralStationTimetableAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the general station timetable Api controller get 1 params
-func (o *GeneralStationTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *GeneralStationTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *GeneralStationTimetableAPIControllerGet1Params) WriteToRequest(r runtim
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_responses.go b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_responses.go
index 935b481d..68d80c81 100644
--- a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewGeneralStationTimetableAPIControllerGet1OK() *GeneralStationTimetableAPI
/*GeneralStationTimetableAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type GeneralStationTimetableAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
+ Payload *models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable
}
func (o *GeneralStationTimetableAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/GeneralStationTimetable/Station/{StationID}][%d] generalStationTimetableApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *GeneralStationTimetableAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable {
+func (o *GeneralStationTimetableAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable {
return o.Payload
}
func (o *GeneralStationTimetableAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_parameters.go b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_parameters.go
index 2c3acf69..1c9e2f45 100644
--- a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type GeneralStationTimetableAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *GeneralStationTimetableAPIControllerGetParams) SetHTTPClient(client *ht
}
// WithDollarCount adds the dollarCount to the general station timetable Api controller get params
-func (o *GeneralStationTimetableAPIControllerGetParams) WithDollarCount(dollarCount *string) *GeneralStationTimetableAPIControllerGetParams {
+func (o *GeneralStationTimetableAPIControllerGetParams) WithDollarCount(dollarCount *bool) *GeneralStationTimetableAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the general station timetable Api controller get params
-func (o *GeneralStationTimetableAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *GeneralStationTimetableAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *GeneralStationTimetableAPIControllerGetParams) WriteToRequest(r runtime
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_responses.go b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_responses.go
index 607810d0..52f5c098 100644
--- a/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/general_station_timetable_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewGeneralStationTimetableAPIControllerGetOK() *GeneralStationTimetableAPIC
/*GeneralStationTimetableAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type GeneralStationTimetableAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
+ Payload *models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable
}
func (o *GeneralStationTimetableAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/GeneralStationTimetable][%d] generalStationTimetableApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *GeneralStationTimetableAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable {
+func (o *GeneralStationTimetableAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable {
return o.Payload
}
func (o *GeneralStationTimetableAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_parameters.go
index 9b2f7600..f21b46f0 100644
--- a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type GeneralTrainTimetableAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *GeneralTrainTimetableAPIControllerGet1Params) SetHTTPClient(client *htt
}
// WithDollarCount adds the dollarCount to the general train timetable Api controller get 1 params
-func (o *GeneralTrainTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *string) *GeneralTrainTimetableAPIControllerGet1Params {
+func (o *GeneralTrainTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *GeneralTrainTimetableAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the general train timetable Api controller get 1 params
-func (o *GeneralTrainTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *GeneralTrainTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *GeneralTrainTimetableAPIControllerGet1Params) WriteToRequest(r runtime.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_responses.go b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_responses.go
index a0b255d5..8b2b6f9d 100644
--- a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewGeneralTrainTimetableAPIControllerGet1OK() *GeneralTrainTimetableAPICont
/*GeneralTrainTimetableAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type GeneralTrainTimetableAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable
+ Payload *models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable
}
func (o *GeneralTrainTimetableAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/GeneralTrainTimetable/TrainNo/{TrainNo}][%d] generalTrainTimetableApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *GeneralTrainTimetableAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable {
+func (o *GeneralTrainTimetableAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable {
return o.Payload
}
func (o *GeneralTrainTimetableAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_parameters.go b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_parameters.go
index 460d9705..1524f6d2 100644
--- a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type GeneralTrainTimetableAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *GeneralTrainTimetableAPIControllerGetParams) SetHTTPClient(client *http
}
// WithDollarCount adds the dollarCount to the general train timetable Api controller get params
-func (o *GeneralTrainTimetableAPIControllerGetParams) WithDollarCount(dollarCount *string) *GeneralTrainTimetableAPIControllerGetParams {
+func (o *GeneralTrainTimetableAPIControllerGetParams) WithDollarCount(dollarCount *bool) *GeneralTrainTimetableAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the general train timetable Api controller get params
-func (o *GeneralTrainTimetableAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *GeneralTrainTimetableAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *GeneralTrainTimetableAPIControllerGetParams) WriteToRequest(r runtime.C
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_responses.go b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_responses.go
index c9a54ff8..ebffd6f4 100644
--- a/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/general_train_timetable_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewGeneralTrainTimetableAPIControllerGetOK() *GeneralTrainTimetableAPIContr
/*GeneralTrainTimetableAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type GeneralTrainTimetableAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable
+ Payload *models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable
}
func (o *GeneralTrainTimetableAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/GeneralTrainTimetable][%d] generalTrainTimetableApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *GeneralTrainTimetableAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable {
+func (o *GeneralTrainTimetableAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable {
return o.Payload
}
func (o *GeneralTrainTimetableAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/line_api_controller_get_parameters.go b/rail/v3/client/t_r_a/line_api_controller_get_parameters.go
index 2c30849b..2665034e 100644
--- a/rail/v3/client/t_r_a/line_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/line_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type LineAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *LineAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the line Api controller get params
-func (o *LineAPIControllerGetParams) WithDollarCount(dollarCount *string) *LineAPIControllerGetParams {
+func (o *LineAPIControllerGetParams) WithDollarCount(dollarCount *bool) *LineAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the line Api controller get params
-func (o *LineAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *LineAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *LineAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest, reg
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/line_api_controller_get_responses.go b/rail/v3/client/t_r_a/line_api_controller_get_responses.go
index 3bb741b9..a0d84a58 100644
--- a/rail/v3/client/t_r_a/line_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/line_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewLineAPIControllerGetOK() *LineAPIControllerGetOK {
/*LineAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type LineAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine
}
func (o *LineAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Line][%d] lineApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *LineAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine {
+func (o *LineAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine {
return o.Payload
}
func (o *LineAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/line_network_api_controller_get_parameters.go b/rail/v3/client/t_r_a/line_network_api_controller_get_parameters.go
index 8ff42893..b37d0ff4 100644
--- a/rail/v3/client/t_r_a/line_network_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/line_network_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type LineNetworkAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *LineNetworkAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the line network Api controller get params
-func (o *LineNetworkAPIControllerGetParams) WithDollarCount(dollarCount *string) *LineNetworkAPIControllerGetParams {
+func (o *LineNetworkAPIControllerGetParams) WithDollarCount(dollarCount *bool) *LineNetworkAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the line network Api controller get params
-func (o *LineNetworkAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *LineNetworkAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *LineNetworkAPIControllerGetParams) WriteToRequest(r runtime.ClientReque
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/line_network_api_controller_get_responses.go b/rail/v3/client/t_r_a/line_network_api_controller_get_responses.go
index 9c4098f1..3b6a760d 100644
--- a/rail/v3/client/t_r_a/line_network_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/line_network_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewLineNetworkAPIControllerGetOK() *LineNetworkAPIControllerGetOK {
/*LineNetworkAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type LineNetworkAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork
}
func (o *LineNetworkAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/LineNetwork][%d] lineNetworkApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *LineNetworkAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork {
+func (o *LineNetworkAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork {
return o.Payload
}
func (o *LineNetworkAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/line_transfer_api_controller_get_parameters.go b/rail/v3/client/t_r_a/line_transfer_api_controller_get_parameters.go
index e0fafa38..175934d9 100644
--- a/rail/v3/client/t_r_a/line_transfer_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/line_transfer_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type LineTransferAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *LineTransferAPIControllerGetParams) SetHTTPClient(client *http.Client)
}
// WithDollarCount adds the dollarCount to the line transfer Api controller get params
-func (o *LineTransferAPIControllerGetParams) WithDollarCount(dollarCount *string) *LineTransferAPIControllerGetParams {
+func (o *LineTransferAPIControllerGetParams) WithDollarCount(dollarCount *bool) *LineTransferAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the line transfer Api controller get params
-func (o *LineTransferAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *LineTransferAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *LineTransferAPIControllerGetParams) WriteToRequest(r runtime.ClientRequ
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/line_transfer_api_controller_get_responses.go b/rail/v3/client/t_r_a/line_transfer_api_controller_get_responses.go
index 1abd7afb..212ba87d 100644
--- a/rail/v3/client/t_r_a/line_transfer_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/line_transfer_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewLineTransferAPIControllerGetOK() *LineTransferAPIControllerGetOK {
/*LineTransferAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type LineTransferAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer
}
func (o *LineTransferAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/LineTransfer][%d] lineTransferApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *LineTransferAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer {
+func (o *LineTransferAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer {
return o.Payload
}
func (o *LineTransferAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/network_api_controller_get_parameters.go b/rail/v3/client/t_r_a/network_api_controller_get_parameters.go
index c0668677..ac6112f2 100644
--- a/rail/v3/client/t_r_a/network_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/network_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type NetworkAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *NetworkAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the network Api controller get params
-func (o *NetworkAPIControllerGetParams) WithDollarCount(dollarCount *string) *NetworkAPIControllerGetParams {
+func (o *NetworkAPIControllerGetParams) WithDollarCount(dollarCount *bool) *NetworkAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the network Api controller get params
-func (o *NetworkAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *NetworkAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *NetworkAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest,
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/network_api_controller_get_responses.go b/rail/v3/client/t_r_a/network_api_controller_get_responses.go
index 2370a546..10153a0d 100644
--- a/rail/v3/client/t_r_a/network_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/network_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewNetworkAPIControllerGetOK() *NetworkAPIControllerGetOK {
/*NetworkAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type NetworkAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork
}
func (o *NetworkAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Network][%d] networkApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *NetworkAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork {
+func (o *NetworkAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork {
return o.Payload
}
func (o *NetworkAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/news_api_controller_get_parameters.go b/rail/v3/client/t_r_a/news_api_controller_get_parameters.go
index a7f04f03..cfab3bde 100644
--- a/rail/v3/client/t_r_a/news_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/news_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type NewsAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *NewsAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the news Api controller get params
-func (o *NewsAPIControllerGetParams) WithDollarCount(dollarCount *string) *NewsAPIControllerGetParams {
+func (o *NewsAPIControllerGetParams) WithDollarCount(dollarCount *bool) *NewsAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the news Api controller get params
-func (o *NewsAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *NewsAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *NewsAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest, reg
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/news_api_controller_get_responses.go b/rail/v3/client/t_r_a/news_api_controller_get_responses.go
index d04bfcb8..28eb664a 100644
--- a/rail/v3/client/t_r_a/news_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/news_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewNewsAPIControllerGetOK() *NewsAPIControllerGetOK {
/*NewsAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type NewsAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews
}
func (o *NewsAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/News][%d] newsApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *NewsAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews {
+func (o *NewsAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews {
return o.Payload
}
func (o *NewsAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_parameters.go
index a2447868..da4b00ee 100644
--- a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type ODFareAPIControllerAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -158,13 +158,13 @@ func (o *ODFareAPIControllerAPIControllerGet1Params) SetHTTPClient(client *http.
}
// WithDollarCount adds the dollarCount to the o d fare Api controller Api controller get 1 params
-func (o *ODFareAPIControllerAPIControllerGet1Params) WithDollarCount(dollarCount *string) *ODFareAPIControllerAPIControllerGet1Params {
+func (o *ODFareAPIControllerAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *ODFareAPIControllerAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the o d fare Api controller Api controller get 1 params
-func (o *ODFareAPIControllerAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *ODFareAPIControllerAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -267,11 +267,11 @@ func (o *ODFareAPIControllerAPIControllerGet1Params) WriteToRequest(r runtime.Cl
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_responses.go b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_responses.go
index b84af1d9..07d13df8 100644
--- a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewODFareAPIControllerAPIControllerGet1OK() *ODFareAPIControllerAPIControll
/*ODFareAPIControllerAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type ODFareAPIControllerAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare
+ Payload *models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare
}
func (o *ODFareAPIControllerAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}][%d] oDFareApiControllerApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *ODFareAPIControllerAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare {
+func (o *ODFareAPIControllerAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare {
return o.Payload
}
func (o *ODFareAPIControllerAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
+ o.Payload = new(models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_responses.go b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_responses.go
index c028faaa..8bd6f694 100644
--- a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_responses.go
@@ -45,20 +45,20 @@ func NewODFareAPIControllerAPIControllerGetOK() *ODFareAPIControllerAPIControlle
Gzipped Attachment Response
*/
type ODFareAPIControllerAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare
+ Payload *models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare
}
func (o *ODFareAPIControllerAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/ODFare][%d] oDFareApiControllerApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *ODFareAPIControllerAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare {
+func (o *ODFareAPIControllerAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare {
return o.Payload
}
func (o *ODFareAPIControllerAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
+ o.Payload = new(models.PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/operator_api_controller_get_parameters.go b/rail/v3/client/t_r_a/operator_api_controller_get_parameters.go
index f105c166..3ad9bdba 100644
--- a/rail/v3/client/t_r_a/operator_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/operator_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type OperatorAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *OperatorAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the operator Api controller get params
-func (o *OperatorAPIControllerGetParams) WithDollarCount(dollarCount *string) *OperatorAPIControllerGetParams {
+func (o *OperatorAPIControllerGetParams) WithDollarCount(dollarCount *bool) *OperatorAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the operator Api controller get params
-func (o *OperatorAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *OperatorAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *OperatorAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest,
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/operator_api_controller_get_responses.go b/rail/v3/client/t_r_a/operator_api_controller_get_responses.go
index 4fd3056b..9ee0db77 100644
--- a/rail/v3/client/t_r_a/operator_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/operator_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewOperatorAPIControllerGetOK() *OperatorAPIControllerGetOK {
/*OperatorAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type OperatorAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator
}
func (o *OperatorAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Operator][%d] operatorApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *OperatorAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator {
+func (o *OperatorAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator {
return o.Payload
}
func (o *OperatorAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/shape_api_controller_get_parameters.go b/rail/v3/client/t_r_a/shape_api_controller_get_parameters.go
index 0ddaf142..8cb01e4e 100644
--- a/rail/v3/client/t_r_a/shape_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/shape_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type ShapeAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *ShapeAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the shape Api controller get params
-func (o *ShapeAPIControllerGetParams) WithDollarCount(dollarCount *string) *ShapeAPIControllerGetParams {
+func (o *ShapeAPIControllerGetParams) WithDollarCount(dollarCount *bool) *ShapeAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the shape Api controller get params
-func (o *ShapeAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *ShapeAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *ShapeAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest, re
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/shape_api_controller_get_responses.go b/rail/v3/client/t_r_a/shape_api_controller_get_responses.go
index db77f6a8..ffd496a6 100644
--- a/rail/v3/client/t_r_a/shape_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/shape_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewShapeAPIControllerGetOK() *ShapeAPIControllerGetOK {
/*ShapeAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type ShapeAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape
}
func (o *ShapeAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Shape][%d] shapeApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *ShapeAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape {
+func (o *ShapeAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape {
return o.Payload
}
func (o *ShapeAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_parameters.go
index 81947134..3d8b9259 100644
--- a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type SpecificTrainTimetableAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *SpecificTrainTimetableAPIControllerGet1Params) SetHTTPClient(client *ht
}
// WithDollarCount adds the dollarCount to the specific train timetable Api controller get 1 params
-func (o *SpecificTrainTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *string) *SpecificTrainTimetableAPIControllerGet1Params {
+func (o *SpecificTrainTimetableAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *SpecificTrainTimetableAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the specific train timetable Api controller get 1 params
-func (o *SpecificTrainTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *SpecificTrainTimetableAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *SpecificTrainTimetableAPIControllerGet1Params) WriteToRequest(r runtime
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_responses.go b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_responses.go
index 89e77c59..f7784ba3 100644
--- a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewSpecificTrainTimetableAPIControllerGet1OK() *SpecificTrainTimetableAPICo
/*SpecificTrainTimetableAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type SpecificTrainTimetableAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable
+ Payload *models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable
}
func (o *SpecificTrainTimetableAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/SpecificTrainTimetable/TrainNo/{TrainNo}][%d] specificTrainTimetableApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *SpecificTrainTimetableAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable {
+func (o *SpecificTrainTimetableAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable {
return o.Payload
}
func (o *SpecificTrainTimetableAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_parameters.go b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_parameters.go
index e0808d17..94835ff3 100644
--- a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type SpecificTrainTimetableAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *SpecificTrainTimetableAPIControllerGetParams) SetHTTPClient(client *htt
}
// WithDollarCount adds the dollarCount to the specific train timetable Api controller get params
-func (o *SpecificTrainTimetableAPIControllerGetParams) WithDollarCount(dollarCount *string) *SpecificTrainTimetableAPIControllerGetParams {
+func (o *SpecificTrainTimetableAPIControllerGetParams) WithDollarCount(dollarCount *bool) *SpecificTrainTimetableAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the specific train timetable Api controller get params
-func (o *SpecificTrainTimetableAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *SpecificTrainTimetableAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *SpecificTrainTimetableAPIControllerGetParams) WriteToRequest(r runtime.
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_responses.go b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_responses.go
index ba24b71e..d789dd19 100644
--- a/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/specific_train_timetable_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewSpecificTrainTimetableAPIControllerGetOK() *SpecificTrainTimetableAPICon
/*SpecificTrainTimetableAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type SpecificTrainTimetableAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable
+ Payload *models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable
}
func (o *SpecificTrainTimetableAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/SpecificTrainTimetable][%d] specificTrainTimetableApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *SpecificTrainTimetableAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable {
+func (o *SpecificTrainTimetableAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable {
return o.Payload
}
func (o *SpecificTrainTimetableAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable)
+ o.Payload = new(models.PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_api_controller_get_parameters.go
index 06bd9520..ff0c51cb 100644
--- a/rail/v3/client/t_r_a/station_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -103,6 +103,11 @@ type StationAPIControllerGetParams struct {
*/
DollarSkip *string
+ /*DollarSpatialFilter
+ 空間過濾
+
+ */
+ DollarSpatialFilter *string
/*DollarTop
取前幾筆
@@ -148,13 +153,13 @@ func (o *StationAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the station Api controller get params
-func (o *StationAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationAPIControllerGetParams {
+func (o *StationAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station Api controller get params
-func (o *StationAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -213,6 +218,17 @@ func (o *StationAPIControllerGetParams) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the station Api controller get params
+func (o *StationAPIControllerGetParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *StationAPIControllerGetParams {
+ o.SetDollarSpatialFilter(dollarSpatialFilter)
+ return o
+}
+
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the station Api controller get params
+func (o *StationAPIControllerGetParams) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+ o.DollarSpatialFilter = dollarSpatialFilter
+}
+
// WithDollarTop adds the dollarTop to the station Api controller get params
func (o *StationAPIControllerGetParams) WithDollarTop(dollarTop *int64) *StationAPIControllerGetParams {
o.SetDollarTop(dollarTop)
@@ -235,11 +251,11 @@ func (o *StationAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest,
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
@@ -321,6 +337,22 @@ func (o *StationAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest,
}
+ if o.DollarSpatialFilter != nil {
+
+ // query param $spatialFilter
+ var qrDollarSpatialFilter string
+ if o.DollarSpatialFilter != nil {
+ qrDollarSpatialFilter = *o.DollarSpatialFilter
+ }
+ qDollarSpatialFilter := qrDollarSpatialFilter
+ if qDollarSpatialFilter != "" {
+ if err := r.SetQueryParam("$spatialFilter", qDollarSpatialFilter); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarTop != nil {
// query param $top
diff --git a/rail/v3/client/t_r_a/station_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_api_controller_get_responses.go
index 7f680fb6..10e56028 100644
--- a/rail/v3/client/t_r_a/station_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationAPIControllerGetOK() *StationAPIControllerGetOK {
/*StationAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation
}
func (o *StationAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/Station][%d] stationApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation {
+func (o *StationAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation {
return o.Payload
}
func (o *StationAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_exit_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_exit_api_controller_get_parameters.go
index e9ebb7e7..3d8a3d2d 100644
--- a/rail/v3/client/t_r_a/station_exit_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_exit_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationExitAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *StationExitAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the station exit Api controller get params
-func (o *StationExitAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationExitAPIControllerGetParams {
+func (o *StationExitAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationExitAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station exit Api controller get params
-func (o *StationExitAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationExitAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *StationExitAPIControllerGetParams) WriteToRequest(r runtime.ClientReque
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_exit_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_exit_api_controller_get_responses.go
index aa3da525..65cb201e 100644
--- a/rail/v3/client/t_r_a/station_exit_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_exit_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationExitAPIControllerGetOK() *StationExitAPIControllerGetOK {
/*StationExitAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationExitAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit
}
func (o *StationExitAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationExit][%d] stationExitApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationExitAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit {
+func (o *StationExitAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit {
return o.Payload
}
func (o *StationExitAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_facility_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_facility_api_controller_get_parameters.go
index d234e265..51823901 100644
--- a/rail/v3/client/t_r_a/station_facility_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_facility_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationFacilityAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *StationFacilityAPIControllerGetParams) SetHTTPClient(client *http.Clien
}
// WithDollarCount adds the dollarCount to the station facility Api controller get params
-func (o *StationFacilityAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationFacilityAPIControllerGetParams {
+func (o *StationFacilityAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationFacilityAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station facility Api controller get params
-func (o *StationFacilityAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationFacilityAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *StationFacilityAPIControllerGetParams) WriteToRequest(r runtime.ClientR
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_facility_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_facility_api_controller_get_responses.go
index 765d48ae..8deb399d 100644
--- a/rail/v3/client/t_r_a/station_facility_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_facility_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationFacilityAPIControllerGetOK() *StationFacilityAPIControllerGetOK {
/*StationFacilityAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationFacilityAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility
}
func (o *StationFacilityAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationFacility][%d] stationFacilityApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationFacilityAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility {
+func (o *StationFacilityAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility {
return o.Payload
}
func (o *StationFacilityAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_live_board_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/station_live_board_api_controller_get1_parameters.go
index d917aca0..2fe24bec 100644
--- a/rail/v3/client/t_r_a/station_live_board_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/station_live_board_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type StationLiveBoardAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *StationLiveBoardAPIControllerGet1Params) SetHTTPClient(client *http.Cli
}
// WithDollarCount adds the dollarCount to the station live board Api controller get 1 params
-func (o *StationLiveBoardAPIControllerGet1Params) WithDollarCount(dollarCount *string) *StationLiveBoardAPIControllerGet1Params {
+func (o *StationLiveBoardAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *StationLiveBoardAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station live board Api controller get 1 params
-func (o *StationLiveBoardAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *StationLiveBoardAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *StationLiveBoardAPIControllerGet1Params) WriteToRequest(r runtime.Clien
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_live_board_api_controller_get1_responses.go b/rail/v3/client/t_r_a/station_live_board_api_controller_get1_responses.go
index 318773ec..981f928c 100644
--- a/rail/v3/client/t_r_a/station_live_board_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/station_live_board_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewStationLiveBoardAPIControllerGet1OK() *StationLiveBoardAPIControllerGet1
/*StationLiveBoardAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type StationLiveBoardAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard
}
func (o *StationLiveBoardAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationLiveBoard/Station/{StationID}][%d] stationLiveBoardApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *StationLiveBoardAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard {
+func (o *StationLiveBoardAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard {
return o.Payload
}
func (o *StationLiveBoardAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_live_board_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_live_board_api_controller_get_parameters.go
index ecaaeb1b..e2d3d0c0 100644
--- a/rail/v3/client/t_r_a/station_live_board_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_live_board_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationLiveBoardAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *StationLiveBoardAPIControllerGetParams) SetHTTPClient(client *http.Clie
}
// WithDollarCount adds the dollarCount to the station live board Api controller get params
-func (o *StationLiveBoardAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationLiveBoardAPIControllerGetParams {
+func (o *StationLiveBoardAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationLiveBoardAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station live board Api controller get params
-func (o *StationLiveBoardAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationLiveBoardAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *StationLiveBoardAPIControllerGetParams) WriteToRequest(r runtime.Client
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_live_board_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_live_board_api_controller_get_responses.go
index bf38038a..c20ebece 100644
--- a/rail/v3/client/t_r_a/station_live_board_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_live_board_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationLiveBoardAPIControllerGetOK() *StationLiveBoardAPIControllerGetOK
/*StationLiveBoardAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationLiveBoardAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard
}
func (o *StationLiveBoardAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationLiveBoard][%d] stationLiveBoardApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationLiveBoardAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard {
+func (o *StationLiveBoardAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard {
return o.Payload
}
func (o *StationLiveBoardAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_of_line_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_of_line_api_controller_get_parameters.go
index 7bd7a20e..ec642b2f 100644
--- a/rail/v3/client/t_r_a/station_of_line_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_of_line_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationOfLineAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *StationOfLineAPIControllerGetParams) SetHTTPClient(client *http.Client)
}
// WithDollarCount adds the dollarCount to the station of line Api controller get params
-func (o *StationOfLineAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationOfLineAPIControllerGetParams {
+func (o *StationOfLineAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationOfLineAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station of line Api controller get params
-func (o *StationOfLineAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationOfLineAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *StationOfLineAPIControllerGetParams) WriteToRequest(r runtime.ClientReq
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_of_line_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_of_line_api_controller_get_responses.go
index da0b2bbe..ada56e59 100644
--- a/rail/v3/client/t_r_a/station_of_line_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_of_line_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationOfLineAPIControllerGetOK() *StationOfLineAPIControllerGetOK {
/*StationOfLineAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationOfLineAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine
}
func (o *StationOfLineAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationOfLine][%d] stationOfLineApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationOfLineAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine {
+func (o *StationOfLineAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine {
return o.Payload
}
func (o *StationOfLineAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/station_transfer_api_controller_get_parameters.go b/rail/v3/client/t_r_a/station_transfer_api_controller_get_parameters.go
index 6135a66b..a3113263 100644
--- a/rail/v3/client/t_r_a/station_transfer_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/station_transfer_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type StationTransferAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *StationTransferAPIControllerGetParams) SetHTTPClient(client *http.Clien
}
// WithDollarCount adds the dollarCount to the station transfer Api controller get params
-func (o *StationTransferAPIControllerGetParams) WithDollarCount(dollarCount *string) *StationTransferAPIControllerGetParams {
+func (o *StationTransferAPIControllerGetParams) WithDollarCount(dollarCount *bool) *StationTransferAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the station transfer Api controller get params
-func (o *StationTransferAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *StationTransferAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *StationTransferAPIControllerGetParams) WriteToRequest(r runtime.ClientR
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/station_transfer_api_controller_get_responses.go b/rail/v3/client/t_r_a/station_transfer_api_controller_get_responses.go
index 7a81a823..0c16620c 100644
--- a/rail/v3/client/t_r_a/station_transfer_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/station_transfer_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewStationTransferAPIControllerGetOK() *StationTransferAPIControllerGetOK {
/*StationTransferAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type StationTransferAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer
}
func (o *StationTransferAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/StationTransfer][%d] stationTransferApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *StationTransferAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer {
+func (o *StationTransferAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer {
return o.Payload
}
func (o *StationTransferAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/tra_client.go b/rail/v3/client/t_r_a/tra_client.go
index e955665d..11eade37 100644
--- a/rail/v3/client/t_r_a/tra_client.go
+++ b/rail/v3/client/t_r_a/tra_client.go
@@ -113,7 +113,7 @@ func (a *Client) AlertAPIControllerGet(params *AlertAPIControllerGetParams) (*Al
ID: "AlertApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Alert",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -149,7 +149,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet(params *DailyStationTimeT
ID: "DailyStationTimeTableApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -185,7 +185,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet1(params *DailyStationTime
ID: "DailyStationTimeTableApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/Today/Station/{StationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -221,7 +221,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet2(params *DailyStationTime
ID: "DailyStationTimeTableApiController_Get_2",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -257,7 +257,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet(params *DailyTrainTimeTable
ID: "DailyTrainTimeTableApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/Today",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -293,7 +293,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet1(params *DailyTrainTimeTabl
ID: "DailyTrainTimeTableApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/Today/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -329,7 +329,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet2(params *DailyTrainTimeTabl
ID: "DailyTrainTimeTableApiController_Get_2",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/TrainDate/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -365,7 +365,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet3(params *DailyTrainTimeTabl
ID: "DailyTrainTimeTableApiController_Get_3",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -401,7 +401,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet4(params *DailyTrainTimeTabl
ID: "DailyTrainTimeTableApiController_Get_4",
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/OD/Inclusive/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -437,7 +437,7 @@ func (a *Client) GeneralStationTimetableAPIControllerGet(params *GeneralStationT
ID: "GeneralStationTimetableApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralStationTimetable",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -473,7 +473,7 @@ func (a *Client) GeneralStationTimetableAPIControllerGet1(params *GeneralStation
ID: "GeneralStationTimetableApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralStationTimetable/Station/{StationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -509,7 +509,7 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet(params *GeneralTrainTimet
ID: "GeneralTrainTimetableApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralTrainTimetable",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -545,7 +545,7 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet1(params *GeneralTrainTime
ID: "GeneralTrainTimetableApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralTrainTimetable/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -581,7 +581,7 @@ func (a *Client) LineAPIControllerGet(params *LineAPIControllerGetParams) (*Line
ID: "LineApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Line",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -617,7 +617,7 @@ func (a *Client) LineNetworkAPIControllerGet(params *LineNetworkAPIControllerGet
ID: "LineNetworkApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/LineNetwork",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -653,7 +653,7 @@ func (a *Client) LineTransferAPIControllerGet(params *LineTransferAPIControllerG
ID: "LineTransferApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/LineTransfer",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -689,7 +689,7 @@ func (a *Client) NetworkAPIControllerGet(params *NetworkAPIControllerGetParams)
ID: "NetworkApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Network",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -725,7 +725,7 @@ func (a *Client) NewsAPIControllerGet(params *NewsAPIControllerGetParams) (*News
ID: "NewsApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/News",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -761,7 +761,7 @@ func (a *Client) ODFareAPIControllerAPIControllerGet(params *ODFareAPIController
ID: "ODFareApiControllerApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/ODFare",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/plain"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -797,7 +797,7 @@ func (a *Client) ODFareAPIControllerAPIControllerGet1(params *ODFareAPIControlle
ID: "ODFareApiControllerApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -833,7 +833,7 @@ func (a *Client) OperatorAPIControllerGet(params *OperatorAPIControllerGetParams
ID: "OperatorApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Operator",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -869,7 +869,7 @@ func (a *Client) ShapeAPIControllerGet(params *ShapeAPIControllerGetParams) (*Sh
ID: "ShapeApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Shape",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -905,7 +905,7 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet(params *SpecificTrainTim
ID: "SpecificTrainTimetableApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/SpecificTrainTimetable",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -941,7 +941,7 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet1(params *SpecificTrainTi
ID: "SpecificTrainTimetableApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/SpecificTrainTimetable/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -977,7 +977,7 @@ func (a *Client) StationAPIControllerGet(params *StationAPIControllerGetParams)
ID: "StationApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/Station",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1013,7 +1013,7 @@ func (a *Client) StationExitAPIControllerGet(params *StationExitAPIControllerGet
ID: "StationExitApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationExit",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1049,7 +1049,7 @@ func (a *Client) StationFacilityAPIControllerGet(params *StationFacilityAPIContr
ID: "StationFacilityApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationFacility",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1085,7 +1085,7 @@ func (a *Client) StationLiveBoardAPIControllerGet(params *StationLiveBoardAPICon
ID: "StationLiveBoardApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationLiveBoard",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1121,7 +1121,7 @@ func (a *Client) StationLiveBoardAPIControllerGet1(params *StationLiveBoardAPICo
ID: "StationLiveBoardApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationLiveBoard/Station/{StationID}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1157,7 +1157,7 @@ func (a *Client) StationOfLineAPIControllerGet(params *StationOfLineAPIControlle
ID: "StationOfLineApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationOfLine",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1193,7 +1193,7 @@ func (a *Client) StationTransferAPIControllerGet(params *StationTransferAPIContr
ID: "StationTransferApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationTransfer",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1235,7 +1235,7 @@ func (a *Client) TrainLiveBoardAPIControllerGet(params *TrainLiveBoardAPIControl
ID: "TrainLiveBoardApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainLiveBoard",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1277,7 +1277,7 @@ func (a *Client) TrainLiveBoardAPIControllerGet1(params *TrainLiveBoardAPIContro
ID: "TrainLiveBoardApiController_Get_1",
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainLiveBoard/TrainNo/{TrainNo}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -1313,7 +1313,7 @@ func (a *Client) TrainTypeAPIControllerGet(params *TrainTypeAPIControllerGetPara
ID: "TrainTypeApiController_Get",
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainType",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/rail/v3/client/t_r_a/train_live_board_api_controller_get1_parameters.go b/rail/v3/client/t_r_a/train_live_board_api_controller_get1_parameters.go
index b1449f9d..1232694c 100644
--- a/rail/v3/client/t_r_a/train_live_board_api_controller_get1_parameters.go
+++ b/rail/v3/client/t_r_a/train_live_board_api_controller_get1_parameters.go
@@ -77,7 +77,7 @@ type TrainLiveBoardAPIControllerGet1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -153,13 +153,13 @@ func (o *TrainLiveBoardAPIControllerGet1Params) SetHTTPClient(client *http.Clien
}
// WithDollarCount adds the dollarCount to the train live board Api controller get 1 params
-func (o *TrainLiveBoardAPIControllerGet1Params) WithDollarCount(dollarCount *string) *TrainLiveBoardAPIControllerGet1Params {
+func (o *TrainLiveBoardAPIControllerGet1Params) WithDollarCount(dollarCount *bool) *TrainLiveBoardAPIControllerGet1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the train live board Api controller get 1 params
-func (o *TrainLiveBoardAPIControllerGet1Params) SetDollarCount(dollarCount *string) {
+func (o *TrainLiveBoardAPIControllerGet1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -251,11 +251,11 @@ func (o *TrainLiveBoardAPIControllerGet1Params) WriteToRequest(r runtime.ClientR
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/train_live_board_api_controller_get1_responses.go b/rail/v3/client/t_r_a/train_live_board_api_controller_get1_responses.go
index 7b7136f5..1e262308 100644
--- a/rail/v3/client/t_r_a/train_live_board_api_controller_get1_responses.go
+++ b/rail/v3/client/t_r_a/train_live_board_api_controller_get1_responses.go
@@ -42,23 +42,23 @@ func NewTrainLiveBoardAPIControllerGet1OK() *TrainLiveBoardAPIControllerGet1OK {
/*TrainLiveBoardAPIControllerGet1OK handles this case with default header values.
-OK
+Success
*/
type TrainLiveBoardAPIControllerGet1OK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard
}
func (o *TrainLiveBoardAPIControllerGet1OK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/TrainLiveBoard/TrainNo/{TrainNo}][%d] trainLiveBoardApiControllerGet1OK %+v", 200, o.Payload)
}
-func (o *TrainLiveBoardAPIControllerGet1OK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard {
+func (o *TrainLiveBoardAPIControllerGet1OK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard {
return o.Payload
}
func (o *TrainLiveBoardAPIControllerGet1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/train_live_board_api_controller_get_parameters.go b/rail/v3/client/t_r_a/train_live_board_api_controller_get_parameters.go
index 088ccca2..101249b4 100644
--- a/rail/v3/client/t_r_a/train_live_board_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/train_live_board_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type TrainLiveBoardAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *TrainLiveBoardAPIControllerGetParams) SetHTTPClient(client *http.Client
}
// WithDollarCount adds the dollarCount to the train live board Api controller get params
-func (o *TrainLiveBoardAPIControllerGetParams) WithDollarCount(dollarCount *string) *TrainLiveBoardAPIControllerGetParams {
+func (o *TrainLiveBoardAPIControllerGetParams) WithDollarCount(dollarCount *bool) *TrainLiveBoardAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the train live board Api controller get params
-func (o *TrainLiveBoardAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *TrainLiveBoardAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *TrainLiveBoardAPIControllerGetParams) WriteToRequest(r runtime.ClientRe
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/train_live_board_api_controller_get_responses.go b/rail/v3/client/t_r_a/train_live_board_api_controller_get_responses.go
index 7bfc89be..e38c81e5 100644
--- a/rail/v3/client/t_r_a/train_live_board_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/train_live_board_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewTrainLiveBoardAPIControllerGetOK() *TrainLiveBoardAPIControllerGetOK {
/*TrainLiveBoardAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type TrainLiveBoardAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard
+ Payload *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard
}
func (o *TrainLiveBoardAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/TrainLiveBoard][%d] trainLiveBoardApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *TrainLiveBoardAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard {
+func (o *TrainLiveBoardAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard {
return o.Payload
}
func (o *TrainLiveBoardAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard)
+ o.Payload = new(models.PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/client/t_r_a/train_type_api_controller_get_parameters.go b/rail/v3/client/t_r_a/train_type_api_controller_get_parameters.go
index ff259051..3d17ec95 100644
--- a/rail/v3/client/t_r_a/train_type_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/train_type_api_controller_get_parameters.go
@@ -77,7 +77,7 @@ type TrainTypeAPIControllerGetParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -148,13 +148,13 @@ func (o *TrainTypeAPIControllerGetParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the train type Api controller get params
-func (o *TrainTypeAPIControllerGetParams) WithDollarCount(dollarCount *string) *TrainTypeAPIControllerGetParams {
+func (o *TrainTypeAPIControllerGetParams) WithDollarCount(dollarCount *bool) *TrainTypeAPIControllerGetParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the train type Api controller get params
-func (o *TrainTypeAPIControllerGetParams) SetDollarCount(dollarCount *string) {
+func (o *TrainTypeAPIControllerGetParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -235,11 +235,11 @@ func (o *TrainTypeAPIControllerGetParams) WriteToRequest(r runtime.ClientRequest
if o.DollarCount != nil {
// query param $count
- var qrDollarCount string
+ var qrDollarCount bool
if o.DollarCount != nil {
qrDollarCount = *o.DollarCount
}
- qDollarCount := qrDollarCount
+ qDollarCount := swag.FormatBool(qrDollarCount)
if qDollarCount != "" {
if err := r.SetQueryParam("$count", qDollarCount); err != nil {
return err
diff --git a/rail/v3/client/t_r_a/train_type_api_controller_get_responses.go b/rail/v3/client/t_r_a/train_type_api_controller_get_responses.go
index 317b108f..62a65c7e 100644
--- a/rail/v3/client/t_r_a/train_type_api_controller_get_responses.go
+++ b/rail/v3/client/t_r_a/train_type_api_controller_get_responses.go
@@ -42,23 +42,23 @@ func NewTrainTypeAPIControllerGetOK() *TrainTypeAPIControllerGetOK {
/*TrainTypeAPIControllerGetOK handles this case with default header values.
-OK
+Success
*/
type TrainTypeAPIControllerGetOK struct {
- Payload *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType
+ Payload *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType
}
func (o *TrainTypeAPIControllerGetOK) Error() string {
return fmt.Sprintf("[GET /v3/Rail/TRA/TrainType][%d] trainTypeApiControllerGetOK %+v", 200, o.Payload)
}
-func (o *TrainTypeAPIControllerGetOK) GetPayload() *models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType {
+func (o *TrainTypeAPIControllerGetOK) GetPayload() *models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType {
return o.Payload
}
func (o *TrainTypeAPIControllerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType)
+ o.Payload = new(models.PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType)
// response payload
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
similarity index 63%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
index 6ce49558..9e991102 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine TRALineList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine TRALineList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Line]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Line]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Lines []*ServiceDTOVersion3RailTRALine `json:"Lines"`
+ Lines []*PTXServiceDTORailSpecificationV3TRALine `json:"Lines"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a line
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a line
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) Validate(
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateA
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateLines(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateLines(formats strfmt.Registry) error {
if err := validate.Required("Lines", "body", m.Lines); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateL
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateS
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateS
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateU
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateU
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) MarshalBi
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_network_line_network.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
similarity index 59%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
index 3afbad57..72624d49 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork TRALineNetworkList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork TRALineNetworkList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetw
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- LineNetworks []*ServiceDTOVersion3RailTRALineNetworkLineNetwork `json:"LineNetworks"`
+ LineNetworks []*PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork `json:"LineNetworks"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetw
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetw
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a line network line network
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a line network line network
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineNetworks(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateLineNetworks(formats strfmt.Registry) error {
if err := validate.Required("LineNetworks", "body", m.LineNetworks); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_transfer.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
similarity index 61%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_transfer.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
index e1fcb01b..c7288dd7 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_transfer.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer TRALineTransferList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer TRALineTransferList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineTransfer]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- LineTransfers []*ServiceDTOVersion3RailTRALineTransfer `json:"LineTransfers"`
+ LineTransfers []*PTXServiceDTORailSpecificationV3TRALineTransfer `json:"LineTransfers"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a line transfer
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a line transfer
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) V
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateLineTransfers(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateLineTransfers(formats strfmt.Registry) error {
if err := validate.Required("LineTransfers", "body", m.LineTransfers); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) M
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRALineTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_network_network.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go
similarity index 61%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_network_network.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go
index 89706484..22cfbb16 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_network_network.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork TRANetworkList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork TRANetworkList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Network.Network]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork stru
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Networks []*ServiceDTOVersion3RailTRANetworkNetwork `json:"Networks"`
+ Networks []*PTXServiceDTORailSpecificationV3TRANetworkNetwork `json:"Networks"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork stru
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork stru
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a network network
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a network network
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateNetworks(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateNetworks(formats strfmt.Registry) error {
if err := validate.Required("Networks", "body", m.Networks); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRANetworkNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_operator.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
similarity index 62%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_operator.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
index 219cbb76..01ef120b 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_operator.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator TRAOperatorList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator TRAOperatorList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Operator]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Operator]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Operators []*ServiceDTOVersion3RailTRAOperator `json:"Operators"`
+ Operators []*PTXServiceDTORailSpecificationV3TRAOperator `json:"Operators"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a operator
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a operator
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) Valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateOperators(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) Marsh
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_shape.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
similarity index 63%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_shape.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
index 843691a8..b3c73ec2 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_shape.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape TRAShapeList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape TRAShapeList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Shape]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Shape]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Shapes []*ServiceDTOVersion3RailTRAShape `json:"Shapes"`
+ Shapes []*PTXServiceDTORailSpecificationV3TRAShape `json:"Shapes"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a shape
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a shape
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) Validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateShapes(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateShapes(formats strfmt.Registry) error {
if err := validate.Required("Shapes", "body", m.Shapes); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) MarshalB
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
similarity index 62%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
index 871329b7..e9c53b85 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation TRAStationList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation TRAStationList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Station]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.Station]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Stations []*ServiceDTOVersion3RailTRAStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV3TRAStation `json:"Stations"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a station
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a station
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) Valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateStations(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) Marsha
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
similarity index 59%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
index d3e44d8c..e46a4a87 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit TRAStationExitList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit TRAStationExitList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationExit.StationExit]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationE
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationE
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationExits []*ServiceDTOVersion3RailTRAStationExitStationExit `json:"StationExits"`
+ StationExits []*PTXServiceDTORailSpecificationV3TRAStationExitStationExit `json:"StationExits"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationE
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a station exit station exit
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a station exit station exit
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateStationExits(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateStationExits(formats strfmt.Registry) error {
if err := validate.Required("StationExits", "body", m.StationExits); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationExitStationExit
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
similarity index 58%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
index 635ea9d9..9d9afa25 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility TRAStationFacilityList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility TRAStationFacilityList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStat
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStat
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationFacilities []*ServiceDTOVersion3RailTRAStationFacilityStationFacility `json:"StationFacilities"`
+ StationFacilities []*PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility `json:"StationFacilities"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStat
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a station facility station facility
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a station facility station facility
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateStationFacilities(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateStationFacilities(formats strfmt.Registry) error {
if err := validate.Required("StationFacilities", "body", m.StationFacilities); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
similarity index 59%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
index a2a0d512..c45db7ea 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine TRAStationOfLineList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine TRAStationOfLineList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStatio
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStatio
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationOfLines []*ServiceDTOVersion3RailTRAStationOfLineStationOfLine `json:"StationOfLines"`
+ StationOfLines []*PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine `json:"StationOfLines"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStatio
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a station of line station of line
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a station of line station of line
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateStationOfLines(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateStationOfLines(formats strfmt.Registry) error {
if err := validate.Required("StationOfLines", "body", m.StationOfLines); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
similarity index 58%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
index 08b6a2cf..d1d1d4cc 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer TRAStationTransferList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer TRAStationTransferList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStat
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStat
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationTransfers []*ServiceDTOVersion3RailTRAStationTransferStationTransfer `json:"StationTransfers"`
+ StationTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer `json:"StationTransfers"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStat
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a station transfer station transfer
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a station transfer station transfer
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateStationTransfers(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateStationTransfers(formats strfmt.Registry) error {
if err := validate.Required("StationTransfers", "body", m.StationTransfers); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_train_type.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
similarity index 62%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_train_type.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
index 25d1c64c..bb48cfb9 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_train_type.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_base_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType TRATrainTypeList
+// PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType TRATrainTypeList
//
-// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.TrainType]
-type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
+// swagger:model PTX.API.Rail.Model.TRABaseWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType]
+type PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- TrainTypes []*ServiceDTOVersion3RailTRATrainType `json:"TrainTypes"`
+ TrainTypes []*PTXServiceDTORailSpecificationV3TRATrainType `json:"TrainTypes"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a base wrapper service d t o version3 rail t r a train type
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a base wrapper p t x service d t o rail specification v3 t r a train type
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) Vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateTrainTypes(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateTrainTypes(formats strfmt.Registry) error {
if err := validate.Required("TrainTypes", "body", m.TrainTypes); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) Mars
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType
+func (m *PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRABaseWrapperPTXServiceDTORailSpecificationV3TRATrainType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_station_wrapper_service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
similarity index 57%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_station_wrapper_service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
index ba1d605c..722f19ad 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_station_wrapper_service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable TRAGeneralStationTimetableList
+// PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable TRAGeneralStationTimetableList
//
-// swagger:model MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]
-type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable struct {
+// swagger:model PTX.API.Rail.Model.TRAGeneralStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable]
+type PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -37,6 +39,8 @@ type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralSt
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,16 +51,24 @@ type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralSt
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 來源版號
SrcVersion string `json:"SrcVersion,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationTimetables []*ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable `json:"StationTimetables"`
+ StationTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable `json:"StationTimetables"`
+ // String
+ //
// 定期性站別時刻表名稱
TimetableName string `json:"TimetableName,omitempty"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -67,12 +79,14 @@ type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralSt
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
}
-// Validate validates this m o t c API rail models t r a general station wrapper service d t o version3 rail t r a general station timetable general station timetable
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a general station wrapper p t x service d t o rail specification v3 t r a general station timetable general station timetable
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -109,7 +123,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -118,7 +132,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateEffectiveDate(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateEffectiveDate(formats strfmt.Registry) error {
if err := validate.Required("EffectiveDate", "body", m.EffectiveDate); err != nil {
return err
@@ -127,7 +141,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -136,7 +150,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -145,7 +159,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateStationTimetables(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateStationTimetables(formats strfmt.Registry) error {
if err := validate.Required("StationTimetables", "body", m.StationTimetables); err != nil {
return err
@@ -170,7 +184,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -179,7 +193,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -189,7 +203,7 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -197,8 +211,8 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
+func (m *PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRAGeneralStationWrapperPTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_specific_wrapper_service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go
similarity index 61%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_specific_wrapper_service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go
index 55158437..cf43ab82 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_specific_wrapper_service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_general_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable TRASpecificTrainTimetableList
+// PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable TRAGeneralTrainTimetableList
//
-// swagger:model MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]
-type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable struct {
+// swagger:model PTX.API.Rail.Model.TRAGeneralTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable]
+type PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -37,6 +39,8 @@ type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTi
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,16 +51,24 @@ type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTi
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 來源版號
SrcVersion string `json:"SrcVersion,omitempty"`
+ // String
+ //
// 定期性站別時刻表名稱
TimetableName string `json:"TimetableName,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- TrainTimetables []*ServiceDTOVersion3RailTRASpecificTrainTimetable `json:"TrainTimetables"`
+ TrainTimetables []*PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable `json:"TrainTimetables"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -67,12 +79,14 @@ type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTi
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
}
-// Validate validates this m o t c API rail models t r a specific wrapper service d t o version3 rail t r a specific train timetable
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a general train wrapper p t x service d t o rail specification v3 t r a general train timetable
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -109,7 +123,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -118,7 +132,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateEffectiveDate(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateEffectiveDate(formats strfmt.Registry) error {
if err := validate.Required("EffectiveDate", "body", m.EffectiveDate); err != nil {
return err
@@ -127,7 +141,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -136,7 +150,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -145,7 +159,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
if err := validate.Required("TrainTimetables", "body", m.TrainTimetables); err != nil {
return err
@@ -170,7 +184,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -179,7 +193,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -189,7 +203,7 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -197,8 +211,8 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable
+func (m *PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRAGeneralTrainWrapperPTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_o_d_fare_wrapper_service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
similarity index 62%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_o_d_fare_wrapper_service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
index 8c3b74c2..2d147760 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_o_d_fare_wrapper_service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_o_d_fare_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare TRAODFareList
+// PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare TRAODFareList
//
-// swagger:model MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]
-type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare struct {
+// swagger:model PTX.API.Rail.Model.TRAODFareWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare]
+type PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,16 +28,24 @@ type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare stru
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // String
+ //
// 有效起始日期
EffectiveDate string `json:"EffectiveDate,omitempty"`
+ // String
+ //
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- ODFares []*ServiceDTOVersion3RailTRAODFareODFare `json:"ODFares"`
+ ODFares []*PTXServiceDTORailSpecificationV3TRAODFareODFare `json:"ODFares"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -46,9 +56,13 @@ type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare stru
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 資料版本
SrcVersion string `json:"SrcVersion,omitempty"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -60,8 +74,8 @@ type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare stru
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a o d fare wrapper service d t o version3 rail t r a o d fare o d fare
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a o d fare wrapper p t x service d t o rail specification v3 t r a o d fare o d fare
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -94,7 +108,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -103,7 +117,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateODFares(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateODFares(formats strfmt.Registry) error {
if err := validate.Required("ODFares", "body", m.ODFares); err != nil {
return err
@@ -128,7 +142,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -137,7 +151,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -146,7 +160,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -155,7 +169,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -165,7 +179,7 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -173,8 +187,8 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare
+func (m *PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRAODFareWrapperPTXServiceDTORailSpecificationV3TRAODFareODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
similarity index 60%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
index 5934ecf8..bf3136f6 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
@@ -14,15 +14,19 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert TRAAlertList
+// PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert TRAAlertList
//
-// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert]
-type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert struct {
+// swagger:model PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert]
+type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct {
+ // Array
+ //
// 資料(陣列)
// Required: true
- Alerts []*ServiceDTOVersion3RailTRATRAAlertListAlert `json:"Alerts"`
+ Alerts []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlert `json:"Alerts"`
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -30,6 +34,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAle
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAle
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAle
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a real time wrapper service d t o version3 rail t r a t r a alert list alert
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a real time wrapper p t x service d t o rail specification v3 t r a t r a alert list alert
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlerts(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateAlerts(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateAlerts(formats strfmt.Registry) error {
if err := validate.Required("Alerts", "body", m.Alerts); err != nil {
return err
@@ -110,7 +118,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAAlertListAlert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
similarity index 60%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
index 0dfb2466..f68ade26 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews TRANewsList
+// PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews TRANewsList
//
-// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRANewsList.News]
-type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews struct {
+// swagger:model PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News]
+type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,10 +28,14 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- Newses []*ServiceDTOVersion3RailTRATRANewsListNews `json:"Newses"`
+ Newses []*PTXServiceDTORailSpecificationV3TRATRANewsListNews `json:"Newses"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -40,6 +46,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a real time wrapper service d t o version3 rail t r a t r a news list news
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a real time wrapper p t x service d t o rail specification v3 t r a t r a news list news
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateNewses(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateNewses(formats strfmt.Registry) error {
if err := validate.Required("Newses", "body", m.Newses); err != nil {
return err
@@ -119,7 +127,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -128,7 +136,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRANewsListNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
similarity index 56%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
index 6aa905d1..b3952cb5 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard TRAStationLiveBoardList
+// PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard TRAStationLiveBoardList
//
-// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]
-type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
+// swagger:model PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard]
+type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveB
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveB
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationLiveBoards []*ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard `json:"StationLiveBoards"`
+ StationLiveBoards []*PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard `json:"StationLiveBoards"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveB
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a real time wrapper service d t o version3 rail t r a t r a station live board list station live board
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a real time wrapper p t x service d t o rail specification v3 t r a t r a station live board list station live board
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateStationLiveBoards(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateStationLiveBoards(formats strfmt.Registry) error {
if err := validate.Required("StationLiveBoards", "body", m.StationLiveBoards); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
similarity index 56%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
index 9c8095d8..bf7d1504 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_real_time_wrapper_service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_real_time_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard TRATrainLiveBoardList
+// PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard TRATrainLiveBoardList
//
-// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]
-type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
+// swagger:model PTX.API.Rail.Model.TRARealTimeWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard]
+type PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoa
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,10 +40,14 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoa
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- TrainLiveBoards []*ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard `json:"TrainLiveBoards"`
+ TrainLiveBoards []*PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard `json:"TrainLiveBoards"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -51,8 +59,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoa
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models t r a real time wrapper service d t o version3 rail t r a t r a train live board list train live board
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a real time wrapper p t x service d t o rail specification v3 t r a t r a train live board list train live board
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -85,7 +93,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -94,7 +102,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -103,7 +111,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -112,7 +120,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateTrainLiveBoards(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateTrainLiveBoards(formats strfmt.Registry) error {
if err := validate.Required("TrainLiveBoards", "body", m.TrainLiveBoards); err != nil {
return err
@@ -137,7 +145,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -146,7 +154,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -156,7 +164,7 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -164,8 +172,8 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard
+func (m *PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRARealTimeWrapperPTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_train_wrapper_service_d_t_o_version3_rail_t_r_a_general_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go
similarity index 62%
rename from rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_train_wrapper_service_d_t_o_version3_rail_t_r_a_general_train_timetable.go
rename to rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go
index 8c8b8b0d..156e5501 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_t_r_a_general_train_wrapper_service_d_t_o_version3_rail_t_r_a_general_train_timetable.go
+++ b/rail/v3/models/p_t_x_api_rail_model_t_r_a_specific_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable TRAGeneralTrainTimetableList
+// PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable TRASpecificTrainTimetableList
//
-// swagger:model MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]
-type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable struct {
+// swagger:model PTX.API.Rail.Model.TRASpecificWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable]
+type PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -37,6 +39,8 @@ type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrai
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,16 +51,24 @@ type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrai
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 來源版號
SrcVersion string `json:"SrcVersion,omitempty"`
+ // String
+ //
// 定期性站別時刻表名稱
TimetableName string `json:"TimetableName,omitempty"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- TrainTimetables []*ServiceDTOVersion3RailTRAGeneralTrainTimetable `json:"TrainTimetables"`
+ TrainTimetables []*PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable `json:"TrainTimetables"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -67,12 +79,14 @@ type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrai
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
}
-// Validate validates this m o t c API rail models t r a general train wrapper service d t o version3 rail t r a general train timetable
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model t r a specific wrapper p t x service d t o rail specification v3 t r a specific train timetable
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -109,7 +123,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -118,7 +132,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateEffectiveDate(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateEffectiveDate(formats strfmt.Registry) error {
if err := validate.Required("EffectiveDate", "body", m.EffectiveDate); err != nil {
return err
@@ -127,7 +141,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -136,7 +150,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -145,7 +159,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
if err := validate.Required("TrainTimetables", "body", m.TrainTimetables); err != nil {
return err
@@ -170,7 +184,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -179,7 +193,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -189,7 +203,7 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -197,8 +211,8 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable
+func (m *PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTRASpecificWrapperPTXServiceDTORailSpecificationV3TRASpecificTrainTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_tra_daily_station_wrapper_service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go b/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
similarity index 56%
rename from rail/v3/models/m_o_t_c_api_rail_models_tra_daily_station_wrapper_service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
rename to rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
index 8d91f40e..1aee615a 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_tra_daily_station_wrapper_service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
+++ b/rail/v3/models/p_t_x_api_rail_model_tra_daily_station_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable TRADailyStationTimeTableList
+// PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable TRADailyStationTimeTableList
//
-// swagger:model MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]
-type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable struct {
+// swagger:model PTX.API.Rail.Model.TraDailyStationWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable]
+type PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,14 +40,20 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // Array
+ //
// 資料(陣列)
// Required: true
- StationTimetables []*ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable `json:"StationTimetables"`
+ StationTimetables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable `json:"StationTimetables"`
+ // String
+ //
// 營運日說明(yyyy-MM-dd)
// Required: true
TrainDate *string `json:"TrainDate"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -55,8 +65,8 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models tra daily station wrapper service d t o version3 rail t r a daily station time table station timetable
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model tra daily station wrapper p t x service d t o rail specification v3 t r a daily station time table station timetable
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -93,7 +103,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -102,7 +112,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -111,7 +121,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -120,7 +130,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateStationTimetables(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateStationTimetables(formats strfmt.Registry) error {
if err := validate.Required("StationTimetables", "body", m.StationTimetables); err != nil {
return err
@@ -145,7 +155,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -154,7 +164,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -163,7 +173,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -173,7 +183,7 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -181,8 +191,8 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable
+func (m *PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTraDailyStationWrapperPTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/m_o_t_c_api_rail_models_tra_daily_train_wrapper_service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go b/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
similarity index 55%
rename from rail/v3/models/m_o_t_c_api_rail_models_tra_daily_train_wrapper_service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
rename to rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
index a9f20acb..304a5234 100644
--- a/rail/v3/models/m_o_t_c_api_rail_models_tra_daily_train_wrapper_service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
+++ b/rail/v3/models/p_t_x_api_rail_model_tra_daily_train_wrapper_p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable TRADailyTrainTimeTableList
+// PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable TRADailyTrainTimeTableList
//
-// swagger:model MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]
-type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable struct {
+// swagger:model PTX.API.Rail.Model.TraDailyTrainWrapper[PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable]
+type PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable struct {
+ // String
+ //
// 業管機關簡碼
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
@@ -26,6 +28,8 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Int32
+ //
// 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -36,14 +40,19 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 營運日說明(yyyy-MM-dd)
// Required: true
TrainDate *string `json:"TrainDate"`
+ // Array
+ //
// 資料(陣列)
- // Required: true
- TrainTimetables []*ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable `json:"TrainTimetables"`
+ TrainTimetables []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable `json:"TrainTimetables"`
+ // Int32
+ //
// 本平台資料更新週期(秒)
// Required: true
UpdateInterval *int32 `json:"UpdateInterval"`
@@ -55,8 +64,8 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this m o t c API rail models tra daily train wrapper service d t o version3 rail t r a daily train time table train timetable
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x API rail model tra daily train wrapper p t x service d t o rail specification v3 t r a daily train time table train timetable
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityCode(formats); err != nil {
@@ -93,7 +102,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateAuthorityCode(formats strfmt.Registry) error {
if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
return err
@@ -102,7 +111,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateSrcUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
return err
@@ -111,7 +120,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -120,7 +129,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateTrainDate(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateTrainDate(formats strfmt.Registry) error {
if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
return err
@@ -129,10 +138,10 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
- if err := validate.Required("TrainTimetables", "body", m.TrainTimetables); err != nil {
- return err
+ if swag.IsZero(m.TrainTimetables) { // not required
+ return nil
}
for i := 0; i < len(m.TrainTimetables); i++ {
@@ -154,7 +163,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
return err
@@ -163,7 +172,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -173,7 +182,7 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
}
// MarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -181,8 +190,8 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
}
// UnmarshalBinary interface implementation
-func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) UnmarshalBinary(b []byte) error {
- var res MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+func (m *PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXAPIRailModelTraDailyTrainWrapperPTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go
similarity index 69%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go
index 222ae8ca..13e5c57b 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_service_day.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRACommonServiceDay ServiceDay
+// PTXServiceDTORailSpecificationV3TRACommonServiceDay ServiceDay
//
// 台鐵服務日型態
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Common.ServiceDay
-type ServiceDTOVersion3RailTRACommonServiceDay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Common.ServiceDay
+type PTXServiceDTORailSpecificationV3TRACommonServiceDay struct {
// integer
//
@@ -55,6 +55,8 @@ type ServiceDTOVersion3RailTRACommonServiceDay struct {
// Required: true
Saturday *int32 `json:"Saturday"`
+ // String
+ //
// 服務日標籤
ServiceTag string `json:"ServiceTag,omitempty"`
@@ -89,8 +91,8 @@ type ServiceDTOVersion3RailTRACommonServiceDay struct {
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version3 rail t r a common service day
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a common service day
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDayAfterHoliday(formats); err != nil {
@@ -143,7 +145,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) Validate(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateDayAfterHoliday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateDayAfterHoliday(formats strfmt.Registry) error {
if err := validate.Required("DayAfterHoliday", "body", m.DayAfterHoliday); err != nil {
return err
@@ -152,7 +154,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateDayAfterHoliday(form
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateDayBeforeHoliday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateDayBeforeHoliday(formats strfmt.Registry) error {
if err := validate.Required("DayBeforeHoliday", "body", m.DayBeforeHoliday); err != nil {
return err
@@ -161,7 +163,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateDayBeforeHoliday(for
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -170,7 +172,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateFriday(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -179,7 +181,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateMonday(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateNationalHolidays(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateNationalHolidays(formats strfmt.Registry) error {
if err := validate.Required("NationalHolidays", "body", m.NationalHolidays); err != nil {
return err
@@ -188,7 +190,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateNationalHolidays(for
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -197,7 +199,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateSaturday(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -206,7 +208,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateSunday(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -215,7 +217,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateThursday(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -224,7 +226,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateTuesday(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateTyphoonDay(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateTyphoonDay(formats strfmt.Registry) error {
if err := validate.Required("TyphoonDay", "body", m.TyphoonDay); err != nil {
return err
@@ -233,7 +235,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateTyphoonDay(formats s
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -243,7 +245,7 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) validateWednesday(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -251,8 +253,8 @@ func (m *ServiceDTOVersion3RailTRACommonServiceDay) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRACommonServiceDay
+func (m *PTXServiceDTORailSpecificationV3TRACommonServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRACommonServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go
similarity index 59%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go
index 270e4c1e..3c405f15 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_special_day.go
@@ -10,16 +10,20 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3RailTRACommonSpecialDay SpecialDay
+// PTXServiceDTORailSpecificationV3TRACommonSpecialDay SpecialDay
//
// 台鐵特定日期
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Common.SpecialDay
-type ServiceDTOVersion3RailTRACommonSpecialDay struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Common.SpecialDay
+type PTXServiceDTORailSpecificationV3TRACommonSpecialDay struct {
+ // String
+ //
// 不連續特殊日期
Dates string `json:"Dates,omitempty"`
+ // String
+ //
// 特殊營運描述
Description string `json:"Description,omitempty"`
@@ -39,13 +43,13 @@ type ServiceDTOVersion3RailTRACommonSpecialDay struct {
StartDate string `json:"StartDate,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a common special day
-func (m *ServiceDTOVersion3RailTRACommonSpecialDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a common special day
+func (m *PTXServiceDTORailSpecificationV3TRACommonSpecialDay) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonSpecialDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRACommonSpecialDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -53,8 +57,8 @@ func (m *ServiceDTOVersion3RailTRACommonSpecialDay) MarshalBinary() ([]byte, err
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonSpecialDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRACommonSpecialDay
+func (m *PTXServiceDTORailSpecificationV3TRACommonSpecialDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRACommonSpecialDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go
similarity index 58%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go
index b344b23f..10da0f14 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_stop_time.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRACommonStopTime StopTime
+// PTXServiceDTORailSpecificationV3TRACommonStopTime StopTime
//
// 台鐵停靠時間資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Common.StopTime
-type ServiceDTOVersion3RailTRACommonStopTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Common.StopTime
+type PTXServiceDTORailSpecificationV3TRACommonStopTime struct {
+ // String
+ //
// 到站時間(格式: HH:mm)
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
+ // String
+ //
// 離站時間(格式: HH:mm)
// Required: true
DepartureTime *string `json:"DepartureTime"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -35,15 +41,19 @@ type ServiceDTOVersion3RailTRACommonStopTime struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // Int32
+ //
// 停靠站序(由1開始)
// Required: true
StopSequence *int32 `json:"StopSequence"`
}
-// Validate validates this service d t o version3 rail t r a common stop time
-func (m *ServiceDTOVersion3RailTRACommonStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a common stop time
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -72,7 +82,7 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -81,7 +91,7 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) validateArrivalTime(formats st
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -90,7 +100,7 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) validateDepartureTime(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonStopTime) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -99,25 +109,12 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) validateStationID(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonStopTime) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -127,7 +124,7 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) validateStopSequence(formats s
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -135,8 +132,8 @@ func (m *ServiceDTOVersion3RailTRACommonStopTime) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRACommonStopTime
+func (m *PTXServiceDTORailSpecificationV3TRACommonStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRACommonStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go
similarity index 66%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go
index 1e5230e3..33708df7 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_common_train_info.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRACommonTrainInfo TrainInfo
+// PTXServiceDTORailSpecificationV3TRACommonTrainInfo TrainInfo
//
// 臺鐵車次定期資料型別(時刻表用)
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Common.TrainInfo
-type ServiceDTOVersion3RailTRACommonTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Common.TrainInfo
+type PTXServiceDTORailSpecificationV3TRACommonTrainInfo struct {
// integer
//
@@ -55,13 +55,17 @@ type ServiceDTOVersion3RailTRACommonTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 列車終點車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
// NameType
//
// 列車終點車站名稱
- EndingStationName *ServiceDTOVersion3BaseNameType `json:"EndingStationName,omitempty"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"EndingStationName,omitempty"`
// integer
//
@@ -69,9 +73,13 @@ type ServiceDTOVersion3RailTRACommonTrainInfo struct {
// Required: true
ExtraTrainFlag *int32 `json:"ExtraTrainFlag"`
+ // String
+ //
// 附註說明
Note string `json:"Note,omitempty"`
+ // String
+ //
// 跨夜車站代碼
OverNightStationID string `json:"OverNightStationID,omitempty"`
@@ -81,38 +89,54 @@ type ServiceDTOVersion3RailTRACommonTrainInfo struct {
// Required: true
PackageServiceFlag *int32 `json:"PackageServiceFlag"`
+ // String
+ //
// 營運路線代碼
RouteID string `json:"RouteID,omitempty"`
+ // String
+ //
// 列車起點車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
// NameType
//
// 列車起點車站名稱
- StartingStationName *ServiceDTOVersion3BaseNameType `json:"StartingStationName,omitempty"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StartingStationName,omitempty"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 車種名稱
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName,omitempty"`
+ // String
+ //
// 車次之目的地方向描述
TripHeadSign string `json:"TripHeadSign,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// integer
@@ -122,8 +146,8 @@ type ServiceDTOVersion3RailTRACommonTrainInfo struct {
WheelChairFlag *int32 `json:"WheelChairFlag"`
}
-// Validate validates this service d t o version3 rail t r a common train info
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a common train info
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeFlag(formats); err != nil {
@@ -184,7 +208,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
return err
@@ -193,7 +217,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateBikeFlag(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateBreastFeedFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateBreastFeedFlag(formats strfmt.Registry) error {
if err := validate.Required("BreastFeedFlag", "body", m.BreastFeedFlag); err != nil {
return err
@@ -202,7 +226,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateBreastFeedFlag(format
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateCarFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateCarFlag(formats strfmt.Registry) error {
if err := validate.Required("CarFlag", "body", m.CarFlag); err != nil {
return err
@@ -211,7 +235,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateCarFlag(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
return err
@@ -220,7 +244,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDailyFlag(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
return err
@@ -229,7 +253,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDiningFlag(formats st
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -238,25 +262,16 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateDirection(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.EndingStationName) { // not required
return nil
}
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateExtraTrainFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateExtraTrainFlag(formats strfmt.Registry) error {
if err := validate.Required("ExtraTrainFlag", "body", m.ExtraTrainFlag); err != nil {
return err
@@ -265,7 +280,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateExtraTrainFlag(format
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
return err
@@ -274,25 +289,16 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validatePackageServiceFlag(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StartingStationName) { // not required
return nil
}
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -301,25 +307,16 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateTrainNo(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateWheelChairFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) validateWheelChairFlag(formats strfmt.Registry) error {
if err := validate.Required("WheelChairFlag", "body", m.WheelChairFlag); err != nil {
return err
@@ -329,7 +326,7 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) validateWheelChairFlag(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -337,8 +334,8 @@ func (m *ServiceDTOVersion3RailTRACommonTrainInfo) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRACommonTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRACommonTrainInfo
+func (m *PTXServiceDTORailSpecificationV3TRACommonTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRACommonTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
similarity index 55%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
index 58a91517..c3e7470f 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_station_timetable.go
@@ -14,34 +14,42 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable StationTimetable
+// PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable StationTimetable
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable
-type ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.StationTimetable
+type PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable struct {
// integer
//
// 行駛方向 : [0:'順行',1:'逆行']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 營運路線代碼
RouteID string `json:"RouteID,omitempty"`
+ // String
+ //
// 車站代碼
StationID string `json:"StationID,omitempty"`
// NameType
//
// 車站名稱
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName,omitempty"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName,omitempty"`
+ // Array
+ //
// 目的站車站名稱
// Required: true
- TimeTables []*ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable `json:"TimeTables"`
+ TimeTables []*PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable `json:"TimeTables"`
}
-// Validate validates this service d t o version3 rail t r a daily station time table station timetable
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily station time table station timetable
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationName(formats); err != nil {
@@ -58,25 +66,16 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Validat
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StationName) { // not required
return nil
}
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateTimeTables(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) validateTimeTables(formats strfmt.Registry) error {
if err := validate.Required("TimeTables", "body", m.TimeTables); err != nil {
return err
@@ -102,7 +101,7 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validat
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -110,8 +109,8 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Marshal
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyStationTimeTableStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_time_table.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go
similarity index 53%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_time_table.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go
index b312c79b..eb417674 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_time_table.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_station_time_table_time_table.go
@@ -12,46 +12,64 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable TimeTable
+// PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable TimeTable
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.TimeTable
-type ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyStationTimeTable.TimeTable
+type PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable struct {
+ // String
+ //
// 到站時刻
ArrivalTime string `json:"ArrivalTime,omitempty"`
+ // String
+ //
// 發車時刻
DepartureTime string `json:"DepartureTime,omitempty"`
+ // String
+ //
// 目的站車站代號
DestinationStationID string `json:"DestinationStationID,omitempty"`
// NameType
//
// 目的站車站名稱
- DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStationName,omitempty"`
+ // Int32
+ //
// 發車順序
// Required: true
Sequence *int32 `json:"Sequence"`
+ // String
+ //
// 車次代碼
TrainNo string `json:"TrainNo,omitempty"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 車種名稱
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a daily station time table time table
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily station time table time table
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationName(formats); err != nil {
@@ -72,25 +90,16 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) Validate(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) validateDestinationStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) validateDestinationStationName(formats strfmt.Registry) error {
if swag.IsZero(m.DestinationStationName) { // not required
return nil
}
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -99,26 +108,17 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) validateSequen
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -126,8 +126,8 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable
+func (m *PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyStationTimeTableTimeTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go
new file mode 100644
index 00000000..2d90d2e4
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_dining_flag_section.go
@@ -0,0 +1,80 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection DiningFlagSection
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.DiningFlagSection
+type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection struct {
+
+ // SectionAmong
+ //
+ // 乘客目的站所屬區間
+ // Required: true
+ EndSection struct {
+ PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong
+ } `json:"EndSection"`
+
+ // SectionAmong
+ //
+ // 乘客出發站所屬區間
+ // Required: true
+ StartSection struct {
+ PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong
+ } `json:"StartSection"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a daily train time table dining flag section
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateEndSection(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStartSection(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection) validateEndSection(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection) validateStartSection(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_section_among.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_section_among.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go
index cd1bb99e..c359f322 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_section_among.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_section_among.go
@@ -12,22 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong SectionAmong
+// PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong SectionAmong
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.SectionAmong
-type ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.SectionAmong
+type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong struct {
+ // String
+ //
// 迄站車站代碼
// Required: true
EndStationID *string `json:"EndStationID"`
+ // String
+ //
// 起站車站代碼
// Required: true
StartStationID *string `json:"StartStationID"`
}
-// Validate validates this service d t o version3 rail t r a daily train time table section among
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily train time table section among
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndStationID(formats); err != nil {
@@ -44,7 +48,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) Validate(form
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateEndStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong) validateEndStationID(formats strfmt.Registry) error {
if err := validate.Required("EndStationID", "body", m.EndStationID); err != nil {
return err
@@ -53,7 +57,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateEndSt
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateStartStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong) validateStartStationID(formats strfmt.Registry) error {
if err := validate.Required("StartStationID", "body", m.StartStationID); err != nil {
return err
@@ -63,7 +67,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateStart
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -71,8 +75,8 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) MarshalBinary
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableSectionAmong
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_stop_time.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go
similarity index 52%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_stop_time.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go
index 0e8dae09..b64cc5d5 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_stop_time.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_stop_time.go
@@ -12,17 +12,23 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime StopTime
+// PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime StopTime
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.StopTime
-type ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.StopTime
+type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime struct {
+ // String
+ //
// 到站時間
ArrivalTime string `json:"ArrivalTime,omitempty"`
+ // String
+ //
// 離站時間
DepartureTime string `json:"DepartureTime,omitempty"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -31,15 +37,19 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // Int32
+ //
// 停靠站序
// Required: true
StopSequence *int32 `json:"StopSequence"`
}
-// Validate validates this service d t o version3 rail t r a daily train time table stop time
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily train time table stop time
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationID(formats); err != nil {
@@ -60,7 +70,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -69,25 +79,12 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) validateStationID
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -97,7 +94,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) validateStopSeque
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -105,8 +102,8 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go
similarity index 62%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_info.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go
index c69e70c8..f69c7873 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_info.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_info.go
@@ -14,10 +14,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo TrainInfo
+// PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo TrainInfo
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainInfo
-type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainInfo
+type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo struct {
// integer
//
@@ -48,8 +48,10 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
+ // DiningFlagSection[]
+ //
// 提供訂便當服務之車站區間
- DiningFlagSections []*ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection `json:"DiningFlagSections"`
+ DiningFlagSections []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableDiningFlagSection `json:"DiningFlagSections"`
// integer
//
@@ -57,6 +59,8 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 車次之終點站車站代號
EndingStationID string `json:"EndingStationID,omitempty"`
@@ -64,7 +68,9 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
//
// 車次之終點站車站名稱
// Required: true
- EndingStationName *ServiceDTOVersion3BaseNameType `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"EndingStationName"`
// integer
//
@@ -72,9 +78,13 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
// Required: true
ExtraTrainFlag *int32 `json:"ExtraTrainFlag"`
+ // String
+ //
// 附註說明
Note string `json:"Note,omitempty"`
+ // String
+ //
// 跨夜車站代碼
OverNightStationID string `json:"OverNightStationID,omitempty"`
@@ -84,10 +94,14 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
// Required: true
PackageServiceFlag *int32 `json:"PackageServiceFlag"`
+ // String
+ //
// 營運路線代碼
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 車次之起始站車站代號
StartingStationID string `json:"StartingStationID,omitempty"`
@@ -95,15 +109,23 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
//
// 車次之起始站車站名稱
// Required: true
- StartingStationName *ServiceDTOVersion3BaseNameType `json:"StartingStationName"`
+ StartingStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StartingStationName"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
@@ -111,14 +133,18 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
//
// 車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName"`
+ // String
+ //
// 車次之目的地方向描述
TripHeadSign string `json:"TripHeadSign,omitempty"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// integer
@@ -128,8 +154,8 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
WheelChairFlag *int32 `json:"WheelChairFlag"`
}
-// Validate validates this service d t o version3 rail t r a daily train time table train info
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily train time table train info
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBikeFlag(formats); err != nil {
@@ -194,7 +220,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateBikeFlag(formats strfmt.Registry) error {
if err := validate.Required("BikeFlag", "body", m.BikeFlag); err != nil {
return err
@@ -203,7 +229,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateBikeFlag
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateBreastFeedFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateBreastFeedFlag(formats strfmt.Registry) error {
if err := validate.Required("BreastFeedFlag", "body", m.BreastFeedFlag); err != nil {
return err
@@ -212,7 +238,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateBreastFe
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateDailyFlag(formats strfmt.Registry) error {
if err := validate.Required("DailyFlag", "body", m.DailyFlag); err != nil {
return err
@@ -221,7 +247,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDailyFla
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateDiningFlag(formats strfmt.Registry) error {
if err := validate.Required("DiningFlag", "body", m.DiningFlag); err != nil {
return err
@@ -230,7 +256,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFl
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFlagSections(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateDiningFlagSections(formats strfmt.Registry) error {
if swag.IsZero(m.DiningFlagSections) { // not required
return nil
@@ -255,7 +281,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFl
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -264,25 +290,12 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDirectio
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateExtraTrainFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateExtraTrainFlag(formats strfmt.Registry) error {
if err := validate.Required("ExtraTrainFlag", "body", m.ExtraTrainFlag); err != nil {
return err
@@ -291,7 +304,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateExtraTra
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validatePackageServiceFlag(formats strfmt.Registry) error {
if err := validate.Required("PackageServiceFlag", "body", m.PackageServiceFlag); err != nil {
return err
@@ -300,7 +313,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validatePackageS
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -309,25 +322,12 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateRouteID(
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StartingStationName", "body", m.StartingStationName); err != nil {
- return err
- }
-
- if m.StartingStationName != nil {
- if err := m.StartingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateStartingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -336,25 +336,12 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateTrainNo(
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateWheelChairFlag(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) validateWheelChairFlag(formats strfmt.Registry) error {
if err := validate.Required("WheelChairFlag", "body", m.WheelChairFlag); err != nil {
return err
@@ -364,7 +351,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateWheelCha
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -372,8 +359,8 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) MarshalBinary()
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
similarity index 50%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
index 186399bf..f8bed779 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_daily_train_time_table_train_timetable.go
@@ -14,24 +14,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable TrainTimetable
+// PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable TrainTimetable
//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable
-type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.DailyTrainTimeTable.TrainTimetable
+type PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable struct {
+ // Array
+ //
// 停靠站資料
// Required: true
- StopTimes []*ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableStopTime `json:"StopTimes"`
// TrainInfo
//
// 車次資料
// Required: true
- TrainInfo *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo `json:"TrainInfo"`
+ TrainInfo struct {
+ PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainInfo
+ } `json:"TrainInfo"`
}
-// Validate validates this service d t o version3 rail t r a daily train time table train timetable
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a daily train time table train timetable
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStopTimes(formats); err != nil {
@@ -48,7 +52,7 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) Validate(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -73,26 +77,13 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateSto
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainInfo", "body", m.TrainInfo); err != nil {
- return err
- }
-
- if m.TrainInfo != nil {
- if err := m.TrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainInfo")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -100,8 +91,8 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) MarshalBina
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable
+func (m *PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRADailyTrainTimeTableTrainTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
similarity index 51%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
index 2ceb5aef..f59530f9 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_general_station_timetable.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable GeneralStationTimetable
+// PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable GeneralStationTimetable
//
// 台鐵車站站別時刻表資料型別
//
-// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable
-type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.GeneralStationTimetable
+type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable struct {
// integer
//
@@ -27,6 +27,8 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable str
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// 營運路線代碼
RouteID string `json:"RouteID,omitempty"`
@@ -34,8 +36,12 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable str
//
// 服務日型態
// Required: true
- ServiceDay *ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay `json:"ServiceDay"`
+ ServiceDay struct {
+ PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay
+ } `json:"ServiceDay"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -43,15 +49,19 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable str
// NameType
//
// 車站名稱
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName,omitempty"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName,omitempty"`
+ // Array
+ //
// 車次停靠站資料
// Required: true
- Timetables []*ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable `json:"Timetables"`
+ Timetables []*PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable `json:"Timetables"`
}
-// Validate validates this service d t o version3 rail t r a general station timetable general station timetable
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a general station timetable general station timetable
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -80,7 +90,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -89,25 +99,12 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateServiceDay(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -116,25 +113,16 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StationName) { // not required
return nil
}
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) validateTimetables(formats strfmt.Registry) error {
if err := validate.Required("Timetables", "body", m.Timetables); err != nil {
return err
@@ -160,7 +148,7 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -168,8 +156,8 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableGeneralStationTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go
new file mode 100644
index 00000000..16156cfe
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_service_day.go
@@ -0,0 +1,199 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay ServiceDay
+//
+// 服務日型態
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.ServiceDay
+type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay struct {
+
+ // 假日後一日營運與否
+ DayAfterHoliday bool `json:"DayAfterHoliday,omitempty"`
+
+ // 假日前一日營運與否
+ DayBeforeHoliday bool `json:"DayBeforeHoliday,omitempty"`
+
+ // Boolean
+ //
+ // 星期五營運與否
+ // Required: true
+ Friday *bool `json:"Friday"`
+
+ // Boolean
+ //
+ // 星期一營運與否
+ // Required: true
+ Monday *bool `json:"Monday"`
+
+ // 國定假日營運與否
+ NationalHolidays bool `json:"NationalHolidays,omitempty"`
+
+ // Boolean
+ //
+ // 星期六營運與否
+ // Required: true
+ Saturday *bool `json:"Saturday"`
+
+ // String
+ //
+ // 服務日標籤
+ ServiceTag string `json:"ServiceTag,omitempty"`
+
+ // Boolean
+ //
+ // 星期日營運與否
+ // Required: true
+ Sunday *bool `json:"Sunday"`
+
+ // Boolean
+ //
+ // 星期四營運與否
+ // Required: true
+ Thursday *bool `json:"Thursday"`
+
+ // Boolean
+ //
+ // 星期二營運與否
+ // Required: true
+ Tuesday *bool `json:"Tuesday"`
+
+ // 颱風停止上班上課期間營運與否
+ TyphoonDay bool `json:"TyphoonDay,omitempty"`
+
+ // Boolean
+ //
+ // 星期三營運與否
+ // Required: true
+ Wednesday *bool `json:"Wednesday"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a general station timetable service day
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFriday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMonday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSaturday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSunday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateThursday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTuesday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateWednesday(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateFriday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Friday", "body", m.Friday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateMonday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Monday", "body", m.Monday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateSaturday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateSunday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateThursday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateTuesday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) validateWednesday(formats strfmt.Registry) error {
+
+ if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableServiceDay
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go
similarity index 52%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go
index fbcab984..614be0bc 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_station_timetable_timetable.go
@@ -11,47 +11,65 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable Timetable
+// PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable Timetable
//
// 車次停靠站資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.Timetable
-type ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralStationTimetable.Timetable
+type PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable struct {
+ // String
+ //
// 到站時刻
ArrivalTime string `json:"ArrivalTime,omitempty"`
+ // String
+ //
// 發車時刻
DepartureTime string `json:"DepartureTime,omitempty"`
+ // String
+ //
// 目的站車站代號
DestinationStationID string `json:"DestinationStationID,omitempty"`
// NameType
//
// 目的站車站
- DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStationName,omitempty"`
+ // Int32
+ //
// 發車順序
Sequence int32 `json:"Sequence,omitempty"`
+ // String
+ //
// 車次代碼
TrainNo string `json:"TrainNo,omitempty"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
// NameType
//
// 車種名稱
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName,omitempty"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a general station timetable timetable
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a general station timetable timetable
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationName(formats); err != nil {
@@ -68,44 +86,26 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) Validate(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) validateDestinationStationName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable) validateDestinationStationName(formats strfmt.Registry) error {
if swag.IsZero(m.DestinationStationName) { // not required
return nil
}
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) validateTrainTypeName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable) validateTrainTypeName(formats strfmt.Registry) error {
if swag.IsZero(m.TrainTypeName) { // not required
return nil
}
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -113,8 +113,8 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) MarshalBinar
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAGeneralStationTimetableTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go
new file mode 100644
index 00000000..1fe79229
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_general_train_timetable.go
@@ -0,0 +1,120 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable GeneralTrainTimetable
+//
+// 台鐵定期時刻表資料型別
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.GeneralTrainTimetable
+type PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable struct {
+
+ // ServiceDay
+ //
+ // 營運日型態
+ // Required: true
+ ServiceDay struct {
+ PTXServiceDTORailSpecificationV3TRACommonServiceDay
+ } `json:"ServiceDay"`
+
+ // Array
+ //
+ // 停靠時間資料
+ // Required: true
+ StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime `json:"StopTimes"`
+
+ // TrainInfo
+ //
+ // 定期車次資料
+ // Required: true
+ TrainInfo struct {
+ PTXServiceDTORailSpecificationV3TRACommonTrainInfo
+ } `json:"TrainInfo"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a general train timetable
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateServiceDay(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopTimes(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrainInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateServiceDay(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.StopTimes); i++ {
+ if swag.IsZero(m.StopTimes[i]) { // not required
+ continue
+ }
+
+ if m.StopTimes[i] != nil {
+ if err := m.StopTimes[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("StopTimes" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAGeneralTrainTimetable
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
index 2578511b..9cec6a3b 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line.go
@@ -12,23 +12,31 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRALine Line
+// PTXServiceDTORailSpecificationV3TRALine Line
//
// 路線基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Line
-type ServiceDTOVersion3RailTRALine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Line
+type PTXServiceDTORailSpecificationV3TRALine struct {
+ // Boolean
+ //
// 是否位於支線
// Required: true
IsBranch *bool `json:"IsBranch"`
+ // String
+ //
// 路線顏色
LineColor string `json:"LineColor,omitempty"`
+ // String
+ //
// 路線群組
LineGroup string `json:"LineGroup,omitempty"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -37,8 +45,12 @@ type ServiceDTOVersion3RailTRALine struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion3BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"LineName"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
@@ -47,14 +59,18 @@ type ServiceDTOVersion3RailTRALine struct {
//
// 路線區間名稱
// Required: true
- LineSectionName *ServiceDTOVersion3BaseNameType `json:"LineSectionName"`
+ LineSectionName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"LineSectionName"`
+ // String
+ //
// 路線群組
LineURL string `json:"LineURL,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a line
-func (m *ServiceDTOVersion3RailTRALine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a line
+func (m *PTXServiceDTORailSpecificationV3TRALine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateIsBranch(formats); err != nil {
@@ -83,7 +99,7 @@ func (m *ServiceDTOVersion3RailTRALine) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3RailTRALine) validateIsBranch(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALine) validateIsBranch(formats strfmt.Registry) error {
if err := validate.Required("IsBranch", "body", m.IsBranch); err != nil {
return err
@@ -92,7 +108,7 @@ func (m *ServiceDTOVersion3RailTRALine) validateIsBranch(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3RailTRALine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -101,25 +117,12 @@ func (m *ServiceDTOVersion3RailTRALine) validateLineID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRALine) validateLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
- return err
- }
-
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALine) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALine) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALine) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -128,26 +131,13 @@ func (m *ServiceDTOVersion3RailTRALine) validateLineNo(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRALine) validateLineSectionName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineSectionName", "body", m.LineSectionName); err != nil {
- return err
- }
-
- if m.LineSectionName != nil {
- if err := m.LineSectionName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineSectionName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALine) validateLineSectionName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRALine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -155,8 +145,8 @@ func (m *ServiceDTOVersion3RailTRALine) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRALine
+func (m *PTXServiceDTORailSpecificationV3TRALine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRALine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
similarity index 55%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
index b279bddd..e9aff9e7 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_network.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRALineNetworkLineNetwork LineNetwork
+// PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork LineNetwork
//
// 路線網路拓撲基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork
-type ServiceDTOVersion3RailTRALineNetworkLineNetwork struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineNetwork
+type PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork struct {
+ // String
+ //
// 路線編號
// Required: true
LineID *string `json:"LineID"`
@@ -29,14 +31,18 @@ type ServiceDTOVersion3RailTRALineNetworkLineNetwork struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion3BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"LineName"`
+ // Array
+ //
// 路線站點間線段資訊
- LineSegments []*ServiceDTOVersion3RailTRALineNetworkLineSegment `json:"LineSegments"`
+ LineSegments []*PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment `json:"LineSegments"`
}
-// Validate validates this service d t o version3 rail t r a line network line network
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a line network line network
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -57,7 +63,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) Validate(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -66,25 +72,12 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineID(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
- return err
- }
-
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineSegments(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) validateLineSegments(formats strfmt.Registry) error {
if swag.IsZero(m.LineSegments) { // not required
return nil
@@ -110,7 +103,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) validateLineSegments(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +111,8 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) MarshalBinary() ([]byt
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineNetworkLineNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRALineNetworkLineNetwork
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRALineNetworkLineNetwork
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go
similarity index 57%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go
index 08a2084c..bff604da 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_network_line_segment.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRALineNetworkLineSegment LineSegment
+// PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment LineSegment
//
// 路線站點間線段資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.LineNetwork.LineSegment
-type ServiceDTOVersion3RailTRALineNetworkLineSegment struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.LineNetwork.LineSegment
+type PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment struct {
+ // Single
+ //
// 站間距離
// Required: true
Distance *float32 `json:"Distance"`
+ // String
+ //
// 線段起點站代碼
// Required: true
FromStationID *string `json:"FromStationID"`
+ // String
+ //
// 線段代碼
// Required: true
LineSegmentID *string `json:"LineSegmentID"`
@@ -35,19 +41,25 @@ type ServiceDTOVersion3RailTRALineNetworkLineSegment struct {
//
// 路段名稱
// Required: true
- LineSegmentName *ServiceDTOVersion3BaseNameType `json:"LineSegmentName"`
+ LineSegmentName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"LineSegmentName"`
+ // String
+ //
// 線段種類 = ['M: 主路線', 'B: 分支路線']
// Required: true
SegmentType *string `json:"SegmentType"`
+ // String
+ //
// 線段迄點站代碼
// Required: true
ToStationID *string `json:"ToStationID"`
}
-// Validate validates this service d t o version3 rail t r a line network line segment
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a line network line segment
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDistance(formats); err != nil {
@@ -80,7 +92,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) Validate(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateDistance(formats strfmt.Registry) error {
if err := validate.Required("Distance", "body", m.Distance); err != nil {
return err
@@ -89,7 +101,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateDistance(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateFromStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateFromStationID(formats strfmt.Registry) error {
if err := validate.Required("FromStationID", "body", m.FromStationID); err != nil {
return err
@@ -98,7 +110,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateFromStationID(
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateLineSegmentID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateLineSegmentID(formats strfmt.Registry) error {
if err := validate.Required("LineSegmentID", "body", m.LineSegmentID); err != nil {
return err
@@ -107,25 +119,12 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateLineSegmentID(
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateLineSegmentName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineSegmentName", "body", m.LineSegmentName); err != nil {
- return err
- }
-
- if m.LineSegmentName != nil {
- if err := m.LineSegmentName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineSegmentName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateLineSegmentName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateSegmentType(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateSegmentType(formats strfmt.Registry) error {
if err := validate.Required("SegmentType", "body", m.SegmentType); err != nil {
return err
@@ -134,7 +133,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateSegmentType(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateToStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) validateToStationID(formats strfmt.Registry) error {
if err := validate.Required("ToStationID", "body", m.ToStationID); err != nil {
return err
@@ -144,7 +143,7 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) validateToStationID(fo
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -152,8 +151,8 @@ func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) MarshalBinary() ([]byt
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineNetworkLineSegment) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRALineNetworkLineSegment
+func (m *PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRALineNetworkLineSegment
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
similarity index 51%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
index 2be1ef23..b466c177 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_line_transfer.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRALineTransfer LineTransfer
+// PTXServiceDTORailSpecificationV3TRALineTransfer LineTransfer
//
// 台鐵路線站間轉乘基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.LineTransfer
-type ServiceDTOVersion3RailTRALineTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.LineTransfer
+type PTXServiceDTORailSpecificationV3TRALineTransfer struct {
+ // String
+ //
// 路線間轉乘(起)之路線代碼
// Required: true
FromLineID *string `json:"FromLineID"`
@@ -27,8 +29,12 @@ type ServiceDTOVersion3RailTRALineTransfer struct {
//
// 路線間轉乘(起)之路線名稱
// Required: true
- FromLineName *ServiceDTOVersion3BaseNameType `json:"FromLineName"`
+ FromLineName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"FromLineName"`
+ // String
+ //
// 路線間轉乘(起)之車站代碼
// Required: true
FromStationID *string `json:"FromStationID"`
@@ -37,12 +43,18 @@ type ServiceDTOVersion3RailTRALineTransfer struct {
//
// 路線間轉乘(起)之車站名稱
// Required: true
- FromStationName *ServiceDTOVersion3BaseNameType `json:"FromStationName"`
+ FromStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"FromStationName"`
+ // Double
+ //
// 轉乘耗時參考時間(分)
// Required: true
MinTransferTime *float64 `json:"MinTransferTime"`
+ // String
+ //
// 路線間轉乘(迄)之路線代碼
// Required: true
ToLineID *string `json:"ToLineID"`
@@ -51,8 +63,12 @@ type ServiceDTOVersion3RailTRALineTransfer struct {
//
// 路線間轉乘(迄)之路線名稱
// Required: true
- ToLineName *ServiceDTOVersion3BaseNameType `json:"ToLineName"`
+ ToLineName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"ToLineName"`
+ // String
+ //
// 路線間轉乘(迄)之車站代碼
// Required: true
ToStationID *string `json:"ToStationID"`
@@ -61,15 +77,19 @@ type ServiceDTOVersion3RailTRALineTransfer struct {
//
// 路線間轉乘(迄)之車站名稱
// Required: true
- ToStationName *ServiceDTOVersion3BaseNameType `json:"ToStationName"`
+ ToStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"ToStationName"`
+ // String
+ //
// 轉乘方式文字描述
// Required: true
TransferDescription *string `json:"TransferDescription"`
}
-// Validate validates this service d t o version3 rail t r a line transfer
-func (m *ServiceDTOVersion3RailTRALineTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a line transfer
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFromLineID(formats); err != nil {
@@ -118,7 +138,7 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateFromLineID(formats strfmt.Registry) error {
if err := validate.Required("FromLineID", "body", m.FromLineID); err != nil {
return err
@@ -127,25 +147,12 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromLineID(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("FromLineName", "body", m.FromLineName); err != nil {
- return err
- }
-
- if m.FromLineName != nil {
- if err := m.FromLineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FromLineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateFromLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateFromStationID(formats strfmt.Registry) error {
if err := validate.Required("FromStationID", "body", m.FromStationID); err != nil {
return err
@@ -154,25 +161,12 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromStationID(formats st
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateFromStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("FromStationName", "body", m.FromStationName); err != nil {
- return err
- }
-
- if m.FromStationName != nil {
- if err := m.FromStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FromStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateFromStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateMinTransferTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateMinTransferTime(formats strfmt.Registry) error {
if err := validate.Required("MinTransferTime", "body", m.MinTransferTime); err != nil {
return err
@@ -181,7 +175,7 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateMinTransferTime(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateToLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateToLineID(formats strfmt.Registry) error {
if err := validate.Required("ToLineID", "body", m.ToLineID); err != nil {
return err
@@ -190,25 +184,12 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateToLineID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateToLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("ToLineName", "body", m.ToLineName); err != nil {
- return err
- }
-
- if m.ToLineName != nil {
- if err := m.ToLineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ToLineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateToLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateToStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateToStationID(formats strfmt.Registry) error {
if err := validate.Required("ToStationID", "body", m.ToStationID); err != nil {
return err
@@ -217,25 +198,12 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateToStationID(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateToStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("ToStationName", "body", m.ToStationName); err != nil {
- return err
- }
-
- if m.ToStationName != nil {
- if err := m.ToStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ToStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateToStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRALineTransfer) validateTransferDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) validateTransferDescription(formats strfmt.Registry) error {
if err := validate.Required("TransferDescription", "body", m.TransferDescription); err != nil {
return err
@@ -245,7 +213,7 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) validateTransferDescription(form
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -253,8 +221,8 @@ func (m *ServiceDTOVersion3RailTRALineTransfer) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRALineTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRALineTransfer
+func (m *PTXServiceDTORailSpecificationV3TRALineTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRALineTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go
similarity index 58%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go
index a55766e8..ef5cd004 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_line.go
@@ -12,24 +12,28 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRANetworkLine Line
+// PTXServiceDTORailSpecificationV3TRANetworkLine Line
//
// 路線基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Network.Line
-type ServiceDTOVersion3RailTRANetworkLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Line
+type PTXServiceDTORailSpecificationV3TRANetworkLine struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
}
-// Validate validates this service d t o version3 rail t r a network line
-func (m *ServiceDTOVersion3RailTRANetworkLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a network line
+func (m *PTXServiceDTORailSpecificationV3TRANetworkLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -46,7 +50,7 @@ func (m *ServiceDTOVersion3RailTRANetworkLine) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRANetworkLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRANetworkLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -55,7 +59,7 @@ func (m *ServiceDTOVersion3RailTRANetworkLine) validateLineID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3RailTRANetworkLine) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRANetworkLine) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -65,7 +69,7 @@ func (m *ServiceDTOVersion3RailTRANetworkLine) validateLineNo(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRANetworkLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -73,8 +77,8 @@ func (m *ServiceDTOVersion3RailTRANetworkLine) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRANetworkLine
+func (m *PTXServiceDTORailSpecificationV3TRANetworkLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRANetworkLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go
similarity index 50%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go
index 04c75f19..afcccc03 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_map_name_type.go
@@ -10,28 +10,34 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3RailTRANetworkMapNameType MapNameType
+// PTXServiceDTORailSpecificationV3TRANetworkMapNameType MapNameType
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Network.MapNameType
-type ServiceDTOVersion3RailTRANetworkMapNameType struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Network.MapNameType
+type PTXServiceDTORailSpecificationV3TRANetworkMapNameType struct {
+ // String
+ //
// 臺鐵路網圖網址(英文版)
En string `json:"En,omitempty"`
+ // String
+ //
// 路網圖名稱
MapName string `json:"MapName,omitempty"`
+ // String
+ //
// 臺鐵路網圖網址(中文版)
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a network map name type
-func (m *ServiceDTOVersion3RailTRANetworkMapNameType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a network map name type
+func (m *PTXServiceDTORailSpecificationV3TRANetworkMapNameType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkMapNameType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRANetworkMapNameType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -39,8 +45,8 @@ func (m *ServiceDTOVersion3RailTRANetworkMapNameType) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkMapNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRANetworkMapNameType
+func (m *PTXServiceDTORailSpecificationV3TRANetworkMapNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRANetworkMapNameType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go
new file mode 100644
index 00000000..a27ce501
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_network_network.go
@@ -0,0 +1,175 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV3TRANetworkNetwork Network
+//
+// 臺鐵路網資料
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Network.Network
+type PTXServiceDTORailSpecificationV3TRANetworkNetwork struct {
+
+ // Array
+ //
+ // 臺鐵路線資訊
+ // Required: true
+ Lines []*PTXServiceDTORailSpecificationV3TRANetworkLine `json:"Lines"`
+
+ // String
+ //
+ // 臺鐵路網代碼
+ // Required: true
+ NetworkID *string `json:"NetworkID"`
+
+ // MapNameType
+ //
+ // 臺鐵路網圖網址URL
+ // Required: true
+ NetworkMapURL struct {
+ PTXServiceDTORailSpecificationV3TRANetworkMapNameType
+ } `json:"NetworkMapURL"`
+
+ // NameType
+ //
+ // 臺鐵路網名稱
+ // Required: true
+ NetworkName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"NetworkName"`
+
+ // String
+ //
+ // 營運業者代碼
+ // Required: true
+ OperatorCode *string `json:"OperatorCode"`
+
+ // NameType
+ //
+ // 營運業者名稱
+ // Required: true
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a network network
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateLines(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNetworkID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNetworkMapURL(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateNetworkName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOperatorCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateOperatorName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateLines(formats strfmt.Registry) error {
+
+ if err := validate.Required("Lines", "body", m.Lines); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Lines); i++ {
+ if swag.IsZero(m.Lines[i]) { // not required
+ continue
+ }
+
+ if m.Lines[i] != nil {
+ if err := m.Lines[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Lines" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateNetworkID(formats strfmt.Registry) error {
+
+ if err := validate.Required("NetworkID", "body", m.NetworkID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateNetworkMapURL(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateNetworkName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateOperatorCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) validateOperatorName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRANetworkNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRANetworkNetwork
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_fare.go
similarity index 66%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_fare.go
index 2c19c512..04063bdb 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_fare.go
@@ -12,30 +12,38 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAODFareFare Fare
+// PTXServiceDTORailSpecificationV3TRAODFareFare Fare
//
-// swagger:model Service.DTO.Version3.Rail.TRA.ODFare.Fare
-type ServiceDTOVersion3RailTRAODFareFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.Fare
+type PTXServiceDTORailSpecificationV3TRAODFareFare struct {
+ // Int32
+ //
// 艙等 = ['1: 標準座車廂', '2: 商務座車廂', '3: 自由座車廂']
// Required: true
CabinClass *int32 `json:"CabinClass"`
+ // Int32
+ //
// 費率等級 = ['1: 成人', '2: 學生', '3: 孩童', '4: 敬老', '5: 愛心', '6: 愛心孩童', '7: 愛心優待/愛心陪伴', '8: 團體', '9: 軍警']
// Required: true
FareClass *int32 `json:"FareClass"`
+ // Int32
+ //
// 計費價格(新台幣)
// Required: true
Price *int32 `json:"Price"`
+ // Int32
+ //
// 票種類型 = ['1: 一般票', '2: 來回票', '3: 電子票證', '4: 回數票', '5: 定期票(30天期)', '6: 定期票(60天期)', '7: 早鳥票']
// Required: true
TicketType *int32 `json:"TicketType"`
}
-// Validate validates this service d t o version3 rail t r a o d fare fare
-func (m *ServiceDTOVersion3RailTRAODFareFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a o d fare fare
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCabinClass(formats); err != nil {
@@ -60,7 +68,7 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) Validate(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareFare) validateCabinClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) validateCabinClass(formats strfmt.Registry) error {
if err := validate.Required("CabinClass", "body", m.CabinClass); err != nil {
return err
@@ -69,7 +77,7 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) validateCabinClass(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareFare) validateFareClass(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) validateFareClass(formats strfmt.Registry) error {
if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
return err
@@ -78,7 +86,7 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) validateFareClass(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareFare) validatePrice(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) validatePrice(formats strfmt.Registry) error {
if err := validate.Required("Price", "body", m.Price); err != nil {
return err
@@ -87,7 +95,7 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) validatePrice(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareFare) validateTicketType(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) validateTicketType(formats strfmt.Registry) error {
if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
return err
@@ -97,7 +105,7 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) validateTicketType(formats strfmt.
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAODFareFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -105,8 +113,8 @@ func (m *ServiceDTOVersion3RailTRAODFareFare) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAODFareFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAODFareFare
+func (m *PTXServiceDTORailSpecificationV3TRAODFareFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAODFareFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
similarity index 57%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
index 94229cb1..65d5b280 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_o_d_fare_o_d_fare.go
@@ -14,11 +14,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAODFareODFare ODFare
+// PTXServiceDTORailSpecificationV3TRAODFareODFare ODFare
//
-// swagger:model Service.DTO.Version3.Rail.TRA.ODFare.ODFare
-type ServiceDTOVersion3RailTRAODFareODFare struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.ODFare.ODFare
+type PTXServiceDTORailSpecificationV3TRAODFareODFare struct {
+ // String
+ //
// 迄點車站代碼
// Required: true
DestinationStationID *string `json:"DestinationStationID"`
@@ -27,17 +29,23 @@ type ServiceDTOVersion3RailTRAODFareODFare struct {
//
// 迄點車站名稱
// Required: true
- DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName"`
+ DestinationStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"DestinationStationName"`
// integer
//
// 方向 : [0:'順行',1:'逆行']
Direction int32 `json:"Direction,omitempty"`
+ // Array
+ //
// 票價
// Required: true
- Fares []*ServiceDTOVersion3RailTRAODFareFare `json:"Fares"`
+ Fares []*PTXServiceDTORailSpecificationV3TRAODFareFare `json:"Fares"`
+ // String
+ //
// 起點車站代碼
// Required: true
OriginStationID *string `json:"OriginStationID"`
@@ -46,8 +54,12 @@ type ServiceDTOVersion3RailTRAODFareODFare struct {
//
// 起點車站名稱
// Required: true
- OriginStationName *ServiceDTOVersion3BaseNameType `json:"OriginStationName"`
+ OriginStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OriginStationName"`
+ // Int32
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
// Required: true
TrainType *int32 `json:"TrainType"`
@@ -56,8 +68,8 @@ type ServiceDTOVersion3RailTRAODFareODFare struct {
TravelDistance float32 `json:"TravelDistance,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a o d fare o d fare
-func (m *ServiceDTOVersion3RailTRAODFareODFare) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a o d fare o d fare
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestinationStationID(formats); err != nil {
@@ -90,7 +102,7 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) Validate(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateDestinationStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateDestinationStationID(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
return err
@@ -99,25 +111,12 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) validateDestinationStationID(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateDestinationStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
- return err
- }
-
- if m.DestinationStationName != nil {
- if err := m.DestinationStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateDestinationStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateFares(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateFares(formats strfmt.Registry) error {
if err := validate.Required("Fares", "body", m.Fares); err != nil {
return err
@@ -142,7 +141,7 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) validateFares(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateOriginStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateOriginStationID(formats strfmt.Registry) error {
if err := validate.Required("OriginStationID", "body", m.OriginStationID); err != nil {
return err
@@ -151,25 +150,12 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) validateOriginStationID(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateOriginStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("OriginStationName", "body", m.OriginStationName); err != nil {
- return err
- }
-
- if m.OriginStationName != nil {
- if err := m.OriginStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateOriginStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAODFareODFare) validateTrainType(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) validateTrainType(formats strfmt.Registry) error {
if err := validate.Required("TrainType", "body", m.TrainType); err != nil {
return err
@@ -179,7 +165,7 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) validateTrainType(formats strfmt
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAODFareODFare) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -187,8 +173,8 @@ func (m *ServiceDTOVersion3RailTRAODFareODFare) MarshalBinary() ([]byte, error)
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAODFareODFare) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAODFareODFare
+func (m *PTXServiceDTORailSpecificationV3TRAODFareODFare) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAODFareODFare
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
similarity index 62%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
index 33826238..0be75d7d 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_operator.go
@@ -12,23 +12,31 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAOperator Operator
+// PTXServiceDTORailSpecificationV3TRAOperator Operator
//
// 台鐵者營運業者基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Operator
-type ServiceDTOVersion3RailTRAOperator struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Operator
+type PTXServiceDTORailSpecificationV3TRAOperator struct {
+ // String
+ //
// 營運業者票價查詢網站連結
FareURL string `json:"FareURL,omitempty"`
+ // String
+ //
// 營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
+ // String
+ //
// 營運業者電子信箱
OperatorEmail string `json:"OperatorEmail,omitempty"`
+ // String
+ //
// 營運業者Logo網址
OperatorLogoURL string `json:"OperatorLogoURL,omitempty"`
@@ -36,23 +44,33 @@ type ServiceDTOVersion3RailTRAOperator struct {
//
// 營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 營運業者連絡電話
OperatorPhone string `json:"OperatorPhone,omitempty"`
+ // String
+ //
// 營運業者網址連結
OperatorURL string `json:"OperatorURL,omitempty"`
+ // String
+ //
// 營運業者訂票電話
ReservationPhone string `json:"ReservationPhone,omitempty"`
+ // String
+ //
// 營運業者訂票網站
ReservationURL string `json:"ReservationURL,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a operator
-func (m *ServiceDTOVersion3RailTRAOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a operator
+func (m *PTXServiceDTORailSpecificationV3TRAOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -69,7 +87,7 @@ func (m *ServiceDTOVersion3RailTRAOperator) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion3RailTRAOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -78,26 +96,13 @@ func (m *ServiceDTOVersion3RailTRAOperator) validateOperatorCode(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3RailTRAOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -105,8 +110,8 @@ func (m *ServiceDTOVersion3RailTRAOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAOperator
+func (m *PTXServiceDTORailSpecificationV3TRAOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
similarity index 61%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
index 090b2168..a2c7f970 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_shape.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAShape Shape
+// PTXServiceDTORailSpecificationV3TRAShape Shape
//
// 臺鐵線型資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Shape
-type ServiceDTOVersion3RailTRAShape struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Shape
+type PTXServiceDTORailSpecificationV3TRAShape struct {
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
@@ -31,8 +35,12 @@ type ServiceDTOVersion3RailTRAShape struct {
//
// 路線名稱
// Required: true
- LineName *ServiceDTOVersion3BaseNameType `json:"LineName"`
+ LineName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"LineName"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
@@ -44,8 +52,8 @@ type ServiceDTOVersion3RailTRAShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version3 rail t r a shape
-func (m *ServiceDTOVersion3RailTRAShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a shape
+func (m *PTXServiceDTORailSpecificationV3TRAShape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateGeometry(formats); err != nil {
@@ -74,7 +82,7 @@ func (m *ServiceDTOVersion3RailTRAShape) Validate(formats strfmt.Registry) error
return nil
}
-func (m *ServiceDTOVersion3RailTRAShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAShape) validateGeometry(formats strfmt.Registry) error {
if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
@@ -83,7 +91,7 @@ func (m *ServiceDTOVersion3RailTRAShape) validateGeometry(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion3RailTRAShape) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAShape) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -92,25 +100,12 @@ func (m *ServiceDTOVersion3RailTRAShape) validateLineID(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRAShape) validateLineName(formats strfmt.Registry) error {
-
- if err := validate.Required("LineName", "body", m.LineName); err != nil {
- return err
- }
-
- if m.LineName != nil {
- if err := m.LineName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("LineName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAShape) validateLineName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAShape) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAShape) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -119,7 +114,7 @@ func (m *ServiceDTOVersion3RailTRAShape) validateLineNo(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3RailTRAShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -129,7 +124,7 @@ func (m *ServiceDTOVersion3RailTRAShape) validateUpdateTime(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -137,8 +132,8 @@ func (m *ServiceDTOVersion3RailTRAShape) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAShape
+func (m *PTXServiceDTORailSpecificationV3TRAShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go
new file mode 100644
index 00000000..03d74cfb
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_specific_train_timetable.go
@@ -0,0 +1,120 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable SpecificTrainTimetable
+//
+// 台鐵特殊車次時刻表資料型別
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.SpecificTrainTimetable
+type PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable struct {
+
+ // SpecialDay
+ //
+ // 營運日型態
+ // Required: true
+ SpecialDay struct {
+ PTXServiceDTORailSpecificationV3TRACommonSpecialDay
+ } `json:"SpecialDay"`
+
+ // Array
+ //
+ // 停靠時間資料
+ // Required: true
+ StopTimes []*PTXServiceDTORailSpecificationV3TRACommonStopTime `json:"StopTimes"`
+
+ // TrainInfo
+ //
+ // 定期車次資料
+ // Required: true
+ TrainInfo struct {
+ PTXServiceDTORailSpecificationV3TRACommonTrainInfo
+ } `json:"TrainInfo"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a specific train timetable
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateSpecialDay(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopTimes(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTrainInfo(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateSpecialDay(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.StopTimes); i++ {
+ if swag.IsZero(m.StopTimes[i]) { // not required
+ continue
+ }
+
+ if m.StopTimes[i] != nil {
+ if err := m.StopTimes[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("StopTimes" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRASpecificTrainTimetable
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
similarity index 57%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
index 7f5c3cb5..7a8ecaef 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station.go
@@ -12,22 +12,30 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStation Station
+// PTXServiceDTORailSpecificationV3TRAStation Station
//
// 台鐵車站資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.Station
-type ServiceDTOVersion3RailTRAStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.Station
+type PTXServiceDTORailSpecificationV3TRAStation struct {
+ // String
+ //
// 訂票車站代碼
ReservationCode string `json:"ReservationCode,omitempty"`
+ // String
+ //
// 車站地址
StationAddress string `json:"StationAddress,omitempty"`
+ // String
+ //
// 車站級別 = ['0: 特等', '1: 一等', '2: 二等', '3: 三等', '4: 簡易', '5: 招呼', '6: 號誌', 'A: 貨運', 'B: 基地', 'X: 非車']
StationClass string `json:"StationClass,omitempty"`
+ // String
+ //
// 臺鐵車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -36,8 +44,12 @@ type ServiceDTOVersion3RailTRAStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車站聯絡電話
StationPhone string `json:"StationPhone,omitempty"`
@@ -45,18 +57,24 @@ type ServiceDTOVersion3RailTRAStation struct {
//
// 車站座標(WGS84)
// Required: true
- StationPosition *ServiceDTOVersion3BasePointType `json:"StationPosition"`
+ StationPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"StationPosition"`
+ // String
+ //
// 臺鐵車站唯一識別代碼
// Required: true
StationUID *string `json:"StationUID"`
+ // String
+ //
// 車站資訊說明網址
StationURL string `json:"StationURL,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a station
-func (m *ServiceDTOVersion3RailTRAStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station
+func (m *PTXServiceDTORailSpecificationV3TRAStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateStationID(formats); err != nil {
@@ -81,7 +99,7 @@ func (m *ServiceDTOVersion3RailTRAStation) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion3RailTRAStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -90,43 +108,17 @@ func (m *ServiceDTOVersion3RailTRAStation) validateStationID(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion3RailTRAStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStation) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStation) validateStationPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("StationPosition", "body", m.StationPosition); err != nil {
- return err
- }
-
- if m.StationPosition != nil {
- if err := m.StationPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStation) validateStationPosition(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStation) validateStationUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStation) validateStationUID(formats strfmt.Registry) error {
if err := validate.Required("StationUID", "body", m.StationUID); err != nil {
return err
@@ -136,7 +128,7 @@ func (m *ServiceDTOVersion3RailTRAStation) validateStationUID(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -144,8 +136,8 @@ func (m *ServiceDTOVersion3RailTRAStation) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStation
+func (m *PTXServiceDTORailSpecificationV3TRAStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go
index c43d2775..b055a204 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit.go
@@ -12,23 +12,31 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationExitExit Exit
+// PTXServiceDTORailSpecificationV3TRAStationExitExit Exit
//
// 車站出入口
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationExit.Exit
-type ServiceDTOVersion3RailTRAStationExitExit struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.Exit
+type PTXServiceDTORailSpecificationV3TRAStationExitExit struct {
+ // String
+ //
// 出入口所在道路路段方位角
Bearing string `json:"Bearing,omitempty"`
+ // Boolean
+ //
// 是否有電梯
Elevator bool `json:"Elevator,omitempty"`
+ // Int32
+ //
// 是否有電扶梯 = ['0: 沒有', '1: 雙向皆有', '2: 出站有', '3: 入站有']
// Required: true
Escalator *int32 `json:"Escalator"`
+ // String
+ //
// 出入口代碼
// Required: true
ExitID *string `json:"ExitID"`
@@ -37,26 +45,36 @@ type ServiceDTOVersion3RailTRAStationExitExit struct {
//
// 出入口名稱
// Required: true
- ExitName *ServiceDTOVersion3BaseNameType `json:"ExitName"`
+ ExitName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"ExitName"`
// PointType
//
// 出入口座標
// Required: true
- ExitPosition *ServiceDTOVersion3BasePointType `json:"ExitPosition"`
+ ExitPosition struct {
+ PTXServiceDTOSharedSpecificationV3BasePointType
+ } `json:"ExitPosition"`
+ // String
+ //
// 地址描述
LocationDescription string `json:"LocationDescription,omitempty"`
+ // String
+ //
// 出入口所在道路名稱
RoadName string `json:"RoadName,omitempty"`
+ // Boolean
+ //
// 是否有樓梯
Stair bool `json:"Stair,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a station exit exit
-func (m *ServiceDTOVersion3RailTRAStationExitExit) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station exit exit
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEscalator(formats); err != nil {
@@ -81,7 +99,7 @@ func (m *ServiceDTOVersion3RailTRAStationExitExit) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitExit) validateEscalator(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) validateEscalator(formats strfmt.Registry) error {
if err := validate.Required("Escalator", "body", m.Escalator); err != nil {
return err
@@ -90,7 +108,7 @@ func (m *ServiceDTOVersion3RailTRAStationExitExit) validateEscalator(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitExit) validateExitID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) validateExitID(formats strfmt.Registry) error {
if err := validate.Required("ExitID", "body", m.ExitID); err != nil {
return err
@@ -99,44 +117,18 @@ func (m *ServiceDTOVersion3RailTRAStationExitExit) validateExitID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitExit) validateExitName(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitName", "body", m.ExitName); err != nil {
- return err
- }
-
- if m.ExitName != nil {
- if err := m.ExitName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) validateExitName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitExit) validateExitPosition(formats strfmt.Registry) error {
-
- if err := validate.Required("ExitPosition", "body", m.ExitPosition); err != nil {
- return err
- }
-
- if m.ExitPosition != nil {
- if err := m.ExitPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ExitPosition")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) validateExitPosition(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitExit) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -144,8 +136,8 @@ func (m *ServiceDTOVersion3RailTRAStationExitExit) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitExit) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationExitExit
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExit) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationExitExit
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go
new file mode 100644
index 00000000..1a2c24b8
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_exit_map_url.go
@@ -0,0 +1,73 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL ExitMapURL
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.ExitMapURL
+type PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL struct {
+
+ // String
+ //
+ // 樓層
+ FloorLevel string `json:"FloorLevel,omitempty"`
+
+ // NameType
+ //
+ // 車站出入口簡圖名稱
+ // Required: true
+ MapName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"MapName"`
+
+ // String
+ //
+ // 車站出入口簡圖網址
+ MapURL string `json:"MapURL,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a station exit exit map URL
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateMapName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL) validateMapName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
similarity index 59%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
index 32441af6..9f6d040f 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_exit_station_exit.go
@@ -14,20 +14,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationExitStationExit StationExit
+// PTXServiceDTORailSpecificationV3TRAStationExitStationExit StationExit
//
// 台鐵車站出入口資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationExit.StationExit
-type ServiceDTOVersion3RailTRAStationExitStationExit struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationExit.StationExit
+type PTXServiceDTORailSpecificationV3TRAStationExitStationExit struct {
+ // Array
+ //
// 車站出入口簡圖網址連結資訊
- ExitMapURLs []*ServiceDTOVersion3RailTRAStationExitExitMapURL `json:"ExitMapURLs"`
+ ExitMapURLs []*PTXServiceDTORailSpecificationV3TRAStationExitExitMapURL `json:"ExitMapURLs"`
+ // Array
+ //
// 車站出入口
// Required: true
- Exits []*ServiceDTOVersion3RailTRAStationExitExit `json:"Exits"`
+ Exits []*PTXServiceDTORailSpecificationV3TRAStationExitExit `json:"Exits"`
+ // String
+ //
// 出入口所屬車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -36,11 +42,13 @@ type ServiceDTOVersion3RailTRAStationExitStationExit struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
}
-// Validate validates this service d t o version3 rail t r a station exit station exit
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station exit station exit
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateExitMapURLs(formats); err != nil {
@@ -65,7 +73,7 @@ func (m *ServiceDTOVersion3RailTRAStationExitStationExit) Validate(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateExitMapURLs(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateExitMapURLs(formats strfmt.Registry) error {
if swag.IsZero(m.ExitMapURLs) { // not required
return nil
@@ -90,7 +98,7 @@ func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateExitMapURLs(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateExits(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateExits(formats strfmt.Registry) error {
if err := validate.Required("Exits", "body", m.Exits); err != nil {
return err
@@ -115,7 +123,7 @@ func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateExits(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -124,26 +132,13 @@ func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateStationID(form
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) validateStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -151,8 +146,8 @@ func (m *ServiceDTOVersion3RailTRAStationExitStationExit) MarshalBinary() ([]byt
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitStationExit) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationExitStationExit
+func (m *PTXServiceDTORailSpecificationV3TRAStationExitStationExit) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationExitStationExit
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go
similarity index 53%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go
index 493773d4..c35d4a94 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_info.go
@@ -12,21 +12,25 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationFacilityFacilityInfo FacilityInfo
+// PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo FacilityInfo
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo
-type ServiceDTOVersion3RailTRAStationFacilityFacilityInfo struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityInfo
+type PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo struct {
+ // String
+ //
// 位置描述
// Required: true
Description *string `json:"Description"`
+ // String
+ //
// 樓層
FloorLevel string `json:"FloorLevel,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a station facility facility info
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station facility facility info
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -39,7 +43,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -49,7 +53,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) validateDescripti
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -57,8 +61,8 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationFacilityFacilityInfo
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go
new file mode 100644
index 00000000..29651c2a
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_facility_map_url.go
@@ -0,0 +1,90 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL FacilityMapURL
+//
+// 車站設施簡圖網址連結資訊
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.FacilityMapURL
+type PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL struct {
+
+ // String
+ //
+ // 樓層
+ FloorLevel string `json:"FloorLevel,omitempty"`
+
+ // NameType
+ //
+ // 車站設施簡圖名稱
+ // Required: true
+ MapName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"MapName"`
+
+ // String
+ //
+ // 車站設施簡圖網址
+ // Required: true
+ MapURL *string `json:"MapURL"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a station facility facility map URL
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateMapName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMapURL(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL) validateMapName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL) validateMapURL(formats strfmt.Registry) error {
+
+ if err := validate.Required("MapURL", "body", m.MapURL); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
similarity index 64%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
index 7f594294..5e7b9d41 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_facility_station_facility.go
@@ -14,29 +14,39 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationFacilityStationFacility StationFacility
+// PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility StationFacility
//
// 車站設施資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility
-type ServiceDTOVersion3RailTRAStationFacilityStationFacility struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationFacility.StationFacility
+type PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility struct {
+ // Array
+ //
// 飲水機位置資訊
// Required: true
- DrinkingFountains []*ServiceDTOVersion3RailTRAStationFacilityFacilityInfo `json:"DrinkingFountains"`
+ DrinkingFountains []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"DrinkingFountains"`
+ // Array
+ //
// 無障礙電梯位置資訊
// Required: true
- Elevators []*ServiceDTOVersion3RailTRAStationFacilityFacilityInfo `json:"Elevators"`
+ Elevators []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"Elevators"`
+ // Array
+ //
// 車站出入口
// Required: true
- FacilityMapURLs []*ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL `json:"FacilityMapURLs"`
+ FacilityMapURLs []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityMapURL `json:"FacilityMapURLs"`
+ // Array
+ //
// 詢問處位置資訊
// Required: true
- InformationSpots []*ServiceDTOVersion3RailTRAStationFacilityFacilityInfo `json:"InformationSpots"`
+ InformationSpots []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"InformationSpots"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -45,15 +55,19 @@ type ServiceDTOVersion3RailTRAStationFacilityStationFacility struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // Array
+ //
// 廁所位置資訊
// Required: true
- Toilets []*ServiceDTOVersion3RailTRAStationFacilityFacilityInfo `json:"Toilets"`
+ Toilets []*PTXServiceDTORailSpecificationV3TRAStationFacilityFacilityInfo `json:"Toilets"`
}
-// Validate validates this service d t o version3 rail t r a station facility station facility
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station facility station facility
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDrinkingFountains(formats); err != nil {
@@ -90,7 +104,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) Validate(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateDrinkingFountains(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateDrinkingFountains(formats strfmt.Registry) error {
if err := validate.Required("DrinkingFountains", "body", m.DrinkingFountains); err != nil {
return err
@@ -115,7 +129,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateDrinki
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateElevators(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateElevators(formats strfmt.Registry) error {
if err := validate.Required("Elevators", "body", m.Elevators); err != nil {
return err
@@ -140,7 +154,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateElevat
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateFacilityMapURLs(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateFacilityMapURLs(formats strfmt.Registry) error {
if err := validate.Required("FacilityMapURLs", "body", m.FacilityMapURLs); err != nil {
return err
@@ -165,7 +179,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateFacili
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateInformationSpots(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateInformationSpots(formats strfmt.Registry) error {
if err := validate.Required("InformationSpots", "body", m.InformationSpots); err != nil {
return err
@@ -190,7 +204,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateInform
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -199,25 +213,12 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateStatio
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateToilets(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) validateToilets(formats strfmt.Registry) error {
if err := validate.Required("Toilets", "body", m.Toilets); err != nil {
return err
@@ -243,7 +244,7 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) validateToilet
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -251,8 +252,8 @@ func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityStationFacility) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationFacilityStationFacility
+func (m *PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationFacilityStationFacility
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go
index 5a812e79..59cfd724 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_line_station.go
@@ -12,21 +12,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationOfLineLineStation LineStation
+// PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation LineStation
//
// 路線車站資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationOfLine.LineStation
-type ServiceDTOVersion3RailTRAStationOfLineLineStation struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.LineStation
+type PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation struct {
+ // Single
+ //
// 已累積之里程距離(公里)
// Required: true
CumulativeDistance *float32 `json:"CumulativeDistance"`
+ // Int32
+ //
// 站序
// Required: true
Sequence *int32 `json:"Sequence"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -35,11 +41,13 @@ type ServiceDTOVersion3RailTRAStationOfLineLineStation struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
}
-// Validate validates this service d t o version3 rail t r a station of line line station
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station of line line station
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCumulativeDistance(formats); err != nil {
@@ -64,7 +72,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) Validate(formats str
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateCumulativeDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) validateCumulativeDistance(formats strfmt.Registry) error {
if err := validate.Required("CumulativeDistance", "body", m.CumulativeDistance); err != nil {
return err
@@ -73,7 +81,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateCumulativeDi
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -82,7 +90,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateSequence(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -91,26 +99,13 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateStationID(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) validateStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +113,8 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationOfLineLineStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationOfLineLineStation
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
similarity index 59%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
index 94f98e50..25cc36a0 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_of_line_station_of_line.go
@@ -14,28 +14,34 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationOfLineStationOfLine StationOfLine
+// PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine StationOfLine
//
// 路線車站基本資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine
-type ServiceDTOVersion3RailTRAStationOfLineStationOfLine struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationOfLine.StationOfLine
+type PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine struct {
+ // String
+ //
// 路線代碼
// Required: true
LineID *string `json:"LineID"`
+ // String
+ //
// 路線編號
// Required: true
LineNo *string `json:"LineNo"`
+ // Array
+ //
// 路線車站資訊
// Required: true
- Stations []*ServiceDTOVersion3RailTRAStationOfLineLineStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV3TRAStationOfLineLineStation `json:"Stations"`
}
-// Validate validates this service d t o version3 rail t r a station of line station of line
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station of line station of line
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineID(formats); err != nil {
@@ -56,7 +62,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateLineID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateLineID(formats strfmt.Registry) error {
if err := validate.Required("LineID", "body", m.LineID); err != nil {
return err
@@ -65,7 +71,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateLineID(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateLineNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateLineNo(formats strfmt.Registry) error {
if err := validate.Required("LineNo", "body", m.LineNo); err != nil {
return err
@@ -74,7 +80,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateLineNo(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -100,7 +106,7 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateStations(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -108,8 +114,8 @@ func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationOfLineStationOfLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationOfLineStationOfLine
+func (m *PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationOfLineStationOfLine
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go
similarity index 52%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go
index 156f84c5..f9d7e5dc 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_airport_transfer.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferAirportTransfer AirportTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer AirportTransfer
//
// 航空運具轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.AirportTransfer
-type ServiceDTOVersion3RailTRAStationTransferAirportTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.AirportTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer struct {
+ // String
+ //
// 機場代碼
// Required: true
AirportID *string `json:"AirportID"`
@@ -27,11 +29,17 @@ type ServiceDTOVersion3RailTRAStationTransferAirportTransfer struct {
//
// 機場名稱
// Required: true
- AirportName *ServiceDTOVersion3BaseNameType `json:"AirportName"`
+ AirportName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"AirportName"`
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -41,10 +49,14 @@ type ServiceDTOVersion3RailTRAStationTransferAirportTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 機場營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -53,11 +65,13 @@ type ServiceDTOVersion3RailTRAStationTransferAirportTransfer struct {
//
// 機場營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer airport transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer airport transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAirportID(formats); err != nil {
@@ -86,7 +100,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) Validate(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateAirportID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) validateAirportID(formats strfmt.Registry) error {
if err := validate.Required("AirportID", "body", m.AirportID); err != nil {
return err
@@ -95,25 +109,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateAirpor
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateAirportName(formats strfmt.Registry) error {
-
- if err := validate.Required("AirportName", "body", m.AirportName); err != nil {
- return err
- }
-
- if m.AirportName != nil {
- if err := m.AirportName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("AirportName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) validateAirportName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -122,7 +123,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateMode(f
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -131,26 +132,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateOperat
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) validateOperatorName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -158,8 +146,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferAirportTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferAirportTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go
similarity index 53%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go
index 4fd3b514..6628aa2f 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bike_transfer.go
@@ -12,16 +12,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferBikeTransfer BikeTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer BikeTransfer
//
// 公共自行車轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.BikeTransfer
-type ServiceDTOVersion3RailTRAStationTransferBikeTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BikeTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer struct {
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -31,10 +35,14 @@ type ServiceDTOVersion3RailTRAStationTransferBikeTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 公共自行車營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -43,8 +51,12 @@ type ServiceDTOVersion3RailTRAStationTransferBikeTransfer struct {
//
// 公共自行車營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 公共自行車租借站位代碼
// Required: true
StationID *string `json:"StationID"`
@@ -53,11 +65,13 @@ type ServiceDTOVersion3RailTRAStationTransferBikeTransfer struct {
//
// 公共自行車租借站位名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer bike transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer bike transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateMode(formats); err != nil {
@@ -86,7 +100,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -95,7 +109,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateMode(form
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -104,25 +118,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateOperatorC
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -131,26 +132,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateStationID
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) validateStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -158,8 +146,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferBikeTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferBikeTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go
similarity index 53%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go
index c07f259b..e8bd66a1 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_bus_transfer.go
@@ -12,20 +12,26 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferBusTransfer BusTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer BusTransfer
//
// 公車運具轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.BusTransfer
-type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.BusTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer struct {
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘公車開往方向
// Required: true
Destination *string `json:"Destination"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -35,10 +41,14 @@ type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 公車營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -47,11 +57,17 @@ type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
//
// 公車營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 轉乘公車所在月台
Platform string `json:"Platform,omitempty"`
+ // String
+ //
// 轉乘公車路線代碼
// Required: true
RouteID *string `json:"RouteID"`
@@ -60,8 +76,12 @@ type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
//
// 轉乘公車路線名稱
// Required: true
- RouteName *ServiceDTOVersion3BaseNameType `json:"RouteName"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName"`
+ // String
+ //
// 轉乘公車站牌代碼
// Required: true
StopID *string `json:"StopID"`
@@ -70,11 +90,13 @@ type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
//
// 轉乘公車站牌名稱
// Required: true
- StopName *ServiceDTOVersion3BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StopName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer bus transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer bus transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDestination(formats); err != nil {
@@ -115,7 +137,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) Validate(formats s
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateDestination(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateDestination(formats strfmt.Registry) error {
if err := validate.Required("Destination", "body", m.Destination); err != nil {
return err
@@ -124,7 +146,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateDestinatio
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -133,7 +155,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateMode(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -142,25 +164,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateOperatorCo
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -169,25 +178,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateRouteID(fo
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("RouteName", "body", m.RouteName); err != nil {
- return err
- }
-
- if m.RouteName != nil {
- if err := m.RouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -196,26 +192,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateStopID(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) validateStopName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -223,8 +206,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) MarshalBinary() ([
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferBusTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferBusTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go
similarity index 51%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go
index 87f8f3e3..e0a242b8 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_ferry_transfer.go
@@ -12,16 +12,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferFerryTransfer FerryTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer FerryTransfer
//
// 航運轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.FerryTransfer
-type ServiceDTOVersion3RailTRAStationTransferFerryTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.FerryTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer struct {
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 計程車招呼站代碼
FerryStationID string `json:"FerryStationID,omitempty"`
@@ -29,8 +33,12 @@ type ServiceDTOVersion3RailTRAStationTransferFerryTransfer struct {
//
// 計程車招呼站名稱
// Required: true
- FerryStationName *ServiceDTOVersion3BaseNameType `json:"FerryStationName"`
+ FerryStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"FerryStationName"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -40,10 +48,14 @@ type ServiceDTOVersion3RailTRAStationTransferFerryTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 航運營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -52,11 +64,13 @@ type ServiceDTOVersion3RailTRAStationTransferFerryTransfer struct {
//
// 航運營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer ferry transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer ferry transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFerryStationName(formats); err != nil {
@@ -81,25 +95,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateFerryStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("FerryStationName", "body", m.FerryStationName); err != nil {
- return err
- }
-
- if m.FerryStationName != nil {
- if err := m.FerryStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FerryStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) validateFerryStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -108,7 +109,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateMode(for
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -117,26 +118,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateOperator
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) validateOperatorName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -144,8 +132,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) MarshalBinary()
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferFerryTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferFerryTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go
similarity index 57%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go
index c825bc9a..b515b0a3 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_map_url.go
@@ -12,27 +12,33 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferMapURL MapURL
+// PTXServiceDTORailSpecificationV3TRAStationTransferMapURL MapURL
//
// 轉乘地圖簡圖連結資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.MapURL
-type ServiceDTOVersion3RailTRAStationTransferMapURL struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.MapURL
+type PTXServiceDTORailSpecificationV3TRAStationTransferMapURL struct {
+ // String
+ //
// 樓層
FloorLevel string `json:"FloorLevel,omitempty"`
+ // String
+ //
// 地圖名稱
// Required: true
MapName *string `json:"MapName"`
+ // String
+ //
// 地圖簡圖連結
// Required: true
MapURL *string `json:"MapURL"`
}
-// Validate validates this service d t o version3 rail t r a station transfer map URL
-func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer map URL
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferMapURL) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateMapName(formats); err != nil {
@@ -49,7 +55,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) Validate(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) validateMapName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferMapURL) validateMapName(formats strfmt.Registry) error {
if err := validate.Required("MapName", "body", m.MapName); err != nil {
return err
@@ -58,7 +64,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) validateMapName(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) validateMapURL(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferMapURL) validateMapURL(formats strfmt.Registry) error {
if err := validate.Required("MapURL", "body", m.MapURL); err != nil {
return err
@@ -68,7 +74,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) validateMapURL(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferMapURL) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -76,8 +82,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) MarshalBinary() ([]byte
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferMapURL) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferMapURL
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferMapURL) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferMapURL
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go
similarity index 55%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go
index c69511e4..cf97e4e3 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_parking_transfer.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferParkingTransfer ParkingTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer ParkingTransfer
//
// 停車場轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.ParkingTransfer
-type ServiceDTOVersion3RailTRAStationTransferParkingTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.ParkingTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer struct {
+ // String
+ //
// 停車場代碼
// Required: true
CarParkID *string `json:"CarParkID"`
@@ -27,11 +29,17 @@ type ServiceDTOVersion3RailTRAStationTransferParkingTransfer struct {
//
// 停車場名稱
// Required: true
- CarParkName *ServiceDTOVersion3BaseNameType `json:"CarParkName"`
+ CarParkName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"CarParkName"`
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -41,13 +49,15 @@ type ServiceDTOVersion3RailTRAStationTransferParkingTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
}
-// Validate validates this service d t o version3 rail t r a station transfer parking transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer parking transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCarParkID(formats); err != nil {
@@ -68,7 +78,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) Validate(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) validateCarParkID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) validateCarParkID(formats strfmt.Registry) error {
if err := validate.Required("CarParkID", "body", m.CarParkID); err != nil {
return err
@@ -77,25 +87,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) validateCarPar
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) validateCarParkName(formats strfmt.Registry) error {
-
- if err := validate.Required("CarParkName", "body", m.CarParkName); err != nil {
- return err
- }
-
- if m.CarParkName != nil {
- if err := m.CarParkName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("CarParkName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) validateCarParkName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -105,7 +102,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) validateMode(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -113,8 +110,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferParkingTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferParkingTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go
similarity index 52%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go
index 0e18b847..fbc42549 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_rail_transfer.go
@@ -12,16 +12,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferRailTransfer RailTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer RailTransfer
//
// 軌道轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.RailTransfer
-type ServiceDTOVersion3RailTRAStationTransferRailTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.RailTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer struct {
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -31,10 +35,14 @@ type ServiceDTOVersion3RailTRAStationTransferRailTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 軌道營運業者簡碼
// Required: true
OperatorCode *string `json:"OperatorCode"`
@@ -43,8 +51,12 @@ type ServiceDTOVersion3RailTRAStationTransferRailTransfer struct {
//
// 軌道營運業者名稱
// Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName"`
+ // String
+ //
// 軌道場站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -53,11 +65,13 @@ type ServiceDTOVersion3RailTRAStationTransferRailTransfer struct {
//
// 軌道場站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer rail transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer rail transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateMode(formats); err != nil {
@@ -86,7 +100,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -95,7 +109,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateMode(form
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -104,25 +118,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateOperatorC
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -131,26 +132,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateStationID
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) validateStationName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -158,8 +146,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferRailTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferRailTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
similarity index 62%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
index d4d08b06..e41ce3f8 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_station_transfer.go
@@ -14,21 +14,27 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferStationTransfer StationTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer StationTransfer
//
// 車站跨運具轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer
-type ServiceDTOVersion3RailTRAStationTransferStationTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.StationTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer struct {
+ // Array
+ //
// 外部轉乘地圖簡圖連結資訊
// Required: true
- ExteriorMapURLs []*ServiceDTOVersion3RailTRAStationTransferMapURL `json:"ExteriorMapURLs"`
+ ExteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL `json:"ExteriorMapURLs"`
+ // Array
+ //
// 車站內部地圖簡圖連結資訊
// Required: true
- InteriorMapURLs []*ServiceDTOVersion3RailTRAStationTransferMapURL `json:"InteriorMapURLs"`
+ InteriorMapURLs []*PTXServiceDTORailSpecificationV3TRAStationTransferMapURL `json:"InteriorMapURLs"`
+ // String
+ //
// 車站代碼
// Required: true
StationID *string `json:"StationID"`
@@ -37,18 +43,24 @@ type ServiceDTOVersion3RailTRAStationTransferStationTransfer struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 轉乘文字描述
TransferDescription string `json:"TransferDescription,omitempty"`
+ // Array
+ //
// 跨運具轉乘資訊
// Required: true
- Transfers []*ServiceDTOVersion3RailTRAStationTransferTransfer `json:"Transfers"`
+ Transfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTransfer `json:"Transfers"`
}
-// Validate validates this service d t o version3 rail t r a station transfer station transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer station transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateExteriorMapURLs(formats); err != nil {
@@ -77,7 +89,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) Validate(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateExteriorMapURLs(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateExteriorMapURLs(formats strfmt.Registry) error {
if err := validate.Required("ExteriorMapURLs", "body", m.ExteriorMapURLs); err != nil {
return err
@@ -102,7 +114,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateExteri
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateInteriorMapURLs(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateInteriorMapURLs(formats strfmt.Registry) error {
if err := validate.Required("InteriorMapURLs", "body", m.InteriorMapURLs); err != nil {
return err
@@ -127,7 +139,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateInteri
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -136,25 +148,12 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateStatio
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) validateTransfers(formats strfmt.Registry) error {
if err := validate.Required("Transfers", "body", m.Transfers); err != nil {
return err
@@ -180,7 +179,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) validateTransf
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -188,8 +187,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) MarshalBinary(
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferStationTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferStationTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferStationTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go
index 71d1acb7..6d5089ac 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_taxi_transfer.go
@@ -12,16 +12,20 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferTaxiTransfer TaxiTransfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer TaxiTransfer
//
// 計程車轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.TaxiTransfer
-type ServiceDTOVersion3RailTRAStationTransferTaxiTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.TaxiTransfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer struct {
+ // String
+ //
// 轉乘描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 轉乘樓層
FloorLevel string `json:"FloorLevel,omitempty"`
@@ -31,10 +35,14 @@ type ServiceDTOVersion3RailTRAStationTransferTaxiTransfer struct {
// 最短轉乘時間
MinTransferTime float64 `json:"MinTransferTime,omitempty"`
+ // String
+ //
// 運具種類代碼
// Required: true
Mode *string `json:"Mode"`
+ // String
+ //
// 計程車招呼站代碼
TaxiStopID string `json:"TaxiStopID,omitempty"`
@@ -42,11 +50,13 @@ type ServiceDTOVersion3RailTRAStationTransferTaxiTransfer struct {
//
// 計程車招呼站名稱
// Required: true
- TaxiStopName *ServiceDTOVersion3BaseNameType `json:"TaxiStopName"`
+ TaxiStopName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TaxiStopName"`
}
-// Validate validates this service d t o version3 rail t r a station transfer taxi transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer taxi transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateMode(formats); err != nil {
@@ -63,7 +73,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) Validate(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) validateMode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer) validateMode(formats strfmt.Registry) error {
if err := validate.Required("Mode", "body", m.Mode); err != nil {
return err
@@ -72,26 +82,13 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) validateMode(form
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) validateTaxiStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("TaxiStopName", "body", m.TaxiStopName); err != nil {
- return err
- }
-
- if m.TaxiStopName != nil {
- if err := m.TaxiStopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaxiStopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer) validateTaxiStopName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -99,8 +96,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) MarshalBinary() (
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferTaxiTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferTaxiTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go
similarity index 67%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go
index e28a61fd..e7c9d180 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_station_transfer_transfer.go
@@ -14,52 +14,70 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRAStationTransferTransfer Transfer
+// PTXServiceDTORailSpecificationV3TRAStationTransferTransfer Transfer
//
// 跨運具轉乘資訊
//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.Transfer
-type ServiceDTOVersion3RailTRAStationTransferTransfer struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.StationTransfer.Transfer
+type PTXServiceDTORailSpecificationV3TRAStationTransferTransfer struct {
+ // Array
+ //
// 航空運具轉乘資訊
// Required: true
- AirportTransfers []*ServiceDTOVersion3RailTRAStationTransferAirportTransfer `json:"AirportTransfers"`
+ AirportTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferAirportTransfer `json:"AirportTransfers"`
+ // Array
+ //
// 公共自行車轉乘資訊
// Required: true
- BikeTransfers []*ServiceDTOVersion3RailTRAStationTransferBikeTransfer `json:"BikeTransfers"`
+ BikeTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBikeTransfer `json:"BikeTransfers"`
+ // Array
+ //
// 公車運具轉乘資訊
// Required: true
- BusTransfers []*ServiceDTOVersion3RailTRAStationTransferBusTransfer `json:"BusTransfers"`
+ BusTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferBusTransfer `json:"BusTransfers"`
+ // String
+ //
// 出口代碼
// Required: true
ExitID *string `json:"ExitID"`
+ // String
+ //
// 出口名稱
// Required: true
ExitName *string `json:"ExitName"`
+ // Array
+ //
// 航運轉乘資訊
// Required: true
- FerryTransfers []*ServiceDTOVersion3RailTRAStationTransferFerryTransfer `json:"FerryTransfers"`
+ FerryTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferFerryTransfer `json:"FerryTransfers"`
+ // Array
+ //
// 停車場轉乘資訊
// Required: true
- ParkingTransfers []*ServiceDTOVersion3RailTRAStationTransferParkingTransfer `json:"ParkingTransfers"`
+ ParkingTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferParkingTransfer `json:"ParkingTransfers"`
+ // Array
+ //
// 軌道轉乘資訊
// Required: true
- RailTransfers []*ServiceDTOVersion3RailTRAStationTransferRailTransfer `json:"RailTransfers"`
+ RailTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferRailTransfer `json:"RailTransfers"`
+ // Array
+ //
// 計程車轉乘資訊
// Required: true
- TaxiTransfers []*ServiceDTOVersion3RailTRAStationTransferTaxiTransfer `json:"TaxiTransfers"`
+ TaxiTransfers []*PTXServiceDTORailSpecificationV3TRAStationTransferTaxiTransfer `json:"TaxiTransfers"`
}
-// Validate validates this service d t o version3 rail t r a station transfer transfer
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a station transfer transfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAirportTransfers(formats); err != nil {
@@ -104,7 +122,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) Validate(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateAirportTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateAirportTransfers(formats strfmt.Registry) error {
if err := validate.Required("AirportTransfers", "body", m.AirportTransfers); err != nil {
return err
@@ -129,7 +147,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateAirportTransf
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateBikeTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateBikeTransfers(formats strfmt.Registry) error {
if err := validate.Required("BikeTransfers", "body", m.BikeTransfers); err != nil {
return err
@@ -154,7 +172,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateBikeTransfers
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateBusTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateBusTransfers(formats strfmt.Registry) error {
if err := validate.Required("BusTransfers", "body", m.BusTransfers); err != nil {
return err
@@ -179,7 +197,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateBusTransfers(
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateExitID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateExitID(formats strfmt.Registry) error {
if err := validate.Required("ExitID", "body", m.ExitID); err != nil {
return err
@@ -188,7 +206,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateExitID(format
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateExitName(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateExitName(formats strfmt.Registry) error {
if err := validate.Required("ExitName", "body", m.ExitName); err != nil {
return err
@@ -197,7 +215,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateExitName(form
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateFerryTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateFerryTransfers(formats strfmt.Registry) error {
if err := validate.Required("FerryTransfers", "body", m.FerryTransfers); err != nil {
return err
@@ -222,7 +240,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateFerryTransfer
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateParkingTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateParkingTransfers(formats strfmt.Registry) error {
if err := validate.Required("ParkingTransfers", "body", m.ParkingTransfers); err != nil {
return err
@@ -247,7 +265,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateParkingTransf
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateRailTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateRailTransfers(formats strfmt.Registry) error {
if err := validate.Required("RailTransfers", "body", m.RailTransfers); err != nil {
return err
@@ -272,7 +290,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateRailTransfers
return nil
}
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateTaxiTransfers(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) validateTaxiTransfers(formats strfmt.Registry) error {
if err := validate.Required("TaxiTransfers", "body", m.TaxiTransfers); err != nil {
return err
@@ -298,7 +316,7 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) validateTaxiTransfers
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -306,8 +324,8 @@ func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationTransferTransfer) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationTransferTransfer
+func (m *PTXServiceDTORailSpecificationV3TRAStationTransferTransfer) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRAStationTransferTransfer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
similarity index 64%
rename from rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
index d8eecb70..bd83a6b0 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert.go
@@ -12,27 +12,35 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailMetroMRTAlertListAlert Alert
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlert Alert
//
-// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert
-type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.Alert
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlert struct {
+ // String
+ //
// 通阻訊息代碼
// Required: true
AlertID *string `json:"AlertID"`
+ // String
+ //
// 通阻訊息網址連結
AlertURL string `json:"AlertURL,omitempty"`
+ // String
+ //
// 通阻訊息說明
// Required: true
Description *string `json:"Description"`
// integer
//
- // 影響方向 : [0:'去程',1:'返程']
+ // 影響方向 : [0:'南下',1:'北上',2:'雙向']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 影響說明
Effect string `json:"Effect,omitempty"`
@@ -51,6 +59,8 @@ type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
// 消息發佈日期時間
PublishTime string `json:"PublishTime,omitempty"`
+ // String
+ //
// 影響原因
Reason string `json:"Reason,omitempty"`
@@ -58,7 +68,9 @@ type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
//
// 影響範圍
// Required: true
- Scope *ServiceDTOVersion2RailMetroMRTAlertListAlertScope `json:"Scope"`
+ Scope struct {
+ PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope
+ } `json:"Scope"`
// DateTime
//
@@ -71,6 +83,8 @@ type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
// Required: true
Status *int32 `json:"Status"`
+ // String
+ //
// 通阻訊息標題
// Required: true
Title *string `json:"Title"`
@@ -82,8 +96,8 @@ type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 rail metro m r t alert list alert
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAlertID(formats); err != nil {
@@ -116,7 +130,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) Validate(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateAlertID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateAlertID(formats strfmt.Registry) error {
if err := validate.Required("AlertID", "body", m.AlertID); err != nil {
return err
@@ -125,7 +139,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateAlertID(formats s
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -134,25 +148,12 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateDescription(forma
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateScope(formats strfmt.Registry) error {
-
- if err := validate.Required("Scope", "body", m.Scope); err != nil {
- return err
- }
-
- if m.Scope != nil {
- if err := m.Scope.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Scope")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateScope(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateStatus(formats strfmt.Registry) error {
if err := validate.Required("Status", "body", m.Status); err != nil {
return err
@@ -161,7 +162,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateStatus(formats st
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -170,7 +171,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateTitle(formats str
return nil
}
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -180,7 +181,7 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) validateUpdateTime(format
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -188,8 +189,8 @@ func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailMetroMRTAlertListAlert) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailMetroMRTAlertListAlert
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlert) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlert
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go
similarity index 63%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go
index 72e77fc9..b2b4e290 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope.go
@@ -14,39 +14,51 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATRAAlertListAlertScope AlertScope
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope AlertScope
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScope
-type ServiceDTOVersion3RailTRATRAAlertListAlertScope struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScope
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope struct {
+ // AlertScopeLineSection[]
+ //
// 受影響的路線區間
// Required: true
- LineSections []*ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection `json:"LineSections"`
+ LineSections []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection `json:"LineSections"`
+ // AlertScopeLine[]
+ //
// 受影響的實體路線
// Required: true
- Lines []*ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine `json:"Lines"`
+ Lines []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine `json:"Lines"`
// AlertScopeNetwork
//
// 受影響的路網
- NetworkList *ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork `json:"NetworkList,omitempty"`
+ NetworkList struct {
+ PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork
+ } `json:"NetworkList,omitempty"`
+ // AlertScopeRoute[]
+ //
// 受影響的營運路線
// Required: true
- Routes []*ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute `json:"Routes"`
+ Routes []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute `json:"Routes"`
+ // AlertScopeStation[]
+ //
// 受影響的車站
// Required: true
- Stations []*ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation `json:"Stations"`
+ Stations []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation `json:"Stations"`
+ // AlertScopeTrain[]
+ //
// 受影響的車次
// Required: true
- Trains []*ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain `json:"Trains"`
+ Trains []*PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain `json:"Trains"`
}
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateLineSections(formats); err != nil {
@@ -79,7 +91,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) Validate(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateLineSections(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateLineSections(formats strfmt.Registry) error {
if err := validate.Required("LineSections", "body", m.LineSections); err != nil {
return err
@@ -104,7 +116,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateLineSections(f
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateLines(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateLines(formats strfmt.Registry) error {
if err := validate.Required("Lines", "body", m.Lines); err != nil {
return err
@@ -129,25 +141,16 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateLines(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateNetworkList(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateNetworkList(formats strfmt.Registry) error {
if swag.IsZero(m.NetworkList) { // not required
return nil
}
- if m.NetworkList != nil {
- if err := m.NetworkList.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkList")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateRoutes(formats strfmt.Registry) error {
if err := validate.Required("Routes", "body", m.Routes); err != nil {
return err
@@ -172,7 +175,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateRoutes(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateStations(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateStations(formats strfmt.Registry) error {
if err := validate.Required("Stations", "body", m.Stations); err != nil {
return err
@@ -197,7 +200,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateStations(forma
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateTrains(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) validateTrains(formats strfmt.Registry) error {
if err := validate.Required("Trains", "body", m.Trains); err != nil {
return err
@@ -223,7 +226,7 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) validateTrains(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -231,8 +234,8 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) MarshalBinary() ([]byt
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScope) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScope
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScope
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go
new file mode 100644
index 00000000..8dc27aa6
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine AlertScopeLine
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLine
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine struct {
+
+ // String
+ //
+ // 實體路線代碼
+ LineID string `json:"LineID,omitempty"`
+
+ // String
+ //
+ // 實體路線名稱
+ LineName string `json:"LineName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope line
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLine
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line_section.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
index 1a56d8be..bd2b1947 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
@@ -10,37 +10,49 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection AlertScopeLineSection
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection AlertScopeLineSection
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLineSection
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeLineSection
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection struct {
+ // String
+ //
// 影響區間輔助描述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 區間迄站車站代碼
EndingStationID string `json:"EndingStationID,omitempty"`
+ // String
+ //
// 區間迄站車站名稱
EndingStationName string `json:"EndingStationName,omitempty"`
+ // String
+ //
// 路線區間所在路線代碼
LineID string `json:"LineID,omitempty"`
+ // String
+ //
// 區間起站車站代碼
StartingStationID string `json:"StartingStationID,omitempty"`
+ // String
+ //
// 區間起站車站名稱
StartingStationName string `json:"StartingStationName,omitempty"`
}
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope line section
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope line section
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -48,8 +60,8 @@ func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection) MarshalBina
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeLineSection
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go
new file mode 100644
index 00000000..8b906c41
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_network.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork AlertScopeNetwork
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeNetwork
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork struct {
+
+ // String
+ //
+ // 路網代碼
+ NetworkID string `json:"NetworkID,omitempty"`
+
+ // String
+ //
+ // 路網名稱
+ NetworkName string `json:"NetworkName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope network
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeNetwork
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go
new file mode 100644
index 00000000..92a96778
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_route.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute AlertScopeRoute
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeRoute
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute struct {
+
+ // String
+ //
+ // 營運路線代碼
+ RouteID string `json:"RouteID,omitempty"`
+
+ // String
+ //
+ // 營運路線名稱
+ RouteName string `json:"RouteName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope route
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeRoute
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go
new file mode 100644
index 00000000..cfb38d20
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_station.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation AlertScopeStation
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeStation
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation struct {
+
+ // String
+ //
+ // 車站代碼
+ StationID string `json:"StationID,omitempty"`
+
+ // String
+ //
+ // 車站名稱
+ StationName string `json:"StationName,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope station
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeStation
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go
new file mode 100644
index 00000000..eaad4bc9
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_alert_list_alert_scope_train.go
@@ -0,0 +1,45 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain AlertScopeTrain
+//
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAAlertList.AlertScopeTrain
+type PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain struct {
+
+ // String
+ //
+ // 受影響的車次
+ TrainNo string `json:"TrainNo,omitempty"`
+}
+
+// Validate validates this p t x service d t o rail specification v3 t r a t r a alert list alert scope train
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAAlertListAlertScopeTrain
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
similarity index 68%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
index b62711f1..7283fb64 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_news_list_news.go
@@ -12,17 +12,23 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATRANewsListNews News
+// PTXServiceDTORailSpecificationV3TRATRANewsListNews News
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRANewsList.News
-type ServiceDTOVersion3RailTRATRANewsListNews struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRANewsList.News
+type PTXServiceDTORailSpecificationV3TRATRANewsListNews struct {
+ // String
+ //
// 附件網址連結
AttachmentURL string `json:"AttachmentURL,omitempty"`
+ // String
+ //
// 發布單位
Department string `json:"Department,omitempty"`
+ // String
+ //
// 內容描述
// Required: true
Description *string `json:"Description"`
@@ -44,10 +50,14 @@ type ServiceDTOVersion3RailTRATRANewsListNews struct {
// Required: true
NewsCategory *int32 `json:"NewsCategory"`
+ // String
+ //
// 消息代碼
// Required: true
NewsID *string `json:"NewsID"`
+ // String
+ //
// 消息網址連結
NewsURL string `json:"NewsURL,omitempty"`
@@ -62,6 +72,8 @@ type ServiceDTOVersion3RailTRATRANewsListNews struct {
// 消息起始日期時間
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
@@ -73,8 +85,8 @@ type ServiceDTOVersion3RailTRATRANewsListNews struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version3 rail t r a t r a news list news
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a news list news
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -111,7 +123,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -120,7 +132,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateDescription(formats s
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateLanguage(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateLanguage(formats strfmt.Registry) error {
if err := validate.Required("Language", "body", m.Language); err != nil {
return err
@@ -129,7 +141,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateLanguage(formats strf
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateNewsCategory(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateNewsCategory(formats strfmt.Registry) error {
if err := validate.Required("NewsCategory", "body", m.NewsCategory); err != nil {
return err
@@ -138,7 +150,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateNewsCategory(formats
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -147,7 +159,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateNewsID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validatePublishTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validatePublishTime(formats strfmt.Registry) error {
if err := validate.Required("PublishTime", "body", m.PublishTime); err != nil {
return err
@@ -156,7 +168,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validatePublishTime(formats s
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -165,7 +177,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateTitle(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -175,7 +187,7 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) validateUpdateTime(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -183,8 +195,8 @@ func (m *ServiceDTOVersion3RailTRATRANewsListNews) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRANewsListNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRANewsListNews
+func (m *PTXServiceDTORailSpecificationV3TRATRANewsListNews) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRANewsListNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
similarity index 54%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
index e880b071..7d8c135c 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_station_live_board_list_station_live_board.go
@@ -12,11 +12,13 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard StationLiveBoard
+// PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard StationLiveBoard
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard
-type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRAStationLiveBoardList.StationLiveBoard
+type PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard struct {
+ // Int32
+ //
// 延誤分鐘
// Required: true
DelayTime *int32 `json:"DelayTime"`
@@ -26,6 +28,8 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
// 行駛方向 : [0:'順行',1:'逆行']
Direction int32 `json:"Direction,omitempty"`
+ // String
+ //
// 終點站代碼
EndingStationID string `json:"EndingStationID,omitempty"`
@@ -33,8 +37,12 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
//
// 終點站名稱
// Required: true
- EndingStationName *ServiceDTOVersion3BaseNameType `json:"EndingStationName"`
+ EndingStationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"EndingStationName"`
+ // String
+ //
// 停靠月台(00代表當時尚未確定停靠的月台,待確定好停靠的月台後,就會更新Platfrom。)
Platform string `json:"Platform,omitempty"`
@@ -43,12 +51,18 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
// 列車狀態 : [0:'準點',1:'誤點',2:'取消']
RunningStatus int32 `json:"RunningStatus,omitempty"`
+ // String
+ //
// 表訂到站時刻
ScheduleArrivalTime string `json:"ScheduleArrivalTime,omitempty"`
+ // String
+ //
// 表定離站時刻
ScheduleDepartureTime string `json:"ScheduleDepartureTime,omitempty"`
+ // String
+ //
// 車站代號
// Required: true
StationID *string `json:"StationID"`
@@ -57,15 +71,23 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車次代碼
// Required: true
TrainNo *string `json:"TrainNo"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
@@ -73,11 +95,13 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
//
// 車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName"`
// integer
//
- // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線']
+ // 山海線類型 : [0:'不經山海線',1:'山線',2:'海線',3:'成追線']
TripLine int32 `json:"TripLine,omitempty"`
// DateTime
@@ -87,8 +111,8 @@ type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version3 rail t r a t r a station live board list station live board
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a station live board list station live board
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDelayTime(formats); err != nil {
@@ -125,7 +149,7 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) Valid
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateDelayTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateDelayTime(formats strfmt.Registry) error {
if err := validate.Required("DelayTime", "body", m.DelayTime); err != nil {
return err
@@ -134,25 +158,12 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) valid
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateEndingStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("EndingStationName", "body", m.EndingStationName); err != nil {
- return err
- }
-
- if m.EndingStationName != nil {
- if err := m.EndingStationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndingStationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateEndingStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateStationID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateStationID(formats strfmt.Registry) error {
if err := validate.Required("StationID", "body", m.StationID); err != nil {
return err
@@ -161,25 +172,12 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) valid
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateTrainNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateTrainNo(formats strfmt.Registry) error {
if err := validate.Required("TrainNo", "body", m.TrainNo); err != nil {
return err
@@ -188,25 +186,12 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) valid
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -216,7 +201,7 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) valid
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -224,8 +209,8 @@ func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) Marsh
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard
+func (m *PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRAStationLiveBoardListStationLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
similarity index 51%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
index 2a282fb3..98a7041a 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_t_r_a_train_live_board_list_train_live_board.go
@@ -12,15 +12,19 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard TrainLiveBoard
+// PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard TrainLiveBoard
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard
-type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TRATrainLiveBoardList.TrainLiveBoard
+type PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard struct {
+ // Int32
+ //
// 延誤分鐘
// Required: true
DelayTime *int32 `json:"DelayTime"`
+ // String
+ //
// 車站代號
StationID string `json:"StationID,omitempty"`
@@ -28,8 +32,12 @@ type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
//
// 車站名稱
// Required: true
- StationName *ServiceDTOVersion3BaseNameType `json:"StationName"`
+ StationName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"StationName"`
+ // String
+ //
// 車次代碼
TrainNo string `json:"TrainNo,omitempty"`
@@ -38,9 +46,13 @@ type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
// 列車目前所在之車站狀態 : [0:'進站中',1:'在站上',2:'已離站']
TrainStationStatus int32 `json:"TrainStationStatus,omitempty"`
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
TrainTypeCode string `json:"TrainTypeCode,omitempty"`
+ // String
+ //
// 車種代嗎
TrainTypeID string `json:"TrainTypeID,omitempty"`
@@ -48,7 +60,9 @@ type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
//
// 車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName"`
// DateTime
//
@@ -57,8 +71,8 @@ type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version3 rail t r a t r a train live board list train live board
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a t r a train live board list train live board
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDelayTime(formats); err != nil {
@@ -83,7 +97,7 @@ func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) Validate(
return nil
}
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateDelayTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateDelayTime(formats strfmt.Registry) error {
if err := validate.Required("DelayTime", "body", m.DelayTime); err != nil {
return err
@@ -92,43 +106,17 @@ func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateD
return nil
}
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateStationName(formats strfmt.Registry) error {
-
- if err := validate.Required("StationName", "body", m.StationName); err != nil {
- return err
- }
-
- if m.StationName != nil {
- if err := m.StationName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StationName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateStationName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -138,7 +126,7 @@ func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateU
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -146,8 +134,8 @@ func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) MarshalBi
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard
+func (m *PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATRATrainLiveBoardListTrainLiveBoard
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
similarity index 56%
rename from rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go
rename to rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
index 9ea18653..7799ae0d 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_rail_specification_v3_t_r_a_train_type.go
@@ -12,17 +12,21 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3RailTRATrainType TrainType
+// PTXServiceDTORailSpecificationV3TRATrainType TrainType
//
// 臺鐵列車車種資料
//
-// swagger:model Service.DTO.Version3.Rail.TRA.TrainType
-type ServiceDTOVersion3RailTRATrainType struct {
+// swagger:model PTX.Service.DTO.Rail.Specification.V3.TRA.TrainType
+type PTXServiceDTORailSpecificationV3TRATrainType struct {
+ // String
+ //
// 車種簡碼 = ['1: 太魯閣', '2: 普悠瑪', '3: 自強', '4: 莒光', '5: 復興', '6: 區間', '7: 普快', '10: 區間快']
// Required: true
TrainTypeCode *string `json:"TrainTypeCode"`
+ // String
+ //
// 列車車種代碼
// Required: true
TrainTypeID *string `json:"TrainTypeID"`
@@ -31,11 +35,13 @@ type ServiceDTOVersion3RailTRATrainType struct {
//
// 列車車種名稱
// Required: true
- TrainTypeName *ServiceDTOVersion3BaseNameType `json:"TrainTypeName"`
+ TrainTypeName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TrainTypeName"`
}
-// Validate validates this service d t o version3 rail t r a train type
-func (m *ServiceDTOVersion3RailTRATrainType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o rail specification v3 t r a train type
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateTrainTypeCode(formats); err != nil {
@@ -56,7 +62,7 @@ func (m *ServiceDTOVersion3RailTRATrainType) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion3RailTRATrainType) validateTrainTypeCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) validateTrainTypeCode(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeCode", "body", m.TrainTypeCode); err != nil {
return err
@@ -65,7 +71,7 @@ func (m *ServiceDTOVersion3RailTRATrainType) validateTrainTypeCode(formats strfm
return nil
}
-func (m *ServiceDTOVersion3RailTRATrainType) validateTrainTypeID(formats strfmt.Registry) error {
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) validateTrainTypeID(formats strfmt.Registry) error {
if err := validate.Required("TrainTypeID", "body", m.TrainTypeID); err != nil {
return err
@@ -74,26 +80,13 @@ func (m *ServiceDTOVersion3RailTRATrainType) validateTrainTypeID(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion3RailTRATrainType) validateTrainTypeName(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainTypeName", "body", m.TrainTypeName); err != nil {
- return err
- }
-
- if m.TrainTypeName != nil {
- if err := m.TrainTypeName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainTypeName")
- }
- return err
- }
- }
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) validateTrainTypeName(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATrainType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -101,8 +94,8 @@ func (m *ServiceDTOVersion3RailTRATrainType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATrainType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATrainType
+func (m *PTXServiceDTORailSpecificationV3TRATrainType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTORailSpecificationV3TRATrainType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
new file mode 100644
index 00000000..adc99033
--- /dev/null
+++ b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
@@ -0,0 +1,50 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTOSharedSpecificationV3BaseNameType NameType
+//
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.NameType
+type PTXServiceDTOSharedSpecificationV3BaseNameType struct {
+
+ // String
+ //
+ // 英文名稱
+ En string `json:"En,omitempty"`
+
+ // String
+ //
+ // 中文繁體名稱
+ ZhTw string `json:"Zh_tw,omitempty"`
+}
+
+// Validate validates this p t x service d t o shared specification v3 base name type
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOSharedSpecificationV3BaseNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BaseNameType
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/bus/v3/models/service_d_t_o_version3_base_point_type.go b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
similarity index 53%
rename from bus/v3/models/service_d_t_o_version3_base_point_type.go
rename to rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
index 324a7bb5..71ace8e7 100644
--- a/bus/v3/models/service_d_t_o_version3_base_point_type.go
+++ b/rail/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_point_type.go
@@ -10,12 +10,12 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion3BasePointType PointType
+// PTXServiceDTOSharedSpecificationV3BasePointType PointType
//
// 座標資料型別
//
-// swagger:model Service.DTO.Version3.Base.PointType
-type ServiceDTOVersion3BasePointType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.PointType
+type PTXServiceDTOSharedSpecificationV3BasePointType struct {
// 位置緯度(WGS84)
PositionLat float64 `json:"PositionLat,omitempty"`
@@ -24,13 +24,13 @@ type ServiceDTOVersion3BasePointType struct {
PositionLon float64 `json:"PositionLon,omitempty"`
}
-// Validate validates this service d t o version3 base point type
-func (m *ServiceDTOVersion3BasePointType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v3 base point type
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BasePointType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +38,8 @@ func (m *ServiceDTOVersion3BasePointType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BasePointType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BasePointType
+func (m *PTXServiceDTOSharedSpecificationV3BasePointType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV3BasePointType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_dining_flag_section.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_dining_flag_section.go
deleted file mode 100644
index f53c5633..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_dining_flag_section.go
+++ /dev/null
@@ -1,103 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection DiningFlagSection
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.DiningFlagSection
-type ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection struct {
-
- // SectionAmong
- //
- // 乘客目的站所屬區間
- // Required: true
- EndSection *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong `json:"EndSection"`
-
- // SectionAmong
- //
- // 乘客出發站所屬區間
- // Required: true
- StartSection *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong `json:"StartSection"`
-}
-
-// Validate validates this service d t o version3 rail t r a daily train time table dining flag section
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateEndSection(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStartSection(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection) validateEndSection(formats strfmt.Registry) error {
-
- if err := validate.Required("EndSection", "body", m.EndSection); err != nil {
- return err
- }
-
- if m.EndSection != nil {
- if err := m.EndSection.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("EndSection")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection) validateStartSection(formats strfmt.Registry) error {
-
- if err := validate.Required("StartSection", "body", m.StartSection); err != nil {
- return err
- }
-
- if m.StartSection != nil {
- if err := m.StartSection.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StartSection")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_train_timetable.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_train_timetable.go
deleted file mode 100644
index e8aafd16..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_train_timetable.go
+++ /dev/null
@@ -1,140 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRAGeneralTrainTimetable GeneralTrainTimetable
-//
-// 台鐵定期時刻表資料型別
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable
-type ServiceDTOVersion3RailTRAGeneralTrainTimetable struct {
-
- // ServiceDay
- //
- // 營運日型態
- // Required: true
- ServiceDay *ServiceDTOVersion3RailTRACommonServiceDay `json:"ServiceDay"`
-
- // 停靠時間資料
- // Required: true
- StopTimes []*ServiceDTOVersion3RailTRACommonStopTime `json:"StopTimes"`
-
- // TrainInfo
- //
- // 定期車次資料
- // Required: true
- TrainInfo *ServiceDTOVersion3RailTRACommonTrainInfo `json:"TrainInfo"`
-}
-
-// Validate validates this service d t o version3 rail t r a general train timetable
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateServiceDay(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopTimes(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainInfo(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) validateServiceDay(formats strfmt.Registry) error {
-
- if err := validate.Required("ServiceDay", "body", m.ServiceDay); err != nil {
- return err
- }
-
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
-
- if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
- return err
- }
-
- for i := 0; i < len(m.StopTimes); i++ {
- if swag.IsZero(m.StopTimes[i]) { // not required
- continue
- }
-
- if m.StopTimes[i] != nil {
- if err := m.StopTimes[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopTimes" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainInfo", "body", m.TrainInfo); err != nil {
- return err
- }
-
- if m.TrainInfo != nil {
- if err := m.TrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainInfo")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAGeneralTrainTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAGeneralTrainTimetable
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_network.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_network.go
deleted file mode 100644
index fe424c32..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_network.go
+++ /dev/null
@@ -1,202 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRANetworkNetwork Network
-//
-// 臺鐵路網資料
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.Network.Network
-type ServiceDTOVersion3RailTRANetworkNetwork struct {
-
- // 臺鐵路線資訊
- // Required: true
- Lines []*ServiceDTOVersion3RailTRANetworkLine `json:"Lines"`
-
- // 臺鐵路網代碼
- // Required: true
- NetworkID *string `json:"NetworkID"`
-
- // MapNameType
- //
- // 臺鐵路網圖網址URL
- // Required: true
- NetworkMapURL *ServiceDTOVersion3RailTRANetworkMapNameType `json:"NetworkMapURL"`
-
- // NameType
- //
- // 臺鐵路網名稱
- // Required: true
- NetworkName *ServiceDTOVersion3BaseNameType `json:"NetworkName"`
-
- // 營運業者代碼
- // Required: true
- OperatorCode *string `json:"OperatorCode"`
-
- // NameType
- //
- // 營運業者名稱
- // Required: true
- OperatorName *ServiceDTOVersion3BaseNameType `json:"OperatorName"`
-}
-
-// Validate validates this service d t o version3 rail t r a network network
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateLines(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateNetworkID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateNetworkMapURL(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateNetworkName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateOperatorCode(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateOperatorName(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateLines(formats strfmt.Registry) error {
-
- if err := validate.Required("Lines", "body", m.Lines); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Lines); i++ {
- if swag.IsZero(m.Lines[i]) { // not required
- continue
- }
-
- if m.Lines[i] != nil {
- if err := m.Lines[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Lines" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateNetworkID(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkID", "body", m.NetworkID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateNetworkMapURL(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkMapURL", "body", m.NetworkMapURL); err != nil {
- return err
- }
-
- if m.NetworkMapURL != nil {
- if err := m.NetworkMapURL.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkMapURL")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateNetworkName(formats strfmt.Registry) error {
-
- if err := validate.Required("NetworkName", "body", m.NetworkName); err != nil {
- return err
- }
-
- if m.NetworkName != nil {
- if err := m.NetworkName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("NetworkName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateOperatorCode(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRANetworkNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRANetworkNetwork
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go
deleted file mode 100644
index a87e26ec..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_specific_train_timetable.go
+++ /dev/null
@@ -1,140 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRASpecificTrainTimetable SpecificTrainTimetable
-//
-// 台鐵特殊車次時刻表資料型別
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable
-type ServiceDTOVersion3RailTRASpecificTrainTimetable struct {
-
- // SpecialDay
- //
- // 營運日型態
- // Required: true
- SpecialDay *ServiceDTOVersion3RailTRACommonSpecialDay `json:"SpecialDay"`
-
- // 停靠時間資料
- // Required: true
- StopTimes []*ServiceDTOVersion3RailTRACommonStopTime `json:"StopTimes"`
-
- // TrainInfo
- //
- // 定期車次資料
- // Required: true
- TrainInfo *ServiceDTOVersion3RailTRACommonTrainInfo `json:"TrainInfo"`
-}
-
-// Validate validates this service d t o version3 rail t r a specific train timetable
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateSpecialDay(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStopTimes(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTrainInfo(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) validateSpecialDay(formats strfmt.Registry) error {
-
- if err := validate.Required("SpecialDay", "body", m.SpecialDay); err != nil {
- return err
- }
-
- if m.SpecialDay != nil {
- if err := m.SpecialDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SpecialDay")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) validateStopTimes(formats strfmt.Registry) error {
-
- if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
- return err
- }
-
- for i := 0; i < len(m.StopTimes); i++ {
- if swag.IsZero(m.StopTimes[i]) { // not required
- continue
- }
-
- if m.StopTimes[i] != nil {
- if err := m.StopTimes[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopTimes" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) validateTrainInfo(formats strfmt.Registry) error {
-
- if err := validate.Required("TrainInfo", "body", m.TrainInfo); err != nil {
- return err
- }
-
- if m.TrainInfo != nil {
- if err := m.TrainInfo.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TrainInfo")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRASpecificTrainTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRASpecificTrainTimetable
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit_map_url.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit_map_url.go
deleted file mode 100644
index 71c361be..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit_map_url.go
+++ /dev/null
@@ -1,81 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRAStationExitExitMapURL ExitMapURL
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationExit.ExitMapURL
-type ServiceDTOVersion3RailTRAStationExitExitMapURL struct {
-
- // 樓層
- FloorLevel string `json:"FloorLevel,omitempty"`
-
- // NameType
- //
- // 車站出入口簡圖名稱
- // Required: true
- MapName *ServiceDTOVersion3BaseNameType `json:"MapName"`
-
- // 車站出入口簡圖網址
- MapURL string `json:"MapURL,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a station exit exit map URL
-func (m *ServiceDTOVersion3RailTRAStationExitExitMapURL) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateMapName(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAStationExitExitMapURL) validateMapName(formats strfmt.Registry) error {
-
- if err := validate.Required("MapName", "body", m.MapName); err != nil {
- return err
- }
-
- if m.MapName != nil {
- if err := m.MapName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("MapName")
- }
- return err
- }
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitExitMapURL) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationExitExitMapURL) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationExitExitMapURL
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_map_url.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_map_url.go
deleted file mode 100644
index 34ea84df..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_map_url.go
+++ /dev/null
@@ -1,97 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL FacilityMapURL
-//
-// 車站設施簡圖網址連結資訊
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.FacilityMapURL
-type ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL struct {
-
- // 樓層
- FloorLevel string `json:"FloorLevel,omitempty"`
-
- // NameType
- //
- // 車站設施簡圖名稱
- // Required: true
- MapName *ServiceDTOVersion3BaseNameType `json:"MapName"`
-
- // 車站設施簡圖網址
- // Required: true
- MapURL *string `json:"MapURL"`
-}
-
-// Validate validates this service d t o version3 rail t r a station facility facility map URL
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateMapName(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateMapURL(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL) validateMapName(formats strfmt.Registry) error {
-
- if err := validate.Required("MapName", "body", m.MapName); err != nil {
- return err
- }
-
- if m.MapName != nil {
- if err := m.MapName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("MapName")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL) validateMapURL(formats strfmt.Registry) error {
-
- if err := validate.Required("MapURL", "body", m.MapURL); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line.go
deleted file mode 100644
index b2c96060..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine AlertScopeLine
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLine
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine struct {
-
- // 實體路線代碼
- LineID string `json:"LineID,omitempty"`
-
- // 實體路線名稱
- LineName string `json:"LineName,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope line
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_network.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_network.go
deleted file mode 100644
index f6a792ee..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_network.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork AlertScopeNetwork
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeNetwork
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork struct {
-
- // 路網代碼
- NetworkID string `json:"NetworkID,omitempty"`
-
- // 路網名稱
- NetworkName string `json:"NetworkName,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope network
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_route.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_route.go
deleted file mode 100644
index 62a69262..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_route.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute AlertScopeRoute
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeRoute
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute struct {
-
- // 營運路線代碼
- RouteID string `json:"RouteID,omitempty"`
-
- // 營運路線名稱
- RouteName string `json:"RouteName,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope route
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_station.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_station.go
deleted file mode 100644
index 4c44bf92..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_station.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation AlertScopeStation
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeStation
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation struct {
-
- // 車站代碼
- StationID string `json:"StationID,omitempty"`
-
- // 車站名稱
- StationName string `json:"StationName,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope station
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_train.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_train.go
deleted file mode 100644
index f924244e..00000000
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_train.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain AlertScopeTrain
-//
-// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeTrain
-type ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain struct {
-
- // 受影響的車次
- TrainNo string `json:"TrainNo,omitempty"`
-}
-
-// Validate validates this service d t o version3 rail t r a t r a alert list alert scope train
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/tourism/v2/client/m_o_t_c_transport_api_v2_client.go b/tourism/v2/client/m_o_t_c_transport_api_v2_client.go
index 2a28215d..c6ecae85 100644
--- a/tourism/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/tourism/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -22,7 +22,7 @@ const (
DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
- DefaultBasePath string = "/MOTC/"
+ DefaultBasePath string = "/MOTC"
)
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_responses.go
index ea136e40..8b9b7a32 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIEstimatedTimeOfArrival1OK() *TaiwanTripBusAPIEstimatedTi
/*TaiwanTripBusAPIEstimatedTimeOfArrival1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIEstimatedTimeOfArrival1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusN1EstimateTime
}
func (o *TaiwanTripBusAPIEstimatedTimeOfArrival1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiEstimatedTimeOfArrival1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime {
+func (o *TaiwanTripBusAPIEstimatedTimeOfArrival1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusN1EstimateTime {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_responses.go
index 92e6fdb5..47ee079e 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIEstimatedTimeOfArrivalOK() *TaiwanTripBusAPIEstimatedTim
/*TaiwanTripBusAPIEstimatedTimeOfArrivalOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIEstimatedTimeOfArrivalOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusN1EstimateTime
}
func (o *TaiwanTripBusAPIEstimatedTimeOfArrivalOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip][%d] taiwanTripBusApiEstimatedTimeOfArrivalOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime {
+func (o *TaiwanTripBusAPIEstimatedTimeOfArrivalOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusN1EstimateTime {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_news_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_news_responses.go
index 3a883b13..d9b2ea32 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_news_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_news_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPINewsOK() *TaiwanTripBusAPINewsOK {
/*TaiwanTripBusAPINewsOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPINewsOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews
}
func (o *TaiwanTripBusAPINewsOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/News/TaiwanTrip][%d] taiwanTripBusApiNewsOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPINewsOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews {
+func (o *TaiwanTripBusAPINewsOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_responses.go
index 4b816fbf..f8399313 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRealTimeByFrequency1OK() *TaiwanTripBusAPIRealTimeByFreq
/*TaiwanTripBusAPIRealTimeByFrequency1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRealTimeByFrequency1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusA1Data
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusA1Data
}
func (o *TaiwanTripBusAPIRealTimeByFrequency1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiRealTimeByFrequency1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRealTimeByFrequency1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusA1Data {
+func (o *TaiwanTripBusAPIRealTimeByFrequency1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusA1Data {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_responses.go
index 8ef2590f..78d032e2 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRealTimeByFrequencyOK() *TaiwanTripBusAPIRealTimeByFrequ
/*TaiwanTripBusAPIRealTimeByFrequencyOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRealTimeByFrequencyOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusA1Data
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusA1Data
}
func (o *TaiwanTripBusAPIRealTimeByFrequencyOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip][%d] taiwanTripBusApiRealTimeByFrequencyOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRealTimeByFrequencyOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusA1Data {
+func (o *TaiwanTripBusAPIRealTimeByFrequencyOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusA1Data {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_responses.go
index 6d87ec16..7de7453d 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRealTimeNearStop1OK() *TaiwanTripBusAPIRealTimeNearStop1
/*TaiwanTripBusAPIRealTimeNearStop1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRealTimeNearStop1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusA2Data
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusA2Data
}
func (o *TaiwanTripBusAPIRealTimeNearStop1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiRealTimeNearStop1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRealTimeNearStop1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusA2Data {
+func (o *TaiwanTripBusAPIRealTimeNearStop1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusA2Data {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_responses.go
index ad305349..a04633f6 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRealTimeNearStopOK() *TaiwanTripBusAPIRealTimeNearStopOK
/*TaiwanTripBusAPIRealTimeNearStopOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRealTimeNearStopOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusA2Data
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusA2Data
}
func (o *TaiwanTripBusAPIRealTimeNearStopOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip][%d] taiwanTripBusApiRealTimeNearStopOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRealTimeNearStopOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusA2Data {
+func (o *TaiwanTripBusAPIRealTimeNearStopOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusA2Data {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_responses.go
index 5643d744..d2373ea3 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRoute1OK() *TaiwanTripBusAPIRoute1OK {
/*TaiwanTripBusAPIRoute1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRoute1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusRoute
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusRoute
}
func (o *TaiwanTripBusAPIRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Route/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiRoute1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRoute1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusRoute {
+func (o *TaiwanTripBusAPIRoute1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusRoute {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_route_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_route_responses.go
index e57119fb..d9b84038 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_route_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_route_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIRouteOK() *TaiwanTripBusAPIRouteOK {
/*TaiwanTripBusAPIRouteOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIRouteOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusRoute
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusRoute
}
func (o *TaiwanTripBusAPIRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Route/TaiwanTrip][%d] taiwanTripBusApiRouteOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIRouteOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusRoute {
+func (o *TaiwanTripBusAPIRouteOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusRoute {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_responses.go
index d01dc26e..249d4818 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIS2TravelTimeOK() *TaiwanTripBusAPIS2TravelTimeOK {
/*TaiwanTripBusAPIS2TravelTimeOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIS2TravelTimeOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime
}
func (o *TaiwanTripBusAPIS2TravelTimeOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/S2TravelTime/TaiwanTrip][%d] taiwanTripBusApiS2TravelTimeOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIS2TravelTimeOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime {
+func (o *TaiwanTripBusAPIS2TravelTimeOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_responses.go
index cb0e27ab..ced5fe31 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPISchedule1OK() *TaiwanTripBusAPISchedule1OK {
/*TaiwanTripBusAPISchedule1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPISchedule1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusSchedule
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusSchedule
}
func (o *TaiwanTripBusAPISchedule1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Schedule/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiSchedule1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPISchedule1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusSchedule {
+func (o *TaiwanTripBusAPISchedule1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusSchedule {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_responses.go
index a6b9a57b..7dcdee4c 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIScheduleOK() *TaiwanTripBusAPIScheduleOK {
/*TaiwanTripBusAPIScheduleOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIScheduleOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusSchedule
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusSchedule
}
func (o *TaiwanTripBusAPIScheduleOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Schedule/TaiwanTrip][%d] taiwanTripBusApiScheduleOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIScheduleOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusSchedule {
+func (o *TaiwanTripBusAPIScheduleOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusSchedule {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_responses.go
index 400f27f3..2f249c48 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIShape1OK() *TaiwanTripBusAPIShape1OK {
/*TaiwanTripBusAPIShape1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIShape1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape
}
func (o *TaiwanTripBusAPIShape1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Shape/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiShape1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIShape1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape {
+func (o *TaiwanTripBusAPIShape1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_responses.go
index 8a5b7ed9..f2581cf8 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIShapeOK() *TaiwanTripBusAPIShapeOK {
/*TaiwanTripBusAPIShapeOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIShapeOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape
}
func (o *TaiwanTripBusAPIShapeOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/Shape/TaiwanTrip][%d] taiwanTripBusApiShapeOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIShapeOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape {
+func (o *TaiwanTripBusAPIShapeOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_responses.go
index 93f97961..250c2253 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIStopOfRoute1OK() *TaiwanTripBusAPIStopOfRoute1OK {
/*TaiwanTripBusAPIStopOfRoute1OK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIStopOfRoute1OK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusStopOfRoute
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusStopOfRoute
}
func (o *TaiwanTripBusAPIStopOfRoute1OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/StopOfRoute/TaiwanTrip/{TaiwanTripName}][%d] taiwanTripBusApiStopOfRoute1OK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIStopOfRoute1OK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusStopOfRoute {
+func (o *TaiwanTripBusAPIStopOfRoute1OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusStopOfRoute {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_responses.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_responses.go
index 757579ea..c4b1fd95 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_responses.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_responses.go
@@ -42,17 +42,17 @@ func NewTaiwanTripBusAPIStopOfRouteOK() *TaiwanTripBusAPIStopOfRouteOK {
/*TaiwanTripBusAPIStopOfRouteOK handles this case with default header values.
-OK
+Success
*/
type TaiwanTripBusAPIStopOfRouteOK struct {
- Payload []*models.ServiceDTOVersion2TaiwanTripBusBusStopOfRoute
+ Payload []*models.PTXServiceDTOTourismSpecificationV2BusStopOfRoute
}
func (o *TaiwanTripBusAPIStopOfRouteOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Bus/StopOfRoute/TaiwanTrip][%d] taiwanTripBusApiStopOfRouteOK %+v", 200, o.Payload)
}
-func (o *TaiwanTripBusAPIStopOfRouteOK) GetPayload() []*models.ServiceDTOVersion2TaiwanTripBusBusStopOfRoute {
+func (o *TaiwanTripBusAPIStopOfRouteOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusStopOfRoute {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_activity0_responses.go b/tourism/v2/client/tourism/tourism_api_activity0_responses.go
index 829b23d6..fcae5803 100644
--- a/tourism/v2/client/tourism/tourism_api_activity0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_activity0_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIActivity0OK() *TourismAPIActivity0OK {
/*TourismAPIActivity0OK handles this case with default header values.
-OK
+Success
*/
type TourismAPIActivity0OK struct {
- Payload []*models.ServiceDTOVersion2ApplicationActivityTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2ActivityTourismInfo
}
func (o *TourismAPIActivity0OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Activity/{City}][%d] tourismApiActivity0OK %+v", 200, o.Payload)
}
-func (o *TourismAPIActivity0OK) GetPayload() []*models.ServiceDTOVersion2ApplicationActivityTourismInfo {
+func (o *TourismAPIActivity0OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2ActivityTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_activity_responses.go b/tourism/v2/client/tourism/tourism_api_activity_responses.go
index bbdfb86a..dc40a120 100644
--- a/tourism/v2/client/tourism/tourism_api_activity_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_activity_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIActivityOK() *TourismAPIActivityOK {
/*TourismAPIActivityOK handles this case with default header values.
-OK
+Success
*/
type TourismAPIActivityOK struct {
- Payload []*models.ServiceDTOVersion2ApplicationActivityTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2ActivityTourismInfo
}
func (o *TourismAPIActivityOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Activity][%d] tourismApiActivityOK %+v", 200, o.Payload)
}
-func (o *TourismAPIActivityOK) GetPayload() []*models.ServiceDTOVersion2ApplicationActivityTourismInfo {
+func (o *TourismAPIActivityOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2ActivityTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_hotel0_responses.go b/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
index 23360854..ec802f3e 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIHotel0OK() *TourismAPIHotel0OK {
/*TourismAPIHotel0OK handles this case with default header values.
-OK
+Success
*/
type TourismAPIHotel0OK struct {
- Payload []*models.ServiceDTOVersion2ApplicationHotelTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2HotelTourismInfo
}
func (o *TourismAPIHotel0OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Hotel/{City}][%d] tourismApiHotel0OK %+v", 200, o.Payload)
}
-func (o *TourismAPIHotel0OK) GetPayload() []*models.ServiceDTOVersion2ApplicationHotelTourismInfo {
+func (o *TourismAPIHotel0OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2HotelTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_hotel_responses.go b/tourism/v2/client/tourism/tourism_api_hotel_responses.go
index 07905f66..2163b098 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIHotelOK() *TourismAPIHotelOK {
/*TourismAPIHotelOK handles this case with default header values.
-OK
+Success
*/
type TourismAPIHotelOK struct {
- Payload []*models.ServiceDTOVersion2ApplicationHotelTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2HotelTourismInfo
}
func (o *TourismAPIHotelOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Hotel][%d] tourismApiHotelOK %+v", 200, o.Payload)
}
-func (o *TourismAPIHotelOK) GetPayload() []*models.ServiceDTOVersion2ApplicationHotelTourismInfo {
+func (o *TourismAPIHotelOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2HotelTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go b/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
index fce5bcdb..19e80dca 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIRestaurant0OK() *TourismAPIRestaurant0OK {
/*TourismAPIRestaurant0OK handles this case with default header values.
-OK
+Success
*/
type TourismAPIRestaurant0OK struct {
- Payload []*models.ServiceDTOVersion2ApplicationRestaurantTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo
}
func (o *TourismAPIRestaurant0OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Restaurant/{City}][%d] tourismApiRestaurant0OK %+v", 200, o.Payload)
}
-func (o *TourismAPIRestaurant0OK) GetPayload() []*models.ServiceDTOVersion2ApplicationRestaurantTourismInfo {
+func (o *TourismAPIRestaurant0OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant_responses.go b/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
index 3d686e99..3f718016 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIRestaurantOK() *TourismAPIRestaurantOK {
/*TourismAPIRestaurantOK handles this case with default header values.
-OK
+Success
*/
type TourismAPIRestaurantOK struct {
- Payload []*models.ServiceDTOVersion2ApplicationRestaurantTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo
}
func (o *TourismAPIRestaurantOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/Restaurant][%d] tourismApiRestaurantOK %+v", 200, o.Payload)
}
-func (o *TourismAPIRestaurantOK) GetPayload() []*models.ServiceDTOVersion2ApplicationRestaurantTourismInfo {
+func (o *TourismAPIRestaurantOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go b/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go
index 4d51fced..4e064b9d 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go
@@ -108,10 +108,7 @@ type TourismAPIScenicSpot0Params struct {
*/
DollarTop *int64
- /*City
- 縣市名稱
-
- */
+ /*City*/
City string
timeout time.Duration
diff --git a/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go b/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go
index 0a3532cb..7f4072df 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIScenicSpot0OK() *TourismAPIScenicSpot0OK {
/*TourismAPIScenicSpot0OK handles this case with default header values.
-OK
+Success
*/
type TourismAPIScenicSpot0OK struct {
- Payload []*models.ServiceDTOVersion2ApplicationScenicSpotTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo
}
func (o *TourismAPIScenicSpot0OK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/ScenicSpot/{City}][%d] tourismApiScenicSpot0OK %+v", 200, o.Payload)
}
-func (o *TourismAPIScenicSpot0OK) GetPayload() []*models.ServiceDTOVersion2ApplicationScenicSpotTourismInfo {
+func (o *TourismAPIScenicSpot0OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go b/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go
index 58bcfe7d..72469ff0 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go
@@ -42,17 +42,17 @@ func NewTourismAPIScenicSpotOK() *TourismAPIScenicSpotOK {
/*TourismAPIScenicSpotOK handles this case with default header values.
-OK
+Success
*/
type TourismAPIScenicSpotOK struct {
- Payload []*models.ServiceDTOVersion2ApplicationScenicSpotTourismInfo
+ Payload []*models.PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo
}
func (o *TourismAPIScenicSpotOK) Error() string {
return fmt.Sprintf("[GET /v2/Tourism/ScenicSpot][%d] tourismApiScenicSpotOK %+v", 200, o.Payload)
}
-func (o *TourismAPIScenicSpotOK) GetPayload() []*models.ServiceDTOVersion2ApplicationScenicSpotTourismInfo {
+func (o *TourismAPIScenicSpotOK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo {
return o.Payload
}
diff --git a/tourism/v2/client/tourism/tourism_client.go b/tourism/v2/client/tourism/tourism_client.go
index 27405937..f94fdcdc 100644
--- a/tourism/v2/client/tourism/tourism_client.go
+++ b/tourism/v2/client/tourism/tourism_client.go
@@ -93,7 +93,7 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival(params *TaiwanTripBusAPI
ID: "TaiwanTripBusApi_EstimatedTimeOfArrival",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -129,7 +129,7 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival1(params *TaiwanTripBusAP
ID: "TaiwanTripBusApi_EstimatedTimeOfArrival_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -165,7 +165,7 @@ func (a *Client) TaiwanTripBusAPINews(params *TaiwanTripBusAPINewsParams) (*Taiw
ID: "TaiwanTripBusApi_News",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/News/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -201,7 +201,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency(params *TaiwanTripBusAPIRea
ID: "TaiwanTripBusApi_RealTimeByFrequency",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -237,7 +237,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency1(params *TaiwanTripBusAPIRe
ID: "TaiwanTripBusApi_RealTimeByFrequency_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -273,7 +273,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop(params *TaiwanTripBusAPIRealTi
ID: "TaiwanTripBusApi_RealTimeNearStop",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -309,7 +309,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop1(params *TaiwanTripBusAPIRealT
ID: "TaiwanTripBusApi_RealTimeNearStop_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -345,7 +345,7 @@ func (a *Client) TaiwanTripBusAPIRoute(params *TaiwanTripBusAPIRouteParams) (*Ta
ID: "TaiwanTripBusApi_Route",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Route/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -381,7 +381,7 @@ func (a *Client) TaiwanTripBusAPIRoute1(params *TaiwanTripBusAPIRoute1Params) (*
ID: "TaiwanTripBusApi_Route_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Route/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -417,7 +417,7 @@ func (a *Client) TaiwanTripBusAPIS2TravelTime(params *TaiwanTripBusAPIS2TravelTi
ID: "TaiwanTripBusApi_S2TravelTime",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/S2TravelTime/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -453,7 +453,7 @@ func (a *Client) TaiwanTripBusAPISchedule(params *TaiwanTripBusAPIScheduleParams
ID: "TaiwanTripBusApi_Schedule",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Schedule/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -489,7 +489,7 @@ func (a *Client) TaiwanTripBusAPISchedule1(params *TaiwanTripBusAPISchedule1Para
ID: "TaiwanTripBusApi_Schedule_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Schedule/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -525,7 +525,7 @@ func (a *Client) TaiwanTripBusAPIShape(params *TaiwanTripBusAPIShapeParams) (*Ta
ID: "TaiwanTripBusApi_Shape",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Shape/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -561,7 +561,7 @@ func (a *Client) TaiwanTripBusAPIShape1(params *TaiwanTripBusAPIShape1Params) (*
ID: "TaiwanTripBusApi_Shape_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Shape/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -597,7 +597,7 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute(params *TaiwanTripBusAPIStopOfRoute
ID: "TaiwanTripBusApi_StopOfRoute",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/StopOfRoute/TaiwanTrip",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -633,7 +633,7 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute1(params *TaiwanTripBusAPIStopOfRout
ID: "TaiwanTripBusApi_StopOfRoute_1",
Method: "GET",
PathPattern: "/v2/Tourism/Bus/StopOfRoute/TaiwanTrip/{TaiwanTripName}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -669,7 +669,7 @@ func (a *Client) TourismAPIActivity(params *TourismAPIActivityParams) (*TourismA
ID: "TourismApi_Activity",
Method: "GET",
PathPattern: "/v2/Tourism/Activity",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -705,7 +705,7 @@ func (a *Client) TourismAPIActivity0(params *TourismAPIActivity0Params) (*Touris
ID: "TourismApi_Activity_0",
Method: "GET",
PathPattern: "/v2/Tourism/Activity/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -741,7 +741,7 @@ func (a *Client) TourismAPIHotel(params *TourismAPIHotelParams) (*TourismAPIHote
ID: "TourismApi_Hotel",
Method: "GET",
PathPattern: "/v2/Tourism/Hotel",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -777,7 +777,7 @@ func (a *Client) TourismAPIHotel0(params *TourismAPIHotel0Params) (*TourismAPIHo
ID: "TourismApi_Hotel_0",
Method: "GET",
PathPattern: "/v2/Tourism/Hotel/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -813,7 +813,7 @@ func (a *Client) TourismAPIRestaurant(params *TourismAPIRestaurantParams) (*Tour
ID: "TourismApi_Restaurant",
Method: "GET",
PathPattern: "/v2/Tourism/Restaurant",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -849,7 +849,7 @@ func (a *Client) TourismAPIRestaurant0(params *TourismAPIRestaurant0Params) (*To
ID: "TourismApi_Restaurant_0",
Method: "GET",
PathPattern: "/v2/Tourism/Restaurant/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -885,7 +885,7 @@ func (a *Client) TourismAPIScenicSpot(params *TourismAPIScenicSpotParams) (*Tour
ID: "TourismApi_ScenicSpot",
Method: "GET",
PathPattern: "/v2/Tourism/ScenicSpot",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
@@ -907,9 +907,9 @@ func (a *Client) TourismAPIScenicSpot(params *TourismAPIScenicSpotParams) (*Tour
}
/*
- TourismAPIScenicSpot0 取得指定s 縣市 觀光景點資料
+ TourismAPIScenicSpot0 取得所有觀光景點資料s
- 取得指定[縣市]觀光景點資料
+ 取得所有觀光景點資料
*/
func (a *Client) TourismAPIScenicSpot0(params *TourismAPIScenicSpot0Params) (*TourismAPIScenicSpot0OK, error) {
// TODO: Validate the params before sending
@@ -921,7 +921,7 @@ func (a *Client) TourismAPIScenicSpot0(params *TourismAPIScenicSpot0Params) (*To
ID: "TourismApi_ScenicSpot_0",
Method: "GET",
PathPattern: "/v2/Tourism/ScenicSpot/{City}",
- ProducesMediaTypes: []string{"application/json", "text/json"},
+ ProducesMediaTypes: []string{"application/json", "application/xml"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
similarity index 60%
rename from tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
index 0c5eb722..43de003a 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_frequency.go
@@ -14,38 +14,38 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusFrequency BusFrequency
+// PTXServiceDTOBusSpecificationV2BusFrequency BusFrequency
//
-// swagger:model Service.DTO.Version2.Bus.BusFrequency
-type ServiceDTOVersion2BusBusFrequency struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFrequency
+type PTXServiceDTOBusSpecificationV2BusFrequency struct {
- // 發車班距結束適用時間,格式為: HH:mm
+ // String
// Required: true
EndTime *string `json:"EndTime"`
- // 最大班距時間(分鐘)
+ // Int32
// Required: true
MaxHeadwayMins *int32 `json:"MaxHeadwayMins"`
- // 最小班距時間(分鐘)
+ // Int32
// Required: true
MinHeadwayMins *int32 `json:"MinHeadwayMins"`
// ServiceDay
- //
- // 週內營運日
- ServiceDay *ServiceDTOVersion2BusServiceDay `json:"ServiceDay,omitempty"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2ServiceDay
+ } `json:"ServiceDay,omitempty"`
- // 特殊營運日
- SpecialDays []*ServiceDTOVersion2BusSpecialDay `json:"SpecialDays"`
+ // Array
+ SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"`
- // 發車班距起始適用時間,格式為: HH:mm
+ // String
// Required: true
StartTime *string `json:"StartTime"`
}
-// Validate validates this service d t o version2 bus bus frequency
-func (m *ServiceDTOVersion2BusBusFrequency) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus frequency
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateEndTime(formats); err != nil {
@@ -78,7 +78,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateEndTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateEndTime(formats strfmt.Registry) error {
if err := validate.Required("EndTime", "body", m.EndTime); err != nil {
return err
@@ -87,7 +87,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateEndTime(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateMaxHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateMaxHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MaxHeadwayMins", "body", m.MaxHeadwayMins); err != nil {
return err
@@ -96,7 +96,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateMaxHeadwayMins(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateMinHeadwayMins(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateMinHeadwayMins(formats strfmt.Registry) error {
if err := validate.Required("MinHeadwayMins", "body", m.MinHeadwayMins); err != nil {
return err
@@ -105,25 +105,16 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateMinHeadwayMins(formats strfm
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateServiceDay(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateServiceDay(formats strfmt.Registry) error {
if swag.IsZero(m.ServiceDay) { // not required
return nil
}
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateSpecialDays(formats strfmt.Registry) error {
if swag.IsZero(m.SpecialDays) { // not required
return nil
@@ -148,7 +139,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateSpecialDays(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusFrequency) validateStartTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) validateStartTime(formats strfmt.Registry) error {
if err := validate.Required("StartTime", "body", m.StartTime); err != nil {
return err
@@ -158,7 +149,7 @@ func (m *ServiceDTOVersion2BusBusFrequency) validateStartTime(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFrequency) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -166,8 +157,8 @@ func (m *ServiceDTOVersion2BusBusFrequency) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusFrequency) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusFrequency
+func (m *PTXServiceDTOBusSpecificationV2BusFrequency) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusFrequency
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
similarity index 54%
rename from tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
index 3ac08fb4..d0112af2 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_stop_time.go
@@ -12,42 +12,42 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusStopTime BusStopTime
+// PTXServiceDTOBusSpecificationV2BusStopTime BusStopTime
//
-// 公車停靠時間資料
-//
-// swagger:model Service.DTO.Version2.Bus.BusStopTime
-type ServiceDTOVersion2BusBusStopTime struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStopTime
+type PTXServiceDTOBusSpecificationV2BusStopTime struct {
- // 到站時間,格式為:HH:mm
+ // String
// Required: true
ArrivalTime *string `json:"ArrivalTime"`
- // 離站時間,格式為:HH:mm
+ // String
// Required: true
DepartureTime *string `json:"DepartureTime"`
- // 地區既用中之站牌代碼(為原資料內碼)
+ // String
// Required: true
StopID *string `json:"StopID"`
// NameType
//
- // 站牌名稱
+ // 名稱資料型別
// Required: true
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
- // 路線經過站牌之順序(由1開始)
+ // Int32
// Required: true
StopSequence *int32 `json:"StopSequence"`
- // 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
+ // String
// Required: true
StopUID *string `json:"StopUID"`
}
-// Validate validates this service d t o version2 bus bus stop time
-func (m *ServiceDTOVersion2BusBusStopTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus stop time
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateArrivalTime(formats); err != nil {
@@ -80,7 +80,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateArrivalTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateArrivalTime(formats strfmt.Registry) error {
if err := validate.Required("ArrivalTime", "body", m.ArrivalTime); err != nil {
return err
@@ -89,7 +89,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateArrivalTime(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateDepartureTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateDepartureTime(formats strfmt.Registry) error {
if err := validate.Required("DepartureTime", "body", m.DepartureTime); err != nil {
return err
@@ -98,7 +98,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateDepartureTime(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopID(formats strfmt.Registry) error {
if err := validate.Required("StopID", "body", m.StopID); err != nil {
return err
@@ -107,25 +107,12 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopID(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopName(formats strfmt.Registry) error {
-
- if err := validate.Required("StopName", "body", m.StopName); err != nil {
- return err
- }
-
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopSequence(formats strfmt.Registry) error {
if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
return err
@@ -134,7 +121,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopSequence(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusStopTime) validateStopUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) validateStopUID(formats strfmt.Registry) error {
if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
return err
@@ -144,7 +131,7 @@ func (m *ServiceDTOVersion2BusBusStopTime) validateStopUID(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -152,8 +139,8 @@ func (m *ServiceDTOVersion2BusBusStopTime) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusStopTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusStopTime
+func (m *PTXServiceDTOBusSpecificationV2BusStopTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusStopTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
similarity index 54%
rename from tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
index 4151f5f8..a61e86c6 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_sub_route.go
@@ -12,58 +12,58 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusSubRoute BusSubRoute
+// PTXServiceDTOBusSpecificationV2BusSubRoute BusSubRoute
//
-// 附屬路線資料型別
-//
-// swagger:model Service.DTO.Version2.Bus.BusSubRoute
-type ServiceDTOVersion2BusBusSubRoute struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusSubRoute
+type PTXServiceDTOBusSpecificationV2BusSubRoute struct {
// integer
//
- // 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
+ // [0:'去程',1:'返程',2:'迴圈',255:'未知']
// Required: true
Direction *int32 `json:"Direction"`
- // 平日第一班發車時間
+ // String
FirstBusTime string `json:"FirstBusTime,omitempty"`
- // 車頭描述
+ // String
Headsign string `json:"Headsign,omitempty"`
- // 車頭英文描述
+ // String
HeadsignEn string `json:"HeadsignEn,omitempty"`
- // 假日去程第一班發車時間
+ // String
HolidayFirstBusTime string `json:"HolidayFirstBusTime,omitempty"`
- // 假日返程第一班發車時間
+ // String
HolidayLastBusTime string `json:"HolidayLastBusTime,omitempty"`
- // 平日返程第一班發車時間
+ // String
LastBusTime string `json:"LastBusTime,omitempty"`
- // 營運業者代碼
+ // Array
// Required: true
OperatorIDs []string `json:"OperatorIDs"`
- // 地區既用中之附屬路線代碼(為原資料內碼)
+ // String
// Required: true
SubRouteID *string `json:"SubRouteID"`
// NameType
//
- // 附屬路線名稱
+ // 名稱資料型別
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
- // 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
+ // String
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
}
-// Validate validates this service d t o version2 bus bus sub route
-func (m *ServiceDTOVersion2BusBusSubRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus sub route
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -92,7 +92,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) Validate(formats strfmt.Registry) err
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -101,7 +101,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateDirection(formats strfmt.Regi
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateOperatorIDs(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateOperatorIDs(formats strfmt.Registry) error {
if err := validate.Required("OperatorIDs", "body", m.OperatorIDs); err != nil {
return err
@@ -110,7 +110,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateOperatorIDs(formats strfmt.Re
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -119,25 +119,12 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteID(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -147,7 +134,7 @@ func (m *ServiceDTOVersion2BusBusSubRoute) validateSubRouteUID(formats strfmt.Re
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSubRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -155,8 +142,8 @@ func (m *ServiceDTOVersion2BusBusSubRoute) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusSubRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusSubRoute
+func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusSubRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
similarity index 61%
rename from bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
index c2a62822..592e2433 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_bus_timetable.go
@@ -14,29 +14,29 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusBusTimetable BusTimetable
+// PTXServiceDTOBusSpecificationV2BusTimetable BusTimetable
//
-// swagger:model Service.DTO.Version2.Bus.BusTimetable
-type ServiceDTOVersion2BusBusTimetable struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.BusTimetable
+type PTXServiceDTOBusSpecificationV2BusTimetable struct {
// ServiceDay
- //
- // 週內營運日
- ServiceDay *ServiceDTOVersion2BusServiceDay `json:"ServiceDay,omitempty"`
+ ServiceDay struct {
+ PTXServiceDTOBusSpecificationV2ServiceDay
+ } `json:"ServiceDay,omitempty"`
- // 特殊營運日
- SpecialDays []*ServiceDTOVersion2BusSpecialDay `json:"SpecialDays"`
+ // Array
+ SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay `json:"SpecialDays"`
- // 公車停靠時間資料
+ // Array
// Required: true
- StopTimes []*ServiceDTOVersion2BusBusStopTime `json:"StopTimes"`
+ StopTimes []*PTXServiceDTOBusSpecificationV2BusStopTime `json:"StopTimes"`
- // 班次代碼,為無意義之編碼
+ // String
TripID string `json:"TripID,omitempty"`
}
-// Validate validates this service d t o version2 bus bus timetable
-func (m *ServiceDTOVersion2BusBusTimetable) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 bus timetable
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateServiceDay(formats); err != nil {
@@ -57,25 +57,16 @@ func (m *ServiceDTOVersion2BusBusTimetable) Validate(formats strfmt.Registry) er
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateServiceDay(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateServiceDay(formats strfmt.Registry) error {
if swag.IsZero(m.ServiceDay) { // not required
return nil
}
- if m.ServiceDay != nil {
- if err := m.ServiceDay.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ServiceDay")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateSpecialDays(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateSpecialDays(formats strfmt.Registry) error {
if swag.IsZero(m.SpecialDays) { // not required
return nil
@@ -100,7 +91,7 @@ func (m *ServiceDTOVersion2BusBusTimetable) validateSpecialDays(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusBusTimetable) validateStopTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) validateStopTimes(formats strfmt.Registry) error {
if err := validate.Required("StopTimes", "body", m.StopTimes); err != nil {
return err
@@ -126,7 +117,7 @@ func (m *ServiceDTOVersion2BusBusTimetable) validateStopTimes(formats strfmt.Reg
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusTimetable) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -134,8 +125,8 @@ func (m *ServiceDTOVersion2BusBusTimetable) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusBusTimetable) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusBusTimetable
+func (m *PTXServiceDTOBusSpecificationV2BusTimetable) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2BusTimetable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/bus/v2/models/service_d_t_o_version2_bus_date_period.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
similarity index 51%
rename from bus/v2/models/service_d_t_o_version2_bus_date_period.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
index d7237249..39d7883b 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_date_period.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_date_period.go
@@ -10,25 +10,25 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BusDatePeriod DatePeriod
+// PTXServiceDTOBusSpecificationV2DatePeriod DatePeriod
//
-// swagger:model Service.DTO.Version2.Bus.DatePeriod
-type ServiceDTOVersion2BusDatePeriod struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.DatePeriod
+type PTXServiceDTOBusSpecificationV2DatePeriod struct {
- // 營運結束日(格式: yyyy-MM-dd)
+ // String
EndDate string `json:"EndDate,omitempty"`
- // 營運起始日(格式: yyyy-MM-dd)
+ // String
StartDate string `json:"StartDate,omitempty"`
}
-// Validate validates this service d t o version2 bus date period
-func (m *ServiceDTOVersion2BusDatePeriod) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 date period
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusDatePeriod) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -36,8 +36,8 @@ func (m *ServiceDTOVersion2BusDatePeriod) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusDatePeriod) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusDatePeriod
+func (m *PTXServiceDTOBusSpecificationV2DatePeriod) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2DatePeriod
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
similarity index 53%
rename from tourism/v2/models/service_d_t_o_version2_bus_route_operator.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
index b1d5e0a6..bc9ba6e2 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_route_operator.go
@@ -12,34 +12,34 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusRouteOperator RouteOperator
+// PTXServiceDTOBusSpecificationV2RouteOperator RouteOperator
//
-// 營運業者資訊
-//
-// swagger:model Service.DTO.Version2.Bus.RouteOperator
-type ServiceDTOVersion2BusRouteOperator struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.RouteOperator
+type PTXServiceDTOBusSpecificationV2RouteOperator struct {
- // 營運業者簡碼
+ // String
// Required: true
OperatorCode *string `json:"OperatorCode"`
- // 營運業者代碼
+ // String
// Required: true
OperatorID *string `json:"OperatorID"`
// NameType
//
- // 營運業者名稱
+ // 名稱資料型別
// Required: true
- OperatorName *ServiceDTOVersion2BaseNameType `json:"OperatorName"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"OperatorName"`
- // 營運業者編號[交通部票證資料系統定義]
+ // String
// Required: true
OperatorNo *string `json:"OperatorNo"`
}
-// Validate validates this service d t o version2 bus route operator
-func (m *ServiceDTOVersion2BusRouteOperator) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 route operator
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateOperatorCode(formats); err != nil {
@@ -64,7 +64,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) Validate(formats strfmt.Registry) e
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorCode(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorCode(formats strfmt.Registry) error {
if err := validate.Required("OperatorCode", "body", m.OperatorCode); err != nil {
return err
@@ -73,7 +73,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorCode(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorID(formats strfmt.Registry) error {
if err := validate.Required("OperatorID", "body", m.OperatorID); err != nil {
return err
@@ -82,25 +82,12 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorID(formats strfmt.R
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorName(formats strfmt.Registry) error {
-
- if err := validate.Required("OperatorName", "body", m.OperatorName); err != nil {
- return err
- }
-
- if m.OperatorName != nil {
- if err := m.OperatorName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OperatorName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorNo(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) validateOperatorNo(formats strfmt.Registry) error {
if err := validate.Required("OperatorNo", "body", m.OperatorNo); err != nil {
return err
@@ -110,7 +97,7 @@ func (m *ServiceDTOVersion2BusRouteOperator) validateOperatorNo(formats strfmt.R
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusRouteOperator) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -118,8 +105,8 @@ func (m *ServiceDTOVersion2BusRouteOperator) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusRouteOperator) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusRouteOperator
+func (m *PTXServiceDTOBusSpecificationV2RouteOperator) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2RouteOperator
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_service_day.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
similarity index 63%
rename from tourism/v2/models/service_d_t_o_version2_bus_service_day.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
index a7f38a49..dd271ba4 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_service_day.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_service_day.go
@@ -12,61 +12,61 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2BusServiceDay ServiceDay
+// PTXServiceDTOBusSpecificationV2ServiceDay ServiceDay
//
-// swagger:model Service.DTO.Version2.Bus.ServiceDay
-type ServiceDTOVersion2BusServiceDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.ServiceDay
+type PTXServiceDTOBusSpecificationV2ServiceDay struct {
// integer
//
- // 星期五是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Friday *int32 `json:"Friday"`
// integer
//
- // 星期一是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Monday *int32 `json:"Monday"`
// integer
//
- // 國定假日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
NationalHolidays int32 `json:"NationalHolidays,omitempty"`
// integer
//
- // 星期六是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Saturday *int32 `json:"Saturday"`
// integer
//
- // 星期日是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Sunday *int32 `json:"Sunday"`
// integer
//
- // 星期四是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Thursday *int32 `json:"Thursday"`
// integer
//
- // 星期二是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Tuesday *int32 `json:"Tuesday"`
// integer
//
- // 星期三是否營運 : [0:'否',1:'是']
+ // [0:'否',1:'是']
// Required: true
Wednesday *int32 `json:"Wednesday"`
}
-// Validate validates this service d t o version2 bus service day
-func (m *ServiceDTOVersion2BusServiceDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 service day
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateFriday(formats); err != nil {
@@ -103,7 +103,7 @@ func (m *ServiceDTOVersion2BusServiceDay) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateFriday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateFriday(formats strfmt.Registry) error {
if err := validate.Required("Friday", "body", m.Friday); err != nil {
return err
@@ -112,7 +112,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateFriday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateMonday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateMonday(formats strfmt.Registry) error {
if err := validate.Required("Monday", "body", m.Monday); err != nil {
return err
@@ -121,7 +121,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateMonday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateSaturday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateSaturday(formats strfmt.Registry) error {
if err := validate.Required("Saturday", "body", m.Saturday); err != nil {
return err
@@ -130,7 +130,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateSaturday(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateSunday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateSunday(formats strfmt.Registry) error {
if err := validate.Required("Sunday", "body", m.Sunday); err != nil {
return err
@@ -139,7 +139,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateSunday(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateThursday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateThursday(formats strfmt.Registry) error {
if err := validate.Required("Thursday", "body", m.Thursday); err != nil {
return err
@@ -148,7 +148,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateThursday(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateTuesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateTuesday(formats strfmt.Registry) error {
if err := validate.Required("Tuesday", "body", m.Tuesday); err != nil {
return err
@@ -157,7 +157,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateTuesday(formats strfmt.Registr
return nil
}
-func (m *ServiceDTOVersion2BusServiceDay) validateWednesday(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) validateWednesday(formats strfmt.Registry) error {
if err := validate.Required("Wednesday", "body", m.Wednesday); err != nil {
return err
@@ -167,7 +167,7 @@ func (m *ServiceDTOVersion2BusServiceDay) validateWednesday(formats strfmt.Regis
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusServiceDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -175,8 +175,8 @@ func (m *ServiceDTOVersion2BusServiceDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusServiceDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusServiceDay
+func (m *PTXServiceDTOBusSpecificationV2ServiceDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2ServiceDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_special_day.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
similarity index 50%
rename from tourism/v2/models/service_d_t_o_version2_bus_special_day.go
rename to tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
index 1e6320de..baba36f1 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_special_day.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_special_day.go
@@ -11,30 +11,30 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BusSpecialDay SpecialDay
+// PTXServiceDTOBusSpecificationV2SpecialDay SpecialDay
//
-// swagger:model Service.DTO.Version2.Bus.SpecialDay
-type ServiceDTOVersion2BusSpecialDay struct {
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.SpecialDay
+type PTXServiceDTOBusSpecificationV2SpecialDay struct {
// DatePeriod
- //
- // 連續特殊日期
- DatePeriod *ServiceDTOVersion2BusDatePeriod `json:"DatePeriod,omitempty"`
+ DatePeriod struct {
+ PTXServiceDTOBusSpecificationV2DatePeriod
+ } `json:"DatePeriod,omitempty"`
- // 不連續特殊日期
+ // Array
Dates []string `json:"Dates"`
- // 特殊營運描述
+ // String
Description string `json:"Description,omitempty"`
// integer
//
- // 營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']
+ // [0:'正常營運',1:'加班營運',2:'取消/停駛營運']
ServiceStatus int32 `json:"ServiceStatus,omitempty"`
}
-// Validate validates this service d t o version2 bus special day
-func (m *ServiceDTOVersion2BusSpecialDay) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o bus specification v2 special day
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDatePeriod(formats); err != nil {
@@ -47,26 +47,17 @@ func (m *ServiceDTOVersion2BusSpecialDay) Validate(formats strfmt.Registry) erro
return nil
}
-func (m *ServiceDTOVersion2BusSpecialDay) validateDatePeriod(formats strfmt.Registry) error {
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) validateDatePeriod(formats strfmt.Registry) error {
if swag.IsZero(m.DatePeriod) { // not required
return nil
}
- if m.DatePeriod != nil {
- if err := m.DatePeriod.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DatePeriod")
- }
- return err
- }
- }
-
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSpecialDay) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -74,8 +65,8 @@ func (m *ServiceDTOVersion2BusSpecialDay) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BusSpecialDay) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BusSpecialDay
+func (m *PTXServiceDTOBusSpecificationV2SpecialDay) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2SpecialDay
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go
new file mode 100644
index 00000000..229ebe98
--- /dev/null
+++ b/tourism/v2/models/p_t_x_service_d_t_o_bus_specification_v2_stop.go
@@ -0,0 +1,160 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PTXServiceDTOBusSpecificationV2Stop Stop
+//
+// swagger:model PTX.Service.DTO.Bus.Specification.V2.Stop
+type PTXServiceDTOBusSpecificationV2Stop struct {
+
+ // String
+ LocationCityCode string `json:"LocationCityCode,omitempty"`
+
+ // String
+ // Required: true
+ StationGroupID *string `json:"StationGroupID"`
+
+ // String
+ StationID string `json:"StationID,omitempty"`
+
+ // integer
+ //
+ // [-1:'可下車',0:'可上下車',1:'可上車']
+ StopBoarding int32 `json:"StopBoarding,omitempty"`
+
+ // String
+ // Required: true
+ StopID *string `json:"StopID"`
+
+ // NameType
+ //
+ // 名稱資料型別
+ // Required: true
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName"`
+
+ // PointType
+ //
+ // 座標資料型別
+ // Required: true
+ StopPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"StopPosition"`
+
+ // Int32
+ // Required: true
+ StopSequence *int32 `json:"StopSequence"`
+
+ // String
+ // Required: true
+ StopUID *string `json:"StopUID"`
+}
+
+// Validate validates this p t x service d t o bus specification v2 stop
+func (m *PTXServiceDTOBusSpecificationV2Stop) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStationGroupID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopName(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopPosition(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopSequence(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStopUID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStationGroupID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StationGroupID", "body", m.StationGroupID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopID", "body", m.StopID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopName(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopPosition(formats strfmt.Registry) error {
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopSequence(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopSequence", "body", m.StopSequence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PTXServiceDTOBusSpecificationV2Stop) validateStopUID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StopUID", "body", m.StopUID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV2Stop) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOBusSpecificationV2Stop) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOBusSpecificationV2Stop
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/rail/v2/models/service_d_t_o_version2_base_name_type.go b/tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
similarity index 50%
rename from rail/v2/models/service_d_t_o_version2_base_name_type.go
rename to tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
index 56abdf5a..ae2f0ea5 100644
--- a/rail/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_name_type.go
@@ -10,27 +10,31 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2BaseNameType NameType
+// PTXServiceDTOSharedSpecificationV2BaseNameType NameType
//
// 名稱資料型別
//
-// swagger:model Service.DTO.Version2.Base.NameType
-type ServiceDTOVersion2BaseNameType struct {
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.NameType
+type PTXServiceDTOSharedSpecificationV2BaseNameType struct {
+ // String
+ //
// 英文名稱
En string `json:"En,omitempty"`
+ // String
+ //
// 中文繁體名稱
ZhTw string `json:"Zh_tw,omitempty"`
}
-// Validate validates this service d t o version2 base name type
-func (m *ServiceDTOVersion2BaseNameType) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o shared specification v2 base name type
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -38,8 +42,8 @@ func (m *ServiceDTOVersion2BaseNameType) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseNameType
+func (m *PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BaseNameType
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go b/tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
new file mode 100644
index 00000000..33cfe90a
--- /dev/null
+++ b/tourism/v2/models/p_t_x_service_d_t_o_shared_specification_v2_base_point_type.go
@@ -0,0 +1,53 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package models
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PTXServiceDTOSharedSpecificationV2BasePointType PointType
+//
+// 座標資料型別
+//
+// swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.PointType
+type PTXServiceDTOSharedSpecificationV2BasePointType struct {
+
+ // String
+ //
+ // 地理空間編碼
+ GeoHash string `json:"GeoHash,omitempty"`
+
+ // 位置緯度(WGS84)
+ PositionLat float64 `json:"PositionLat,omitempty"`
+
+ // 位置經度(WGS84)
+ PositionLon float64 `json:"PositionLon,omitempty"`
+}
+
+// Validate validates this p t x service d t o shared specification v2 base point type
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOSharedSpecificationV2BasePointType
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_activity_tourism_info.go
similarity index 66%
rename from tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_activity_tourism_info.go
index 9e246ca6..29064cb5 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_activity_tourism_info.go
@@ -12,31 +12,45 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2ApplicationActivityTourismInfo ActivityTourismInfo
+// PTXServiceDTOTourismSpecificationV2ActivityTourismInfo ActivityTourismInfo
//
// 取得觀光活動資料
//
-// swagger:model Service.DTO.Version2.Application.ActivityTourismInfo
-type ServiceDTOVersion2ApplicationActivityTourismInfo struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.ActivityTourismInfo
+type PTXServiceDTOTourismSpecificationV2ActivityTourismInfo struct {
+ // String
+ //
// 主要活動地點地址
Address string `json:"Address,omitempty"`
+ // String
+ //
// 費用標示
Charge string `json:"Charge,omitempty"`
+ // String
+ //
// 所屬縣市
City string `json:"City,omitempty"`
+ // String
+ //
// 活動分類1
Class1 string `json:"Class1,omitempty"`
+ // String
+ //
// 活動分類2
Class2 string `json:"Class2,omitempty"`
+ // String
+ //
// 週期性活動執行時間
Cycle string `json:"Cycle,omitempty"`
+ // String
+ //
// 活動簡述
Description string `json:"Description,omitempty"`
@@ -45,44 +59,68 @@ type ServiceDTOVersion2ApplicationActivityTourismInfo struct {
// 活動結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
EndTime string `json:"EndTime,omitempty"`
+ // String
+ //
// 活動訊息代碼
// Required: true
ID *string `json:"ID"`
+ // String
+ //
// 主要活動地點名稱
Location string `json:"Location,omitempty"`
+ // String
+ //
// 活動地圖/簡圖連結網址
MapURL string `json:"MapUrl,omitempty"`
+ // String
+ //
// 活動名稱
Name string `json:"Name,omitempty"`
+ // String
+ //
// 非週期性活動執行時間
NonCycle string `json:"NonCycle,omitempty"`
+ // String
+ //
// 活動主辦單位
Organizer string `json:"Organizer,omitempty"`
+ // String
+ //
// 停車資訊
ParkingInfo string `json:"ParkingInfo,omitempty"`
+ // String
+ //
// 活動參與對象
Particpation string `json:"Particpation,omitempty"`
+ // String
+ //
// 活動聯絡電話
Phone string `json:"Phone,omitempty"`
// TourismPicture
//
// 活動照片
- Picture *ServiceDTOVersion2ApplicationTourismPicture `json:"Picture,omitempty"`
+ Picture struct {
+ PTXServiceDTOTourismSpecificationV2TourismPicture
+ } `json:"Picture,omitempty"`
// PointType
//
// 活動位置
- Position *ServiceDTOVersion2BasePointType `json:"Position,omitempty"`
+ Position struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"Position,omitempty"`
+ // String
+ //
// 備註(其他活動相關事項)
Remarks string `json:"Remarks,omitempty"`
@@ -97,6 +135,8 @@ type ServiceDTOVersion2ApplicationActivityTourismInfo struct {
// 活動開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 交通資訊
TravelInfo string `json:"TravelInfo,omitempty"`
@@ -106,12 +146,14 @@ type ServiceDTOVersion2ApplicationActivityTourismInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 活動網址
WebsiteURL string `json:"WebsiteUrl,omitempty"`
}
-// Validate validates this service d t o version2 application activity tourism info
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 activity tourism info
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateID(formats); err != nil {
@@ -140,7 +182,7 @@ func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) Validate(formats strf
return nil
}
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) validateID(formats strfmt.Registry) error {
if err := validate.Required("ID", "body", m.ID); err != nil {
return err
@@ -149,43 +191,25 @@ func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateID(formats st
return nil
}
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validatePicture(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) validatePicture(formats strfmt.Registry) error {
if swag.IsZero(m.Picture) { // not required
return nil
}
- if m.Picture != nil {
- if err := m.Picture.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Picture")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validatePosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) validatePosition(formats strfmt.Registry) error {
if swag.IsZero(m.Position) { // not required
return nil
}
- if m.Position != nil {
- if err := m.Position.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Position")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -194,7 +218,7 @@ func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateSrcUpdateTime
return nil
}
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -204,7 +228,7 @@ func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) validateUpdateTime(fo
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -212,8 +236,8 @@ func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationActivityTourismInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2ApplicationActivityTourismInfo
+func (m *PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2ActivityTourismInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a1_data.go
similarity index 67%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a1_data.go
index 38ee593a..92d7609a 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a1_data.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusA1Data BusA1Data
+// PTXServiceDTOTourismSpecificationV2BusA1Data BusA1Data
//
// 定時車機資料型別
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusA1Data
-type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusA1Data
+type PTXServiceDTOTourismSpecificationV2BusA1Data struct {
// 方位角
// Required: true
@@ -26,7 +26,9 @@ type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
// PointType
//
// 車輛位置經度
- BusPosition *ServiceDTOVersion2BasePointType `json:"BusPosition,omitempty"`
+ BusPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"BusPosition,omitempty"`
// integer
//
@@ -56,16 +58,24 @@ type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -83,21 +93,29 @@ type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
// NameType
//
// 台灣好行路線名稱
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName,omitempty"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName,omitempty"`
// DateTime
//
@@ -111,8 +129,8 @@ type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus a1 data
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus a1 data
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAzimuth(formats); err != nil {
@@ -161,7 +179,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateAzimuth(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateAzimuth(formats strfmt.Registry) error {
if err := validate.Required("Azimuth", "body", m.Azimuth); err != nil {
return err
@@ -170,25 +188,16 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateAzimuth(formats strfm
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateBusPosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateBusPosition(formats strfmt.Registry) error {
if swag.IsZero(m.BusPosition) { // not required
return nil
}
- if m.BusPosition != nil {
- if err := m.BusPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("BusPosition")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateBusStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateBusStatus(formats strfmt.Registry) error {
if err := validate.Required("BusStatus", "body", m.BusStatus); err != nil {
return err
@@ -197,7 +206,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateBusStatus(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateDutyStatus(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateDutyStatus(formats strfmt.Registry) error {
if err := validate.Required("DutyStatus", "body", m.DutyStatus); err != nil {
return err
@@ -206,7 +215,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateDutyStatus(formats st
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateGPSTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateGPSTime(formats strfmt.Registry) error {
if err := validate.Required("GPSTime", "body", m.GPSTime); err != nil {
return err
@@ -215,7 +224,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateGPSTime(formats strfm
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -224,7 +233,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validatePlateNumb(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateSpeed(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateSpeed(formats strfmt.Registry) error {
if err := validate.Required("Speed", "body", m.Speed); err != nil {
return err
@@ -233,43 +242,25 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateSpeed(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateTaiwanTripName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateTaiwanTripName(formats strfmt.Registry) error {
if swag.IsZero(m.TaiwanTripName) { // not required
return nil
}
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -279,7 +270,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) validateUpdateTime(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -287,8 +278,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusA1Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusA1Data
+func (m *PTXServiceDTOTourismSpecificationV2BusA1Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusA1Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a2_data.go
similarity index 68%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a2_data.go
index 57881052..2114ddf1 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_a2_data.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusA2Data BusA2Data
+// PTXServiceDTOTourismSpecificationV2BusA2Data BusA2Data
//
// 定點車機資料型別
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusA2Data
-type ServiceDTOVersion2TaiwanTripBusBusA2Data struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusA2Data
+type PTXServiceDTOTourismSpecificationV2BusA2Data struct {
// integer
//
@@ -51,16 +51,24 @@ type ServiceDTOVersion2TaiwanTripBusBusA2Data struct {
// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
MessageType int32 `json:"MessageType,omitempty"`
+ // String
+ //
// 營運業者代碼
OperatorID string `json:"OperatorID,omitempty"`
+ // String
+ //
// 車牌號碼
// Required: true
PlateNumb *string `json:"PlateNumb"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -74,32 +82,46 @@ type ServiceDTOVersion2TaiwanTripBusBusA2Data struct {
// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // String
+ //
// 地區既用中之站牌代號(為原資料內碼)
StopID string `json:"StopID,omitempty"`
// NameType
//
// 站牌名
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {平台代碼} + {StopID},其中 {平台代碼} 可於Provider API中的ProviderCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
// NameType
//
// 台灣好行路線名稱
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName,omitempty"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName,omitempty"`
// DateTime
//
@@ -113,8 +135,8 @@ type ServiceDTOVersion2TaiwanTripBusBusA2Data struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus a2 data
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus a2 data
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -151,7 +173,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) Validate(formats strfmt.Regis
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -160,7 +182,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateDirection(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateGPSTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateGPSTime(formats strfmt.Registry) error {
if err := validate.Required("GPSTime", "body", m.GPSTime); err != nil {
return err
@@ -169,7 +191,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateGPSTime(formats strfm
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validatePlateNumb(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validatePlateNumb(formats strfmt.Registry) error {
if err := validate.Required("PlateNumb", "body", m.PlateNumb); err != nil {
return err
@@ -178,61 +200,34 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validatePlateNumb(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateTaiwanTripName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateTaiwanTripName(formats strfmt.Registry) error {
if swag.IsZero(m.TaiwanTripName) { // not required
return nil
}
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -242,7 +237,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) validateUpdateTime(formats st
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -250,8 +245,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) MarshalBinary() ([]byte, erro
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusA2Data) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusA2Data
+func (m *PTXServiceDTOTourismSpecificationV2BusA2Data) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusA2Data
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_n1_estimate_time.go
similarity index 67%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_n1_estimate_time.go
index 6e01d828..840aa457 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_n1_estimate_time.go
@@ -12,14 +12,18 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime BusN1EstimateTime
+// PTXServiceDTOTourismSpecificationV2BusN1EstimateTime BusN1EstimateTime
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusN1EstimateTime
-type ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusN1EstimateTime
+type PTXServiceDTOTourismSpecificationV2BusN1EstimateTime struct {
+ // String
+ //
// 車輛目前所在站牌代碼
CurrentStop string `json:"CurrentStop,omitempty"`
+ // String
+ //
// 車輛目的站牌代碼
DestinationStop string `json:"DestinationStop,omitempty"`
@@ -45,12 +49,18 @@ type ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime struct {
// 下一班公車到達時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
NextBusTime string `json:"NextBusTime,omitempty"`
+ // String
+ //
// 車牌號碼
PlateNumb string `json:"PlateNumb,omitempty"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
RouteID string `json:"RouteID,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
RouteUID string `json:"RouteUID,omitempty"`
@@ -67,37 +77,51 @@ type ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime struct {
// 車輛距離本站站數
StopCountDown int32 `json:"StopCountDown,omitempty"`
+ // String
+ //
// 地區既用中之站牌代碼(為原資料內碼)
StopID string `json:"StopID,omitempty"`
// NameType
//
// 站牌名
- StopName *ServiceDTOVersion2BaseNameType `json:"StopName,omitempty"`
+ StopName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"StopName,omitempty"`
// integer
//
// 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']
StopStatus int32 `json:"StopStatus,omitempty"`
+ // String
+ //
// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
StopUID string `json:"StopUID,omitempty"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
SubRouteID string `json:"SubRouteID,omitempty"`
// NameType
//
// 子路線名稱
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName,omitempty"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName,omitempty"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
// NameType
//
// 台灣好行路線名稱
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName,omitempty"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName,omitempty"`
// DateTime
//
@@ -111,8 +135,8 @@ type ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus n1 estimate time
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus n1 estimate time
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -141,7 +165,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) Validate(formats strf
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -150,61 +174,34 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateDirection(for
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateStopName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) validateStopName(formats strfmt.Registry) error {
if swag.IsZero(m.StopName) { // not required
return nil
}
- if m.StopName != nil {
- if err := m.StopName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("StopName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateSubRouteName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) validateSubRouteName(formats strfmt.Registry) error {
if swag.IsZero(m.SubRouteName) { // not required
return nil
}
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateTaiwanTripName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) validateTaiwanTripName(formats strfmt.Registry) error {
if swag.IsZero(m.TaiwanTripName) { // not required
return nil
}
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -214,7 +211,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) validateUpdateTime(fo
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -222,8 +219,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime
+func (m *PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusN1EstimateTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_route.go
similarity index 72%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_route.go
index 24572042..95e51131 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_route.go
@@ -14,13 +14,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusRoute BusRoute
+// PTXServiceDTOTourismSpecificationV2BusRoute BusRoute
//
// 路線資料型別
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusRoute
-type ServiceDTOVersion2TaiwanTripBusBusRoute struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusRoute
+type PTXServiceDTOTourismSpecificationV2BusRoute struct {
+ // String
+ //
// 業管單位代碼
// Required: true
AuthorityID *string `json:"AuthorityID"`
@@ -31,75 +33,117 @@ type ServiceDTOVersion2TaiwanTripBusBusRoute struct {
// Required: true
BusRouteType *int32 `json:"BusRouteType"`
+ // String
+ //
// 路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
City string `json:"City,omitempty"`
+ // String
+ //
// 路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
CityCode string `json:"CityCode,omitempty"`
+ // String
+ //
// 起站英文名稱
DepartureStopNameEn string `json:"DepartureStopNameEn,omitempty"`
+ // String
+ //
// 起站中文名稱
DepartureStopNameZh string `json:"DepartureStopNameZh,omitempty"`
+ // String
+ //
// 終點站英文名稱
DestinationStopNameEn string `json:"DestinationStopNameEn,omitempty"`
+ // String
+ //
// 終點站中文名稱
DestinationStopNameZh string `json:"DestinationStopNameZh,omitempty"`
+ // String
+ //
// 收費緩衝區英文敘述
FareBufferZoneDescriptionEn string `json:"FareBufferZoneDescriptionEn,omitempty"`
+ // String
+ //
// 收費緩衝區中文敘述
FareBufferZoneDescriptionZh string `json:"FareBufferZoneDescriptionZh,omitempty"`
+ // Boolean
+ //
// 實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)
// Required: true
HasSubRoutes *bool `json:"HasSubRoutes"`
+ // String
+ //
// 路線公車動態資訊網址
LiveBusURL string `json:"LiveBusUrl,omitempty"`
+ // Array
+ //
// 營運業者代碼
// Required: true
OperatorIDs []string `json:"OperatorIDs"`
+ // Array
+ //
// 營運業者
// Required: true
- Operators []*ServiceDTOVersion2BusRouteOperator `json:"Operators"`
+ Operators []*PTXServiceDTOBusSpecificationV2RouteOperator `json:"Operators"`
+ // String
+ //
// 資料提供平台代碼
// Required: true
ProviderID *string `json:"ProviderID"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線簡圖網址
RouteMapImageURL string `json:"RouteMapImageUrl,omitempty"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 路線資訊說明網址
RouteURL string `json:"RouteUrl,omitempty"`
+ // Array
+ //
// 附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆))
- SubRoutes []*ServiceDTOVersion2BusBusSubRoute `json:"SubRoutes"`
+ SubRoutes []*PTXServiceDTOBusSpecificationV2BusSubRoute `json:"SubRoutes"`
// NameType
//
// 台灣好行路線名稱
// Required: true
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName"`
+ // String
+ //
// 票價英文敘述
TicketPriceDescriptionEn string `json:"TicketPriceDescriptionEn,omitempty"`
+ // String
+ //
// 票價中文敘述
TicketPriceDescriptionZh string `json:"TicketPriceDescriptionZh,omitempty"`
@@ -110,8 +154,8 @@ type ServiceDTOVersion2TaiwanTripBusBusRoute struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus route
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus route
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAuthorityID(formats); err != nil {
@@ -164,7 +208,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) Validate(formats strfmt.Regist
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateAuthorityID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateAuthorityID(formats strfmt.Registry) error {
if err := validate.Required("AuthorityID", "body", m.AuthorityID); err != nil {
return err
@@ -173,7 +217,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateAuthorityID(formats st
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateBusRouteType(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateBusRouteType(formats strfmt.Registry) error {
if err := validate.Required("BusRouteType", "body", m.BusRouteType); err != nil {
return err
@@ -182,7 +226,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateBusRouteType(formats s
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateHasSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateHasSubRoutes(formats strfmt.Registry) error {
if err := validate.Required("HasSubRoutes", "body", m.HasSubRoutes); err != nil {
return err
@@ -191,7 +235,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateHasSubRoutes(formats s
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateOperatorIDs(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateOperatorIDs(formats strfmt.Registry) error {
if err := validate.Required("OperatorIDs", "body", m.OperatorIDs); err != nil {
return err
@@ -200,7 +244,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateOperatorIDs(formats st
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateOperators(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateOperators(formats strfmt.Registry) error {
if err := validate.Required("Operators", "body", m.Operators); err != nil {
return err
@@ -225,7 +269,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateOperators(formats strf
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateProviderID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateProviderID(formats strfmt.Registry) error {
if err := validate.Required("ProviderID", "body", m.ProviderID); err != nil {
return err
@@ -234,7 +278,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateProviderID(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -243,7 +287,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateRouteID(formats strfmt
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -252,7 +296,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateRouteUID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateSubRoutes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateSubRoutes(formats strfmt.Registry) error {
if swag.IsZero(m.SubRoutes) { // not required
return nil
@@ -277,25 +321,12 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateSubRoutes(formats strf
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateTaiwanTripName(formats strfmt.Registry) error {
-
- if err := validate.Required("TaiwanTripName", "body", m.TaiwanTripName); err != nil {
- return err
- }
-
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateTaiwanTripName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -305,7 +336,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) validateUpdateTime(formats str
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -313,8 +344,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) MarshalBinary() ([]byte, error
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusRoute
+func (m *PTXServiceDTOTourismSpecificationV2BusRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_schedule.go
similarity index 62%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_schedule.go
index f68578a4..eacb7a02 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_schedule.go
@@ -14,10 +14,10 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusSchedule BusSchedule
+// PTXServiceDTOTourismSpecificationV2BusSchedule BusSchedule
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusSchedule
-type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusSchedule
+type PTXServiceDTOTourismSpecificationV2BusSchedule struct {
// integer
//
@@ -25,17 +25,25 @@ type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Array
+ //
// 發車班距
- Frequencys []*ServiceDTOVersion2BusBusFrequency `json:"Frequencys"`
+ Frequencys []*PTXServiceDTOBusSpecificationV2BusFrequency `json:"Frequencys"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -44,8 +52,12 @@ type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
//
// 子路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
@@ -54,10 +66,14 @@ type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
//
// 台灣好行路線名稱
// Required: true
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName"`
+ // Array
+ //
// 預定班表
- Timetables []*ServiceDTOVersion2BusBusTimetable `json:"Timetables"`
+ Timetables []*PTXServiceDTOBusSpecificationV2BusTimetable `json:"Timetables"`
// DateTime
//
@@ -66,8 +82,8 @@ type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus schedule
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus schedule
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -116,7 +132,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) Validate(formats strfmt.Reg
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -125,7 +141,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateDirection(formats s
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateFrequencys(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateFrequencys(formats strfmt.Registry) error {
if swag.IsZero(m.Frequencys) { // not required
return nil
@@ -150,7 +166,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateFrequencys(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -159,7 +175,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateRouteID(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -168,7 +184,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateRouteUID(formats st
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -177,25 +193,12 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateSubRouteID(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -204,25 +207,12 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateSubRouteUID(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateTaiwanTripName(formats strfmt.Registry) error {
-
- if err := validate.Required("TaiwanTripName", "body", m.TaiwanTripName); err != nil {
- return err
- }
-
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateTaiwanTripName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateTimetables(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateTimetables(formats strfmt.Registry) error {
if swag.IsZero(m.Timetables) { // not required
return nil
@@ -247,7 +237,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateTimetables(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -257,7 +247,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) validateUpdateTime(formats
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -265,8 +255,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) MarshalBinary() ([]byte, er
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusSchedule) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusSchedule
+func (m *PTXServiceDTOTourismSpecificationV2BusSchedule) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusSchedule
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_stop_of_route.go
similarity index 61%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_stop_of_route.go
index bcd0c9f4..7f939fd0 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_stop_of_route.go
@@ -14,12 +14,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusStopOfRoute BusStopOfRoute
+// PTXServiceDTOTourismSpecificationV2BusStopOfRoute BusStopOfRoute
//
// 路線與站牌對應資料
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusStopOfRoute
-type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusStopOfRoute
+type PTXServiceDTOTourismSpecificationV2BusStopOfRoute struct {
// integer
//
@@ -27,22 +27,32 @@ type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // Boolean
+ //
// 是否為主路線
// Required: true
KeyPattern *bool `json:"KeyPattern"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // Array
+ //
// 所有經過站牌
// Required: true
- Stops []*ServiceDTOVersion2BusStop `json:"Stops"`
+ Stops []*PTXServiceDTOBusSpecificationV2Stop `json:"Stops"`
+ // String
+ //
// 地區既用中之子路線代碼(為原資料內碼)
// Required: true
SubRouteID *string `json:"SubRouteID"`
@@ -51,8 +61,12 @@ type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
//
// 子路線名稱
// Required: true
- SubRouteName *ServiceDTOVersion2BaseNameType `json:"SubRouteName"`
+ SubRouteName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"SubRouteName"`
+ // String
+ //
// 子路線唯一識別代碼,規則為 {業管機關代碼} + {SubRouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
SubRouteUID *string `json:"SubRouteUID"`
@@ -61,7 +75,9 @@ type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
//
// 台灣好行路線名稱
// Required: true
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName"`
// DateTime
//
@@ -70,8 +86,8 @@ type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus stop of route
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus stop of route
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -120,7 +136,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -129,7 +145,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateDirection(format
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateKeyPattern(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateKeyPattern(formats strfmt.Registry) error {
if err := validate.Required("KeyPattern", "body", m.KeyPattern); err != nil {
return err
@@ -138,7 +154,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateKeyPattern(forma
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -147,7 +163,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateRouteID(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -156,7 +172,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateRouteUID(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateStops(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateStops(formats strfmt.Registry) error {
if err := validate.Required("Stops", "body", m.Stops); err != nil {
return err
@@ -181,7 +197,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateStops(formats st
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateSubRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateSubRouteID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteID", "body", m.SubRouteID); err != nil {
return err
@@ -190,25 +206,12 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateSubRouteID(forma
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
-
- if err := validate.Required("SubRouteName", "body", m.SubRouteName); err != nil {
- return err
- }
-
- if m.SubRouteName != nil {
- if err := m.SubRouteName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("SubRouteName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateSubRouteName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateSubRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateSubRouteUID(formats strfmt.Registry) error {
if err := validate.Required("SubRouteUID", "body", m.SubRouteUID); err != nil {
return err
@@ -217,25 +220,12 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateSubRouteUID(form
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateTaiwanTripName(formats strfmt.Registry) error {
-
- if err := validate.Required("TaiwanTripName", "body", m.TaiwanTripName); err != nil {
- return err
- }
-
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateTaiwanTripName(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -245,7 +235,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) validateUpdateTime(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -253,8 +243,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusStopOfRoute) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusStopOfRoute
+func (m *PTXServiceDTOTourismSpecificationV2BusStopOfRoute) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusStopOfRoute
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_news.go
similarity index 66%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_news.go
index ada23ec9..a611576c 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_news.go
@@ -12,13 +12,15 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews BusTaiwanTripNews
+// PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews BusTaiwanTripNews
//
// 台灣好行最新消息資料
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripNews
-type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripNews
+type PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews struct {
+ // String
+ //
// 內容描述
// Required: true
Description *string `json:"Description"`
@@ -28,13 +30,19 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews struct {
// 結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
EndTime string `json:"EndTime,omitempty"`
+ // String
+ //
// 語系
// Required: true
Language *string `json:"Language"`
+ // String
+ //
// 消息類別
NewsCategory string `json:"NewsCategory,omitempty"`
+ // String
+ //
// 最新消息原單位發布代碼
// Required: true
NewsID *string `json:"NewsID"`
@@ -49,6 +57,8 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews struct {
// 開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
StartTime string `json:"StartTime,omitempty"`
+ // String
+ //
// 消息標題
// Required: true
Title *string `json:"Title"`
@@ -60,8 +70,8 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus taiwan trip news
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus taiwan trip news
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDescription(formats); err != nil {
@@ -90,7 +100,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) Validate(formats strf
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateDescription(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) validateDescription(formats strfmt.Registry) error {
if err := validate.Required("Description", "body", m.Description); err != nil {
return err
@@ -99,7 +109,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateDescription(f
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateLanguage(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) validateLanguage(formats strfmt.Registry) error {
if err := validate.Required("Language", "body", m.Language); err != nil {
return err
@@ -108,7 +118,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateLanguage(form
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateNewsID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) validateNewsID(formats strfmt.Registry) error {
if err := validate.Required("NewsID", "body", m.NewsID); err != nil {
return err
@@ -117,7 +127,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateNewsID(format
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateTitle(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) validateTitle(formats strfmt.Registry) error {
if err := validate.Required("Title", "body", m.Title); err != nil {
return err
@@ -126,7 +136,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateTitle(formats
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -136,7 +146,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) validateUpdateTime(fo
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -144,8 +154,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) MarshalBinary() ([]by
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time.go
similarity index 64%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time.go
index 41dc10d9..8aa55282 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time.go
@@ -14,28 +14,38 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime BusTaiwanTripS2STravelTime
+// PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime BusTaiwanTripS2STravelTime
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime
-type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime
+type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime struct {
+ // String
+ //
// 路線代碼
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
+ // String
+ //
// 附屬路線代碼
SubRouteID string `json:"SubRouteID,omitempty"`
+ // String
+ //
// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
SubRouteUID string `json:"SubRouteUID,omitempty"`
+ // Array
+ //
// 站間運行時間資訊
// Required: true
- TravelTimes []*ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime `json:"TravelTimes"`
+ TravelTimes []*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime `json:"TravelTimes"`
// DateTime
//
@@ -44,8 +54,8 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus taiwan trip s2 s travel time
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus taiwan trip s2 s travel time
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateRouteID(formats); err != nil {
@@ -70,7 +80,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) Validate(for
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -79,7 +89,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateRout
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -88,7 +98,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateRout
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) validateTravelTimes(formats strfmt.Registry) error {
if err := validate.Required("TravelTimes", "body", m.TravelTimes); err != nil {
return err
@@ -113,7 +123,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateTrav
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -123,7 +133,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) validateUpda
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -131,8 +141,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) MarshalBinar
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time_travel_time.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time_travel_time.go
similarity index 57%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time_travel_time.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time_travel_time.go
index 3a7e3ee0..7cf2fb13 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time_travel_time.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_s2_s_travel_time_travel_time.go
@@ -12,38 +12,50 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime TravelTime
+// PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime TravelTime
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime.TravelTime
-type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime+TravelTime
+type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime struct {
+ // Single
+ //
// 站間距離
// Required: true
Distance *float32 `json:"Distance"`
+ // String
+ //
// 起站站牌代碼
// Required: true
FromStopID *string `json:"FromStopID"`
+ // Int32
+ //
// 站間預估行駛時間
// Required: true
RunTime *int32 `json:"RunTime"`
+ // Int32
+ //
// 站間序號
// Required: true
Sequence *int32 `json:"Sequence"`
+ // Int32
+ //
// 起站停靠時間
// Required: true
StopTime *int32 `json:"StopTime"`
+ // String
+ //
// 迄站站牌代碼
// Required: true
ToStopID *string `json:"ToStopID"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus taiwan trip s2 s travel time travel time
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus taiwan trip s2 s travel time travel time
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDistance(formats); err != nil {
@@ -76,7 +88,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) Va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateDistance(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateDistance(formats strfmt.Registry) error {
if err := validate.Required("Distance", "body", m.Distance); err != nil {
return err
@@ -85,7 +97,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateFromStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateFromStopID(formats strfmt.Registry) error {
if err := validate.Required("FromStopID", "body", m.FromStopID); err != nil {
return err
@@ -94,7 +106,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateRunTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateRunTime(formats strfmt.Registry) error {
if err := validate.Required("RunTime", "body", m.RunTime); err != nil {
return err
@@ -103,7 +115,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateSequence(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateSequence(formats strfmt.Registry) error {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
return err
@@ -112,7 +124,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateStopTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateStopTime(formats strfmt.Registry) error {
if err := validate.Required("StopTime", "body", m.StopTime); err != nil {
return err
@@ -121,7 +133,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) validateToStopID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) validateToStopID(formats strfmt.Registry) error {
if err := validate.Required("ToStopID", "body", m.ToStopID); err != nil {
return err
@@ -131,7 +143,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) va
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -139,8 +151,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) Ma
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_shape.go
similarity index 63%
rename from tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_shape.go
index 2733eeb8..a279e021 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_bus_taiwan_trip_shape.go
@@ -12,12 +12,12 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape BusTaiwanTripShape
+// PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape BusTaiwanTripShape
//
// 台灣好行線型資料
//
-// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripShape
-type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripShape
+type PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape struct {
// integer
//
@@ -25,14 +25,20 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape struct {
// Required: true
Direction *int32 `json:"Direction"`
+ // String
+ //
// well-known text,為路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
+ // String
+ //
// 地區既用中之路線代碼(為原資料內碼)
// Required: true
RouteID *string `json:"RouteID"`
+ // String
+ //
// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
// Required: true
RouteUID *string `json:"RouteUID"`
@@ -46,7 +52,9 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape struct {
// NameType
//
// 台灣好行路線名稱
- TaiwanTripName *ServiceDTOVersion2BaseNameType `json:"TaiwanTripName,omitempty"`
+ TaiwanTripName struct {
+ PTXServiceDTOSharedSpecificationV2BaseNameType
+ } `json:"TaiwanTripName,omitempty"`
// DateTime
//
@@ -55,8 +63,8 @@ type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape struct {
UpdateTime *string `json:"UpdateTime"`
}
-// Validate validates this service d t o version2 taiwan trip bus bus taiwan trip shape
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 bus taiwan trip shape
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateDirection(formats); err != nil {
@@ -93,7 +101,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) Validate(formats str
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateDirection(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
return err
@@ -102,7 +110,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateDirection(fo
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateGeometry(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateGeometry(formats strfmt.Registry) error {
if err := validate.Required("Geometry", "body", m.Geometry); err != nil {
return err
@@ -111,7 +119,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateGeometry(for
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateRouteID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateRouteID(formats strfmt.Registry) error {
if err := validate.Required("RouteID", "body", m.RouteID); err != nil {
return err
@@ -120,7 +128,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateRouteID(form
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateRouteUID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateRouteUID(formats strfmt.Registry) error {
if err := validate.Required("RouteUID", "body", m.RouteUID); err != nil {
return err
@@ -129,7 +137,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateRouteUID(for
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -138,25 +146,16 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateSrcUpdateTim
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateTaiwanTripName(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateTaiwanTripName(formats strfmt.Registry) error {
if swag.IsZero(m.TaiwanTripName) { // not required
return nil
}
- if m.TaiwanTripName != nil {
- if err := m.TaiwanTripName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("TaiwanTripName")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -166,7 +165,7 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) validateUpdateTime(f
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -174,8 +173,8 @@ func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape
+func (m *PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_hotel_tourism_info.go
similarity index 64%
rename from tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_hotel_tourism_info.go
index 381bc288..beda5598 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_hotel_tourism_info.go
@@ -12,60 +12,90 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2ApplicationHotelTourismInfo HotelTourismInfo
+// PTXServiceDTOTourismSpecificationV2HotelTourismInfo HotelTourismInfo
//
// 取得觀光旅宿資料
//
-// swagger:model Service.DTO.Version2.Application.HotelTourismInfo
-type ServiceDTOVersion2ApplicationHotelTourismInfo struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.HotelTourismInfo
+type PTXServiceDTOTourismSpecificationV2HotelTourismInfo struct {
+ // String
+ //
// 旅館民宿地址
Address string `json:"Address,omitempty"`
+ // String
+ //
// 所屬縣市
City string `json:"City,omitempty"`
+ // String
+ //
// 旅館民宿分類
Class string `json:"Class,omitempty"`
+ // String
+ //
// 旅館民宿簡述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 旅館民宿傳真
Fax string `json:"Fax,omitempty"`
+ // String
+ //
// 觀光旅館星級
Grade string `json:"Grade,omitempty"`
+ // String
+ //
// 旅館民宿代碼
// Required: true
ID *string `json:"ID"`
+ // String
+ //
// 旅館民宿地點簡圖連結網址
MapURL string `json:"MapUrl,omitempty"`
+ // String
+ //
// 旅館民宿名稱
Name string `json:"Name,omitempty"`
+ // String
+ //
// 停車資訊
ParkingInfo string `json:"ParkingInfo,omitempty"`
+ // String
+ //
// 旅館民宿電話
Phone string `json:"Phone,omitempty"`
// TourismPicture
//
// 旅館民宿照片
- Picture *ServiceDTOVersion2ApplicationTourismPicture `json:"Picture,omitempty"`
+ Picture struct {
+ PTXServiceDTOTourismSpecificationV2TourismPicture
+ } `json:"Picture,omitempty"`
// PointType
//
// 旅館民宿位置
- Position *ServiceDTOVersion2BasePointType `json:"Position,omitempty"`
+ Position struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"Position,omitempty"`
+ // String
+ //
// 服務內容介紹
ServiceInfo string `json:"ServiceInfo,omitempty"`
+ // String
+ //
// 房型、價目及數量說明
Spec string `json:"Spec,omitempty"`
@@ -81,15 +111,19 @@ type ServiceDTOVersion2ApplicationHotelTourismInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 旅館民宿網站網址
WebsiteURL string `json:"WebsiteUrl,omitempty"`
+ // String
+ //
// 郵遞區號
ZipCode string `json:"ZipCode,omitempty"`
}
-// Validate validates this service d t o version2 application hotel tourism info
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 hotel tourism info
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateID(formats); err != nil {
@@ -118,7 +152,7 @@ func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) Validate(formats strfmt.
return nil
}
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) validateID(formats strfmt.Registry) error {
if err := validate.Required("ID", "body", m.ID); err != nil {
return err
@@ -127,43 +161,25 @@ func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateID(formats strfm
return nil
}
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validatePicture(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) validatePicture(formats strfmt.Registry) error {
if swag.IsZero(m.Picture) { // not required
return nil
}
- if m.Picture != nil {
- if err := m.Picture.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Picture")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validatePosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) validatePosition(formats strfmt.Registry) error {
if swag.IsZero(m.Position) { // not required
return nil
}
- if m.Position != nil {
- if err := m.Position.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Position")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -172,7 +188,7 @@ func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateSrcUpdateTime(fo
return nil
}
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -182,7 +198,7 @@ func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) validateUpdateTime(forma
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -190,8 +206,8 @@ func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) MarshalBinary() ([]byte,
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationHotelTourismInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2ApplicationHotelTourismInfo
+func (m *PTXServiceDTOTourismSpecificationV2HotelTourismInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2HotelTourismInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_restaurant_tourism_info.go
similarity index 61%
rename from tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_restaurant_tourism_info.go
index ba470300..9fc7fa41 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_restaurant_tourism_info.go
@@ -12,53 +12,77 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2ApplicationRestaurantTourismInfo RestaurantTourismInfo
+// PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo RestaurantTourismInfo
//
// 取得觀光餐飲資料
//
-// swagger:model Service.DTO.Version2.Application.RestaurantTourismInfo
-type ServiceDTOVersion2ApplicationRestaurantTourismInfo struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.RestaurantTourismInfo
+type PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo struct {
+ // String
+ //
// 店家地址
Address string `json:"Address,omitempty"`
+ // String
+ //
// 所屬縣市
City string `json:"City,omitempty"`
+ // String
+ //
// 店家分類
Class string `json:"Class,omitempty"`
+ // String
+ //
// 店家簡述
Description string `json:"Description,omitempty"`
+ // String
+ //
// 餐飲店家代碼
// Required: true
ID *string `json:"ID"`
+ // String
+ //
// 店家地圖/簡圖介紹網址
MapURL string `json:"MapUrl,omitempty"`
+ // String
+ //
// 餐飲店家名稱
Name string `json:"Name,omitempty"`
+ // String
+ //
// 營業時間
OpenTime string `json:"OpenTime,omitempty"`
+ // String
+ //
// 停車資訊
ParkingInfo string `json:"ParkingInfo,omitempty"`
+ // String
+ //
// 預約電話
Phone string `json:"Phone,omitempty"`
// TourismPicture
//
// 店家照片
- Picture *ServiceDTOVersion2ApplicationTourismPicture `json:"Picture,omitempty"`
+ Picture struct {
+ PTXServiceDTOTourismSpecificationV2TourismPicture
+ } `json:"Picture,omitempty"`
// PointType
//
// 店家位置
- Position *ServiceDTOVersion2BasePointType `json:"Position,omitempty"`
+ Position struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"Position,omitempty"`
// DateTime
//
@@ -72,15 +96,19 @@ type ServiceDTOVersion2ApplicationRestaurantTourismInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 店家網站網址
WebsiteURL string `json:"WebsiteUrl,omitempty"`
+ // String
+ //
// 郵遞區號
ZipCode string `json:"ZipCode,omitempty"`
}
-// Validate validates this service d t o version2 application restaurant tourism info
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 restaurant tourism info
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateID(formats); err != nil {
@@ -109,7 +137,7 @@ func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) Validate(formats st
return nil
}
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) validateID(formats strfmt.Registry) error {
if err := validate.Required("ID", "body", m.ID); err != nil {
return err
@@ -118,43 +146,25 @@ func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateID(formats
return nil
}
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validatePicture(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) validatePicture(formats strfmt.Registry) error {
if swag.IsZero(m.Picture) { // not required
return nil
}
- if m.Picture != nil {
- if err := m.Picture.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Picture")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validatePosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) validatePosition(formats strfmt.Registry) error {
if swag.IsZero(m.Position) { // not required
return nil
}
- if m.Position != nil {
- if err := m.Position.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Position")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -163,7 +173,7 @@ func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateSrcUpdateTi
return nil
}
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -173,7 +183,7 @@ func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) validateUpdateTime(
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -181,8 +191,8 @@ func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) MarshalBinary() ([]
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationRestaurantTourismInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2ApplicationRestaurantTourismInfo
+func (m *PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_scenic_spot_tourism_info.go
similarity index 62%
rename from tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_scenic_spot_tourism_info.go
index 622a1275..8eb9cafc 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_scenic_spot_tourism_info.go
@@ -12,74 +12,112 @@ import (
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2ApplicationScenicSpotTourismInfo ScenicSpotTourismInfo
+// PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo ScenicSpotTourismInfo
//
// 取得觀光景點資料
//
-// swagger:model Service.DTO.Version2.Application.ScenicSpotTourismInfo
-type ServiceDTOVersion2ApplicationScenicSpotTourismInfo struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.ScenicSpotTourismInfo
+type PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo struct {
+ // String
+ //
// 景點地址
Address string `json:"Address,omitempty"`
+ // String
+ //
// 所屬縣市
City string `json:"City,omitempty"`
+ // String
+ //
// 景點分類1
Class1 string `json:"Class1,omitempty"`
+ // String
+ //
// 景點分類2
Class2 string `json:"Class2,omitempty"`
+ // String
+ //
// 景點分類3
Class3 string `json:"Class3,omitempty"`
+ // String
+ //
// 景點特色精簡說明
Description string `json:"Description,omitempty"`
+ // String
+ //
// 景點特色詳細說明
DescriptionDetail string `json:"DescriptionDetail,omitempty"`
+ // String
+ //
// 景點代碼
// Required: true
ID *string `json:"ID"`
+ // String
+ //
// 常用搜尋關鍵字
Keyword string `json:"Keyword,omitempty"`
+ // String
+ //
// 古蹟分級
Level string `json:"Level,omitempty"`
+ // String
+ //
// 景點地圖/簡圖介紹網址
MapURL string `json:"MapUrl,omitempty"`
+ // String
+ //
// 景點名稱
Name string `json:"Name,omitempty"`
+ // String
+ //
// 開放時間
OpenTime string `json:"OpenTime,omitempty"`
+ // String
+ //
// 停車資訊
ParkingInfo string `json:"ParkingInfo,omitempty"`
// PointType
//
// 景點主要停車場位置
- ParkingPosition *ServiceDTOVersion2BasePointType `json:"ParkingPosition,omitempty"`
+ ParkingPosition struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"ParkingPosition,omitempty"`
+ // String
+ //
// 景點服務電話
Phone string `json:"Phone,omitempty"`
// TourismPicture
//
// 景點照片
- Picture *ServiceDTOVersion2ApplicationTourismPicture `json:"Picture,omitempty"`
+ Picture struct {
+ PTXServiceDTOTourismSpecificationV2TourismPicture
+ } `json:"Picture,omitempty"`
// PointType
//
// 景點位置
- Position *ServiceDTOVersion2BasePointType `json:"Position,omitempty"`
+ Position struct {
+ PTXServiceDTOSharedSpecificationV2BasePointType
+ } `json:"Position,omitempty"`
+ // String
+ //
// 警告及注意事項
Remarks string `json:"Remarks,omitempty"`
@@ -89,9 +127,13 @@ type ServiceDTOVersion2ApplicationScenicSpotTourismInfo struct {
// Required: true
SrcUpdateTime *string `json:"SrcUpdateTime"`
+ // String
+ //
// 票價資訊
TicketInfo string `json:"TicketInfo,omitempty"`
+ // String
+ //
// 交通資訊
TravelInfo string `json:"TravelInfo,omitempty"`
@@ -101,15 +143,19 @@ type ServiceDTOVersion2ApplicationScenicSpotTourismInfo struct {
// Required: true
UpdateTime *string `json:"UpdateTime"`
+ // String
+ //
// 景點官方網站網址
WebsiteURL string `json:"WebsiteUrl,omitempty"`
+ // String
+ //
// 郵遞區號
ZipCode string `json:"ZipCode,omitempty"`
}
-// Validate validates this service d t o version2 application scenic spot tourism info
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 scenic spot tourism info
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateID(formats); err != nil {
@@ -142,7 +188,7 @@ func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) Validate(formats st
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateID(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validateID(formats strfmt.Registry) error {
if err := validate.Required("ID", "body", m.ID); err != nil {
return err
@@ -151,61 +197,34 @@ func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateID(formats
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateParkingPosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validateParkingPosition(formats strfmt.Registry) error {
if swag.IsZero(m.ParkingPosition) { // not required
return nil
}
- if m.ParkingPosition != nil {
- if err := m.ParkingPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("ParkingPosition")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validatePicture(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validatePicture(formats strfmt.Registry) error {
if swag.IsZero(m.Picture) { // not required
return nil
}
- if m.Picture != nil {
- if err := m.Picture.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Picture")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validatePosition(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validatePosition(formats strfmt.Registry) error {
if swag.IsZero(m.Position) { // not required
return nil
}
- if m.Position != nil {
- if err := m.Position.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Position")
- }
- return err
- }
- }
-
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
return err
@@ -214,7 +233,7 @@ func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateSrcUpdateTi
return nil
}
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
return err
@@ -224,7 +243,7 @@ func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) validateUpdateTime(
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -232,8 +251,8 @@ func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) MarshalBinary() ([]
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationScenicSpotTourismInfo) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2ApplicationScenicSpotTourismInfo
+func (m *PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_tourism_picture.go
similarity index 58%
rename from tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go
rename to tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_tourism_picture.go
index a68cfa15..8e516270 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go
+++ b/tourism/v2/models/p_t_x_service_d_t_o_tourism_specification_v2_tourism_picture.go
@@ -10,39 +10,51 @@ import (
"github.com/go-openapi/swag"
)
-// ServiceDTOVersion2ApplicationTourismPicture TourismPicture
+// PTXServiceDTOTourismSpecificationV2TourismPicture TourismPicture
//
// 觀光照片資料型別
//
-// swagger:model Service.DTO.Version2.Application.TourismPicture
-type ServiceDTOVersion2ApplicationTourismPicture struct {
+// swagger:model PTX.Service.DTO.Tourism.Specification.V2.TourismPicture
+type PTXServiceDTOTourismSpecificationV2TourismPicture struct {
+ // String
+ //
// 照片說明1
PictureDescription1 string `json:"PictureDescription1,omitempty"`
+ // String
+ //
// 照片說明2
PictureDescription2 string `json:"PictureDescription2,omitempty"`
+ // String
+ //
// 照片說明3
PictureDescription3 string `json:"PictureDescription3,omitempty"`
+ // String
+ //
// 照片連結網址1
PictureUrl1 string `json:"PictureUrl1,omitempty"`
+ // String
+ //
// 照片連結網址2
PictureUrl2 string `json:"PictureUrl2,omitempty"`
+ // String
+ //
// 照片連結網址3
PictureUrl3 string `json:"PictureUrl3,omitempty"`
}
-// Validate validates this service d t o version2 application tourism picture
-func (m *ServiceDTOVersion2ApplicationTourismPicture) Validate(formats strfmt.Registry) error {
+// Validate validates this p t x service d t o tourism specification v2 tourism picture
+func (m *PTXServiceDTOTourismSpecificationV2TourismPicture) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationTourismPicture) MarshalBinary() ([]byte, error) {
+func (m *PTXServiceDTOTourismSpecificationV2TourismPicture) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -50,8 +62,8 @@ func (m *ServiceDTOVersion2ApplicationTourismPicture) MarshalBinary() ([]byte, e
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2ApplicationTourismPicture) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2ApplicationTourismPicture
+func (m *PTXServiceDTOTourismSpecificationV2TourismPicture) UnmarshalBinary(b []byte) error {
+ var res PTXServiceDTOTourismSpecificationV2TourismPicture
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
diff --git a/tourism/v2/models/service_d_t_o_version2_base_name_type.go b/tourism/v2/models/service_d_t_o_version2_base_name_type.go
deleted file mode 100644
index 56abdf5a..00000000
--- a/tourism/v2/models/service_d_t_o_version2_base_name_type.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2BaseNameType NameType
-//
-// 名稱資料型別
-//
-// swagger:model Service.DTO.Version2.Base.NameType
-type ServiceDTOVersion2BaseNameType struct {
-
- // 英文名稱
- En string `json:"En,omitempty"`
-
- // 中文繁體名稱
- ZhTw string `json:"Zh_tw,omitempty"`
-}
-
-// Validate validates this service d t o version2 base name type
-func (m *ServiceDTOVersion2BaseNameType) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BaseNameType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BaseNameType
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/tourism/v2/models/service_d_t_o_version2_base_point_type.go b/tourism/v2/models/service_d_t_o_version2_base_point_type.go
deleted file mode 100644
index 171a47ea..00000000
--- a/tourism/v2/models/service_d_t_o_version2_base_point_type.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// ServiceDTOVersion2BasePointType PointType
-//
-// 座標資料型別
-//
-// swagger:model Service.DTO.Version2.Base.PointType
-type ServiceDTOVersion2BasePointType struct {
-
- // 位置緯度(WGS84)
- PositionLat float64 `json:"PositionLat,omitempty"`
-
- // 位置經度(WGS84)
- PositionLon float64 `json:"PositionLon,omitempty"`
-}
-
-// Validate validates this service d t o version2 base point type
-func (m *ServiceDTOVersion2BasePointType) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2BasePointType) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2BasePointType
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}