diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63e54b1c..8d8ed938 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,19 @@
## [Unreleased]
+## [0.5.0] - 2020-06-18
+
+### Added
+- 金門公車資料服務。
+- 高雄捷運、高雄輕軌V2版News、Alert資料服務上架。
+- 淡海輕軌V2版資料服務上架。
+- 捷運環狀線V2版資料服務上架。
+- 軌道資料服務更新。
+
+### Fixed
+- 觀光台灣好行預估到站資料服務。
+- 航空資料服務更新。
+
## [0.4.0] - 2020-01-23
### Added
diff --git a/air/v2/client/air/air_api_airline1_parameters.go b/air/v2/client/air/air_api_airline1_parameters.go
index 464e5517..f1b6310c 100644
--- a/air/v2/client/air/air_api_airline1_parameters.go
+++ b/air/v2/client/air/air_api_airline1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIAirline1Params creates a new AirAPIAirline1Params object
diff --git a/air/v2/client/air/air_api_airline1_responses.go b/air/v2/client/air/air_api_airline1_responses.go
index f0b719f0..48691ae9 100644
--- a/air/v2/client/air/air_api_airline1_responses.go
+++ b/air/v2/client/air/air_api_airline1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIAirline1Reader is a Reader for the AirAPIAirline1 structure.
diff --git a/air/v2/client/air/air_api_airline_parameters.go b/air/v2/client/air/air_api_airline_parameters.go
index 1440db36..876a2de7 100644
--- a/air/v2/client/air/air_api_airline_parameters.go
+++ b/air/v2/client/air/air_api_airline_parameters.go
@@ -13,8 +13,7 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// NewAirAPIAirlineParams creates a new AirAPIAirlineParams object
diff --git a/air/v2/client/air/air_api_airline_responses.go b/air/v2/client/air/air_api_airline_responses.go
index 2c710a5d..783dead5 100644
--- a/air/v2/client/air/air_api_airline_responses.go
+++ b/air/v2/client/air/air_api_airline_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIAirlineReader is a Reader for the AirAPIAirline structure.
diff --git a/air/v2/client/air/air_api_airport1_parameters.go b/air/v2/client/air/air_api_airport1_parameters.go
index 0d08e64d..e58504ba 100644
--- a/air/v2/client/air/air_api_airport1_parameters.go
+++ b/air/v2/client/air/air_api_airport1_parameters.go
@@ -13,8 +13,7 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// NewAirAPIAirport1Params creates a new AirAPIAirport1Params object
diff --git a/air/v2/client/air/air_api_airport1_responses.go b/air/v2/client/air/air_api_airport1_responses.go
index b4113f3c..b677cc9b 100644
--- a/air/v2/client/air/air_api_airport1_responses.go
+++ b/air/v2/client/air/air_api_airport1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIAirport1Reader is a Reader for the AirAPIAirport1 structure.
diff --git a/air/v2/client/air/air_api_airport_parameters.go b/air/v2/client/air/air_api_airport_parameters.go
index 66bcf309..5b227a32 100644
--- a/air/v2/client/air/air_api_airport_parameters.go
+++ b/air/v2/client/air/air_api_airport_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIAirportParams creates a new AirAPIAirportParams object
diff --git a/air/v2/client/air/air_api_airport_responses.go b/air/v2/client/air/air_api_airport_responses.go
index ee94d535..2aa9cedf 100644
--- a/air/v2/client/air/air_api_airport_responses.go
+++ b/air/v2/client/air/air_api_airport_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIAirportReader is a Reader for the AirAPIAirport structure.
diff --git a/air/v2/client/air/air_api_arrival1_parameters.go b/air/v2/client/air/air_api_arrival1_parameters.go
index aaa99d9e..44263369 100644
--- a/air/v2/client/air/air_api_arrival1_parameters.go
+++ b/air/v2/client/air/air_api_arrival1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIArrival1Params creates a new AirAPIArrival1Params object
@@ -109,6 +108,11 @@ type AirAPIArrival1Params struct {
*/
IATA string
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -225,6 +229,17 @@ func (o *AirAPIArrival1Params) SetIATA(iATA string) {
o.IATA = iATA
}
+// WithIsCargo adds the isCargo to the air Api arrival 1 params
+func (o *AirAPIArrival1Params) WithIsCargo(isCargo *bool) *AirAPIArrival1Params {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api arrival 1 params
+func (o *AirAPIArrival1Params) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIArrival1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -327,6 +342,22 @@ func (o *AirAPIArrival1Params) WriteToRequest(r runtime.ClientRequest, reg strfm
return err
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_arrival1_responses.go b/air/v2/client/air/air_api_arrival1_responses.go
index 5e4098b6..83ccac71 100644
--- a/air/v2/client/air/air_api_arrival1_responses.go
+++ b/air/v2/client/air/air_api_arrival1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIArrival1Reader is a Reader for the AirAPIArrival1 structure.
diff --git a/air/v2/client/air/air_api_arrival_parameters.go b/air/v2/client/air/air_api_arrival_parameters.go
index 81b39117..ee19ef07 100644
--- a/air/v2/client/air/air_api_arrival_parameters.go
+++ b/air/v2/client/air/air_api_arrival_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIArrivalParams creates a new AirAPIArrivalParams object
@@ -104,6 +103,11 @@ type AirAPIArrivalParams struct {
*/
DollarTop *int64
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -209,6 +213,17 @@ func (o *AirAPIArrivalParams) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
+// WithIsCargo adds the isCargo to the air Api arrival params
+func (o *AirAPIArrivalParams) WithIsCargo(isCargo *bool) *AirAPIArrivalParams {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api arrival params
+func (o *AirAPIArrivalParams) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIArrivalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -306,6 +321,22 @@ func (o *AirAPIArrivalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_arrival_responses.go b/air/v2/client/air/air_api_arrival_responses.go
index d5c77fc6..557fc195 100644
--- a/air/v2/client/air/air_api_arrival_responses.go
+++ b/air/v2/client/air/air_api_arrival_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIArrivalReader is a Reader for the AirAPIArrival structure.
diff --git a/air/v2/client/air/air_api_departure1_parameters.go b/air/v2/client/air/air_api_departure1_parameters.go
index f5ce662d..8ece3e3f 100644
--- a/air/v2/client/air/air_api_departure1_parameters.go
+++ b/air/v2/client/air/air_api_departure1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIDeparture1Params creates a new AirAPIDeparture1Params object
@@ -109,6 +108,11 @@ type AirAPIDeparture1Params struct {
*/
IATA string
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -225,6 +229,17 @@ func (o *AirAPIDeparture1Params) SetIATA(iATA string) {
o.IATA = iATA
}
+// WithIsCargo adds the isCargo to the air Api departure 1 params
+func (o *AirAPIDeparture1Params) WithIsCargo(isCargo *bool) *AirAPIDeparture1Params {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api departure 1 params
+func (o *AirAPIDeparture1Params) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIDeparture1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -327,6 +342,22 @@ func (o *AirAPIDeparture1Params) WriteToRequest(r runtime.ClientRequest, reg str
return err
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_departure1_responses.go b/air/v2/client/air/air_api_departure1_responses.go
index d22ca01d..9da63962 100644
--- a/air/v2/client/air/air_api_departure1_responses.go
+++ b/air/v2/client/air/air_api_departure1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIDeparture1Reader is a Reader for the AirAPIDeparture1 structure.
diff --git a/air/v2/client/air/air_api_departure_parameters.go b/air/v2/client/air/air_api_departure_parameters.go
index 3de3d42e..4c15c7fd 100644
--- a/air/v2/client/air/air_api_departure_parameters.go
+++ b/air/v2/client/air/air_api_departure_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIDepartureParams creates a new AirAPIDepartureParams object
@@ -104,6 +103,11 @@ type AirAPIDepartureParams struct {
*/
DollarTop *int64
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -209,6 +213,17 @@ func (o *AirAPIDepartureParams) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
+// WithIsCargo adds the isCargo to the air Api departure params
+func (o *AirAPIDepartureParams) WithIsCargo(isCargo *bool) *AirAPIDepartureParams {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api departure params
+func (o *AirAPIDepartureParams) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIDepartureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -306,6 +321,22 @@ func (o *AirAPIDepartureParams) WriteToRequest(r runtime.ClientRequest, reg strf
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_departure_responses.go b/air/v2/client/air/air_api_departure_responses.go
index c565b514..a230a831 100644
--- a/air/v2/client/air/air_api_departure_responses.go
+++ b/air/v2/client/air/air_api_departure_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIDepartureReader is a Reader for the AirAPIDeparture structure.
diff --git a/air/v2/client/air/air_api_domestic_parameters.go b/air/v2/client/air/air_api_domestic_parameters.go
index ff3241ff..43cfff34 100644
--- a/air/v2/client/air/air_api_domestic_parameters.go
+++ b/air/v2/client/air/air_api_domestic_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIDomesticParams creates a new AirAPIDomesticParams object
diff --git a/air/v2/client/air/air_api_domestic_responses.go b/air/v2/client/air/air_api_domestic_responses.go
index ce3deb78..fbd7ed4e 100644
--- a/air/v2/client/air/air_api_domestic_responses.go
+++ b/air/v2/client/air/air_api_domestic_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIDomesticReader is a Reader for the AirAPIDomestic structure.
diff --git a/air/v2/client/air/air_api_f_id_s1_parameters.go b/air/v2/client/air/air_api_f_id_s1_parameters.go
index 08fdc9ec..d280aa8c 100644
--- a/air/v2/client/air/air_api_f_id_s1_parameters.go
+++ b/air/v2/client/air/air_api_f_id_s1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIFIDS1Params creates a new AirAPIFIDS1Params object
diff --git a/air/v2/client/air/air_api_f_id_s1_responses.go b/air/v2/client/air/air_api_f_id_s1_responses.go
index 364c62ad..090841dc 100644
--- a/air/v2/client/air/air_api_f_id_s1_responses.go
+++ b/air/v2/client/air/air_api_f_id_s1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIFIDS1Reader is a Reader for the AirAPIFIDS1 structure.
diff --git a/air/v2/client/air/air_api_f_id_s_parameters.go b/air/v2/client/air/air_api_f_id_s_parameters.go
index 3bb8d192..772fe5a1 100644
--- a/air/v2/client/air/air_api_f_id_s_parameters.go
+++ b/air/v2/client/air/air_api_f_id_s_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIFIDSParams creates a new AirAPIFIDSParams object
diff --git a/air/v2/client/air/air_api_f_id_s_responses.go b/air/v2/client/air/air_api_f_id_s_responses.go
index 8209c35e..a2477167 100644
--- a/air/v2/client/air/air_api_f_id_s_responses.go
+++ b/air/v2/client/air/air_api_f_id_s_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIFIDSReader is a Reader for the AirAPIFIDS structure.
diff --git a/air/v2/client/air/air_api_flight1_parameters.go b/air/v2/client/air/air_api_flight1_parameters.go
index d8a1feff..877a2162 100644
--- a/air/v2/client/air/air_api_flight1_parameters.go
+++ b/air/v2/client/air/air_api_flight1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIFlight1Params creates a new AirAPIFlight1Params object
@@ -109,6 +108,11 @@ type AirAPIFlight1Params struct {
*/
FlightNo string
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -225,6 +229,17 @@ func (o *AirAPIFlight1Params) SetFlightNo(flightNo string) {
o.FlightNo = flightNo
}
+// WithIsCargo adds the isCargo to the air Api flight 1 params
+func (o *AirAPIFlight1Params) WithIsCargo(isCargo *bool) *AirAPIFlight1Params {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api flight 1 params
+func (o *AirAPIFlight1Params) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIFlight1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -327,6 +342,22 @@ func (o *AirAPIFlight1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt
return err
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_flight1_responses.go b/air/v2/client/air/air_api_flight1_responses.go
index aaff0910..fd7f8c00 100644
--- a/air/v2/client/air/air_api_flight1_responses.go
+++ b/air/v2/client/air/air_api_flight1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIFlight1Reader is a Reader for the AirAPIFlight1 structure.
diff --git a/air/v2/client/air/air_api_flight_parameters.go b/air/v2/client/air/air_api_flight_parameters.go
index 27b208f0..55ae2f9c 100644
--- a/air/v2/client/air/air_api_flight_parameters.go
+++ b/air/v2/client/air/air_api_flight_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIFlightParams creates a new AirAPIFlightParams object
@@ -104,6 +103,11 @@ type AirAPIFlightParams struct {
*/
DollarTop *int64
+ /*IsCargo
+ 是否為貨機
+
+ */
+ IsCargo *bool
timeout time.Duration
Context context.Context
@@ -209,6 +213,17 @@ func (o *AirAPIFlightParams) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
+// WithIsCargo adds the isCargo to the air Api flight params
+func (o *AirAPIFlightParams) WithIsCargo(isCargo *bool) *AirAPIFlightParams {
+ o.SetIsCargo(isCargo)
+ return o
+}
+
+// SetIsCargo adds the isCargo to the air Api flight params
+func (o *AirAPIFlightParams) SetIsCargo(isCargo *bool) {
+ o.IsCargo = isCargo
+}
+
// WriteToRequest writes these params to a swagger request
func (o *AirAPIFlightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -306,6 +321,22 @@ func (o *AirAPIFlightParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.
}
+ if o.IsCargo != nil {
+
+ // query param IsCargo
+ var qrIsCargo bool
+ if o.IsCargo != nil {
+ qrIsCargo = *o.IsCargo
+ }
+ qIsCargo := swag.FormatBool(qrIsCargo)
+ if qIsCargo != "" {
+ if err := r.SetQueryParam("IsCargo", qIsCargo); err != nil {
+ return err
+ }
+ }
+
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/air/v2/client/air/air_api_flight_responses.go b/air/v2/client/air/air_api_flight_responses.go
index 882de3f5..9735258c 100644
--- a/air/v2/client/air/air_api_flight_responses.go
+++ b/air/v2/client/air/air_api_flight_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIFlightReader is a Reader for the AirAPIFlight structure.
diff --git a/air/v2/client/air/air_api_international_parameters.go b/air/v2/client/air/air_api_international_parameters.go
index bfdea938..62dd8521 100644
--- a/air/v2/client/air/air_api_international_parameters.go
+++ b/air/v2/client/air/air_api_international_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIInternationalParams creates a new AirAPIInternationalParams object
diff --git a/air/v2/client/air/air_api_international_responses.go b/air/v2/client/air/air_api_international_responses.go
index acf1439d..01a6c829 100644
--- a/air/v2/client/air/air_api_international_responses.go
+++ b/air/v2/client/air/air_api_international_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIInternationalReader is a Reader for the AirAPIInternational structure.
diff --git a/air/v2/client/air/air_api_m_e_t_a_r1_parameters.go b/air/v2/client/air/air_api_m_e_t_a_r1_parameters.go
index 5e60bd09..ae1898b8 100644
--- a/air/v2/client/air/air_api_m_e_t_a_r1_parameters.go
+++ b/air/v2/client/air/air_api_m_e_t_a_r1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIMETAR1Params creates a new AirAPIMETAR1Params object
diff --git a/air/v2/client/air/air_api_m_e_t_a_r1_responses.go b/air/v2/client/air/air_api_m_e_t_a_r1_responses.go
index 7bd3d3af..ded67545 100644
--- a/air/v2/client/air/air_api_m_e_t_a_r1_responses.go
+++ b/air/v2/client/air/air_api_m_e_t_a_r1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIMETAR1Reader is a Reader for the AirAPIMETAR1 structure.
diff --git a/air/v2/client/air/air_api_m_e_t_a_r_parameters.go b/air/v2/client/air/air_api_m_e_t_a_r_parameters.go
index 9a7a99d5..31bcfab4 100644
--- a/air/v2/client/air/air_api_m_e_t_a_r_parameters.go
+++ b/air/v2/client/air/air_api_m_e_t_a_r_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAirAPIMETARParams creates a new AirAPIMETARParams object
diff --git a/air/v2/client/air/air_api_m_e_t_a_r_responses.go b/air/v2/client/air/air_api_m_e_t_a_r_responses.go
index daaaf008..dcb08b99 100644
--- a/air/v2/client/air/air_api_m_e_t_a_r_responses.go
+++ b/air/v2/client/air/air_api_m_e_t_a_r_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/air/v2/models"
+ "github.com/minchao/go-ptx/air/v2/models"
)
// AirAPIMETARReader is a Reader for the AirAPIMETAR structure.
diff --git a/air/v2/client/air/air_client.go b/air/v2/client/air/air_client.go
index 1160ee40..18151e6f 100644
--- a/air/v2/client/air/air_client.go
+++ b/air/v2/client/air/air_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new air API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,47 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ AirAPIAirline(params *AirAPIAirlineParams) (*AirAPIAirlineOK, error)
+
+ AirAPIAirline1(params *AirAPIAirline1Params) (*AirAPIAirline1OK, error)
+
+ AirAPIAirport(params *AirAPIAirportParams) (*AirAPIAirportOK, error)
+
+ AirAPIAirport1(params *AirAPIAirport1Params) (*AirAPIAirport1OK, error)
+
+ AirAPIArrival(params *AirAPIArrivalParams) (*AirAPIArrivalOK, error)
+
+ AirAPIArrival1(params *AirAPIArrival1Params) (*AirAPIArrival1OK, error)
+
+ AirAPIDeparture(params *AirAPIDepartureParams) (*AirAPIDepartureOK, error)
+
+ AirAPIDeparture1(params *AirAPIDeparture1Params) (*AirAPIDeparture1OK, error)
+
+ AirAPIDomestic(params *AirAPIDomesticParams) (*AirAPIDomesticOK, error)
+
+ AirAPIFIDS(params *AirAPIFIDSParams) (*AirAPIFIDSOK, error)
+
+ AirAPIFIDS1(params *AirAPIFIDS1Params) (*AirAPIFIDS1OK, error)
+
+ AirAPIFlight(params *AirAPIFlightParams) (*AirAPIFlightOK, error)
+
+ AirAPIFlight1(params *AirAPIFlight1Params) (*AirAPIFlight1OK, error)
+
+ AirAPIInternational(params *AirAPIInternationalParams) (*AirAPIInternationalOK, error)
+
+ AirAPIMETAR(params *AirAPIMETARParams) (*AirAPIMETAROK, error)
+
+ AirAPIMETAR1(params *AirAPIMETAR1Params) (*AirAPIMETAR1OK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-AirAPIAirline 取得指定s 航空公司 資料
+ AirAPIAirline 取得指定s 航空公司 資料
-取得指定[航空公司]資料
+ 取得指定[航空公司]資料
*/
func (a *Client) AirAPIAirline(params *AirAPIAirlineParams) (*AirAPIAirlineOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +78,7 @@ func (a *Client) AirAPIAirline(params *AirAPIAirlineParams) (*AirAPIAirlineOK, e
Method: "GET",
PathPattern: "/v2/Air/Airline/{IATA}",
ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIAirlineReader{formats: a.formats},
@@ -63,9 +99,9 @@ func (a *Client) AirAPIAirline(params *AirAPIAirlineParams) (*AirAPIAirlineOK, e
}
/*
-AirAPIAirline1 取得航空公司資料s
+ AirAPIAirline1 取得航空公司資料s
-取得所有航空公司資料
+ 取得所有航空公司資料
*/
func (a *Client) AirAPIAirline1(params *AirAPIAirline1Params) (*AirAPIAirline1OK, error) {
// TODO: Validate the params before sending
@@ -78,7 +114,7 @@ func (a *Client) AirAPIAirline1(params *AirAPIAirline1Params) (*AirAPIAirline1OK
Method: "GET",
PathPattern: "/v2/Air/Airline",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIAirline1Reader{formats: a.formats},
@@ -99,9 +135,9 @@ func (a *Client) AirAPIAirline1(params *AirAPIAirline1Params) (*AirAPIAirline1OK
}
/*
-AirAPIAirport 取得機場資料s
+ AirAPIAirport 取得機場資料s
-取得所有機場資料
+ 取得所有機場資料
*/
func (a *Client) AirAPIAirport(params *AirAPIAirportParams) (*AirAPIAirportOK, error) {
// TODO: Validate the params before sending
@@ -114,7 +150,7 @@ func (a *Client) AirAPIAirport(params *AirAPIAirportParams) (*AirAPIAirportOK, e
Method: "GET",
PathPattern: "/v2/Air/Airport",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIAirportReader{formats: a.formats},
@@ -135,9 +171,9 @@ func (a *Client) AirAPIAirport(params *AirAPIAirportParams) (*AirAPIAirportOK, e
}
/*
-AirAPIAirport1 取得指定s 機場 資料
+ AirAPIAirport1 取得指定s 機場 資料
-取得指定[機場]資料
+ 取得指定[機場]資料
*/
func (a *Client) AirAPIAirport1(params *AirAPIAirport1Params) (*AirAPIAirport1OK, error) {
// TODO: Validate the params before sending
@@ -150,7 +186,7 @@ func (a *Client) AirAPIAirport1(params *AirAPIAirport1Params) (*AirAPIAirport1OK
Method: "GET",
PathPattern: "/v2/Air/Airport/{IATA}",
ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIAirport1Reader{formats: a.formats},
@@ -171,9 +207,9 @@ func (a *Client) AirAPIAirport1(params *AirAPIAirport1Params) (*AirAPIAirport1OK
}
/*
-AirAPIArrival 取得機場的即時入境航班s
+ AirAPIArrival 取得機場的即時入境航班s
-取得機場的即時入境航班
+ 取得機場的即時入境航班
*/
func (a *Client) AirAPIArrival(params *AirAPIArrivalParams) (*AirAPIArrivalOK, error) {
// TODO: Validate the params before sending
@@ -186,7 +222,7 @@ func (a *Client) AirAPIArrival(params *AirAPIArrivalParams) (*AirAPIArrivalOK, e
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport/Arrival",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIArrivalReader{formats: a.formats},
@@ -207,9 +243,9 @@ func (a *Client) AirAPIArrival(params *AirAPIArrivalParams) (*AirAPIArrivalOK, e
}
/*
-AirAPIArrival1 取得指定s 機場的即時入境航班
+ AirAPIArrival1 取得指定s 機場的即時入境航班
-取得[指定機場]的即時入境航班
+ 取得[指定機場]的即時入境航班
*/
func (a *Client) AirAPIArrival1(params *AirAPIArrival1Params) (*AirAPIArrival1OK, error) {
// TODO: Validate the params before sending
@@ -222,7 +258,7 @@ func (a *Client) AirAPIArrival1(params *AirAPIArrival1Params) (*AirAPIArrival1OK
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport/Arrival/{IATA}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIArrival1Reader{formats: a.formats},
@@ -243,9 +279,9 @@ func (a *Client) AirAPIArrival1(params *AirAPIArrival1Params) (*AirAPIArrival1OK
}
/*
-AirAPIDeparture 取得機場的即時出境航班s
+ AirAPIDeparture 取得機場的即時出境航班s
-取得機場的即時出境航班
+ 取得機場的即時出境航班
*/
func (a *Client) AirAPIDeparture(params *AirAPIDepartureParams) (*AirAPIDepartureOK, error) {
// TODO: Validate the params before sending
@@ -258,7 +294,7 @@ func (a *Client) AirAPIDeparture(params *AirAPIDepartureParams) (*AirAPIDepartur
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport/Departure",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIDepartureReader{formats: a.formats},
@@ -279,9 +315,9 @@ func (a *Client) AirAPIDeparture(params *AirAPIDepartureParams) (*AirAPIDepartur
}
/*
-AirAPIDeparture1 取得指定s 機場的即時出境航班
+ AirAPIDeparture1 取得指定s 機場的即時出境航班
-取得指定的[機場即時出境航班]
+ 取得指定的[機場即時出境航班]
*/
func (a *Client) AirAPIDeparture1(params *AirAPIDeparture1Params) (*AirAPIDeparture1OK, error) {
// TODO: Validate the params before sending
@@ -294,7 +330,7 @@ func (a *Client) AirAPIDeparture1(params *AirAPIDeparture1Params) (*AirAPIDepart
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport/Departure/{IATA}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIDeparture1Reader{formats: a.formats},
@@ -315,7 +351,7 @@ func (a *Client) AirAPIDeparture1(params *AirAPIDeparture1Params) (*AirAPIDepart
}
/*
-AirAPIDomestic 取得國內航空定期時刻表s
+ AirAPIDomestic 取得國內航空定期時刻表s
*/
func (a *Client) AirAPIDomestic(params *AirAPIDomesticParams) (*AirAPIDomesticOK, error) {
// TODO: Validate the params before sending
@@ -328,7 +364,7 @@ func (a *Client) AirAPIDomestic(params *AirAPIDomesticParams) (*AirAPIDomesticOK
Method: "GET",
PathPattern: "/v2/Air/GeneralSchedule/Domestic",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIDomesticReader{formats: a.formats},
@@ -349,9 +385,9 @@ func (a *Client) AirAPIDomestic(params *AirAPIDomesticParams) (*AirAPIDomesticOK
}
/*
-AirAPIFIDS 取得機場的即時航班資料s
+ AirAPIFIDS 取得機場的即時航班資料s
-取得即時航班資料
+ 取得即時航班資料
*/
func (a *Client) AirAPIFIDS(params *AirAPIFIDSParams) (*AirAPIFIDSOK, error) {
// TODO: Validate the params before sending
@@ -364,7 +400,7 @@ func (a *Client) AirAPIFIDS(params *AirAPIFIDSParams) (*AirAPIFIDSOK, error) {
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIFIDSReader{formats: a.formats},
@@ -385,9 +421,9 @@ func (a *Client) AirAPIFIDS(params *AirAPIFIDSParams) (*AirAPIFIDSOK, error) {
}
/*
-AirAPIFIDS1 取得指定s 機場的即時航班 資料
+ AirAPIFIDS1 取得指定s 機場的即時航班 資料
-取得指定[機場的即時航班]資料
+ 取得指定[機場的即時航班]資料
*/
func (a *Client) AirAPIFIDS1(params *AirAPIFIDS1Params) (*AirAPIFIDS1OK, error) {
// TODO: Validate the params before sending
@@ -400,7 +436,7 @@ func (a *Client) AirAPIFIDS1(params *AirAPIFIDS1Params) (*AirAPIFIDS1OK, error)
Method: "GET",
PathPattern: "/v2/Air/FIDS/Airport/{IATA}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIFIDS1Reader{formats: a.formats},
@@ -421,9 +457,9 @@ func (a *Client) AirAPIFIDS1(params *AirAPIFIDS1Params) (*AirAPIFIDS1OK, error)
}
/*
-AirAPIFlight 取得即時航班資料s
+ AirAPIFlight 取得即時航班資料s
-取得即時航班資料
+ 取得即時航班資料
*/
func (a *Client) AirAPIFlight(params *AirAPIFlightParams) (*AirAPIFlightOK, error) {
// TODO: Validate the params before sending
@@ -436,7 +472,7 @@ func (a *Client) AirAPIFlight(params *AirAPIFlightParams) (*AirAPIFlightOK, erro
Method: "GET",
PathPattern: "/v2/Air/FIDS/Flight",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIFlightReader{formats: a.formats},
@@ -457,7 +493,7 @@ func (a *Client) AirAPIFlight(params *AirAPIFlightParams) (*AirAPIFlightOK, erro
}
/*
-AirAPIFlight1 取得指定s 即時航班 資料
+ AirAPIFlight1 取得指定s 即時航班 資料
*/
func (a *Client) AirAPIFlight1(params *AirAPIFlight1Params) (*AirAPIFlight1OK, error) {
// TODO: Validate the params before sending
@@ -470,7 +506,7 @@ func (a *Client) AirAPIFlight1(params *AirAPIFlight1Params) (*AirAPIFlight1OK, e
Method: "GET",
PathPattern: "/v2/Air/FIDS/Flight/{FlightNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIFlight1Reader{formats: a.formats},
@@ -491,7 +527,7 @@ func (a *Client) AirAPIFlight1(params *AirAPIFlight1Params) (*AirAPIFlight1OK, e
}
/*
-AirAPIInternational 取得國際航空定期時刻表s
+ AirAPIInternational 取得國際航空定期時刻表s
*/
func (a *Client) AirAPIInternational(params *AirAPIInternationalParams) (*AirAPIInternationalOK, error) {
// TODO: Validate the params before sending
@@ -504,7 +540,7 @@ func (a *Client) AirAPIInternational(params *AirAPIInternationalParams) (*AirAPI
Method: "GET",
PathPattern: "/v2/Air/GeneralSchedule/International",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIInternationalReader{formats: a.formats},
@@ -525,9 +561,9 @@ func (a *Client) AirAPIInternational(params *AirAPIInternationalParams) (*AirAPI
}
/*
-AirAPIMETAR 取得s 國內機場 氣象資訊觀測資料
+ AirAPIMETAR 取得s 國內機場 氣象資訊觀測資料
-取得[國內機場]氣象資訊觀測資料
+ 取得[國內機場]氣象資訊觀測資料
目前提供之機場氣象觀測站代碼清單
RCSS:松山機場 RCKH:高雄機場
RCTP:桃園機場 RCMT:北竿機場
@@ -548,7 +584,7 @@ func (a *Client) AirAPIMETAR(params *AirAPIMETARParams) (*AirAPIMETAROK, error)
Method: "GET",
PathPattern: "/v2/Air/METAR/Airport",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIMETARReader{formats: a.formats},
@@ -569,9 +605,9 @@ func (a *Client) AirAPIMETAR(params *AirAPIMETARParams) (*AirAPIMETAROK, error)
}
/*
-AirAPIMETAR1 取得指定s 國內機場 氣象資訊觀測資料
+ AirAPIMETAR1 取得指定s 國內機場 氣象資訊觀測資料
-取得指定[國內機場]氣象資訊觀測資料
+ 取得指定[國內機場]氣象資訊觀測資料
*/
func (a *Client) AirAPIMETAR1(params *AirAPIMETAR1Params) (*AirAPIMETAR1OK, error) {
// TODO: Validate the params before sending
@@ -584,7 +620,7 @@ func (a *Client) AirAPIMETAR1(params *AirAPIMETAR1Params) (*AirAPIMETAR1OK, erro
Method: "GET",
PathPattern: "/v2/Air/METAR/Airport/{IATA}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AirAPIMETAR1Reader{formats: a.formats},
diff --git a/air/v2/client/m_o_t_c_transport_api_v2_client.go b/air/v2/client/m_o_t_c_transport_api_v2_client.go
index d50bc3d5..e722950a 100644
--- a/air/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/air/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/air/v2/client/air"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.Air = air.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- Air *air.Client
+ Air air.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Air.SetTransport(transport)
-
}
diff --git a/air/v2/models/service_d_t_o_version2_application_m_e_t_a_r.go b/air/v2/models/service_d_t_o_version2_application_m_e_t_a_r.go
index ccc7cffb..e33b7523 100644
--- a/air/v2/models/service_d_t_o_version2_application_m_e_t_a_r.go
+++ b/air/v2/models/service_d_t_o_version2_application_m_e_t_a_r.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2ApplicationMETAR METAR
+//
// swagger:model Service.DTO.Version2.Application.METAR
type ServiceDTOVersion2ApplicationMETAR struct {
diff --git a/air/v2/models/service_d_t_o_version2_aviation_airline.go b/air/v2/models/service_d_t_o_version2_aviation_airline.go
index 2b6efab8..7ea0792e 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_airline.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_airline.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationAirline Airline
//
// 航空公司資料
+//
// swagger:model Service.DTO.Version2.Aviation.Airline
type ServiceDTOVersion2AviationAirline struct {
diff --git a/air/v2/models/service_d_t_o_version2_aviation_airport.go b/air/v2/models/service_d_t_o_version2_aviation_airport.go
index 20c437de..a6a551ec 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_airport.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_airport.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationAirport Airport
//
// 機場資料
+//
// swagger:model Service.DTO.Version2.Aviation.Airport
type ServiceDTOVersion2AviationAirport struct {
diff --git a/air/v2/models/service_d_t_o_version2_aviation_airport_f_id_s.go b/air/v2/models/service_d_t_o_version2_aviation_airport_f_id_s.go
index 7d1e1855..19e8da7a 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_airport_f_id_s.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_airport_f_id_s.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2AviationAirportFIDS Airport_FIDS
//
// 航班顯示資料(以機場角度)
+//
// swagger:model Service.DTO.Version2.Aviation.Airport_FIDS
type ServiceDTOVersion2AviationAirportFIDS struct {
diff --git a/air/v2/models/service_d_t_o_version2_aviation_code_share.go b/air/v2/models/service_d_t_o_version2_aviation_code_share.go
index b918d5ca..75b36d3c 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_code_share.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_code_share.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationCodeShare CodeShare
//
// 共用班號
+//
// swagger:model Service.DTO.Version2.Aviation.CodeShare
type ServiceDTOVersion2AviationCodeShare struct {
@@ -23,7 +23,7 @@ type ServiceDTOVersion2AviationCodeShare struct {
// Required: true
AirlineID *string `json:"AirlineID"`
- // 班機號碼
+ // 航機班號(不包含航空公司的AirlineID,僅有班號數字)
// Required: true
FlightNumber *string `json:"FlightNumber"`
}
diff --git a/air/v2/models/service_d_t_o_version2_aviation_f_id_s.go b/air/v2/models/service_d_t_o_version2_aviation_f_id_s.go
index 74b2e07d..12aa37a9 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_f_id_s.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_f_id_s.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationFIDS FIDS
//
// 航班顯示資料
+//
// swagger:model Service.DTO.Version2.Aviation.FIDS
type ServiceDTOVersion2AviationFIDS struct {
@@ -45,7 +45,10 @@ type ServiceDTOVersion2AviationFIDS struct {
// Required: true
ArrivalAirportID *string `json:"ArrivalAirportID"`
- // 抵達登機門
+ // 抵達停機坪(僅貨機提供)
+ ArrivalApron string `json:"ArrivalApron,omitempty"`
+
+ // 抵達登機門(僅客機提供)
ArrivalGate string `json:"ArrivalGate,omitempty"`
// 航班屬性狀態,為該機場觀點的狀態
@@ -70,7 +73,10 @@ type ServiceDTOVersion2AviationFIDS struct {
// Required: true
DepartureAirportID *string `json:"DepartureAirportID"`
- // 出發登機門
+ // 出發停機坪(僅貨機提供)
+ DepartureApron string `json:"DepartureApron,omitempty"`
+
+ // 出發登機門(僅客機提供)
DepartureGate string `json:"DepartureGate,omitempty"`
// 航班屬性狀態,為第三方觀點的狀態(資料來源:民航局)
@@ -98,7 +104,7 @@ type ServiceDTOVersion2AviationFIDS struct {
// Required: true
FlightDate *string `json:"FlightDate"`
- // 航機班號
+ // 航機班號(不包含航空公司的AirlineID,僅有班號數字)
// Required: true
FlightNumber *string `json:"FlightNumber"`
diff --git a/air/v2/models/service_d_t_o_version2_aviation_f_id_s_arrival.go b/air/v2/models/service_d_t_o_version2_aviation_f_id_s_arrival.go
index 527a9670..8baec662 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_f_id_s_arrival.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_f_id_s_arrival.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationFIDSArrival FIDSArrival
//
// 抵達航班顯示資料
+//
// swagger:model Service.DTO.Version2.Aviation.FIDSArrival
type ServiceDTOVersion2AviationFIDSArrival struct {
@@ -36,6 +36,9 @@ type ServiceDTOVersion2AviationFIDSArrival struct {
// Required: true
AirlineID *string `json:"AirlineID"`
+ // 停機坪(僅貨機提供)
+ Apron string `json:"Apron,omitempty"`
+
// 目的地機場IATA國際代碼
// Required: true
ArrivalAirportID *string `json:"ArrivalAirportID"`
@@ -46,10 +49,10 @@ type ServiceDTOVersion2AviationFIDSArrival struct {
// 航班屬性狀態(英文)
ArrivalRemarkEn string `json:"ArrivalRemarkEn,omitempty"`
- // 行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有)
+ // 行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有, 貨機則無此資訊)
BaggageClaim string `json:"BaggageClaim,omitempty"`
- // 報到櫃檯(到站FIDS不會有「報到櫃台」資訊, 離站FIDS才可能有)
+ // 報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有, 貨機則無此資訊)
CheckCounter string `json:"CheckCounter,omitempty"`
// 航班共用班號
@@ -70,11 +73,11 @@ type ServiceDTOVersion2AviationFIDSArrival struct {
// Required: true
FlightDate *string `json:"FlightDate"`
- // 航機班號
+ // 航機班號(不包含航空公司的AirlineID,僅有班號數字)
// Required: true
FlightNumber *string `json:"FlightNumber"`
- // 登機門
+ // 登機門(僅客機提供)
Gate string `json:"Gate,omitempty"`
// 是否為貨機
diff --git a/air/v2/models/service_d_t_o_version2_aviation_f_id_s_departure.go b/air/v2/models/service_d_t_o_version2_aviation_f_id_s_departure.go
index 17ba9b10..36a1119f 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_f_id_s_departure.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_f_id_s_departure.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2AviationFIDSDeparture FIDSDeparture
//
// 出發航班顯示資料
+//
// swagger:model Service.DTO.Version2.Aviation.FIDSDeparture
type ServiceDTOVersion2AviationFIDSDeparture struct {
@@ -36,14 +36,17 @@ type ServiceDTOVersion2AviationFIDSDeparture struct {
// Required: true
AirlineID *string `json:"AirlineID"`
+ // 停機坪(僅貨機提供)
+ Apron string `json:"Apron,omitempty"`
+
// 目的地機場IATA國際代碼
// Required: true
ArrivalAirportID *string `json:"ArrivalAirportID"`
- // 行李轉盤(離站FIDS沒有「行李轉盤」資訊, 到站FIDS才可能有)
+ // 行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有, 貨機則無此資訊)
BaggageClaim string `json:"BaggageClaim,omitempty"`
- // 報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有)
+ // 報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有, 貨機則無此資訊)
CheckCounter string `json:"CheckCounter,omitempty"`
// 航班共用班號
@@ -70,11 +73,11 @@ type ServiceDTOVersion2AviationFIDSDeparture struct {
// Required: true
FlightDate *string `json:"FlightDate"`
- // 航機班號
+ // 航機班號(不包含航空公司的AirlineID,僅有班號數字)
// Required: true
FlightNumber *string `json:"FlightNumber"`
- // 登機門
+ // 登機門(僅客機提供)
Gate string `json:"Gate,omitempty"`
// 是否為貨機
diff --git a/air/v2/models/service_d_t_o_version2_aviation_general_flight_schedule.go b/air/v2/models/service_d_t_o_version2_aviation_general_flight_schedule.go
index 3ff6fb90..7a7fdbfb 100644
--- a/air/v2/models/service_d_t_o_version2_aviation_general_flight_schedule.go
+++ b/air/v2/models/service_d_t_o_version2_aviation_general_flight_schedule.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2AviationGeneralFlightSchedule GeneralFlightSchedule
//
// 航空定期時刻表資料
+//
// swagger:model Service.DTO.Version2.Aviation.GeneralFlightSchedule
type ServiceDTOVersion2AviationGeneralFlightSchedule struct {
@@ -44,7 +44,7 @@ type ServiceDTOVersion2AviationGeneralFlightSchedule struct {
// Required: true
DepartureTime *string `json:"DepartureTime"`
- // 班機號碼
+ // 班機號碼(包含航空公司的AirlineID,結構為AirlineID加上3~4碼航機班號數字;若班號僅有兩碼,其結構會加上0補足三碼,"AirlineID + 0 + 兩碼班號")
// Required: true
FlightNumber *string `json:"FlightNumber"`
diff --git a/air/v2/models/service_d_t_o_version2_base_name_type.go b/air/v2/models/service_d_t_o_version2_base_name_type.go
index 0687ebed..56abdf5a 100644
--- a/air/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/air/v2/models/service_d_t_o_version2_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
diff --git a/air/v2/models/service_d_t_o_version2_base_point_type.go b/air/v2/models/service_d_t_o_version2_base_point_type.go
index 08616778..171a47ea 100644
--- a/air/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/air/v2/models/service_d_t_o_version2_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version2.Base.PointType
type ServiceDTOVersion2BasePointType struct {
diff --git a/basic/v2/client/basic/basic_api_authority_parameters.go b/basic/v2/client/basic/basic_api_authority_parameters.go
index b74c6351..1e662b27 100644
--- a/basic/v2/client/basic/basic_api_authority_parameters.go
+++ b/basic/v2/client/basic/basic_api_authority_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewBasicAPIAuthorityParams creates a new BasicAPIAuthorityParams object
diff --git a/basic/v2/client/basic/basic_api_authority_responses.go b/basic/v2/client/basic/basic_api_authority_responses.go
index 32e2af5c..ea3842da 100644
--- a/basic/v2/client/basic/basic_api_authority_responses.go
+++ b/basic/v2/client/basic/basic_api_authority_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/basic/v2/models"
+ "github.com/minchao/go-ptx/basic/v2/models"
)
// BasicAPIAuthorityReader is a Reader for the BasicAPIAuthority structure.
diff --git a/basic/v2/client/basic/basic_api_operator_parameters.go b/basic/v2/client/basic/basic_api_operator_parameters.go
index 096056b3..bf47726a 100644
--- a/basic/v2/client/basic/basic_api_operator_parameters.go
+++ b/basic/v2/client/basic/basic_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewBasicAPIOperatorParams creates a new BasicAPIOperatorParams object
diff --git a/basic/v2/client/basic/basic_api_operator_responses.go b/basic/v2/client/basic/basic_api_operator_responses.go
index 09035faa..397dfb62 100644
--- a/basic/v2/client/basic/basic_api_operator_responses.go
+++ b/basic/v2/client/basic/basic_api_operator_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/basic/v2/models"
+ "github.com/minchao/go-ptx/basic/v2/models"
)
// BasicAPIOperatorReader is a Reader for the BasicAPIOperator structure.
diff --git a/basic/v2/client/basic/basic_api_provider_parameters.go b/basic/v2/client/basic/basic_api_provider_parameters.go
index cf0c3c2f..cb4a0431 100644
--- a/basic/v2/client/basic/basic_api_provider_parameters.go
+++ b/basic/v2/client/basic/basic_api_provider_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewBasicAPIProviderParams creates a new BasicAPIProviderParams object
diff --git a/basic/v2/client/basic/basic_api_provider_responses.go b/basic/v2/client/basic/basic_api_provider_responses.go
index 190f4ab6..5c1b4846 100644
--- a/basic/v2/client/basic/basic_api_provider_responses.go
+++ b/basic/v2/client/basic/basic_api_provider_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/basic/v2/models"
+ "github.com/minchao/go-ptx/basic/v2/models"
)
// BasicAPIProviderReader is a Reader for the BasicAPIProvider structure.
diff --git a/basic/v2/client/basic/basic_client.go b/basic/v2/client/basic/basic_client.go
index cfa58e27..c8be7c02 100644
--- a/basic/v2/client/basic/basic_client.go
+++ b/basic/v2/client/basic/basic_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new basic API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,8 +25,21 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ BasicAPIAuthority(params *BasicAPIAuthorityParams) (*BasicAPIAuthorityOK, error)
+
+ BasicAPIOperator(params *BasicAPIOperatorParams) (*BasicAPIOperatorOK, error)
+
+ BasicAPIProvider(params *BasicAPIProviderParams) (*BasicAPIProviderOK, error)
+
+ WebSiteAPINews(params *WebSiteAPINewsParams) (*WebSiteAPINewsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-BasicAPIAuthority basic Api authority API
+ BasicAPIAuthority basic Api authority API
*/
func (a *Client) BasicAPIAuthority(params *BasicAPIAuthorityParams) (*BasicAPIAuthorityOK, error) {
// TODO: Validate the params before sending
@@ -40,7 +52,7 @@ func (a *Client) BasicAPIAuthority(params *BasicAPIAuthorityParams) (*BasicAPIAu
Method: "GET",
PathPattern: "/v2/Basic/Authority",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BasicAPIAuthorityReader{formats: a.formats},
@@ -61,7 +73,7 @@ func (a *Client) BasicAPIAuthority(params *BasicAPIAuthorityParams) (*BasicAPIAu
}
/*
-BasicAPIOperator basic Api operator API
+ BasicAPIOperator basic Api operator API
*/
func (a *Client) BasicAPIOperator(params *BasicAPIOperatorParams) (*BasicAPIOperatorOK, error) {
// TODO: Validate the params before sending
@@ -74,7 +86,7 @@ func (a *Client) BasicAPIOperator(params *BasicAPIOperatorParams) (*BasicAPIOper
Method: "GET",
PathPattern: "/v2/Basic/Operator",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BasicAPIOperatorReader{formats: a.formats},
@@ -95,7 +107,7 @@ func (a *Client) BasicAPIOperator(params *BasicAPIOperatorParams) (*BasicAPIOper
}
/*
-BasicAPIProvider basic Api provider API
+ BasicAPIProvider basic Api provider API
*/
func (a *Client) BasicAPIProvider(params *BasicAPIProviderParams) (*BasicAPIProviderOK, error) {
// TODO: Validate the params before sending
@@ -108,7 +120,7 @@ func (a *Client) BasicAPIProvider(params *BasicAPIProviderParams) (*BasicAPIProv
Method: "GET",
PathPattern: "/v2/Basic/Provider",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BasicAPIProviderReader{formats: a.formats},
@@ -129,7 +141,7 @@ func (a *Client) BasicAPIProvider(params *BasicAPIProviderParams) (*BasicAPIProv
}
/*
-WebSiteAPINews web site Api news API
+ WebSiteAPINews web site Api news API
*/
func (a *Client) WebSiteAPINews(params *WebSiteAPINewsParams) (*WebSiteAPINewsOK, error) {
// TODO: Validate the params before sending
@@ -142,7 +154,7 @@ func (a *Client) WebSiteAPINews(params *WebSiteAPINewsParams) (*WebSiteAPINewsOK
Method: "GET",
PathPattern: "/v2/PTX/Web/News",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &WebSiteAPINewsReader{formats: a.formats},
diff --git a/basic/v2/client/basic/web_site_api_news_parameters.go b/basic/v2/client/basic/web_site_api_news_parameters.go
index 543880c9..8ca06da2 100644
--- a/basic/v2/client/basic/web_site_api_news_parameters.go
+++ b/basic/v2/client/basic/web_site_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewWebSiteAPINewsParams creates a new WebSiteAPINewsParams object
diff --git a/basic/v2/client/basic/web_site_api_news_responses.go b/basic/v2/client/basic/web_site_api_news_responses.go
index cacfbfc4..8225ac79 100644
--- a/basic/v2/client/basic/web_site_api_news_responses.go
+++ b/basic/v2/client/basic/web_site_api_news_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/basic/v2/models"
+ "github.com/minchao/go-ptx/basic/v2/models"
)
// WebSiteAPINewsReader is a Reader for the WebSiteAPINews structure.
diff --git a/basic/v2/client/m_o_t_c_transport_api_v2_client.go b/basic/v2/client/m_o_t_c_transport_api_v2_client.go
index ad17c8e6..67c16650 100644
--- a/basic/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/basic/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/basic/v2/client/basic"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.Basic = basic.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- Basic *basic.Client
+ Basic basic.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Basic.SetTransport(transport)
-
}
diff --git a/basic/v2/models/m_o_t_c_api_basic_models_version2_basic_wrapper_service_d_t_o_version2_base_news.go b/basic/v2/models/m_o_t_c_api_basic_models_version2_basic_wrapper_service_d_t_o_version2_base_news.go
index 527e17e4..34e916a8 100644
--- a/basic/v2/models/m_o_t_c_api_basic_models_version2_basic_wrapper_service_d_t_o_version2_base_news.go
+++ b/basic/v2/models/m_o_t_c_api_basic_models_version2_basic_wrapper_service_d_t_o_version2_base_news.go
@@ -8,13 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews NewsList
+//
// swagger:model MOTC.API.Basic.Models.Version2.BasicWrapper[Service.DTO.Version2.Base.News]
type MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews struct {
@@ -22,15 +23,18 @@ type MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews struct {
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Newses []*ServiceDTOVersion2BaseNews `json:"Newses"`
// 資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// 更新日期時間
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
}
// Validate validates this m o t c API basic models version2 basic wrapper service d t o version2 base news
@@ -41,6 +45,14 @@ func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) Valid
res = append(res, err)
}
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -49,8 +61,8 @@ func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) Valid
func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) validateNewses(formats strfmt.Registry) error {
- if swag.IsZero(m.Newses) { // not required
- return nil
+ if err := validate.Required("Newses", "body", m.Newses); err != nil {
+ return err
}
for i := 0; i < len(m.Newses); i++ {
@@ -72,6 +84,24 @@ func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) valid
return nil
}
+func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBasicModelsVersion2BasicWrapperServiceDTOVersion2BaseNews) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/basic/v2/models/service_d_t_o_version2_base_authority.go b/basic/v2/models/service_d_t_o_version2_base_authority.go
index d055343e..ca836628 100644
--- a/basic/v2/models/service_d_t_o_version2_base_authority.go
+++ b/basic/v2/models/service_d_t_o_version2_base_authority.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BaseAuthority Authority
//
// 業管機關資料型別
+//
// swagger:model Service.DTO.Version2.Base.Authority
type ServiceDTOVersion2BaseAuthority struct {
diff --git a/basic/v2/models/service_d_t_o_version2_base_name_type.go b/basic/v2/models/service_d_t_o_version2_base_name_type.go
index 0687ebed..56abdf5a 100644
--- a/basic/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/basic/v2/models/service_d_t_o_version2_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
diff --git a/basic/v2/models/service_d_t_o_version2_base_news.go b/basic/v2/models/service_d_t_o_version2_base_news.go
index 3125bb0c..096af5a7 100644
--- a/basic/v2/models/service_d_t_o_version2_base_news.go
+++ b/basic/v2/models/service_d_t_o_version2_base_news.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BaseNews News
//
// 業管機關資料型別
+//
// swagger:model Service.DTO.Version2.Base.News
type ServiceDTOVersion2BaseNews struct {
diff --git a/basic/v2/models/service_d_t_o_version2_base_operator.go b/basic/v2/models/service_d_t_o_version2_base_operator.go
index dc5c9a1e..910f2faa 100644
--- a/basic/v2/models/service_d_t_o_version2_base_operator.go
+++ b/basic/v2/models/service_d_t_o_version2_base_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,10 +15,11 @@ import (
// ServiceDTOVersion2BaseOperator Operator
//
// 營運業者資料型別
+//
// swagger:model Service.DTO.Version2.Base.Operator
type ServiceDTOVersion2BaseOperator struct {
- // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
+ // 營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
diff --git a/basic/v2/models/service_d_t_o_version2_base_provider.go b/basic/v2/models/service_d_t_o_version2_base_provider.go
index 627d0901..fbf4019b 100644
--- a/basic/v2/models/service_d_t_o_version2_base_provider.go
+++ b/basic/v2/models/service_d_t_o_version2_base_provider.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BaseProvider Provider
//
// 資料提供平台資料型別
+//
// swagger:model Service.DTO.Version2.Base.Provider
type ServiceDTOVersion2BaseProvider struct {
diff --git a/bike/v2/client/bike/bike_api_availability_parameters.go b/bike/v2/client/bike/bike_api_availability_parameters.go
index d8f108b3..9b9c90e1 100644
--- a/bike/v2/client/bike/bike_api_availability_parameters.go
+++ b/bike/v2/client/bike/bike_api_availability_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewBikeAPIAvailabilityParams creates a new BikeAPIAvailabilityParams object
diff --git a/bike/v2/client/bike/bike_api_availability_responses.go b/bike/v2/client/bike/bike_api_availability_responses.go
index 50d7d1af..c779cf51 100644
--- a/bike/v2/client/bike/bike_api_availability_responses.go
+++ b/bike/v2/client/bike/bike_api_availability_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bike/v2/models"
+ "github.com/minchao/go-ptx/bike/v2/models"
)
// BikeAPIAvailabilityReader is a Reader for the BikeAPIAvailability structure.
diff --git a/bike/v2/client/bike/bike_api_station_parameters.go b/bike/v2/client/bike/bike_api_station_parameters.go
index 8e33f705..4362f1cd 100644
--- a/bike/v2/client/bike/bike_api_station_parameters.go
+++ b/bike/v2/client/bike/bike_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewBikeAPIStationParams creates a new BikeAPIStationParams object
diff --git a/bike/v2/client/bike/bike_api_station_responses.go b/bike/v2/client/bike/bike_api_station_responses.go
index 0c0eba6e..f572d396 100644
--- a/bike/v2/client/bike/bike_api_station_responses.go
+++ b/bike/v2/client/bike/bike_api_station_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bike/v2/models"
+ "github.com/minchao/go-ptx/bike/v2/models"
)
// BikeAPIStationReader is a Reader for the BikeAPIStation structure.
diff --git a/bike/v2/client/bike/bike_client.go b/bike/v2/client/bike/bike_client.go
index c0bdcaae..8df12763 100644
--- a/bike/v2/client/bike/bike_client.go
+++ b/bike/v2/client/bike/bike_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new bike API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,21 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAPIAvailabilityOK, error)
+
+ BikeAPIStation(params *BikeAPIStationParams) (*BikeAPIStationOK, error)
+
+ CyclingAPIShape(params *CyclingAPIShapeParams) (*CyclingAPIShapeOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-BikeAPIAvailability 取得動態指定s 縣市 的公共自行車即時車位資料
+ BikeAPIAvailability 取得動態指定s 縣市 的公共自行車即時車位資料
-取得動態指定[縣市]的公共自行車即時車位資料
[更新頻率]2分鐘更新一次
+ 取得動態指定[縣市]的公共自行車即時車位資料
[更新頻率]2分鐘更新一次
*/
func (a *Client) BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAPIAvailabilityOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +52,7 @@ func (a *Client) BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAP
Method: "GET",
PathPattern: "/v2/Bike/Availability/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BikeAPIAvailabilityReader{formats: a.formats},
@@ -63,9 +73,9 @@ func (a *Client) BikeAPIAvailability(params *BikeAPIAvailabilityParams) (*BikeAP
}
/*
-BikeAPIStation 取得指定s 縣市 的公共自行車租借站位資料
+ BikeAPIStation 取得指定s 縣市 的公共自行車租借站位資料
-取得指定[縣市]的公共自行車租借站位資料
[更新頻率]2分鐘更新一次
+ 取得指定[縣市]的公共自行車租借站位資料
[更新頻率]2分鐘更新一次
*/
func (a *Client) BikeAPIStation(params *BikeAPIStationParams) (*BikeAPIStationOK, error) {
// TODO: Validate the params before sending
@@ -78,7 +88,7 @@ func (a *Client) BikeAPIStation(params *BikeAPIStationParams) (*BikeAPIStationOK
Method: "GET",
PathPattern: "/v2/Bike/Station/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &BikeAPIStationReader{formats: a.formats},
@@ -99,9 +109,9 @@ func (a *Client) BikeAPIStation(params *BikeAPIStationParams) (*BikeAPIStationOK
}
/*
-CyclingAPIShape 取得指定縣市之自行車道路網圖資s
+ CyclingAPIShape 取得指定縣市之自行車道路網圖資s
-取得指定縣市之自行車道路網圖資
+ 取得指定縣市之自行車道路網圖資
*/
func (a *Client) CyclingAPIShape(params *CyclingAPIShapeParams) (*CyclingAPIShapeOK, error) {
// TODO: Validate the params before sending
@@ -114,7 +124,7 @@ func (a *Client) CyclingAPIShape(params *CyclingAPIShapeParams) (*CyclingAPIShap
Method: "GET",
PathPattern: "/v2/Cycling/Shape/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CyclingAPIShapeReader{formats: a.formats},
diff --git a/bike/v2/client/bike/cycling_api_shape_parameters.go b/bike/v2/client/bike/cycling_api_shape_parameters.go
index ea697bcc..92dbcf57 100644
--- a/bike/v2/client/bike/cycling_api_shape_parameters.go
+++ b/bike/v2/client/bike/cycling_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCyclingAPIShapeParams creates a new CyclingAPIShapeParams object
diff --git a/bike/v2/client/bike/cycling_api_shape_responses.go b/bike/v2/client/bike/cycling_api_shape_responses.go
index 0de1ca94..681fd5d9 100644
--- a/bike/v2/client/bike/cycling_api_shape_responses.go
+++ b/bike/v2/client/bike/cycling_api_shape_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bike/v2/models"
+ "github.com/minchao/go-ptx/bike/v2/models"
)
// CyclingAPIShapeReader is a Reader for the CyclingAPIShape structure.
diff --git a/bike/v2/client/m_o_t_c_transport_api_v2_client.go b/bike/v2/client/m_o_t_c_transport_api_v2_client.go
index 43ceb348..b65deb73 100644
--- a/bike/v2/client/m_o_t_c_transport_api_v2_client.go
+++ b/bike/v2/client/m_o_t_c_transport_api_v2_client.go
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/bike/v2/client/bike"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.Bike = bike.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- Bike *bike.Client
+ Bike bike.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Bike.SetTransport(transport)
-
}
diff --git a/bike/v2/models/service_d_t_o_version2_base_name_type.go b/bike/v2/models/service_d_t_o_version2_base_name_type.go
index 0687ebed..56abdf5a 100644
--- a/bike/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/bike/v2/models/service_d_t_o_version2_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
diff --git a/bike/v2/models/service_d_t_o_version2_base_point_type.go b/bike/v2/models/service_d_t_o_version2_base_point_type.go
index 08616778..171a47ea 100644
--- a/bike/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/bike/v2/models/service_d_t_o_version2_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version2.Base.PointType
type ServiceDTOVersion2BasePointType struct {
diff --git a/bike/v2/models/service_d_t_o_version2_bike_bike_availability.go b/bike/v2/models/service_d_t_o_version2_bike_bike_availability.go
index 9471f0d6..47cb2b98 100644
--- a/bike/v2/models/service_d_t_o_version2_bike_bike_availability.go
+++ b/bike/v2/models/service_d_t_o_version2_bike_bike_availability.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BikeBikeAvailability BikeAvailability
//
// 自行車站點剩餘數量資訊
+//
// swagger:model Service.DTO.Version2.Bike.BikeAvailability
type ServiceDTOVersion2BikeBikeAvailability struct {
diff --git a/bike/v2/models/service_d_t_o_version2_bike_bike_shape.go b/bike/v2/models/service_d_t_o_version2_bike_bike_shape.go
index 944f18a0..efea1e87 100644
--- a/bike/v2/models/service_d_t_o_version2_bike_bike_shape.go
+++ b/bike/v2/models/service_d_t_o_version2_bike_bike_shape.go
@@ -6,25 +6,25 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BikeBikeShape BikeShape
+//
// swagger:model Service.DTO.Version2.Bike.BikeShape
type ServiceDTOVersion2BikeBikeShape struct {
- // 業管機關名稱
+ // 業管機關名稱(可能包含多個業管機關)
AuthorityName string `json:"AuthorityName,omitempty"`
- // 路線權管所屬縣市
+ // 路線所在縣市名稱
// Required: true
City *string `json:"City"`
- // 路線權管所屬縣市之代碼
+ // 路線所在縣市代碼
// Required: true
CityCode *string `json:"CityCode"`
@@ -34,27 +34,27 @@ type ServiceDTOVersion2BikeBikeShape struct {
// 自行車道類型
CyclingType string `json:"CyclingType,omitempty"`
- // 車行方向
+ // 自行車道車行方向
Direction string `json:"Direction,omitempty"`
// 自行車道完工日期時間
FinishedTime string `json:"FinishedTime,omitempty"`
- // well-known text,為路線軌跡資料
+ // 路線軌跡資料
// Required: true
Geometry *string `json:"Geometry"`
- // 路線名稱
+ // 路線迄點描述
RoadSectionEnd string `json:"RoadSectionEnd,omitempty"`
- // 路線名稱
+ // 路線起點描述
RoadSectionStart string `json:"RoadSectionStart,omitempty"`
// 路線名稱
// Required: true
RouteName *string `json:"RouteName"`
- // 鄉鎮名稱
+ // 路線所在鄉鎮名稱(可能包含多個鄉鎮)
Town string `json:"Town,omitempty"`
// DateTime
diff --git a/bike/v2/models/service_d_t_o_version2_bike_bike_station.go b/bike/v2/models/service_d_t_o_version2_bike_bike_station.go
index d5f3c7b9..15dc428c 100644
--- a/bike/v2/models/service_d_t_o_version2_bike_bike_station.go
+++ b/bike/v2/models/service_d_t_o_version2_bike_bike_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BikeBikeStation BikeStation
//
// 自行車站點資訊
+//
// swagger:model Service.DTO.Version2.Bike.BikeStation
type ServiceDTOVersion2BikeBikeStation struct {
diff --git a/bus/v2/client/city_bus/city_bus_api_data_version_parameters.go b/bus/v2/client/city_bus/city_bus_api_data_version_parameters.go
index 4d019d33..8eebb7c3 100644
--- a/bus/v2/client/city_bus/city_bus_api_data_version_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_data_version_parameters.go
@@ -13,8 +13,7 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDataVersionParams creates a new CityBusAPIDataVersionParams object
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 b89651a3..c8dab072 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIDataVersionReader is a Reader for the CityBusAPIDataVersion structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIDataVersionStatus299() *CityBusAPIDataVersionStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDataVersionStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIDataVersionStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDataVersionStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_parameters.go
index df2c2b8d..6da04fb3 100644
--- a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDisplayStopOfRoute1Params creates a new CityBusAPIDisplayStopOfRoute1Params object
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 f90ae7e0..0d741883 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIDisplayStopOfRoute1Reader is a Reader for the CityBusAPIDisplayStopOfRoute1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIDisplayStopOfRoute1Status299() *CityBusAPIDisplayStopOfRoute1S
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDisplayStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIDisplayStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDisplayStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_parameters.go
index 86fc591e..881d985b 100644
--- a/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_display_stop_of_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDisplayStopOfRouteParams creates a new CityBusAPIDisplayStopOfRouteParams object
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 ce5306dc..75017703 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIDisplayStopOfRouteReader is a Reader for the CityBusAPIDisplayStopOfRoute structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIDisplayStopOfRouteStatus299() *CityBusAPIDisplayStopOfRouteSta
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDisplayStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
index f73135ad..e7120b61 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrival1Params creates a new CityBusAPIEstimatedTimeOfArrival1Params object
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 1e171c27..db968bed 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIEstimatedTimeOfArrival1Reader is a Reader for the CityBusAPIEstimatedTimeOfArrival1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrival1Status299() *CityBusAPIEstimatedTimeOfA
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
index d2adc559..061cbf26 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrivalParams creates a new CityBusAPIEstimatedTimeOfArrivalParams object
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 b56bd980..d9d10916 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIEstimatedTimeOfArrivalReader is a Reader for the CityBusAPIEstimatedTimeOfArrival structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalStatus299() *CityBusAPIEstimatedTimeOfAr
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
index c46df84c..57710675 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrivalUDP1Params creates a new CityBusAPIEstimatedTimeOfArrivalUDP1Params object
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 5243837e..3ec8cdd8 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIEstimatedTimeOfArrivalUDP1Reader is a Reader for the CityBusAPIEstimatedTimeOfArrivalUDP1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalUdp1Status299() *CityBusAPIEstimatedTime
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrivalUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_parameters.go
index 51d2d0d5..80988855 100644
--- a/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_estimated_time_of_arrival_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrivalUDPParams creates a new CityBusAPIEstimatedTimeOfArrivalUDPParams object
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 5e8963b9..b954c285 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIEstimatedTimeOfArrivalUDPReader is a Reader for the CityBusAPIEstimatedTimeOfArrivalUDP structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalUDPStatus299() *CityBusAPIEstimatedTimeO
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIEstimatedTimeOfArrivalUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_news_parameters.go
index 97f82993..061f379a 100644
--- a/bus/v2/client/city_bus/city_bus_api_news_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPINewsParams creates a new CityBusAPINewsParams object
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 d9fbd818..977aa1fe 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPINewsReader is a Reader for the CityBusAPINews structure.
@@ -83,20 +82,20 @@ func NewCityBusAPINewsStatus299() *CityBusAPINewsStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_operator_parameters.go
index fae6d106..f0390505 100644
--- a/bus/v2/client/city_bus/city_bus_api_operator_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIOperatorParams creates a new CityBusAPIOperatorParams object
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 81f4bc83..ec07efd5 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIOperatorReader is a Reader for the CityBusAPIOperator structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIOperatorStatus299() *CityBusAPIOperatorStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
index e12919b8..d0a358d1 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequency1Params creates a new CityBusAPIRealTimeByFrequency1Params object
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 064155a3..67f3f2b2 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeByFrequency1Reader is a Reader for the CityBusAPIRealTimeByFrequency1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequency1Status299() *CityBusAPIRealTimeByFrequency
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
index 4773b519..18a0ec98 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequencyParams creates a new CityBusAPIRealTimeByFrequencyParams object
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 4ddfcb2f..b47a9962 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeByFrequencyReader is a Reader for the CityBusAPIRealTimeByFrequency structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyStatus299() *CityBusAPIRealTimeByFrequencyS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_parameters.go
index 317c509f..e796c2f8 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequencyUDP1Params creates a new CityBusAPIRealTimeByFrequencyUDP1Params object
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 b48a6dc8..8fd0718f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeByFrequencyUDP1Reader is a Reader for the CityBusAPIRealTimeByFrequencyUDP1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyUdp1Status299() *CityBusAPIRealTimeByFreque
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequencyUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_parameters.go
index 34406874..35c34eda 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_by_frequency_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequencyUDPParams creates a new CityBusAPIRealTimeByFrequencyUDPParams object
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 883caf0b..3d49010d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeByFrequencyUDPReader is a Reader for the CityBusAPIRealTimeByFrequencyUDP structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeByFrequencyUDPStatus299() *CityBusAPIRealTimeByFrequen
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeByFrequencyUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
index ab8f48c7..4b828e23 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStop1Params creates a new CityBusAPIRealTimeNearStop1Params object
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 c279f6fc..a64b9a26 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeNearStop1Reader is a Reader for the CityBusAPIRealTimeNearStop1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeNearStop1Status299() *CityBusAPIRealTimeNearStop1Statu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
index 615e1892..2757e712 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStopParams creates a new CityBusAPIRealTimeNearStopParams object
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 7d4dc1a0..9ccb187c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeNearStopReader is a Reader for the CityBusAPIRealTimeNearStop structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopStatus299() *CityBusAPIRealTimeNearStopStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_parameters.go
index 757fdf3f..0e634504 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStopUDP1Params creates a new CityBusAPIRealTimeNearStopUDP1Params object
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 3341f525..20e8f1bb 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeNearStopUDP1Reader is a Reader for the CityBusAPIRealTimeNearStopUDP1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopUdp1Status299() *CityBusAPIRealTimeNearStopUdp
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStopUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_parameters.go
index 4086924f..d13d35e9 100644
--- a/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_real_time_near_stop_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStopUDPParams creates a new CityBusAPIRealTimeNearStopUDPParams object
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 bd387525..e6eaebd4 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRealTimeNearStopUDPReader is a Reader for the CityBusAPIRealTimeNearStopUDP structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRealTimeNearStopUDPStatus299() *CityBusAPIRealTimeNearStopUDPS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRealTimeNearStopUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_route1_parameters.go
index 5edba8ae..01fa7418 100644
--- a/bus/v2/client/city_bus/city_bus_api_route1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRoute1Params creates a new CityBusAPIRoute1Params object
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 401178de..124e7752 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRoute1Reader is a Reader for the CityBusAPIRoute1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRoute1Status299() *CityBusAPIRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_route_fare1_parameters.go
index 764b94a0..75346157 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_fare1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_fare1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteFare1Params creates a new CityBusAPIRouteFare1Params object
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 833b6bb1..e188ccc9 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRouteFare1Reader is a Reader for the CityBusAPIRouteFare1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRouteFare1Status299() *CityBusAPIRouteFare1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteFare1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRouteFare1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteFare1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_route_fare_parameters.go
index 93963ae8..f14feb2a 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_fare_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteFareParams creates a new CityBusAPIRouteFareParams object
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 efa61538..b347a464 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRouteFareReader is a Reader for the CityBusAPIRouteFare structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRouteFareStatus299() *CityBusAPIRouteFareStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_route_parameters.go
index 6bf7e228..150e7e48 100644
--- a/bus/v2/client/city_bus/city_bus_api_route_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteParams creates a new CityBusAPIRouteParams object
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 3b4417eb..83ab57c4 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIRouteReader is a Reader for the CityBusAPIRoute structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIRouteStatus299() *CityBusAPIRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_schedule1_parameters.go
index 60ca362a..cf5cb38b 100644
--- a/bus/v2/client/city_bus/city_bus_api_schedule1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_schedule1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPISchedule1Params creates a new CityBusAPISchedule1Params object
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 6b73261e..61517837 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPISchedule1Reader is a Reader for the CityBusAPISchedule1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPISchedule1Status299() *CityBusAPISchedule1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPISchedule1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPISchedule1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPISchedule1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_schedule_parameters.go
index ce2b1f7c..783aef98 100644
--- a/bus/v2/client/city_bus/city_bus_api_schedule_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_schedule_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIScheduleParams creates a new CityBusAPIScheduleParams object
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 75c6e003..2aa6ed53 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIScheduleReader is a Reader for the CityBusAPISchedule structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIScheduleStatus299() *CityBusAPIScheduleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_shape1_parameters.go
index bc8c9c6e..ac3ca460 100644
--- a/bus/v2/client/city_bus/city_bus_api_shape1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_shape1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIShape1Params creates a new CityBusAPIShape1Params object
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 fe881968..5bc812bf 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIShape1Reader is a Reader for the CityBusAPIShape1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIShape1Status299() *CityBusAPIShape1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIShape1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIShape1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIShape1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_shape_parameters.go
index fdb58f76..6370cebd 100644
--- a/bus/v2/client/city_bus/city_bus_api_shape_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIShapeParams creates a new CityBusAPIShapeParams object
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 e1d9587a..ab4f3470 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIShapeReader is a Reader for the CityBusAPIShape structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIShapeStatus299() *CityBusAPIShapeStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIShapeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_station_group_parameters.go
index 32923b9e..8703821a 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_group_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_group_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStationGroupParams creates a new CityBusAPIStationGroupParams object
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 69c77026..d8d0470a 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStationGroupReader is a Reader for the CityBusAPIStationGroup structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStationGroupStatus299() *CityBusAPIStationGroupStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationGroupStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIStationGroupStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStationGroupStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_name_parameters.go b/bus/v2/client/city_bus/city_bus_api_station_name_parameters.go
index 44685efa..fa6acb1c 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_name_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_name_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStationNameParams creates a new CityBusAPIStationNameParams object
diff --git a/bus/v2/client/city_bus/city_bus_api_station_name_responses.go b/bus/v2/client/city_bus/city_bus_api_station_name_responses.go
index ab7ceed2..159c913b 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_name_responses.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_name_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStationNameReader is a Reader for the CityBusAPIStationName structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStationNameStatus299() *CityBusAPIStationNameStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationNameStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *CityBusAPIStationNameStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationName/City/{City}][%d] cityBusApiStationNameStatus299 %+v", 299, o.Payload)
}
-func (o *CityBusAPIStationNameStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIStationNameStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStationNameStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_station_parameters.go
index b07bd519..23935775 100644
--- a/bus/v2/client/city_bus/city_bus_api_station_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStationParams creates a new CityBusAPIStationParams object
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 587ead19..1efa62e6 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStationReader is a Reader for the CityBusAPIStation structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStationStatus299() *CityBusAPIStationStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_stop_of_route1_parameters.go
index 1a95d1c5..bbc1adfa 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_of_route1_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_of_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStopOfRoute1Params creates a new CityBusAPIStopOfRoute1Params object
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 e93237eb..5807888b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStopOfRoute1Reader is a Reader for the CityBusAPIStopOfRoute1 structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStopOfRoute1Status299() *CityBusAPIStopOfRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_stop_of_route_parameters.go
index ef2b557a..91427497 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_of_route_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_of_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStopOfRouteParams creates a new CityBusAPIStopOfRouteParams object
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 e6ddf192..4c0d0ccd 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStopOfRouteReader is a Reader for the CityBusAPIStopOfRoute structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStopOfRouteStatus299() *CityBusAPIStopOfRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_stop_parameters.go
index 4feb956f..28996bfe 100644
--- a/bus/v2/client/city_bus/city_bus_api_stop_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStopParams creates a new CityBusAPIStopParams object
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 26ae7dc4..8679db93 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIStopReader is a Reader for the CityBusAPIStop structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIStopStatus299() *CityBusAPIStopStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/city_bus/city_bus_api_vehicle_parameters.go
index 4b90b674..73f2b9d5 100644
--- a/bus/v2/client/city_bus/city_bus_api_vehicle_parameters.go
+++ b/bus/v2/client/city_bus/city_bus_api_vehicle_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIVehicleParams creates a new CityBusAPIVehicleParams object
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 0d9d8314..d233616f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// CityBusAPIVehicleReader is a Reader for the CityBusAPIVehicle structure.
@@ -83,20 +82,20 @@ func NewCityBusAPIVehicleStatus299() *CityBusAPIVehicleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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 d94155fb..56293fc9 100644
--- a/bus/v2/client/city_bus/city_bus_client.go
+++ b/bus/v2/client/city_bus/city_bus_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new city bus API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,79 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CityBusAPIDataVersion(params *CityBusAPIDataVersionParams) (*CityBusAPIDataVersionOK, *CityBusAPIDataVersionStatus299, error)
+
+ CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error)
+
+ CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRoute1Params) (*CityBusAPIDisplayStopOfRoute1OK, *CityBusAPIDisplayStopOfRoute1Status299, error)
+
+ CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error)
+
+ CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error)
+
+ CityBusAPIEstimatedTimeOfArrivalUDP(params *CityBusAPIEstimatedTimeOfArrivalUDPParams) (*CityBusAPIEstimatedTimeOfArrivalUDPOK, *CityBusAPIEstimatedTimeOfArrivalUDPStatus299, error)
+
+ CityBusAPIEstimatedTimeOfArrivalUDP1(params *CityBusAPIEstimatedTimeOfArrivalUDP1Params) (*CityBusAPIEstimatedTimeOfArrivalUdp1OK, *CityBusAPIEstimatedTimeOfArrivalUdp1Status299, error)
+
+ CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error)
+
+ CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error)
+
+ CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error)
+
+ CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error)
+
+ CityBusAPIRealTimeByFrequencyUDP(params *CityBusAPIRealTimeByFrequencyUDPParams) (*CityBusAPIRealTimeByFrequencyUDPOK, *CityBusAPIRealTimeByFrequencyUDPStatus299, error)
+
+ CityBusAPIRealTimeByFrequencyUDP1(params *CityBusAPIRealTimeByFrequencyUDP1Params) (*CityBusAPIRealTimeByFrequencyUdp1OK, *CityBusAPIRealTimeByFrequencyUdp1Status299, error)
+
+ CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error)
+
+ CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error)
+
+ CityBusAPIRealTimeNearStopUDP(params *CityBusAPIRealTimeNearStopUDPParams) (*CityBusAPIRealTimeNearStopUDPOK, *CityBusAPIRealTimeNearStopUDPStatus299, error)
+
+ CityBusAPIRealTimeNearStopUDP1(params *CityBusAPIRealTimeNearStopUDP1Params) (*CityBusAPIRealTimeNearStopUdp1OK, *CityBusAPIRealTimeNearStopUdp1Status299, error)
+
+ CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error)
+
+ CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error)
+
+ CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params) (*CityBusAPIRouteFare1OK, *CityBusAPIRouteFare1Status299, error)
+
+ CityBusAPIRoute1(params *CityBusAPIRoute1Params) (*CityBusAPIRoute1OK, *CityBusAPIRoute1Status299, error)
+
+ CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error)
+
+ CityBusAPISchedule1(params *CityBusAPISchedule1Params) (*CityBusAPISchedule1OK, *CityBusAPISchedule1Status299, error)
+
+ CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error)
+
+ CityBusAPIShape1(params *CityBusAPIShape1Params) (*CityBusAPIShape1OK, *CityBusAPIShape1Status299, error)
+
+ CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error)
+
+ CityBusAPIStationGroup(params *CityBusAPIStationGroupParams) (*CityBusAPIStationGroupOK, *CityBusAPIStationGroupStatus299, error)
+
+ CityBusAPIStationName(params *CityBusAPIStationNameParams) (*CityBusAPIStationNameOK, *CityBusAPIStationNameStatus299, error)
+
+ CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error)
+
+ CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error)
+
+ CityBusAPIStopOfRoute1(params *CityBusAPIStopOfRoute1Params) (*CityBusAPIStopOfRoute1OK, *CityBusAPIStopOfRoute1Status299, error)
+
+ CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-CityBusAPIDataVersion 取得指定s 縣市 目前資料的最新版本資訊
+ CityBusAPIDataVersion 取得指定s 縣市 目前資料的最新版本資訊
-版本詳細資訊
+ 版本詳細資訊
*/
func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams) (*CityBusAPIDataVersionOK, *CityBusAPIDataVersionStatus299, error) {
// TODO: Validate the params before sending
@@ -42,7 +110,7 @@ func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams) (*Ci
Method: "GET",
PathPattern: "/v2/Bus/DataVersion/City/{City}",
ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDataVersionReader{formats: a.formats},
@@ -64,9 +132,9 @@ func (a *Client) CityBusAPIDataVersion(params *CityBusAPIDataVersionParams) (*Ci
}
/*
-CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料
+ CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料
-市區公車之顯示用路線站序資料,僅台北市與新北市可查詢
+ 市區公車之顯示用路線站序資料,僅台北市與新北市可查詢
*/
func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -79,7 +147,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
Method: "GET",
PathPattern: "/v2/Bus/DisplayStopOfRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDisplayStopOfRouteReader{formats: a.formats},
@@ -101,9 +169,9 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
}
/*
-CityBusAPIDisplayStopOfRoute1 取得指定s 縣市 路線名稱 的市區公車顯示用路線站序資料
+ CityBusAPIDisplayStopOfRoute1 取得指定s 縣市 路線名稱 的市區公車顯示用路線站序資料
-市區公車之顯示用路線站序資料,僅台北市與新北市可查詢
+ 市區公車之顯示用路線站序資料,僅台北市與新北市可查詢
*/
func (a *Client) CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRoute1Params) (*CityBusAPIDisplayStopOfRoute1OK, *CityBusAPIDisplayStopOfRoute1Status299, error) {
// TODO: Validate the params before sending
@@ -116,7 +184,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRo
Method: "GET",
PathPattern: "/v2/Bus/DisplayStopOfRoute/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDisplayStopOfRoute1Reader{formats: a.formats},
@@ -138,9 +206,9 @@ func (a *Client) CityBusAPIDisplayStopOfRoute1(params *CityBusAPIDisplayStopOfRo
}
/*
-CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1 批次更新
+ CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1 批次更新
- ### 市區公車之預估到站資料(N1) ###
+ ### 市區公車之預估到站資料(N1) ###
- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
@@ -155,7 +223,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrivalReader{formats: a.formats},
@@ -177,9 +245,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
}
/*
-CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 批次更新
+ CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 批次更新
- ### 市區公車之預估到站資料(N1) ###
+ ### 市區公車之預估到站資料(N1) ###
- [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間。
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
@@ -194,7 +262,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrival1Reader{formats: a.formats},
@@ -216,9 +284,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
}
/*
-CityBusAPIEstimatedTimeOfArrivalUDP 取得指定s 縣市 的公車預估到站資料 n1 逐筆更新
+ CityBusAPIEstimatedTimeOfArrivalUDP 取得指定s 縣市 的公車預估到站資料 n1 逐筆更新
-### 市區公車之預估到站資料(N1) ###
+ ### 市區公車之預估到站資料(N1) ###
- [部分縣市] 當 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)(秒)作為實際預估抵達時間。
@@ -234,7 +302,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP(params *CityBusAPIEstimated
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrivalUDPReader{formats: a.formats},
@@ -256,9 +324,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP(params *CityBusAPIEstimated
}
/*
-CityBusAPIEstimatedTimeOfArrivalUDP1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 逐筆更新
+ CityBusAPIEstimatedTimeOfArrivalUDP1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1 逐筆更新
-### 市區公車之預估到站資料(N1) ###
+ ### 市區公車之預估到站資料(N1) ###
- [部分縣市] 當 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)(秒)作為實際預估抵達時間。
@@ -274,7 +342,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP1(params *CityBusAPIEstimate
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrivalUDP1Reader{formats: a.formats},
@@ -296,9 +364,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrivalUDP1(params *CityBusAPIEstimate
}
/*
-CityBusAPINews 取得指定s 縣市 的市區公車最新消息資料
+ CityBusAPINews 取得指定s 縣市 的市區公車最新消息資料
-市區公車最新消息資料
+ 市區公車最新消息資料
*/
func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error) {
// TODO: Validate the params before sending
@@ -311,7 +379,7 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
Method: "GET",
PathPattern: "/v2/Bus/News/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPINewsReader{formats: a.formats},
@@ -333,9 +401,9 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
}
/*
-CityBusAPIOperator 取得指定s 縣市 的市區公車營運業者資料
+ CityBusAPIOperator 取得指定s 縣市 的市區公車營運業者資料
-市區公車之營運業者資料
+ 市區公車之營運業者資料
*/
func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error) {
// TODO: Validate the params before sending
@@ -348,7 +416,7 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
Method: "GET",
PathPattern: "/v2/Bus/Operator/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIOperatorReader{formats: a.formats},
@@ -370,9 +438,9 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
}
/*
-CityBusAPIRealTimeByFrequency 取得指定s 縣市 的公車動態定時資料 a1 批次更新
+ CityBusAPIRealTimeByFrequency 取得指定s 縣市 的公車動態定時資料 a1 批次更新
-### 市區公車之定時資料(A1) ###
+ ### 市區公車之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error) {
@@ -386,7 +454,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequencyReader{formats: a.formats},
@@ -408,9 +476,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
}
/*
-CityBusAPIRealTimeByFrequency1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1 批次更新
+ CityBusAPIRealTimeByFrequency1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1 批次更新
-### 市區公車之定時資料(A1) ###
+ ### 市區公車之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error) {
@@ -424,7 +492,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequency1Reader{formats: a.formats},
@@ -446,9 +514,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
}
/*
-CityBusAPIRealTimeByFrequencyUDP 取得指定s 縣市 的公車動態定時資料 a1 逐筆更新
+ CityBusAPIRealTimeByFrequencyUDP 取得指定s 縣市 的公車動態定時資料 a1 逐筆更新
-### 市區公車之定時資料(A1) ###
+ ### 市區公車之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeByFrequencyUDP(params *CityBusAPIRealTimeByFrequencyUDPParams) (*CityBusAPIRealTimeByFrequencyUDPOK, *CityBusAPIRealTimeByFrequencyUDPStatus299, error) {
@@ -462,7 +530,7 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP(params *CityBusAPIRealTimeByFr
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequencyUDPReader{formats: a.formats},
@@ -484,9 +552,9 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP(params *CityBusAPIRealTimeByFr
}
/*
-CityBusAPIRealTimeByFrequencyUDP1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1 逐筆更新
+ CityBusAPIRealTimeByFrequencyUDP1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1 逐筆更新
-### 市區公車之定時資料(A1) ###
+ ### 市區公車之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeByFrequencyUDP1(params *CityBusAPIRealTimeByFrequencyUDP1Params) (*CityBusAPIRealTimeByFrequencyUdp1OK, *CityBusAPIRealTimeByFrequencyUdp1Status299, error) {
@@ -500,7 +568,7 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP1(params *CityBusAPIRealTimeByF
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequencyUDP1Reader{formats: a.formats},
@@ -522,9 +590,9 @@ func (a *Client) CityBusAPIRealTimeByFrequencyUDP1(params *CityBusAPIRealTimeByF
}
/*
-CityBusAPIRealTimeNearStop 取得指定s 縣市 的公車動態定點資料 a2 批次更新
+ CityBusAPIRealTimeNearStop 取得指定s 縣市 的公車動態定點資料 a2 批次更新
-### 市區公車之定點資料(A2) ###
+ ### 市區公車之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error) {
@@ -538,7 +606,7 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStopReader{formats: a.formats},
@@ -560,9 +628,9 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
}
/*
-CityBusAPIRealTimeNearStop1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2 批次更新
+ CityBusAPIRealTimeNearStop1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2 批次更新
-### 市區公車之定點資料(A2) ###
+ ### 市區公車之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error) {
@@ -576,7 +644,7 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStop1Reader{formats: a.formats},
@@ -598,9 +666,9 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
}
/*
-CityBusAPIRealTimeNearStopUDP 取得指定s 縣市 的公車動態定點資料 a2 逐筆更新
+ CityBusAPIRealTimeNearStopUDP 取得指定s 縣市 的公車動態定點資料 a2 逐筆更新
-### 市區公車之定點資料(A2) ###
+ ### 市區公車之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeNearStopUDP(params *CityBusAPIRealTimeNearStopUDPParams) (*CityBusAPIRealTimeNearStopUDPOK, *CityBusAPIRealTimeNearStopUDPStatus299, error) {
@@ -614,7 +682,7 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP(params *CityBusAPIRealTimeNearSto
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStopUDPReader{formats: a.formats},
@@ -636,9 +704,9 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP(params *CityBusAPIRealTimeNearSto
}
/*
-CityBusAPIRealTimeNearStopUDP1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2 逐筆更新
+ CityBusAPIRealTimeNearStopUDP1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2 逐筆更新
-### 市區公車之定點資料(A2) ###
+ ### 市區公車之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) CityBusAPIRealTimeNearStopUDP1(params *CityBusAPIRealTimeNearStopUDP1Params) (*CityBusAPIRealTimeNearStopUdp1OK, *CityBusAPIRealTimeNearStopUdp1Status299, error) {
@@ -652,7 +720,7 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP1(params *CityBusAPIRealTimeNearSt
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStopUDP1Reader{formats: a.formats},
@@ -674,9 +742,9 @@ func (a *Client) CityBusAPIRealTimeNearStopUDP1(params *CityBusAPIRealTimeNearSt
}
/*
-CityBusAPIRoute 取得指定s 縣市 的市區公車路線資料
+ CityBusAPIRoute 取得指定s 縣市 的市區公車路線資料
-市區公車之路線資料
+ 市區公車之路線資料
*/
func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -689,7 +757,7 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
Method: "GET",
PathPattern: "/v2/Bus/Route/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteReader{formats: a.formats},
@@ -711,9 +779,9 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
}
/*
-CityBusAPIRouteFare 取得指定s 縣市 的市區公車路線票價資料
+ CityBusAPIRouteFare 取得指定s 縣市 的市區公車路線票價資料
-市區公車路線票價資料
+ 市區公車路線票價資料
*/
func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error) {
// TODO: Validate the params before sending
@@ -726,7 +794,7 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteFareReader{formats: a.formats},
@@ -748,9 +816,9 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
}
/*
-CityBusAPIRouteFare1 取得指定s 縣市 路線名稱 的的市區公車路線票價資料
+ CityBusAPIRouteFare1 取得指定s 縣市 路線名稱 的的市區公車路線票價資料
-市區公車路線票價資料
+ 市區公車路線票價資料
*/
func (a *Client) CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params) (*CityBusAPIRouteFare1OK, *CityBusAPIRouteFare1Status299, error) {
// TODO: Validate the params before sending
@@ -763,7 +831,7 @@ func (a *Client) CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params) (*City
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteFare1Reader{formats: a.formats},
@@ -785,9 +853,9 @@ func (a *Client) CityBusAPIRouteFare1(params *CityBusAPIRouteFare1Params) (*City
}
/*
-CityBusAPIRoute1 取得指定s 縣市 路線名稱 的路線資料
+ CityBusAPIRoute1 取得指定s 縣市 路線名稱 的路線資料
-市區公車之路線資料
+ 市區公車之路線資料
*/
func (a *Client) CityBusAPIRoute1(params *CityBusAPIRoute1Params) (*CityBusAPIRoute1OK, *CityBusAPIRoute1Status299, error) {
// TODO: Validate the params before sending
@@ -800,7 +868,7 @@ func (a *Client) CityBusAPIRoute1(params *CityBusAPIRoute1Params) (*CityBusAPIRo
Method: "GET",
PathPattern: "/v2/Bus/Route/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRoute1Reader{formats: a.formats},
@@ -822,9 +890,9 @@ func (a *Client) CityBusAPIRoute1(params *CityBusAPIRoute1Params) (*CityBusAPIRo
}
/*
-CityBusAPISchedule 取得指定s 縣市 的市區公車路線班表資料
+ CityBusAPISchedule 取得指定s 縣市 的市區公車路線班表資料
-市區公車之班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表
+ 市區公車之班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表
*/
func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error) {
// TODO: Validate the params before sending
@@ -837,7 +905,7 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
Method: "GET",
PathPattern: "/v2/Bus/Schedule/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIScheduleReader{formats: a.formats},
@@ -859,9 +927,9 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
}
/*
-CityBusAPISchedule1 取得指定s 縣市 路線名稱 的市區公車路線班表資料
+ CityBusAPISchedule1 取得指定s 縣市 路線名稱 的市區公車路線班表資料
-市區公車之預定班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表
+ 市區公車之預定班表及班距資料。一般市區公車班次較多時會採用【班距】式時刻表;班次較少時會採用【班表】式時刻表
*/
func (a *Client) CityBusAPISchedule1(params *CityBusAPISchedule1Params) (*CityBusAPISchedule1OK, *CityBusAPISchedule1Status299, error) {
// TODO: Validate the params before sending
@@ -874,7 +942,7 @@ func (a *Client) CityBusAPISchedule1(params *CityBusAPISchedule1Params) (*CityBu
Method: "GET",
PathPattern: "/v2/Bus/Schedule/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPISchedule1Reader{formats: a.formats},
@@ -896,9 +964,9 @@ func (a *Client) CityBusAPISchedule1(params *CityBusAPISchedule1Params) (*CityBu
}
/*
-CityBusAPIShape 取得指定s 縣市 的市區公車線型資料
+ CityBusAPIShape 取得指定s 縣市 的市區公車線型資料
-市區公車之線型資料
+ 市區公車之線型資料
*/
func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error) {
// TODO: Validate the params before sending
@@ -911,7 +979,7 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
Method: "GET",
PathPattern: "/v2/Bus/Shape/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIShapeReader{formats: a.formats},
@@ -933,9 +1001,9 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
}
/*
-CityBusAPIShape1 取得指定s 縣市 路線名稱 的市區公車線型資料
+ CityBusAPIShape1 取得指定s 縣市 路線名稱 的市區公車線型資料
-市區公車之線型資料
+ 市區公車之線型資料
*/
func (a *Client) CityBusAPIShape1(params *CityBusAPIShape1Params) (*CityBusAPIShape1OK, *CityBusAPIShape1Status299, error) {
// TODO: Validate the params before sending
@@ -948,7 +1016,7 @@ func (a *Client) CityBusAPIShape1(params *CityBusAPIShape1Params) (*CityBusAPISh
Method: "GET",
PathPattern: "/v2/Bus/Shape/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIShape1Reader{formats: a.formats},
@@ -970,9 +1038,9 @@ func (a *Client) CityBusAPIShape1(params *CityBusAPIShape1Params) (*CityBusAPISh
}
/*
-CityBusAPIStation 取得指定s 縣市 的市區公車站位資料
+ CityBusAPIStation 取得指定s 縣市 的市區公車站位資料
-市區公車之各站牌所屬的站位資料
+ 市區公車之各站牌所屬的站位資料
*/
func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error) {
// TODO: Validate the params before sending
@@ -985,7 +1053,7 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
Method: "GET",
PathPattern: "/v2/Bus/Station/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStationReader{formats: a.formats},
@@ -1007,9 +1075,9 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
}
/*
-CityBusAPIStationGroup 取得指定s 縣市 的市區公車組站位資料
+ CityBusAPIStationGroup 取得指定s 縣市 的市區公車組站位資料
-市區公車之各站牌所屬的組站位資料
+ 市區公車之各站牌所屬的組站位資料
*/
func (a *Client) CityBusAPIStationGroup(params *CityBusAPIStationGroupParams) (*CityBusAPIStationGroupOK, *CityBusAPIStationGroupStatus299, error) {
// TODO: Validate the params before sending
@@ -1022,7 +1090,7 @@ func (a *Client) CityBusAPIStationGroup(params *CityBusAPIStationGroupParams) (*
Method: "GET",
PathPattern: "/v2/Bus/StationGroup/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStationGroupReader{formats: a.formats},
@@ -1044,9 +1112,9 @@ func (a *Client) CityBusAPIStationGroup(params *CityBusAPIStationGroupParams) (*
}
/*
-CityBusAPIStationName 取得指定s 縣市 的市區公車站名碼資料
+ CityBusAPIStationName 取得指定s 縣市 的市區公車站名碼資料
-市區公車之各站牌所屬的站名碼資料
+ 市區公車之各站牌所屬的站名碼資料
*/
func (a *Client) CityBusAPIStationName(params *CityBusAPIStationNameParams) (*CityBusAPIStationNameOK, *CityBusAPIStationNameStatus299, error) {
// TODO: Validate the params before sending
@@ -1059,7 +1127,7 @@ func (a *Client) CityBusAPIStationName(params *CityBusAPIStationNameParams) (*Ci
Method: "GET",
PathPattern: "/v2/Bus/StationName/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStationNameReader{formats: a.formats},
@@ -1081,9 +1149,9 @@ func (a *Client) CityBusAPIStationName(params *CityBusAPIStationNameParams) (*Ci
}
/*
-CityBusAPIStop 取得指定s 縣市 的市區公車站牌資料
+ CityBusAPIStop 取得指定s 縣市 的市區公車站牌資料
-市區公車之站牌資料
+ 市區公車之站牌資料
*/
func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error) {
// TODO: Validate the params before sending
@@ -1096,7 +1164,7 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
Method: "GET",
PathPattern: "/v2/Bus/Stop/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStopReader{formats: a.formats},
@@ -1118,9 +1186,9 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
}
/*
-CityBusAPIStopOfRoute 取得指定s 縣市 的市區公車路線站序資料
+ CityBusAPIStopOfRoute 取得指定s 縣市 的市區公車路線站序資料
-市區公車之路線站序資料
+ 市區公車之路線站序資料
*/
func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -1133,7 +1201,7 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStopOfRouteReader{formats: a.formats},
@@ -1155,9 +1223,9 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
}
/*
-CityBusAPIStopOfRoute1 取得指定s 縣市 路線名稱 的市區公車路線站序資料
+ CityBusAPIStopOfRoute1 取得指定s 縣市 路線名稱 的市區公車路線站序資料
-市區公車之路線站序資料
+ 市區公車之路線站序資料
*/
func (a *Client) CityBusAPIStopOfRoute1(params *CityBusAPIStopOfRoute1Params) (*CityBusAPIStopOfRoute1OK, *CityBusAPIStopOfRoute1Status299, error) {
// TODO: Validate the params before sending
@@ -1170,7 +1238,7 @@ func (a *Client) CityBusAPIStopOfRoute1(params *CityBusAPIStopOfRoute1Params) (*
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStopOfRoute1Reader{formats: a.formats},
@@ -1192,9 +1260,9 @@ func (a *Client) CityBusAPIStopOfRoute1(params *CityBusAPIStopOfRoute1Params) (*
}
/*
-CityBusAPIVehicle 取得指定s 縣市 的市區公車車輛資料
+ CityBusAPIVehicle 取得指定s 縣市 的市區公車車輛資料
-市區公車之車輛資料
+ 市區公車之車輛資料
*/
func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error) {
// TODO: Validate the params before sending
@@ -1207,7 +1275,7 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
Method: "GET",
PathPattern: "/v2/Bus/Vehicle/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIVehicleReader{formats: a.formats},
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_parameters.go
index 7ee058f5..b89a5a7f 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_data_version_parameters.go
@@ -13,8 +13,7 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIDataVersionParams creates a new InterCityBusAPIDataVersionParams object
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 a833e1ec..c8ff5f31 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIDataVersionReader is a Reader for the InterCityBusAPIDataVersion structure.
@@ -85,20 +84,20 @@ func NewInterCityBusAPIDataVersionStatus299() *InterCityBusAPIDataVersionStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIDataVersionStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIDataVersionStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/DataVersion/InterCity][%d] interCityBusApiDataVersionStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIDataVersionStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIDataVersionStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIDataVersionStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_parameters.go
index 3d5365d4..bfbac1a8 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIEstimatedTimeOfArrival1Params creates a new InterCityBusAPIEstimatedTimeOfArrival1Params object
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 f30528f1..2671ffb5 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIEstimatedTimeOfArrival1Reader is a Reader for the InterCityBusAPIEstimatedTimeOfArrival1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrival1Status299() *InterCityBusAPIEstima
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrival1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_parameters.go
index ecc51070..83a1ba03 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIEstimatedTimeOfArrivalParams creates a new InterCityBusAPIEstimatedTimeOfArrivalParams object
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 7aaf9017..9b639b2c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIEstimatedTimeOfArrivalReader is a Reader for the InterCityBusAPIEstimatedTimeOfArrival structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalStatus299() *InterCityBusAPIEstimat
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/EstimatedTimeOfArrival/InterCity][%d] interCityBusApiEstimatedTimeOfArrivalStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
index 71105b69..2e5f3dd8 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIEstimatedTimeOfArrivalUDP1Params creates a new InterCityBusAPIEstimatedTimeOfArrivalUDP1Params object
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 a8d1b9ff..997cec54 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIEstimatedTimeOfArrivalUDP1Reader is a Reader for the InterCityBusAPIEstimatedTimeOfArrivalUDP1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUdp1Status299() *InterCityBusAPIEst
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_parameters.go
index 9758bc4b..380d6106 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_estimated_time_of_arrival_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIEstimatedTimeOfArrivalUDPParams creates a new InterCityBusAPIEstimatedTimeOfArrivalUDPParams object
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 4d39124f..2a7bb3e2 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIEstimatedTimeOfArrivalUDPReader is a Reader for the InterCityBusAPIEstimatedTimeOfArrivalUDP structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIEstimatedTimeOfArrivalUDPStatus299() *InterCityBusAPIEsti
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_news_parameters.go
index 6d95181b..320b7091 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_news_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPINewsParams creates a new InterCityBusAPINewsParams object
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 92fd9342..8d12739e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPINewsReader is a Reader for the InterCityBusAPINews structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPINewsStatus299() *InterCityBusAPINewsStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPINewsStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/News/InterCity][%d] interCityBusApiNewsStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPINewsStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPINewsStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPINewsStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_parameters.go
index dbbd1e41..bf15f8fa 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIOperatorParams creates a new InterCityBusAPIOperatorParams object
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 7f00faf7..dea46e94 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIOperatorReader is a Reader for the InterCityBusAPIOperator structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIOperatorStatus299() *InterCityBusAPIOperatorStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIOperatorStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Operator/InterCity][%d] interCityBusApiOperatorStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIOperatorStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIOperatorStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIOperatorStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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
deleted file mode 100644
index 7926e5c1..00000000
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_responses.go
+++ /dev/null
@@ -1,107 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package inter_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"
-
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
-)
-
-// InterCityBusAPIRealTimeByFrequency1Reader is a Reader for the InterCityBusAPIRealTimeByFrequency1 structure.
-type InterCityBusAPIRealTimeByFrequency1Reader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *InterCityBusAPIRealTimeByFrequency1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewInterCityBusAPIRealTimeByFrequency1OK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 299:
- result := NewInterCityBusAPIRealTimeByFrequency1Status299()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
-
- default:
- return nil, runtime.NewAPIError("unknown error", response, response.Code())
- }
-}
-
-// NewInterCityBusAPIRealTimeByFrequency1OK creates a InterCityBusAPIRealTimeByFrequency1OK with default headers values
-func NewInterCityBusAPIRealTimeByFrequency1OK() *InterCityBusAPIRealTimeByFrequency1OK {
- return &InterCityBusAPIRealTimeByFrequency1OK{}
-}
-
-/*InterCityBusAPIRealTimeByFrequency1OK handles this case with default header values.
-
-OK
-*/
-type InterCityBusAPIRealTimeByFrequency1OK struct {
- Payload []*models.ServiceDTOVersion2BusBusA1Data
-}
-
-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 {
- return o.Payload
-}
-
-func (o *InterCityBusAPIRealTimeByFrequency1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- // response payload
- if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewInterCityBusAPIRealTimeByFrequency1Status299 creates a InterCityBusAPIRealTimeByFrequency1Status299 with default headers values
-func NewInterCityBusAPIRealTimeByFrequency1Status299() *InterCityBusAPIRealTimeByFrequency1Status299 {
- return &InterCityBusAPIRealTimeByFrequency1Status299{}
-}
-
-/*InterCityBusAPIRealTimeByFrequency1Status299 handles this case with default header values.
-
-加入參數'?health=true'即可查詢此API服務的健康狀態
-*/
-type InterCityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
-}
-
-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.ServiceDTOVersion3BaseHealth {
- return o.Payload
-}
-
-func (o *InterCityBusAPIRealTimeByFrequency1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_parameters.go
similarity index 62%
rename from bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_parameters.go
rename to bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_parameters.go
index cf4b698b..f5bd30f9 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_parameters.go
@@ -13,66 +13,65 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
-// NewInterCityBusAPIRealTimeByFrequency1Params creates a new InterCityBusAPIRealTimeByFrequency1Params object
+// NewInterCityBusAPIRealTimeByFrequency2Params creates a new InterCityBusAPIRealTimeByFrequency2Params object
// with the default values initialized.
-func NewInterCityBusAPIRealTimeByFrequency1Params() *InterCityBusAPIRealTimeByFrequency1Params {
+func NewInterCityBusAPIRealTimeByFrequency2Params() *InterCityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &InterCityBusAPIRealTimeByFrequency1Params{
+ return &InterCityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
timeout: cr.DefaultTimeout,
}
}
-// NewInterCityBusAPIRealTimeByFrequency1ParamsWithTimeout creates a new InterCityBusAPIRealTimeByFrequency1Params object
+// NewInterCityBusAPIRealTimeByFrequency2ParamsWithTimeout creates a new InterCityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a timeout on a request
-func NewInterCityBusAPIRealTimeByFrequency1ParamsWithTimeout(timeout time.Duration) *InterCityBusAPIRealTimeByFrequency1Params {
+func NewInterCityBusAPIRealTimeByFrequency2ParamsWithTimeout(timeout time.Duration) *InterCityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &InterCityBusAPIRealTimeByFrequency1Params{
+ return &InterCityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
timeout: timeout,
}
}
-// NewInterCityBusAPIRealTimeByFrequency1ParamsWithContext creates a new InterCityBusAPIRealTimeByFrequency1Params object
+// NewInterCityBusAPIRealTimeByFrequency2ParamsWithContext creates a new InterCityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a context for a request
-func NewInterCityBusAPIRealTimeByFrequency1ParamsWithContext(ctx context.Context) *InterCityBusAPIRealTimeByFrequency1Params {
+func NewInterCityBusAPIRealTimeByFrequency2ParamsWithContext(ctx context.Context) *InterCityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &InterCityBusAPIRealTimeByFrequency1Params{
+ return &InterCityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
Context: ctx,
}
}
-// NewInterCityBusAPIRealTimeByFrequency1ParamsWithHTTPClient creates a new InterCityBusAPIRealTimeByFrequency1Params object
+// NewInterCityBusAPIRealTimeByFrequency2ParamsWithHTTPClient creates a new InterCityBusAPIRealTimeByFrequency2Params object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
-func NewInterCityBusAPIRealTimeByFrequency1ParamsWithHTTPClient(client *http.Client) *InterCityBusAPIRealTimeByFrequency1Params {
+func NewInterCityBusAPIRealTimeByFrequency2ParamsWithHTTPClient(client *http.Client) *InterCityBusAPIRealTimeByFrequency2Params {
var (
dollarTopDefault = int64(30)
)
- return &InterCityBusAPIRealTimeByFrequency1Params{
+ return &InterCityBusAPIRealTimeByFrequency2Params{
DollarTop: &dollarTopDefault,
HTTPClient: client,
}
}
-/*InterCityBusAPIRealTimeByFrequency1Params contains all the parameters to send to the API endpoint
-for the inter city bus Api real time by frequency 1 operation typically these are written to a http.Request
+/*InterCityBusAPIRealTimeByFrequency2Params contains all the parameters to send to the API endpoint
+for the inter city bus Api real time by frequency 2 operation typically these are written to a http.Request
*/
-type InterCityBusAPIRealTimeByFrequency1Params struct {
+type InterCityBusAPIRealTimeByFrequency2Params struct {
/*DollarFilter
過濾
@@ -125,140 +124,140 @@ type InterCityBusAPIRealTimeByFrequency1Params struct {
HTTPClient *http.Client
}
-// WithTimeout adds the timeout to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithTimeout(timeout time.Duration) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithTimeout adds the timeout to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithTimeout(timeout time.Duration) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetTimeout(timeout)
return o
}
-// SetTimeout adds the timeout to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetTimeout(timeout time.Duration) {
+// SetTimeout adds the timeout to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetTimeout(timeout time.Duration) {
o.timeout = timeout
}
-// WithContext adds the context to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithContext(ctx context.Context) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithContext adds the context to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithContext(ctx context.Context) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetContext(ctx)
return o
}
-// SetContext adds the context to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetContext(ctx context.Context) {
+// SetContext adds the context to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetContext(ctx context.Context) {
o.Context = ctx
}
-// WithHTTPClient adds the HTTPClient to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithHTTPClient(client *http.Client) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithHTTPClient adds the HTTPClient to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithHTTPClient(client *http.Client) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetHTTPClient(client)
return o
}
-// SetHTTPClient adds the HTTPClient to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetHTTPClient(client *http.Client) {
+// SetHTTPClient adds the HTTPClient to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
}
-// WithDollarFilter adds the dollarFilter to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarFilter(dollarFilter *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarFilter adds the dollarFilter to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarFilter(dollarFilter *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarFilter(dollarFilter)
return o
}
-// SetDollarFilter adds the dollarFilter to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarFilter(dollarFilter *string) {
+// SetDollarFilter adds the dollarFilter to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarFilter(dollarFilter *string) {
o.DollarFilter = dollarFilter
}
-// WithDollarFormat adds the dollarFormat to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarFormat(dollarFormat string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarFormat adds the dollarFormat to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarFormat(dollarFormat string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarFormat(dollarFormat)
return o
}
-// SetDollarFormat adds the dollarFormat to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarFormat(dollarFormat string) {
+// SetDollarFormat adds the dollarFormat to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarFormat(dollarFormat string) {
o.DollarFormat = dollarFormat
}
-// WithDollarOrderby adds the dollarOrderby to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarOrderby(dollarOrderby *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarOrderby adds the dollarOrderby to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarOrderby(dollarOrderby *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarOrderby(dollarOrderby)
return o
}
-// SetDollarOrderby adds the dollarOrderby to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarOrderby(dollarOrderby *string) {
+// SetDollarOrderby adds the dollarOrderby to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarOrderby(dollarOrderby *string) {
o.DollarOrderby = dollarOrderby
}
-// WithDollarSelect adds the dollarSelect to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarSelect(dollarSelect *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarSelect adds the dollarSelect to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarSelect(dollarSelect *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarSelect(dollarSelect)
return o
}
-// SetDollarSelect adds the dollarSelect to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarSelect(dollarSelect *string) {
+// SetDollarSelect adds the dollarSelect to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarSelect(dollarSelect *string) {
o.DollarSelect = dollarSelect
}
-// WithDollarSkip adds the dollarSkip to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarSkip(dollarSkip *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarSkip adds the dollarSkip to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarSkip(dollarSkip *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarSkip(dollarSkip)
return o
}
-// SetDollarSkip adds the dollarSkip to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarSkip(dollarSkip *string) {
+// SetDollarSkip adds the dollarSkip to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarSkip(dollarSkip *string) {
o.DollarSkip = dollarSkip
}
-// WithDollarSpatialFilter adds the dollarSpatialFilter to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarSpatialFilter adds the dollarSpatialFilter to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarSpatialFilter(dollarSpatialFilter *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarSpatialFilter(dollarSpatialFilter)
return o
}
-// SetDollarSpatialFilter adds the dollarSpatialFilter to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
+// SetDollarSpatialFilter adds the dollarSpatialFilter to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarSpatialFilter(dollarSpatialFilter *string) {
o.DollarSpatialFilter = dollarSpatialFilter
}
-// WithDollarTop adds the dollarTop to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithDollarTop(dollarTop *int64) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithDollarTop adds the dollarTop to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithDollarTop(dollarTop *int64) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetDollarTop(dollarTop)
return o
}
-// SetDollarTop adds the dollarTop to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetDollarTop(dollarTop *int64) {
+// SetDollarTop adds the dollarTop to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithRouteName adds the routeName to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithRouteName(routeName string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithRouteName adds the routeName to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithRouteName(routeName string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetRouteName(routeName)
return o
}
-// SetRouteName adds the routeName to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetRouteName(routeName string) {
+// SetRouteName adds the routeName to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetRouteName(routeName string) {
o.RouteName = routeName
}
-// WithHealth adds the health to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WithHealth(health *string) *InterCityBusAPIRealTimeByFrequency1Params {
+// WithHealth adds the health to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WithHealth(health *string) *InterCityBusAPIRealTimeByFrequency2Params {
o.SetHealth(health)
return o
}
-// SetHealth adds the health to the inter city bus Api real time by frequency 1 params
-func (o *InterCityBusAPIRealTimeByFrequency1Params) SetHealth(health *string) {
+// SetHealth adds the health to the inter city bus Api real time by frequency 2 params
+func (o *InterCityBusAPIRealTimeByFrequency2Params) SetHealth(health *string) {
o.Health = health
}
// WriteToRequest writes these params to a swagger request
-func (o *InterCityBusAPIRealTimeByFrequency1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+func (o *InterCityBusAPIRealTimeByFrequency2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_responses.go
new file mode 100644
index 00000000..77bba730
--- /dev/null
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency2_responses.go
@@ -0,0 +1,106 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package inter_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/v2/models"
+)
+
+// InterCityBusAPIRealTimeByFrequency2Reader is a Reader for the InterCityBusAPIRealTimeByFrequency2 structure.
+type InterCityBusAPIRealTimeByFrequency2Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *InterCityBusAPIRealTimeByFrequency2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewInterCityBusAPIRealTimeByFrequency2OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 299:
+ result := NewInterCityBusAPIRealTimeByFrequency2Status299()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("unknown error", response, response.Code())
+ }
+}
+
+// NewInterCityBusAPIRealTimeByFrequency2OK creates a InterCityBusAPIRealTimeByFrequency2OK with default headers values
+func NewInterCityBusAPIRealTimeByFrequency2OK() *InterCityBusAPIRealTimeByFrequency2OK {
+ return &InterCityBusAPIRealTimeByFrequency2OK{}
+}
+
+/*InterCityBusAPIRealTimeByFrequency2OK handles this case with default header values.
+
+OK
+*/
+type InterCityBusAPIRealTimeByFrequency2OK struct {
+ Payload []*models.ServiceDTOVersion2BusBusA1Data
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2OK) Error() string {
+ return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequency2OK %+v", 200, o.Payload)
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2OK) GetPayload() []*models.ServiceDTOVersion2BusBusA1Data {
+ return o.Payload
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewInterCityBusAPIRealTimeByFrequency2Status299 creates a InterCityBusAPIRealTimeByFrequency2Status299 with default headers values
+func NewInterCityBusAPIRealTimeByFrequency2Status299() *InterCityBusAPIRealTimeByFrequency2Status299 {
+ return &InterCityBusAPIRealTimeByFrequency2Status299{}
+}
+
+/*InterCityBusAPIRealTimeByFrequency2Status299 handles this case with default header values.
+
+加入參數'?health=true'即可查詢此API服務的健康狀態
+*/
+type InterCityBusAPIRealTimeByFrequency2Status299 struct {
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2Status299) Error() string {
+ return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity/{RouteName}][%d] interCityBusApiRealTimeByFrequency2Status299 %+v", 299, o.Payload)
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
+ return o.Payload
+}
+
+func (o *InterCityBusAPIRealTimeByFrequency2Status299) 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/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_parameters.go
index 417311ec..ed176124 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeByFrequencyParams creates a new InterCityBusAPIRealTimeByFrequencyParams object
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 e0a9944e..21c6c047 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeByFrequencyReader is a Reader for the InterCityBusAPIRealTimeByFrequency structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyStatus299() *InterCityBusAPIRealTimeBy
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeByFrequencyStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeByFrequency/InterCity][%d] interCityBusApiRealTimeByFrequencyStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_parameters.go
index 3f304a77..e5c66a63 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeByFrequencyUDP1Params creates a new InterCityBusAPIRealTimeByFrequencyUDP1Params object
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 997266b3..7df8effc 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeByFrequencyUDP1Reader is a Reader for the InterCityBusAPIRealTimeByFrequencyUDP1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyUdp1Status299() *InterCityBusAPIRealTi
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_parameters.go
index 01eef738..2f560b24 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_by_frequency_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeByFrequencyUDPParams creates a new InterCityBusAPIRealTimeByFrequencyUDPParams object
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 337c423a..172c274e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeByFrequencyUDPReader is a Reader for the InterCityBusAPIRealTimeByFrequencyUDP structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeByFrequencyUDPStatus299() *InterCityBusAPIRealTim
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeByFrequencyUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeByFrequencyUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_parameters.go
index 6c0ee543..063aeb8d 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeNearStop1Params creates a new InterCityBusAPIRealTimeNearStop1Params object
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 3cafe23c..d53e04ea 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeNearStop1Reader is a Reader for the InterCityBusAPIRealTimeNearStop1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStop1Status299() *InterCityBusAPIRealTimeNear
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeNearStop1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStop1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_parameters.go
index c8e8567b..ec7931be 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeNearStopParams creates a new InterCityBusAPIRealTimeNearStopParams object
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 3ec52785..0927e6ab 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeNearStopReader is a Reader for the InterCityBusAPIRealTimeNearStop structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopStatus299() *InterCityBusAPIRealTimeNearS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIRealTimeNearStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RealTimeNearStop/InterCity][%d] interCityBusApiRealTimeNearStopStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRealTimeNearStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeNearStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_parameters.go
index df317bfb..c8f32f8c 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeNearStopUDP1Params creates a new InterCityBusAPIRealTimeNearStopUDP1Params object
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 503756b7..71b04bcf 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeNearStopUDP1Reader is a Reader for the InterCityBusAPIRealTimeNearStopUDP1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopUdp1Status299() *InterCityBusAPIRealTimeN
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopUdp1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopUdp1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_parameters.go
index a730e231..6d26b2d3 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_real_time_near_stop_udp_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRealTimeNearStopUDPParams creates a new InterCityBusAPIRealTimeNearStopUDPParams object
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 fcf6a3eb..926ba3ec 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRealTimeNearStopUDPReader is a Reader for the InterCityBusAPIRealTimeNearStopUDP structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRealTimeNearStopUDPStatus299() *InterCityBusAPIRealTimeNe
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRealTimeNearStopUDPStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRealTimeNearStopUDPStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_parameters.go
index 6b59cd60..42a06661 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRoute1Params creates a new InterCityBusAPIRoute1Params object
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 543f56cf..69c772fa 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRoute1Reader is a Reader for the InterCityBusAPIRoute1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRoute1Status299() *InterCityBusAPIRoute1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_parameters.go
index 42ede6e8..a60a9fb9 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRouteFare1Params creates a new InterCityBusAPIRouteFare1Params object
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 03a2c15c..de45438f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRouteFare1Reader is a Reader for the InterCityBusAPIRouteFare1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRouteFare1Status299() *InterCityBusAPIRouteFare1Status299
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteFare1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRouteFare1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteFare1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_parameters.go
index 4c16898c..c5ac8706 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRouteFareParams creates a new InterCityBusAPIRouteFareParams object
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 5fc2b8ef..20900a92 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRouteFareReader is a Reader for the InterCityBusAPIRouteFare structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRouteFareStatus299() *InterCityBusAPIRouteFareStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIRouteFareStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/RouteFare/InterCity][%d] interCityBusApiRouteFareStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRouteFareStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRouteFareStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteFareStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_parameters.go
index a3b743fa..c86673ff 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_route_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIRouteParams creates a new InterCityBusAPIRouteParams object
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 329369b0..34d55ec6 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIRouteReader is a Reader for the InterCityBusAPIRoute structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIRouteStatus299() *InterCityBusAPIRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Route/InterCity][%d] interCityBusApiRouteStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_parameters.go
index 821bd9f6..d0840ca5 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPISchedule1Params creates a new InterCityBusAPISchedule1Params object
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 ff7fd568..4c1a3b4d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPISchedule1Reader is a Reader for the InterCityBusAPISchedule1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPISchedule1Status299() *InterCityBusAPISchedule1Status299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPISchedule1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPISchedule1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPISchedule1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_parameters.go
index 09ba9c1c..f1fbcea4 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_schedule_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIScheduleParams creates a new InterCityBusAPIScheduleParams object
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 74bbc944..cfec800c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIScheduleReader is a Reader for the InterCityBusAPISchedule structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIScheduleStatus299() *InterCityBusAPIScheduleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIScheduleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Schedule/InterCity][%d] interCityBusApiScheduleStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIScheduleStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIScheduleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIScheduleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_parameters.go
index 85d91c6a..9f31b45c 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_group_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStationGroupParams creates a new InterCityBusAPIStationGroupParams object
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 8f2665cd..19ac2fb8 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStationGroupReader is a Reader for the InterCityBusAPIStationGroup structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStationGroupStatus299() *InterCityBusAPIStationGroupStatu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStationGroupStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIStationGroupStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationGroup/InterCity][%d] interCityBusApiStationGroupStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStationGroupStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStationGroupStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStationGroupStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_name_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_parameters.go
index fef40e4a..f07265e0 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStationNameParams creates a new InterCityBusAPIStationNameParams object
diff --git a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_responses.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_responses.go
index adc53090..ac7e111e 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_responses.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_name_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStationNameReader is a Reader for the InterCityBusAPIStationName structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStationNameStatus299() *InterCityBusAPIStationNameStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStationNameStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIStationNameStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StationName/InterCity][%d] interCityBusApiStationNameStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStationNameStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStationNameStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStationNameStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_parameters.go
index 3a48c912..7b90e8a3 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_station_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStationParams creates a new InterCityBusAPIStationParams object
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 5c30b184..98078cfb 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStationReader is a Reader for the InterCityBusAPIStation structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStationStatus299() *InterCityBusAPIStationStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIStationStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Station/InterCity][%d] interCityBusApiStationStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStationStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStationStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStationStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_parameters.go
index dab40a74..50c297e5 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStopOfRoute1Params creates a new InterCityBusAPIStopOfRoute1Params object
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 78dd0406..264258bb 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStopOfRoute1Reader is a Reader for the InterCityBusAPIStopOfRoute1 structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStopOfRoute1Status299() *InterCityBusAPIStopOfRoute1Statu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopOfRoute1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStopOfRoute1Status299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopOfRoute1Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_parameters.go
index f94274ca..f323d96f 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_of_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStopOfRouteParams creates a new InterCityBusAPIStopOfRouteParams object
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 690ab649..df30e1bf 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStopOfRouteReader is a Reader for the InterCityBusAPIStopOfRoute structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStopOfRouteStatus299() *InterCityBusAPIStopOfRouteStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIStopOfRouteStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/StopOfRoute/InterCity][%d] interCityBusApiStopOfRouteStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStopOfRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopOfRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_parameters.go
index 90c0333f..cd514474 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIStopParams creates a new InterCityBusAPIStopParams object
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 153c6576..7fbbac13 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIStopReader is a Reader for the InterCityBusAPIStop structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIStopStatus299() *InterCityBusAPIStopStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIStopStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Stop/InterCity][%d] interCityBusApiStopStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIStopStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIStopStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_parameters.go
index a88bbb33..e6d700d4 100644
--- a/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_parameters.go
+++ b/bus/v2/client/inter_city_bus/inter_city_bus_api_vehicle_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewInterCityBusAPIVehicleParams creates a new InterCityBusAPIVehicleParams object
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 161e92dc..16c502ef 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v2/models"
+ "github.com/minchao/go-ptx/bus/v2/models"
)
// InterCityBusAPIVehicleReader is a Reader for the InterCityBusAPIVehicle structure.
@@ -83,20 +82,20 @@ func NewInterCityBusAPIVehicleStatus299() *InterCityBusAPIVehicleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type InterCityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
func (o *InterCityBusAPIVehicleStatus299) Error() string {
return fmt.Sprintf("[GET /v2/Bus/Vehicle/InterCity][%d] interCityBusApiVehicleStatus299 %+v", 299, o.Payload)
}
-func (o *InterCityBusAPIVehicleStatus299) GetPayload() *models.ServiceDTOVersion3BaseHealth {
+func (o *InterCityBusAPIVehicleStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *InterCityBusAPIVehicleStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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 3fcfeb96..39e49356 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
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new inter city bus API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,71 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionParams) (*InterCityBusAPIDataVersionOK, *InterCityBusAPIDataVersionStatus299, error)
+
+ InterCityBusAPIEstimatedTimeOfArrival(params *InterCityBusAPIEstimatedTimeOfArrivalParams) (*InterCityBusAPIEstimatedTimeOfArrivalOK, *InterCityBusAPIEstimatedTimeOfArrivalStatus299, error)
+
+ InterCityBusAPIEstimatedTimeOfArrival1(params *InterCityBusAPIEstimatedTimeOfArrival1Params) (*InterCityBusAPIEstimatedTimeOfArrival1OK, *InterCityBusAPIEstimatedTimeOfArrival1Status299, error)
+
+ InterCityBusAPIEstimatedTimeOfArrivalUDP(params *InterCityBusAPIEstimatedTimeOfArrivalUDPParams) (*InterCityBusAPIEstimatedTimeOfArrivalUDPOK, *InterCityBusAPIEstimatedTimeOfArrivalUDPStatus299, error)
+
+ InterCityBusAPIEstimatedTimeOfArrivalUDP1(params *InterCityBusAPIEstimatedTimeOfArrivalUDP1Params) (*InterCityBusAPIEstimatedTimeOfArrivalUdp1OK, *InterCityBusAPIEstimatedTimeOfArrivalUdp1Status299, error)
+
+ InterCityBusAPINews(params *InterCityBusAPINewsParams) (*InterCityBusAPINewsOK, *InterCityBusAPINewsStatus299, error)
+
+ InterCityBusAPIOperator(params *InterCityBusAPIOperatorParams) (*InterCityBusAPIOperatorOK, *InterCityBusAPIOperatorStatus299, error)
+
+ InterCityBusAPIRealTimeByFrequency(params *InterCityBusAPIRealTimeByFrequencyParams) (*InterCityBusAPIRealTimeByFrequencyOK, *InterCityBusAPIRealTimeByFrequencyStatus299, error)
+
+ InterCityBusAPIRealTimeByFrequency2(params *InterCityBusAPIRealTimeByFrequency2Params) (*InterCityBusAPIRealTimeByFrequency2OK, *InterCityBusAPIRealTimeByFrequency2Status299, error)
+
+ InterCityBusAPIRealTimeByFrequencyUDP(params *InterCityBusAPIRealTimeByFrequencyUDPParams) (*InterCityBusAPIRealTimeByFrequencyUDPOK, *InterCityBusAPIRealTimeByFrequencyUDPStatus299, error)
+
+ InterCityBusAPIRealTimeByFrequencyUDP1(params *InterCityBusAPIRealTimeByFrequencyUDP1Params) (*InterCityBusAPIRealTimeByFrequencyUdp1OK, *InterCityBusAPIRealTimeByFrequencyUdp1Status299, error)
+
+ InterCityBusAPIRealTimeNearStop(params *InterCityBusAPIRealTimeNearStopParams) (*InterCityBusAPIRealTimeNearStopOK, *InterCityBusAPIRealTimeNearStopStatus299, error)
+
+ InterCityBusAPIRealTimeNearStop1(params *InterCityBusAPIRealTimeNearStop1Params) (*InterCityBusAPIRealTimeNearStop1OK, *InterCityBusAPIRealTimeNearStop1Status299, error)
+
+ InterCityBusAPIRealTimeNearStopUDP(params *InterCityBusAPIRealTimeNearStopUDPParams) (*InterCityBusAPIRealTimeNearStopUDPOK, *InterCityBusAPIRealTimeNearStopUDPStatus299, error)
+
+ InterCityBusAPIRealTimeNearStopUDP1(params *InterCityBusAPIRealTimeNearStopUDP1Params) (*InterCityBusAPIRealTimeNearStopUdp1OK, *InterCityBusAPIRealTimeNearStopUdp1Status299, error)
+
+ InterCityBusAPIRoute(params *InterCityBusAPIRouteParams) (*InterCityBusAPIRouteOK, *InterCityBusAPIRouteStatus299, error)
+
+ InterCityBusAPIRouteFare(params *InterCityBusAPIRouteFareParams) (*InterCityBusAPIRouteFareOK, *InterCityBusAPIRouteFareStatus299, error)
+
+ InterCityBusAPIRouteFare1(params *InterCityBusAPIRouteFare1Params) (*InterCityBusAPIRouteFare1OK, *InterCityBusAPIRouteFare1Status299, error)
+
+ InterCityBusAPIRoute1(params *InterCityBusAPIRoute1Params) (*InterCityBusAPIRoute1OK, *InterCityBusAPIRoute1Status299, error)
+
+ InterCityBusAPISchedule(params *InterCityBusAPIScheduleParams) (*InterCityBusAPIScheduleOK, *InterCityBusAPIScheduleStatus299, error)
+
+ InterCityBusAPISchedule1(params *InterCityBusAPISchedule1Params) (*InterCityBusAPISchedule1OK, *InterCityBusAPISchedule1Status299, error)
+
+ InterCityBusAPIStation(params *InterCityBusAPIStationParams) (*InterCityBusAPIStationOK, *InterCityBusAPIStationStatus299, error)
+
+ InterCityBusAPIStationGroup(params *InterCityBusAPIStationGroupParams) (*InterCityBusAPIStationGroupOK, *InterCityBusAPIStationGroupStatus299, error)
+
+ InterCityBusAPIStationName(params *InterCityBusAPIStationNameParams) (*InterCityBusAPIStationNameOK, *InterCityBusAPIStationNameStatus299, error)
+
+ InterCityBusAPIStop(params *InterCityBusAPIStopParams) (*InterCityBusAPIStopOK, *InterCityBusAPIStopStatus299, error)
+
+ InterCityBusAPIStopOfRoute(params *InterCityBusAPIStopOfRouteParams) (*InterCityBusAPIStopOfRouteOK, *InterCityBusAPIStopOfRouteStatus299, error)
+
+ InterCityBusAPIStopOfRoute1(params *InterCityBusAPIStopOfRoute1Params) (*InterCityBusAPIStopOfRoute1OK, *InterCityBusAPIStopOfRoute1Status299, error)
+
+ InterCityBusAPIVehicle(params *InterCityBusAPIVehicleParams) (*InterCityBusAPIVehicleOK, *InterCityBusAPIVehicleStatus299, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-InterCityBusAPIDataVersion 取得公路客運目前資料的最新版本資訊s
+ InterCityBusAPIDataVersion 取得公路客運目前資料的最新版本資訊s
-版本詳細資訊
+ 版本詳細資訊
*/
func (a *Client) InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionParams) (*InterCityBusAPIDataVersionOK, *InterCityBusAPIDataVersionStatus299, error) {
// TODO: Validate the params before sending
@@ -42,7 +102,7 @@ func (a *Client) InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionPa
Method: "GET",
PathPattern: "/v2/Bus/DataVersion/InterCity",
ProducesMediaTypes: []string{"application/json", "application/xml", "text/json", "text/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIDataVersionReader{formats: a.formats},
@@ -64,9 +124,9 @@ func (a *Client) InterCityBusAPIDataVersion(params *InterCityBusAPIDataVersionPa
}
/*
-InterCityBusAPIEstimatedTimeOfArrival 取得公路客運的預估到站資料s n1 批次更新
+ InterCityBusAPIEstimatedTimeOfArrival 取得公路客運的預估到站資料s n1 批次更新
-###公路客運之預估到站資料(N1)###
+ ###公路客運之預估到站資料(N1)###
- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
@@ -81,7 +141,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival(params *InterCityBusAPIEs
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIEstimatedTimeOfArrivalReader{formats: a.formats},
@@ -103,9 +163,9 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival(params *InterCityBusAPIEs
}
/*
-InterCityBusAPIEstimatedTimeOfArrival1 取得指定s 路線名稱 的公路客運預估到站資料 n1 批次更新
+ InterCityBusAPIEstimatedTimeOfArrival1 取得指定s 路線名稱 的公路客運預估到站資料 n1 批次更新
-### 公路客運之預估到站資料(N1) ###
+ ### 公路客運之預估到站資料(N1) ###
- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
@@ -120,7 +180,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival1(params *InterCityBusAPIE
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIEstimatedTimeOfArrival1Reader{formats: a.formats},
@@ -142,9 +202,9 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrival1(params *InterCityBusAPIE
}
/*
-InterCityBusAPIEstimatedTimeOfArrivalUDP 取得公路客運的預估到站資料s n1 逐筆更新
+ InterCityBusAPIEstimatedTimeOfArrivalUDP 取得公路客運的預估到站資料s n1 逐筆更新
-### 公路客運之預估到站資料(N1) ###
+ ### 公路客運之預估到站資料(N1) ###
- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。
@@ -160,7 +220,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP(params *InterCityBusAP
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIEstimatedTimeOfArrivalUDPReader{formats: a.formats},
@@ -182,9 +242,9 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP(params *InterCityBusAP
}
/*
-InterCityBusAPIEstimatedTimeOfArrivalUDP1 取得指定s 路線名稱 的公路客運預估到站資料 n1 逐筆更新
+ InterCityBusAPIEstimatedTimeOfArrivalUDP1 取得指定s 路線名稱 的公路客運預估到站資料 n1 逐筆更新
-### 公路客運之預估到站資料(N1) ###
+ ### 公路客運之預估到站資料(N1) ###
- 不保留[現在時間]超過[本平台資料更新時間]兩分鐘的資料
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
- N1僅於該路線上有任一車輛離站時,來源端才會重新計算並發佈,因此使用者需自行處理時間遞減機制,或以EstimateTime-(收到資料時間-SrcTrasTime)(秒)作為實際預估抵達時間。
@@ -200,7 +260,7 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP1(params *InterCityBusA
Method: "GET",
PathPattern: "/v2/Bus/EstimatedTimeOfArrival/Streaming/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIEstimatedTimeOfArrivalUDP1Reader{formats: a.formats},
@@ -222,9 +282,9 @@ func (a *Client) InterCityBusAPIEstimatedTimeOfArrivalUDP1(params *InterCityBusA
}
/*
-InterCityBusAPINews 取得公路客運之最新消息s
+ InterCityBusAPINews 取得公路客運之最新消息s
-公路客運之最新消息
+ 公路客運之最新消息
*/
func (a *Client) InterCityBusAPINews(params *InterCityBusAPINewsParams) (*InterCityBusAPINewsOK, *InterCityBusAPINewsStatus299, error) {
// TODO: Validate the params before sending
@@ -237,7 +297,7 @@ func (a *Client) InterCityBusAPINews(params *InterCityBusAPINewsParams) (*InterC
Method: "GET",
PathPattern: "/v2/Bus/News/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPINewsReader{formats: a.formats},
@@ -259,9 +319,9 @@ func (a *Client) InterCityBusAPINews(params *InterCityBusAPINewsParams) (*InterC
}
/*
-InterCityBusAPIOperator 取得公路客運的營運業者資料s
+ InterCityBusAPIOperator 取得公路客運的營運業者資料s
-公路客運之營運業者資料
+ 公路客運之營運業者資料
*/
func (a *Client) InterCityBusAPIOperator(params *InterCityBusAPIOperatorParams) (*InterCityBusAPIOperatorOK, *InterCityBusAPIOperatorStatus299, error) {
// TODO: Validate the params before sending
@@ -274,7 +334,7 @@ func (a *Client) InterCityBusAPIOperator(params *InterCityBusAPIOperatorParams)
Method: "GET",
PathPattern: "/v2/Bus/Operator/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIOperatorReader{formats: a.formats},
@@ -296,9 +356,9 @@ func (a *Client) InterCityBusAPIOperator(params *InterCityBusAPIOperatorParams)
}
/*
-InterCityBusAPIRealTimeByFrequency 取得公路客運的動態定時資料s a1 批次更新
+ InterCityBusAPIRealTimeByFrequency 取得公路客運的動態定時資料s a1 批次更新
-### 公路客運之定時資料(A1) ###
+ ### 公路客運之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeByFrequency(params *InterCityBusAPIRealTimeByFrequencyParams) (*InterCityBusAPIRealTimeByFrequencyOK, *InterCityBusAPIRealTimeByFrequencyStatus299, error) {
@@ -312,7 +372,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency(params *InterCityBusAPIRealT
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeByFrequencyReader{formats: a.formats},
@@ -334,26 +394,26 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency(params *InterCityBusAPIRealT
}
/*
-InterCityBusAPIRealTimeByFrequency1 取得指定s 路線名稱 的公路客運動態定時資料 a1 批次更新
+ InterCityBusAPIRealTimeByFrequency2 取得指定s 路線名稱 的公路客運動態定時資料 a1 批次更新
-### 公路客運之定時資料(A1) ###
+ ### 公路客運之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
-func (a *Client) InterCityBusAPIRealTimeByFrequency1(params *InterCityBusAPIRealTimeByFrequency1Params) (*InterCityBusAPIRealTimeByFrequency1OK, *InterCityBusAPIRealTimeByFrequency1Status299, error) {
+func (a *Client) InterCityBusAPIRealTimeByFrequency2(params *InterCityBusAPIRealTimeByFrequency2Params) (*InterCityBusAPIRealTimeByFrequency2OK, *InterCityBusAPIRealTimeByFrequency2Status299, error) {
// TODO: Validate the params before sending
if params == nil {
- params = NewInterCityBusAPIRealTimeByFrequency1Params()
+ params = NewInterCityBusAPIRealTimeByFrequency2Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
- ID: "InterCityBusApi_RealTimeByFrequency_1",
+ ID: "InterCityBusApi_RealTimeByFrequency_2",
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
- Reader: &InterCityBusAPIRealTimeByFrequency1Reader{formats: a.formats},
+ Reader: &InterCityBusAPIRealTimeByFrequency2Reader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
@@ -361,9 +421,9 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency1(params *InterCityBusAPIReal
return nil, nil, err
}
switch value := result.(type) {
- case *InterCityBusAPIRealTimeByFrequency1OK:
+ case *InterCityBusAPIRealTimeByFrequency2OK:
return value, nil, nil
- case *InterCityBusAPIRealTimeByFrequency1Status299:
+ case *InterCityBusAPIRealTimeByFrequency2Status299:
return nil, value, nil
}
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
@@ -372,9 +432,9 @@ func (a *Client) InterCityBusAPIRealTimeByFrequency1(params *InterCityBusAPIReal
}
/*
-InterCityBusAPIRealTimeByFrequencyUDP 取得公路客運的動態定時資料s a1 逐筆更新
+ InterCityBusAPIRealTimeByFrequencyUDP 取得公路客運的動態定時資料s a1 逐筆更新
-### 公路客運之定時資料(A1) ###
+ ### 公路客運之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP(params *InterCityBusAPIRealTimeByFrequencyUDPParams) (*InterCityBusAPIRealTimeByFrequencyUDPOK, *InterCityBusAPIRealTimeByFrequencyUDPStatus299, error) {
@@ -388,7 +448,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP(params *InterCityBusAPIRe
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeByFrequencyUDPReader{formats: a.formats},
@@ -410,9 +470,9 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP(params *InterCityBusAPIRe
}
/*
-InterCityBusAPIRealTimeByFrequencyUDP1 取得指定s 路線名稱 的公路客運動態定時資料 a1 逐筆更新
+ InterCityBusAPIRealTimeByFrequencyUDP1 取得指定s 路線名稱 的公路客運動態定時資料 a1 逐筆更新
-### 公路客運之定時資料(A1) ###
+ ### 公路客運之定時資料(A1) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP1(params *InterCityBusAPIRealTimeByFrequencyUDP1Params) (*InterCityBusAPIRealTimeByFrequencyUdp1OK, *InterCityBusAPIRealTimeByFrequencyUdp1Status299, error) {
@@ -426,7 +486,7 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP1(params *InterCityBusAPIR
Method: "GET",
PathPattern: "/v2/Bus/RealTimeByFrequency/Streaming/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeByFrequencyUDP1Reader{formats: a.formats},
@@ -448,9 +508,9 @@ func (a *Client) InterCityBusAPIRealTimeByFrequencyUDP1(params *InterCityBusAPIR
}
/*
-InterCityBusAPIRealTimeNearStop 取得公路客運的動態定點資料s a2 批次更新
+ InterCityBusAPIRealTimeNearStop 取得公路客運的動態定點資料s a2 批次更新
-### 公路客運之定點資料(A2) ###
+ ### 公路客運之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeNearStop(params *InterCityBusAPIRealTimeNearStopParams) (*InterCityBusAPIRealTimeNearStopOK, *InterCityBusAPIRealTimeNearStopStatus299, error) {
@@ -464,7 +524,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStop(params *InterCityBusAPIRealTime
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeNearStopReader{formats: a.formats},
@@ -486,9 +546,9 @@ func (a *Client) InterCityBusAPIRealTimeNearStop(params *InterCityBusAPIRealTime
}
/*
-InterCityBusAPIRealTimeNearStop1 取得指定s 路線名稱 的公路客運動態定點資料 a2 批次更新
+ InterCityBusAPIRealTimeNearStop1 取得指定s 路線名稱 的公路客運動態定點資料 a2 批次更新
-### 公路客運之定點資料(A2) ###
+ ### 公路客運之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeNearStop1(params *InterCityBusAPIRealTimeNearStop1Params) (*InterCityBusAPIRealTimeNearStop1OK, *InterCityBusAPIRealTimeNearStop1Status299, error) {
@@ -502,7 +562,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStop1(params *InterCityBusAPIRealTim
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeNearStop1Reader{formats: a.formats},
@@ -524,9 +584,9 @@ func (a *Client) InterCityBusAPIRealTimeNearStop1(params *InterCityBusAPIRealTim
}
/*
-InterCityBusAPIRealTimeNearStopUDP 取得公路客運的動態定點資料s a2 逐筆更新
+ InterCityBusAPIRealTimeNearStopUDP 取得公路客運的動態定點資料s a2 逐筆更新
-### 公路客運之定點資料(A2) ###
+ ### 公路客運之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeNearStopUDP(params *InterCityBusAPIRealTimeNearStopUDPParams) (*InterCityBusAPIRealTimeNearStopUDPOK, *InterCityBusAPIRealTimeNearStopUDPStatus299, error) {
@@ -540,7 +600,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP(params *InterCityBusAPIRealT
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeNearStopUDPReader{formats: a.formats},
@@ -562,9 +622,9 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP(params *InterCityBusAPIRealT
}
/*
-InterCityBusAPIRealTimeNearStopUDP1 取得指定s 路線名稱 的公路客運動態定點資料 a2 逐筆更新
+ InterCityBusAPIRealTimeNearStopUDP1 取得指定s 路線名稱 的公路客運動態定點資料 a2 逐筆更新
-### 公路客運之定點資料(A2) ###
+ ### 公路客運之定點資料(A2) ###
- [逐筆更新]與[批次更新]之差異請詳見資料使用葵花寶典([連結](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/api-zi-liao-shi-yong-zhu-yi-shi-xiang/buslive.html))
*/
func (a *Client) InterCityBusAPIRealTimeNearStopUDP1(params *InterCityBusAPIRealTimeNearStopUDP1Params) (*InterCityBusAPIRealTimeNearStopUdp1OK, *InterCityBusAPIRealTimeNearStopUdp1Status299, error) {
@@ -578,7 +638,7 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP1(params *InterCityBusAPIReal
Method: "GET",
PathPattern: "/v2/Bus/RealTimeNearStop/Streaming/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRealTimeNearStopUDP1Reader{formats: a.formats},
@@ -600,9 +660,9 @@ func (a *Client) InterCityBusAPIRealTimeNearStopUDP1(params *InterCityBusAPIReal
}
/*
-InterCityBusAPIRoute 取得公路客運路線資料s
+ InterCityBusAPIRoute 取得公路客運路線資料s
-公路客運之路線資料
+ 公路客運之路線資料
*/
func (a *Client) InterCityBusAPIRoute(params *InterCityBusAPIRouteParams) (*InterCityBusAPIRouteOK, *InterCityBusAPIRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -615,7 +675,7 @@ func (a *Client) InterCityBusAPIRoute(params *InterCityBusAPIRouteParams) (*Inte
Method: "GET",
PathPattern: "/v2/Bus/Route/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRouteReader{formats: a.formats},
@@ -637,9 +697,9 @@ func (a *Client) InterCityBusAPIRoute(params *InterCityBusAPIRouteParams) (*Inte
}
/*
-InterCityBusAPIRouteFare 取得公路客運之路線票價資料s
+ InterCityBusAPIRouteFare 取得公路客運之路線票價資料s
-公路客運之路線票價資料
+ 公路客運之路線票價資料
*/
func (a *Client) InterCityBusAPIRouteFare(params *InterCityBusAPIRouteFareParams) (*InterCityBusAPIRouteFareOK, *InterCityBusAPIRouteFareStatus299, error) {
// TODO: Validate the params before sending
@@ -652,7 +712,7 @@ func (a *Client) InterCityBusAPIRouteFare(params *InterCityBusAPIRouteFareParams
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRouteFareReader{formats: a.formats},
@@ -674,9 +734,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
@@ -689,7 +749,7 @@ func (a *Client) InterCityBusAPIRouteFare1(params *InterCityBusAPIRouteFare1Para
Method: "GET",
PathPattern: "/v2/Bus/RouteFare/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRouteFare1Reader{formats: a.formats},
@@ -711,9 +771,9 @@ func (a *Client) InterCityBusAPIRouteFare1(params *InterCityBusAPIRouteFare1Para
}
/*
-InterCityBusAPIRoute1 取得指定s 路線名稱 的公路客運路線資料
+ InterCityBusAPIRoute1 取得指定s 路線名稱 的公路客運路線資料
-公路客運之路線資料
+ 公路客運之路線資料
*/
func (a *Client) InterCityBusAPIRoute1(params *InterCityBusAPIRoute1Params) (*InterCityBusAPIRoute1OK, *InterCityBusAPIRoute1Status299, error) {
// TODO: Validate the params before sending
@@ -726,7 +786,7 @@ func (a *Client) InterCityBusAPIRoute1(params *InterCityBusAPIRoute1Params) (*In
Method: "GET",
PathPattern: "/v2/Bus/Route/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIRoute1Reader{formats: a.formats},
@@ -748,9 +808,9 @@ func (a *Client) InterCityBusAPIRoute1(params *InterCityBusAPIRoute1Params) (*In
}
/*
-InterCityBusAPISchedule 取得公路客運路線班表資料s
+ InterCityBusAPISchedule 取得公路客運路線班表資料s
-公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表
+ 公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表
*/
func (a *Client) InterCityBusAPISchedule(params *InterCityBusAPIScheduleParams) (*InterCityBusAPIScheduleOK, *InterCityBusAPIScheduleStatus299, error) {
// TODO: Validate the params before sending
@@ -763,7 +823,7 @@ func (a *Client) InterCityBusAPISchedule(params *InterCityBusAPIScheduleParams)
Method: "GET",
PathPattern: "/v2/Bus/Schedule/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIScheduleReader{formats: a.formats},
@@ -785,9 +845,9 @@ func (a *Client) InterCityBusAPISchedule(params *InterCityBusAPIScheduleParams)
}
/*
-InterCityBusAPISchedule1 取得指定s 路線名稱 的公路客運路線班表資料
+ InterCityBusAPISchedule1 取得指定s 路線名稱 的公路客運路線班表資料
-公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表
+ 公路客運之預定班表及班距資料。公路及國道客運多採用【班表】式時刻表
*/
func (a *Client) InterCityBusAPISchedule1(params *InterCityBusAPISchedule1Params) (*InterCityBusAPISchedule1OK, *InterCityBusAPISchedule1Status299, error) {
// TODO: Validate the params before sending
@@ -800,7 +860,7 @@ func (a *Client) InterCityBusAPISchedule1(params *InterCityBusAPISchedule1Params
Method: "GET",
PathPattern: "/v2/Bus/Schedule/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPISchedule1Reader{formats: a.formats},
@@ -822,9 +882,9 @@ func (a *Client) InterCityBusAPISchedule1(params *InterCityBusAPISchedule1Params
}
/*
-InterCityBusAPIStation 取得公路客運站位資料s
+ InterCityBusAPIStation 取得公路客運站位資料s
-公路客運之各站牌所屬的站位資料
+ 公路客運之各站牌所屬的站位資料
*/
func (a *Client) InterCityBusAPIStation(params *InterCityBusAPIStationParams) (*InterCityBusAPIStationOK, *InterCityBusAPIStationStatus299, error) {
// TODO: Validate the params before sending
@@ -837,7 +897,7 @@ func (a *Client) InterCityBusAPIStation(params *InterCityBusAPIStationParams) (*
Method: "GET",
PathPattern: "/v2/Bus/Station/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStationReader{formats: a.formats},
@@ -859,9 +919,9 @@ func (a *Client) InterCityBusAPIStation(params *InterCityBusAPIStationParams) (*
}
/*
-InterCityBusAPIStationGroup 取得公路客運組站位資料s
+ InterCityBusAPIStationGroup 取得公路客運組站位資料s
-公路客運之各站牌所屬的組站位資料
+ 公路客運之各站牌所屬的組站位資料
*/
func (a *Client) InterCityBusAPIStationGroup(params *InterCityBusAPIStationGroupParams) (*InterCityBusAPIStationGroupOK, *InterCityBusAPIStationGroupStatus299, error) {
// TODO: Validate the params before sending
@@ -874,7 +934,7 @@ func (a *Client) InterCityBusAPIStationGroup(params *InterCityBusAPIStationGroup
Method: "GET",
PathPattern: "/v2/Bus/StationGroup/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStationGroupReader{formats: a.formats},
@@ -896,9 +956,9 @@ func (a *Client) InterCityBusAPIStationGroup(params *InterCityBusAPIStationGroup
}
/*
-InterCityBusAPIStationName 取得公路客運站名碼資料s
+ InterCityBusAPIStationName 取得公路客運站名碼資料s
-公路客運之各站牌所屬的站名碼資料
+ 公路客運之各站牌所屬的站名碼資料
*/
func (a *Client) InterCityBusAPIStationName(params *InterCityBusAPIStationNameParams) (*InterCityBusAPIStationNameOK, *InterCityBusAPIStationNameStatus299, error) {
// TODO: Validate the params before sending
@@ -911,7 +971,7 @@ func (a *Client) InterCityBusAPIStationName(params *InterCityBusAPIStationNamePa
Method: "GET",
PathPattern: "/v2/Bus/StationName/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStationNameReader{formats: a.formats},
@@ -933,9 +993,9 @@ func (a *Client) InterCityBusAPIStationName(params *InterCityBusAPIStationNamePa
}
/*
-InterCityBusAPIStop 取得公路客運站牌資料s
+ InterCityBusAPIStop 取得公路客運站牌資料s
-公路客運之站牌資料
+ 公路客運之站牌資料
*/
func (a *Client) InterCityBusAPIStop(params *InterCityBusAPIStopParams) (*InterCityBusAPIStopOK, *InterCityBusAPIStopStatus299, error) {
// TODO: Validate the params before sending
@@ -948,7 +1008,7 @@ func (a *Client) InterCityBusAPIStop(params *InterCityBusAPIStopParams) (*InterC
Method: "GET",
PathPattern: "/v2/Bus/Stop/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStopReader{formats: a.formats},
@@ -970,9 +1030,9 @@ func (a *Client) InterCityBusAPIStop(params *InterCityBusAPIStopParams) (*InterC
}
/*
-InterCityBusAPIStopOfRoute 取得公路客運路線與站牌資料s
+ InterCityBusAPIStopOfRoute 取得公路客運路線與站牌資料s
-公路客運之路線與站牌資料
+ 公路客運之路線與站牌資料
*/
func (a *Client) InterCityBusAPIStopOfRoute(params *InterCityBusAPIStopOfRouteParams) (*InterCityBusAPIStopOfRouteOK, *InterCityBusAPIStopOfRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -985,7 +1045,7 @@ func (a *Client) InterCityBusAPIStopOfRoute(params *InterCityBusAPIStopOfRoutePa
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStopOfRouteReader{formats: a.formats},
@@ -1007,9 +1067,9 @@ func (a *Client) InterCityBusAPIStopOfRoute(params *InterCityBusAPIStopOfRoutePa
}
/*
-InterCityBusAPIStopOfRoute1 取得指定s 路線名稱 的公路客運路線與站牌資料
+ InterCityBusAPIStopOfRoute1 取得指定s 路線名稱 的公路客運路線與站牌資料
-公路客運之路線與站牌資料
+ 公路客運之路線與站牌資料
*/
func (a *Client) InterCityBusAPIStopOfRoute1(params *InterCityBusAPIStopOfRoute1Params) (*InterCityBusAPIStopOfRoute1OK, *InterCityBusAPIStopOfRoute1Status299, error) {
// TODO: Validate the params before sending
@@ -1022,7 +1082,7 @@ func (a *Client) InterCityBusAPIStopOfRoute1(params *InterCityBusAPIStopOfRoute1
Method: "GET",
PathPattern: "/v2/Bus/StopOfRoute/InterCity/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIStopOfRoute1Reader{formats: a.formats},
@@ -1044,9 +1104,9 @@ func (a *Client) InterCityBusAPIStopOfRoute1(params *InterCityBusAPIStopOfRoute1
}
/*
-InterCityBusAPIVehicle 取得公路客運之車輛資料s
+ InterCityBusAPIVehicle 取得公路客運之車輛資料s
-公路客運之車輛資料
+ 公路客運之車輛資料
*/
func (a *Client) InterCityBusAPIVehicle(params *InterCityBusAPIVehicleParams) (*InterCityBusAPIVehicleOK, *InterCityBusAPIVehicleStatus299, error) {
// TODO: Validate the params before sending
@@ -1059,7 +1119,7 @@ func (a *Client) InterCityBusAPIVehicle(params *InterCityBusAPIVehicleParams) (*
Method: "GET",
PathPattern: "/v2/Bus/Vehicle/InterCity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &InterCityBusAPIVehicleReader{formats: a.formats},
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 b236b7c9..d4fe773d 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
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/bus/v2/client/city_bus"
"github.com/minchao/go-ptx/bus/v2/client/inter_city_bus"
@@ -57,11 +56,8 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.CityBus = city_bus.New(transport, formats)
-
cli.InterCityBus = inter_city_bus.New(transport, formats)
-
return cli
}
@@ -106,9 +102,9 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- CityBus *city_bus.Client
+ CityBus city_bus.ClientService
- InterCityBus *inter_city_bus.Client
+ InterCityBus inter_city_bus.ClientService
Transport runtime.ClientTransport
}
@@ -116,9 +112,6 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.CityBus.SetTransport(transport)
-
c.InterCityBus.SetTransport(transport)
-
}
diff --git a/bus/v2/models/service_d_t_o_version2_base_name_type.go b/bus/v2/models/service_d_t_o_version2_base_name_type.go
index 0687ebed..56abdf5a 100644
--- a/bus/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/bus/v2/models/service_d_t_o_version2_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
diff --git a/bus/v2/models/service_d_t_o_version2_base_operator.go b/bus/v2/models/service_d_t_o_version2_base_operator.go
index dc5c9a1e..910f2faa 100644
--- a/bus/v2/models/service_d_t_o_version2_base_operator.go
+++ b/bus/v2/models/service_d_t_o_version2_base_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,10 +15,11 @@ import (
// ServiceDTOVersion2BaseOperator Operator
//
// 營運業者資料型別
+//
// swagger:model Service.DTO.Version2.Base.Operator
type ServiceDTOVersion2BaseOperator struct {
- // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
+ // 營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
diff --git a/bus/v2/models/service_d_t_o_version2_base_point_type.go b/bus/v2/models/service_d_t_o_version2_base_point_type.go
index 08616778..171a47ea 100644
--- a/bus/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/bus/v2/models/service_d_t_o_version2_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version2.Base.PointType
type ServiceDTOVersion2BasePointType struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go b/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go
index 2970161f..3da3e027 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_a1_data.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusA1Data BusA1Data
//
// 定時車機資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusA1Data
type ServiceDTOVersion2BusBusA1Data struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go b/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go
index 7f0e4308..ec4cf3b2 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_a2_data.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusA2Data BusA2Data
//
// 定點車機資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusA2Data
type ServiceDTOVersion2BusBusA2Data struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go b/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go
index a1604a63..d3cb13f6 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_discount_periods.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusDiscountPeriods BusDiscountPeriods
//
// 優惠時段
+//
// swagger:model Service.DTO.Version2.Bus.BusDiscountPeriods
type ServiceDTOVersion2BusBusDiscountPeriods struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go b/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go
index 8b14546b..4939d501 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_display_stop_of_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusDisplayStopOfRoute BusDisplayStopOfRoute
//
// 顯示用路線站序資料
+//
// swagger:model Service.DTO.Version2.Bus.BusDisplayStopOfRoute
type ServiceDTOVersion2BusBusDisplayStopOfRoute struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go b/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go
index 7919fa01..92b51b41 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusFare BusFare
//
// 票票價種類及費率說明
+//
// swagger:model Service.DTO.Version2.Bus.BusFare
type ServiceDTOVersion2BusBusFare struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go b/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go
index 0c01aedd..0c5eb722 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_frequency.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusFrequency BusFrequency
+//
// swagger:model Service.DTO.Version2.Bus.BusFrequency
type ServiceDTOVersion2BusBusFrequency struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go b/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go
index 6c9afd64..c17fdcc0 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_n1_estimate_time.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusN1EstimateTime BusN1EstimateTime
+//
// swagger:model Service.DTO.Version2.Bus.BusN1EstimateTime
type ServiceDTOVersion2BusBusN1EstimateTime struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_news.go b/bus/v2/models/service_d_t_o_version2_bus_bus_news.go
index 33f73c0b..3e52f7b3 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_news.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_news.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusNews BusNews
//
// 公車最新消息資料
+//
// swagger:model Service.DTO.Version2.Bus.BusNews
type ServiceDTOVersion2BusBusNews struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_route.go b/bus/v2/models/service_d_t_o_version2_bus_bus_route.go
index 25739031..da47b09d 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_route.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusRoute BusRoute
//
// 路線資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusRoute
type ServiceDTOVersion2BusBusRoute struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go b/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go
index 7837072f..0f3f9ecf 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_route_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusRouteFare BusRouteFare
//
// 路線票價資料
+//
// swagger:model Service.DTO.Version2.Bus.BusRouteFare
type ServiceDTOVersion2BusBusRouteFare struct {
@@ -50,6 +50,9 @@ type ServiceDTOVersion2BusBusRouteFare struct {
// 路線名稱
RouteName string `json:"RouteName,omitempty"`
+ // 段次計費
+ SectionFares []*ServiceDTOVersion2BusSectionFare `json:"SectionFares"`
+
// 計費站區間計費
StageFares []*ServiceDTOVersion2BusBusStageFare `json:"StageFares"`
@@ -90,6 +93,10 @@ func (m *ServiceDTOVersion2BusBusRouteFare) Validate(formats strfmt.Registry) er
res = append(res, err)
}
+ if err := m.validateSectionFares(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStageFares(formats); err != nil {
res = append(res, err)
}
@@ -149,6 +156,31 @@ func (m *ServiceDTOVersion2BusBusRouteFare) validateRouteID(formats strfmt.Regis
return nil
}
+func (m *ServiceDTOVersion2BusBusRouteFare) validateSectionFares(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.SectionFares) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.SectionFares); i++ {
+ if swag.IsZero(m.SectionFares[i]) { // not required
+ continue
+ }
+
+ if m.SectionFares[i] != nil {
+ if err := m.SectionFares[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("SectionFares" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *ServiceDTOVersion2BusBusRouteFare) validateStageFares(formats strfmt.Registry) error {
if swag.IsZero(m.StageFares) { // not required
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go b/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go
index 9c4d2934..b41b50ea 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_schedule.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusSchedule BusSchedule
+//
// swagger:model Service.DTO.Version2.Bus.BusSchedule
type ServiceDTOVersion2BusBusSchedule struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go b/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go
index ef778f2f..e4597c00 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_shape.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusShape BusShape
//
// 公車線型資料
+//
// swagger:model Service.DTO.Version2.Bus.BusShape
type ServiceDTOVersion2BusBusShape struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go b/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go
index 3f2b75bf..e4feba62 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_stage.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStage BusStage
//
// 計費站
+//
// swagger:model Service.DTO.Version2.Bus.BusStage
type ServiceDTOVersion2BusBusStage struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go b/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go
index 620debec..07901007 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_stage_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusStageFare BusStageFare
//
// 此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)
+//
// swagger:model Service.DTO.Version2.Bus.BusStageFare
type ServiceDTOVersion2BusBusStageFare struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_station.go b/bus/v2/models/service_d_t_o_version2_bus_bus_station.go
index 7345ebb8..0584614c 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_station.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_station.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusStation BusStation
//
// 站牌/位資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusStation
type ServiceDTOVersion2BusBusStation struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go b/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go
index 25549dd3..2013ebfa 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_station_group.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStationGroup BusStationGroup
//
// 組站位資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusStationGroup
type ServiceDTOVersion2BusBusStationGroup struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_station_name.go b/bus/v2/models/service_d_t_o_version2_bus_bus_station_name.go
index 3540ef04..a3d0c1c1 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_station_name.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_station_name.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStationName BusStationName
//
// 站名碼資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusStationName
type ServiceDTOVersion2BusBusStationName struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go b/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go
index 20322dd7..09815886 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_stop.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStop BusStop
//
// 站牌/位資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusStop
type ServiceDTOVersion2BusBusStop struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go b/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go
index 6832d6c8..d27fe4cd 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_stop_of_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2BusBusStopOfRoute BusStopOfRoute
//
// 路線站序資料
+//
// swagger:model Service.DTO.Version2.Bus.BusStopOfRoute
type ServiceDTOVersion2BusBusStopOfRoute struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go b/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
index 2baababb..3ac08fb4 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStopTime BusStopTime
//
// 公車停靠時間資料
+//
// swagger:model Service.DTO.Version2.Bus.BusStopTime
type ServiceDTOVersion2BusBusStopTime struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go b/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
index bab1c9d2..4151f5f8 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusSubRoute BusSubRoute
//
// 附屬路線資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusSubRoute
type ServiceDTOVersion2BusBusSubRoute struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go b/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go
index 43d27a25..c2a62822 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_timetable.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusTimetable BusTimetable
+//
// swagger:model Service.DTO.Version2.Bus.BusTimetable
type ServiceDTOVersion2BusBusTimetable struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go b/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go
index 7c4d2a99..242992c2 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_vehicle_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusVehicleInfo BusVehicleInfo
//
// 公車車輛基本資料
+//
// swagger:model Service.DTO.Version2.Bus.BusVehicleInfo
type ServiceDTOVersion2BusBusVehicleInfo struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_bus_version.go b/bus/v2/models/service_d_t_o_version2_bus_bus_version.go
index ef528d94..c9c3dbaa 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_bus_version.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_bus_version.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusVersion BusVersion
//
// 公車版本資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusVersion
type ServiceDTOVersion2BusBusVersion struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_date_period.go b/bus/v2/models/service_d_t_o_version2_bus_date_period.go
index 65453b1b..d7237249 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_date_period.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_date_period.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BusDatePeriod DatePeriod
+//
// swagger:model Service.DTO.Version2.Bus.DatePeriod
type ServiceDTOVersion2BusDatePeriod struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go b/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go
index 72043305..b1471a5f 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_n1_estimate.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BusN1Estimate Estimate
+//
// swagger:model Service.DTO.Version2.Bus.N1.Estimate
type ServiceDTOVersion2BusN1Estimate struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_route_operator.go b/bus/v2/models/service_d_t_o_version2_bus_route_operator.go
index ce458ace..b1d5e0a6 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_route_operator.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_route_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusRouteOperator RouteOperator
//
// 營運業者資訊
+//
// swagger:model Service.DTO.Version2.Bus.RouteOperator
type ServiceDTOVersion2BusRouteOperator struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_section_fare.go b/bus/v2/models/service_d_t_o_version2_bus_section_fare.go
new file mode 100644
index 00000000..725b8131
--- /dev/null
+++ b/bus/v2/models/service_d_t_o_version2_bus_section_fare.go
@@ -0,0 +1,117 @@
+// 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"
+)
+
+// ServiceDTOVersion2BusSectionFare SectionFare
+//
+// 段次計費
+//
+// swagger:model Service.DTO.Version2.Bus.SectionFare
+type ServiceDTOVersion2BusSectionFare struct {
+
+ // 緩衝區資訊
+ // Required: true
+ BufferZones []*ServiceDTOVersion2BusSectionFareBufferZone `json:"BufferZones"`
+
+ // 每段收費資訊
+ // Required: true
+ Fares []*ServiceDTOVersion2BusSectionFareFare `json:"Fares"`
+}
+
+// Validate validates this service d t o version2 bus section fare
+func (m *ServiceDTOVersion2BusSectionFare) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateBufferZones(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFares(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFare) validateBufferZones(formats strfmt.Registry) error {
+
+ if err := validate.Required("BufferZones", "body", m.BufferZones); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.BufferZones); i++ {
+ if swag.IsZero(m.BufferZones[i]) { // not required
+ continue
+ }
+
+ if m.BufferZones[i] != nil {
+ if err := m.BufferZones[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("BufferZones" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFare) validateFares(formats strfmt.Registry) error {
+
+ if err := validate.Required("Fares", "body", m.Fares); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Fares); i++ {
+ if swag.IsZero(m.Fares[i]) { // not required
+ continue
+ }
+
+ if m.Fares[i] != nil {
+ if err := m.Fares[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Fares" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFare) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFare) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion2BusSectionFare
+ 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_section_fare_buffer_zone.go b/bus/v2/models/service_d_t_o_version2_bus_section_fare_buffer_zone.go
new file mode 100644
index 00000000..3905c0f7
--- /dev/null
+++ b/bus/v2/models/service_d_t_o_version2_bus_section_fare_buffer_zone.go
@@ -0,0 +1,145 @@
+// 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"
+)
+
+// ServiceDTOVersion2BusSectionFareBufferZone BufferZone
+//
+// swagger:model Service.DTO.Version2.Bus.SectionFare.BufferZone
+type ServiceDTOVersion2BusSectionFareBufferZone struct {
+
+ // 收費緩衝區描述
+ BufferZoneDescription string `json:"BufferZoneDescription,omitempty"`
+
+ // integer
+ //
+ // 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
+ // Required: true
+ Direction *int32 `json:"Direction"`
+
+ // Stop
+ //
+ // 緩衝區訖點
+ // Required: true
+ FareBufferZoneDestination *ServiceDTOVersion2BusSectionFareStop `json:"FareBufferZoneDestination"`
+
+ // Stop
+ //
+ // 緩衝區起點
+ // Required: true
+ FareBufferZoneOrigin *ServiceDTOVersion2BusSectionFareStop `json:"FareBufferZoneOrigin"`
+
+ // 緩衝區順序
+ // Required: true
+ SectionSequence *int32 `json:"SectionSequence"`
+
+ // 緩衝區代號
+ 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 {
+ 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 *ServiceDTOVersion2BusSectionFareBufferZone) validateDirection(formats strfmt.Registry) error {
+
+ if err := validate.Required("Direction", "body", m.Direction); err != nil {
+ return err
+ }
+
+ 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
+ }
+ }
+
+ 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
+ }
+ }
+
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
+
+ if err := validate.Required("SectionSequence", "body", m.SectionSequence); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFareBufferZone) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFareBufferZone) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion2BusSectionFareBufferZone
+ 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_section_fare_fare.go b/bus/v2/models/service_d_t_o_version2_bus_section_fare_fare.go
new file mode 100644
index 00000000..18ef33b2
--- /dev/null
+++ b/bus/v2/models/service_d_t_o_version2_bus_section_fare_fare.go
@@ -0,0 +1,102 @@
+// 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"
+)
+
+// ServiceDTOVersion2BusSectionFareFare Fare
+//
+// swagger:model Service.DTO.Version2.Bus.SectionFare.Fare
+type ServiceDTOVersion2BusSectionFareFare struct {
+
+ // integer
+ //
+ // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']
+ // Required: true
+ FareClass *int32 `json:"FareClass"`
+
+ // 計費價格
+ // Required: true
+ Price *int32 `json:"Price"`
+
+ // integer
+ //
+ // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']
+ // Required: true
+ TicketType *int32 `json:"TicketType"`
+}
+
+// Validate validates this service d t o version2 bus section fare fare
+func (m *ServiceDTOVersion2BusSectionFareFare) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateFareClass(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePrice(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTicketType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFareFare) validateFareClass(formats strfmt.Registry) error {
+
+ if err := validate.Required("FareClass", "body", m.FareClass); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFareFare) validatePrice(formats strfmt.Registry) error {
+
+ if err := validate.Required("Price", "body", m.Price); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ServiceDTOVersion2BusSectionFareFare) validateTicketType(formats strfmt.Registry) error {
+
+ if err := validate.Required("TicketType", "body", m.TicketType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFareFare) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ServiceDTOVersion2BusSectionFareFare) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion2BusSectionFareFare
+ 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_section_fare_stop.go b/bus/v2/models/service_d_t_o_version2_bus_section_fare_stop.go
new file mode 100644
index 00000000..2d92fe18
--- /dev/null
+++ b/bus/v2/models/service_d_t_o_version2_bus_section_fare_stop.go
@@ -0,0 +1,67 @@
+// 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_service_day.go b/bus/v2/models/service_d_t_o_version2_bus_service_day.go
index 49977d9e..a7f38a49 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_service_day.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_service_day.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusServiceDay ServiceDay
+//
// swagger:model Service.DTO.Version2.Bus.ServiceDay
type ServiceDTOVersion2BusServiceDay struct {
diff --git a/bus/v2/models/service_d_t_o_version2_bus_special_day.go b/bus/v2/models/service_d_t_o_version2_bus_special_day.go
index e94b3e99..1e6320de 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_special_day.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_special_day.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BusSpecialDay SpecialDay
+//
// swagger:model Service.DTO.Version2.Bus.SpecialDay
type ServiceDTOVersion2BusSpecialDay struct {
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
index 3928de77..941cbe68 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusStationStop StationStop
//
// 站牌與路線資料型別
+//
// swagger:model Service.DTO.Version2.Bus.StationStop
type ServiceDTOVersion2BusStationStop struct {
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
index 997e7d57..af202d2f 100644
--- a/bus/v2/models/service_d_t_o_version2_bus_stop.go
+++ b/bus/v2/models/service_d_t_o_version2_bus_stop.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusStop Stop
//
// 站牌代碼資料
+//
// swagger:model Service.DTO.Version2.Bus.Stop
type ServiceDTOVersion2BusStop struct {
diff --git a/bus/v2/models/service_d_t_o_version3_base_health.go b/bus/v2/models/service_d_t_o_version3_base_display_health.go
similarity index 70%
rename from bus/v2/models/service_d_t_o_version3_base_health.go
rename to bus/v2/models/service_d_t_o_version3_base_display_health.go
index 49402e71..eb4bf9e7 100644
--- a/bus/v2/models/service_d_t_o_version3_base_health.go
+++ b/bus/v2/models/service_d_t_o_version3_base_display_health.go
@@ -6,18 +6,18 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseHealth Health
+// ServiceDTOVersion3BaseDisplayHealth DisplayHealth
//
// API服務健康狀態
-// swagger:model Service.DTO.Version3.Base.Health
-type ServiceDTOVersion3BaseHealth struct {
+//
+// swagger:model Service.DTO.Version3.Base.DisplayHealth
+type ServiceDTOVersion3BaseDisplayHealth struct {
// Inbound
//
@@ -38,8 +38,8 @@ type ServiceDTOVersion3BaseHealth struct {
ServiceName *string `json:"ServiceName"`
}
-// Validate validates this service d t o version3 base health
-func (m *ServiceDTOVersion3BaseHealth) Validate(formats strfmt.Registry) error {
+// Validate validates this service d t o version3 base display health
+func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateInbound(formats); err != nil {
@@ -64,7 +64,7 @@ func (m *ServiceDTOVersion3BaseHealth) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateInbound(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
if swag.IsZero(m.Inbound) { // not required
return nil
@@ -82,7 +82,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateInbound(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateOutbound(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
if swag.IsZero(m.Outbound) { // not required
return nil
@@ -100,7 +100,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateOutbound(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateServiceID(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
if err := validate.Required("ServiceID", "body", m.ServiceID); err != nil {
return err
@@ -109,7 +109,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateServiceID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateServiceName(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
if err := validate.Required("ServiceName", "body", m.ServiceName); err != nil {
return err
@@ -119,7 +119,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateServiceName(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseHealth) MarshalBinary() ([]byte, error) {
+func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +127,8 @@ func (m *ServiceDTOVersion3BaseHealth) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseHealth) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseHealth
+func (m *ServiceDTOVersion3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion3BaseDisplayHealth
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/service_d_t_o_version3_base_inbound.go
index afb98e46..a12b34a2 100644
--- a/bus/v2/models/service_d_t_o_version3_base_inbound.go
+++ b/bus/v2/models/service_d_t_o_version3_base_inbound.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BaseInbound Inbound
//
// 本平台資料來源轉入狀態
+//
// swagger:model Service.DTO.Version3.Base.Inbound
type ServiceDTOVersion3BaseInbound struct {
diff --git a/bus/v2/models/service_d_t_o_version3_base_outbound.go b/bus/v2/models/service_d_t_o_version3_base_outbound.go
index 8b302687..a4385337 100644
--- a/bus/v2/models/service_d_t_o_version3_base_outbound.go
+++ b/bus/v2/models/service_d_t_o_version3_base_outbound.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BaseOutbound Outbound
//
// 本平台API狀態
+//
// swagger:model Service.DTO.Version3.Base.Outbound
type ServiceDTOVersion3BaseOutbound struct {
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 89d01c9c..ad5290f6 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIAlertParams creates a new CityBusAPIAlertParams object
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 63dc669f..5b97825d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIAlertReader is a Reader for the CityBusAPIAlert structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIAlertStatus299() *CityBusAPIAlertStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIAlertStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIAlertStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIAlertStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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 cdadb6ee..3cace527 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDailyTimeTableParams creates a new CityBusAPIDailyTimeTableParams object
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 6684bb56..9ba29382 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIDailyTimeTableReader is a Reader for the CityBusAPIDailyTimeTable structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIDailyTimeTableStatus299() *CityBusAPIDailyTimeTableStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDailyTimeTableStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIDailyTimeTableStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDailyTimeTableStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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 ab5f3658..f36221ba 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDepotParams creates a new CityBusAPIDepotParams object
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 b76615ae..9e67ca16 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIDepotReader is a Reader for the CityBusAPIDepot structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIDepotStatus299() *CityBusAPIDepotStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDepotStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIDepotStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIDepotStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_route_parameters.go
index 1845d664..d5e61435 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_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIDisplayStopOfRouteParams creates a new CityBusAPIDisplayStopOfRouteParams object
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
index 3f2ac6d9..0b8cb183 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIDisplayStopOfRouteReader is a Reader for the CityBusAPIDisplayStopOfRoute structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIDisplayStopOfRouteStatus299() *CityBusAPIDisplayStopOfRouteSta
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIDisplayStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_estimated_time_of_arrival1_parameters.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival1_parameters.go
index 018fb1c3..74c86699 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_arrival1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrival1Params creates a new CityBusAPIEstimatedTimeOfArrival1Params object
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
index 45644abb..b1a2c238 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIEstimatedTimeOfArrival1Reader is a Reader for the CityBusAPIEstimatedTimeOfArrival1 structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIEstimatedTimeOfArrival1Status299() *CityBusAPIEstimatedTimeOfA
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrival1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_estimated_time_of_arrival_parameters.go b/bus/v3/client/city_bus/city_bus_api_estimated_time_of_arrival_parameters.go
index 2a10c732..f434f9fb 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_arrival_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIEstimatedTimeOfArrivalParams creates a new CityBusAPIEstimatedTimeOfArrivalParams object
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
index 0ca17b9f..62de8b2c 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIEstimatedTimeOfArrivalReader is a Reader for the CityBusAPIEstimatedTimeOfArrival structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIEstimatedTimeOfArrivalStatus299() *CityBusAPIEstimatedTimeOfAr
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIEstimatedTimeOfArrivalStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_first_last_trip_info_parameters.go b/bus/v3/client/city_bus/city_bus_api_first_last_trip_info_parameters.go
index 502973ae..d11b61c6 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_info_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIFirstLastTripInfoParams creates a new CityBusAPIFirstLastTripInfoParams object
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
index 3622f561..cef29224 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIFirstLastTripInfoReader is a Reader for the CityBusAPIFirstLastTripInfo structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIFirstLastTripInfoStatus299() *CityBusAPIFirstLastTripInfoStatu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIFirstLastTripInfoStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_network_parameters.go b/bus/v3/client/city_bus/city_bus_api_network_parameters.go
index 232e42f1..bcce8020 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPINetworkParams creates a new CityBusAPINetworkParams object
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 f87aeb0a..77763a2e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPINetworkReader is a Reader for the CityBusAPINetwork structure.
@@ -85,20 +84,20 @@ func NewCityBusAPINetworkStatus299() *CityBusAPINetworkStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPINetworkStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPINetworkStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPINetworkStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_news_parameters.go
index c9cb2182..26cd9160 100644
--- a/bus/v3/client/city_bus/city_bus_api_news_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPINewsParams creates a new CityBusAPINewsParams object
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
index d744dd7b..57c048d3 100644
--- a/bus/v3/client/city_bus/city_bus_api_news_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_news_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPINewsReader is a Reader for the CityBusAPINews structure.
@@ -85,20 +84,20 @@ func NewCityBusAPINewsStatus299() *CityBusAPINewsStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPINewsStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_operator_parameters.go b/bus/v3/client/city_bus/city_bus_api_operator_parameters.go
index 11a1040e..35b63b6d 100644
--- a/bus/v3/client/city_bus/city_bus_api_operator_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIOperatorParams creates a new CityBusAPIOperatorParams object
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
index 3bd4a48f..3bae5fb3 100644
--- a/bus/v3/client/city_bus/city_bus_api_operator_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_operator_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIOperatorReader is a Reader for the CityBusAPIOperator structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIOperatorStatus299() *CityBusAPIOperatorStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIOperatorStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_real_time_by_frequency1_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency1_parameters.go
index c8b7568f..3277f1aa 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_frequency1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequency1Params creates a new CityBusAPIRealTimeByFrequency1Params object
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
index b5b997bf..2b9cbfc6 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRealTimeByFrequency1Reader is a Reader for the CityBusAPIRealTimeByFrequency1 structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRealTimeByFrequency1Status299() *CityBusAPIRealTimeByFrequency
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequency1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_real_time_by_frequency_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_by_frequency_parameters.go
index d1c58903..e5fafdea 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_frequency_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeByFrequencyParams creates a new CityBusAPIRealTimeByFrequencyParams object
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
index 2161496d..3593118f 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRealTimeByFrequencyReader is a Reader for the CityBusAPIRealTimeByFrequency structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRealTimeByFrequencyStatus299() *CityBusAPIRealTimeByFrequencyS
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeByFrequencyStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_real_time_near_stop1_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop1_parameters.go
index bbae7236..b782f272 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_stop1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStop1Params creates a new CityBusAPIRealTimeNearStop1Params object
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
index a5a7d631..bce8ca29 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRealTimeNearStop1Reader is a Reader for the CityBusAPIRealTimeNearStop1 structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRealTimeNearStop1Status299() *CityBusAPIRealTimeNearStop1Statu
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStop1Status299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_real_time_near_stop_parameters.go b/bus/v3/client/city_bus/city_bus_api_real_time_near_stop_parameters.go
index c9c3d612..a8d150f4 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_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRealTimeNearStopParams creates a new CityBusAPIRealTimeNearStopParams object
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
index 4dcb62a3..3edc160b 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRealTimeNearStopReader is a Reader for the CityBusAPIRealTimeNearStop structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRealTimeNearStopStatus299() *CityBusAPIRealTimeNearStopStatus2
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRealTimeNearStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_fare_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go
index ec458498..45913304 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteFareParams creates a new CityBusAPIRouteFareParams object
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
index 8e13212a..17a465a0 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRouteFareReader is a Reader for the CityBusAPIRouteFare structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRouteFareStatus299() *CityBusAPIRouteFareStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteFareStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_network_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_network_parameters.go
index 35ac9f51..e8b9eb64 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteNetworkParams creates a new CityBusAPIRouteNetworkParams object
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 b820e298..d8237476 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRouteNetworkReader is a Reader for the CityBusAPIRouteNetwork structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRouteNetworkStatus299() *CityBusAPIRouteNetworkStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteNetworkStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIRouteNetworkStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIRouteNetworkStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_parameters.go b/bus/v3/client/city_bus/city_bus_api_route_parameters.go
index c5d6557c..f435e449 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIRouteParams creates a new CityBusAPIRouteParams object
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
index ee94dca0..61619e23 100644
--- a/bus/v3/client/city_bus/city_bus_api_route_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_route_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIRouteReader is a Reader for the CityBusAPIRoute structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIRouteStatus299() *CityBusAPIRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_s2_s_travel_time_parameters.go b/bus/v3/client/city_bus/city_bus_api_s2_s_travel_time_parameters.go
index 990ad685..433b5010 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_time_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIS2STravelTimeParams creates a new CityBusAPIS2STravelTimeParams object
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
index 0bc6b9f7..f954d315 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIS2STravelTimeReader is a Reader for the CityBusAPIS2STravelTime structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIS2STravelTimeStatus299() *CityBusAPIS2STravelTimeStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIS2STravelTimeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_schedule_parameters.go b/bus/v3/client/city_bus/city_bus_api_schedule_parameters.go
index 4000e60a..00695e77 100644
--- a/bus/v3/client/city_bus/city_bus_api_schedule_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_schedule_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIScheduleParams creates a new CityBusAPIScheduleParams object
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
index c4e84aa8..484c01de 100644
--- a/bus/v3/client/city_bus/city_bus_api_schedule_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_schedule_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIScheduleReader is a Reader for the CityBusAPISchedule structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIScheduleStatus299() *CityBusAPIScheduleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIScheduleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_shape_parameters.go b/bus/v3/client/city_bus/city_bus_api_shape_parameters.go
index 1da58f02..ac08ae40 100644
--- a/bus/v3/client/city_bus/city_bus_api_shape_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIShapeParams creates a new CityBusAPIShapeParams object
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
index c51c365a..b994d625 100644
--- a/bus/v3/client/city_bus/city_bus_api_shape_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_shape_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIShapeReader is a Reader for the CityBusAPIShape structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIShapeStatus299() *CityBusAPIShapeStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIShapeStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_station_parameters.go b/bus/v3/client/city_bus/city_bus_api_station_parameters.go
index d9e01e98..c424feea 100644
--- a/bus/v3/client/city_bus/city_bus_api_station_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStationParams creates a new CityBusAPIStationParams object
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
index 36223d28..a50c901a 100644
--- a/bus/v3/client/city_bus/city_bus_api_station_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_station_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIStationReader is a Reader for the CityBusAPIStation structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIStationStatus299() *CityBusAPIStationStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStationStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_stop_of_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_stop_of_route_parameters.go
index 6950f4f8..c2a6fce6 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_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStopOfRouteParams creates a new CityBusAPIStopOfRouteParams object
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
index e3b0baed..5f793f69 100644
--- 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIStopOfRouteReader is a Reader for the CityBusAPIStopOfRoute structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIStopOfRouteStatus299() *CityBusAPIStopOfRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopOfRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_stop_parameters.go b/bus/v3/client/city_bus/city_bus_api_stop_parameters.go
index f9f9ff2a..16d8d72a 100644
--- a/bus/v3/client/city_bus/city_bus_api_stop_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIStopParams creates a new CityBusAPIStopParams object
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
index 2cda12fc..dd97db75 100644
--- a/bus/v3/client/city_bus/city_bus_api_stop_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_stop_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIStopReader is a Reader for the CityBusAPIStop structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIStopStatus299() *CityBusAPIStopStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIStopStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_sub_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_sub_route_parameters.go
index 02353903..9acaedc5 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPISubRouteParams creates a new CityBusAPISubRouteParams object
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 95735f62..047eac66 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPISubRouteReader is a Reader for the CityBusAPISubRoute structure.
@@ -85,20 +84,20 @@ func NewCityBusAPISubRouteStatus299() *CityBusAPISubRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPISubRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPISubRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPISubRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_depot_parameters.go b/bus/v3/client/city_bus/city_bus_api_vehicle_depot_parameters.go
index f51a5129..47afd6e3 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIVehicleDepotParams creates a new CityBusAPIVehicleDepotParams object
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 ead466c5..51259a70 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIVehicleDepotReader is a Reader for the CityBusAPIVehicleDepot structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIVehicleDepotStatus299() *CityBusAPIVehicleDepotStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleDepotStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIVehicleDepotStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIVehicleDepotStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_vehicle_parameters.go
index 14ec515d..79711119 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_parameters.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIVehicleParams creates a new CityBusAPIVehicleParams object
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
index a5f2c3eb..5d0d4c27 100644
--- a/bus/v3/client/city_bus/city_bus_api_vehicle_responses.go
+++ b/bus/v3/client/city_bus/city_bus_api_vehicle_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIVehicleReader is a Reader for the CityBusAPIVehicle structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIVehicleStatus299() *CityBusAPIVehicleStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ 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.ServiceDTOVersion3BaseHealth {
+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.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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_route_parameters.go b/bus/v3/client/city_bus/city_bus_api_vehicle_route_parameters.go
index 15d1d25e..a8c044bc 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewCityBusAPIVehicleRouteParams creates a new CityBusAPIVehicleRouteParams object
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 ec8bd51c..93929639 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/bus/v3/models"
+ "github.com/minchao/go-ptx/bus/v3/models"
)
// CityBusAPIVehicleRouteReader is a Reader for the CityBusAPIVehicleRoute structure.
@@ -85,20 +84,20 @@ func NewCityBusAPIVehicleRouteStatus299() *CityBusAPIVehicleRouteStatus299 {
加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type CityBusAPIVehicleRouteStatus299 struct {
- Payload *models.ServiceDTOVersion3BaseHealth
+ Payload *models.ServiceDTOVersion3BaseDisplayHealth
}
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.ServiceDTOVersion3BaseHealth {
+func (o *CityBusAPIVehicleRouteStatus299) GetPayload() *models.ServiceDTOVersion3BaseDisplayHealth {
return o.Payload
}
func (o *CityBusAPIVehicleRouteStatus299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
- o.Payload = new(models.ServiceDTOVersion3BaseHealth)
+ o.Payload = new(models.ServiceDTOVersion3BaseDisplayHealth)
// 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 334b28ad..623de9e3 100644
--- a/bus/v3/client/city_bus/city_bus_client.go
+++ b/bus/v3/client/city_bus/city_bus_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new city bus API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,69 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CityBusAPIAlert(params *CityBusAPIAlertParams) (*CityBusAPIAlertOK, *CityBusAPIAlertStatus299, error)
+
+ CityBusAPIDailyTimeTable(params *CityBusAPIDailyTimeTableParams) (*CityBusAPIDailyTimeTableOK, *CityBusAPIDailyTimeTableStatus299, error)
+
+ CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepotOK, *CityBusAPIDepotStatus299, error)
+
+ CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error)
+
+ CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error)
+
+ CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error)
+
+ CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfoParams) (*CityBusAPIFirstLastTripInfoOK, *CityBusAPIFirstLastTripInfoStatus299, error)
+
+ CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPINetworkOK, *CityBusAPINetworkStatus299, error)
+
+ CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error)
+
+ CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error)
+
+ CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error)
+
+ CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error)
+
+ CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error)
+
+ CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error)
+
+ CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error)
+
+ CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error)
+
+ CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error)
+
+ CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams) (*CityBusAPIS2STravelTimeOK, *CityBusAPIS2STravelTimeStatus299, error)
+
+ CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error)
+
+ CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error)
+
+ CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error)
+
+ CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error)
+
+ CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error)
+
+ CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusAPISubRouteOK, *CityBusAPISubRouteStatus299, error)
+
+ CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error)
+
+ CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*CityBusAPIVehicleDepotOK, *CityBusAPIVehicleDepotStatus299, error)
+
+ CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*CityBusAPIVehicleRouteOK, *CityBusAPIVehicleRouteStatus299, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-CityBusAPIAlert 取得指定s 縣市 的公車通阻資料
+ CityBusAPIAlert 取得指定s 縣市 的公車通阻資料
-市區公車之公車通阻資料
+ 市區公車之公車通阻資料
*/
func (a *Client) CityBusAPIAlert(params *CityBusAPIAlertParams) (*CityBusAPIAlertOK, *CityBusAPIAlertStatus299, error) {
// TODO: Validate the params before sending
@@ -42,7 +100,7 @@ func (a *Client) CityBusAPIAlert(params *CityBusAPIAlertParams) (*CityBusAPIAler
Method: "GET",
PathPattern: "/v3/Bus/Alert/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIAlertReader{formats: a.formats},
@@ -64,7 +122,7 @@ func (a *Client) CityBusAPIAlert(params *CityBusAPIAlertParams) (*CityBusAPIAler
}
/*
-CityBusAPIDailyTimeTable 取得指定s 縣市 的市區公車每日營運時刻表
+ CityBusAPIDailyTimeTable 取得指定s 縣市 的市區公車每日營運時刻表
*/
func (a *Client) CityBusAPIDailyTimeTable(params *CityBusAPIDailyTimeTableParams) (*CityBusAPIDailyTimeTableOK, *CityBusAPIDailyTimeTableStatus299, error) {
// TODO: Validate the params before sending
@@ -77,7 +135,7 @@ func (a *Client) CityBusAPIDailyTimeTable(params *CityBusAPIDailyTimeTableParams
Method: "GET",
PathPattern: "/v3/Bus/DailyTimeTable/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDailyTimeTableReader{formats: a.formats},
@@ -99,7 +157,7 @@ func (a *Client) CityBusAPIDailyTimeTable(params *CityBusAPIDailyTimeTableParams
}
/*
-CityBusAPIDepot 取得指定s 縣市 的市區公車行駛路線之營業所的資料
+ CityBusAPIDepot 取得指定s 縣市 的市區公車行駛路線之營業所的資料
*/
func (a *Client) CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepotOK, *CityBusAPIDepotStatus299, error) {
// TODO: Validate the params before sending
@@ -112,7 +170,7 @@ func (a *Client) CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepo
Method: "GET",
PathPattern: "/v3/Bus/Depot/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDepotReader{formats: a.formats},
@@ -134,7 +192,7 @@ func (a *Client) CityBusAPIDepot(params *CityBusAPIDepotParams) (*CityBusAPIDepo
}
/*
-CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料
+ CityBusAPIDisplayStopOfRoute 取得指定s 縣市 的市區公車顯示用路線站序資料
*/
func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRouteParams) (*CityBusAPIDisplayStopOfRouteOK, *CityBusAPIDisplayStopOfRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -147,7 +205,7 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
Method: "GET",
PathPattern: "/v3/Bus/DisplayStopOfRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIDisplayStopOfRouteReader{formats: a.formats},
@@ -169,9 +227,9 @@ func (a *Client) CityBusAPIDisplayStopOfRoute(params *CityBusAPIDisplayStopOfRou
}
/*
-CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1
+ CityBusAPIEstimatedTimeOfArrival 取得指定s 縣市 的公車預估到站資料 n1
-[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
+ [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
*/
func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTimeOfArrivalParams) (*CityBusAPIEstimatedTimeOfArrivalOK, *CityBusAPIEstimatedTimeOfArrivalStatus299, error) {
// TODO: Validate the params before sending
@@ -184,7 +242,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
Method: "GET",
PathPattern: "/v3/Bus/EstimatedTimeOfArrival/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrivalReader{formats: a.formats},
@@ -206,9 +264,9 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival(params *CityBusAPIEstimatedTim
}
/*
-CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1
+ CityBusAPIEstimatedTimeOfArrival1 取得指定s 縣市 路線名稱 的公車預估到站資料 n1
-[部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
+ [部分縣市] 當 StopStatus = 1(尚未發車) 且 EstimateTime > 0 (有值) 的情形, 屬正常情形, 雖目前尚未發車, 但提供EstimateTime值為預計多久後開始發車之時間
*/
func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTimeOfArrival1Params) (*CityBusAPIEstimatedTimeOfArrival1OK, *CityBusAPIEstimatedTimeOfArrival1Status299, error) {
// TODO: Validate the params before sending
@@ -221,7 +279,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
Method: "GET",
PathPattern: "/v3/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIEstimatedTimeOfArrival1Reader{formats: a.formats},
@@ -243,7 +301,7 @@ func (a *Client) CityBusAPIEstimatedTimeOfArrival1(params *CityBusAPIEstimatedTi
}
/*
-CityBusAPIFirstLastTripInfo 取得指定s 縣市 的市區公車路線定期首末班車資料
+ CityBusAPIFirstLastTripInfo 取得指定s 縣市 的市區公車路線定期首末班車資料
*/
func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfoParams) (*CityBusAPIFirstLastTripInfoOK, *CityBusAPIFirstLastTripInfoStatus299, error) {
// TODO: Validate the params before sending
@@ -256,7 +314,7 @@ func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfo
Method: "GET",
PathPattern: "/v3/Bus/FirstLastTripInfo/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIFirstLastTripInfoReader{formats: a.formats},
@@ -278,7 +336,7 @@ func (a *Client) CityBusAPIFirstLastTripInfo(params *CityBusAPIFirstLastTripInfo
}
/*
-CityBusAPINetwork 取得指定s 縣市 的市區公車路網資料
+ CityBusAPINetwork 取得指定s 縣市 的市區公車路網資料
*/
func (a *Client) CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPINetworkOK, *CityBusAPINetworkStatus299, error) {
// TODO: Validate the params before sending
@@ -291,7 +349,7 @@ func (a *Client) CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPI
Method: "GET",
PathPattern: "/v3/Bus/Network/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPINetworkReader{formats: a.formats},
@@ -313,9 +371,9 @@ func (a *Client) CityBusAPINetwork(params *CityBusAPINetworkParams) (*CityBusAPI
}
/*
-CityBusAPINews 取得指定s 縣市 的公車最新消息
+ CityBusAPINews 取得指定s 縣市 的公車最新消息
-市區公車之最新消息
+ 市區公車之最新消息
*/
func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK, *CityBusAPINewsStatus299, error) {
// TODO: Validate the params before sending
@@ -328,7 +386,7 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
Method: "GET",
PathPattern: "/v3/Bus/News/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPINewsReader{formats: a.formats},
@@ -350,7 +408,7 @@ func (a *Client) CityBusAPINews(params *CityBusAPINewsParams) (*CityBusAPINewsOK
}
/*
-CityBusAPIOperator 取得指定s 縣市 的市區公車營運業者資料
+ CityBusAPIOperator 取得指定s 縣市 的市區公車營運業者資料
*/
func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusAPIOperatorOK, *CityBusAPIOperatorStatus299, error) {
// TODO: Validate the params before sending
@@ -363,7 +421,7 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
Method: "GET",
PathPattern: "/v3/Bus/Operator/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIOperatorReader{formats: a.formats},
@@ -385,9 +443,9 @@ func (a *Client) CityBusAPIOperator(params *CityBusAPIOperatorParams) (*CityBusA
}
/*
-CityBusAPIRealTimeByFrequency 取得指定s 縣市 的公車動態定時資料 a1
+ CityBusAPIRealTimeByFrequency 取得指定s 縣市 的公車動態定時資料 a1
-市區公車之定時資料(A1)
+ 市區公車之定時資料(A1)
*/
func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequencyParams) (*CityBusAPIRealTimeByFrequencyOK, *CityBusAPIRealTimeByFrequencyStatus299, error) {
// TODO: Validate the params before sending
@@ -400,7 +458,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
Method: "GET",
PathPattern: "/v3/Bus/RealTimeByFrequency/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequencyReader{formats: a.formats},
@@ -422,9 +480,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency(params *CityBusAPIRealTimeByFrequ
}
/*
-CityBusAPIRealTimeByFrequency1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1
+ CityBusAPIRealTimeByFrequency1 取得指定s 縣市 路線名稱 的公車動態定時資料 a1
-市區公車之定時資料(A1)
+ 市區公車之定時資料(A1)
*/
func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFrequency1Params) (*CityBusAPIRealTimeByFrequency1OK, *CityBusAPIRealTimeByFrequency1Status299, error) {
// TODO: Validate the params before sending
@@ -437,7 +495,7 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
Method: "GET",
PathPattern: "/v3/Bus/RealTimeByFrequency/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeByFrequency1Reader{formats: a.formats},
@@ -459,9 +517,9 @@ func (a *Client) CityBusAPIRealTimeByFrequency1(params *CityBusAPIRealTimeByFreq
}
/*
-CityBusAPIRealTimeNearStop 取得指定s 縣市 的公車動態定點資料 a2
+ CityBusAPIRealTimeNearStop 取得指定s 縣市 的公車動態定點資料 a2
-市區公車之定點資料(A2)
+ 市區公車之定點資料(A2)
*/
func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopParams) (*CityBusAPIRealTimeNearStopOK, *CityBusAPIRealTimeNearStopStatus299, error) {
// TODO: Validate the params before sending
@@ -474,7 +532,7 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
Method: "GET",
PathPattern: "/v3/Bus/RealTimeNearStop/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStopReader{formats: a.formats},
@@ -496,9 +554,9 @@ func (a *Client) CityBusAPIRealTimeNearStop(params *CityBusAPIRealTimeNearStopPa
}
/*
-CityBusAPIRealTimeNearStop1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2
+ CityBusAPIRealTimeNearStop1 取得指定s 縣市 路線名稱 的公車動態定點資料 a2
-市區公車之定點資料(A2)
+ 市區公車之定點資料(A2)
*/
func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1Params) (*CityBusAPIRealTimeNearStop1OK, *CityBusAPIRealTimeNearStop1Status299, error) {
// TODO: Validate the params before sending
@@ -511,7 +569,7 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
Method: "GET",
PathPattern: "/v3/Bus/RealTimeNearStop/City/{City}/{RouteName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRealTimeNearStop1Reader{formats: a.formats},
@@ -533,9 +591,9 @@ func (a *Client) CityBusAPIRealTimeNearStop1(params *CityBusAPIRealTimeNearStop1
}
/*
-CityBusAPIRoute 取得指定s 縣市 的市區公車路線資料
+ CityBusAPIRoute 取得指定s 縣市 的市區公車路線資料
-市區公車之路線資料
+ 市區公車之路線資料
*/
func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRouteOK, *CityBusAPIRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -548,7 +606,7 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
Method: "GET",
PathPattern: "/v3/Bus/Route/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteReader{formats: a.formats},
@@ -570,7 +628,7 @@ func (a *Client) CityBusAPIRoute(params *CityBusAPIRouteParams) (*CityBusAPIRout
}
/*
-CityBusAPIRouteFare 取得指定s 縣市 的市區公車路線票價資料
+ CityBusAPIRouteFare 取得指定s 縣市 的市區公車路線票價資料
*/
func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBusAPIRouteFareOK, *CityBusAPIRouteFareStatus299, error) {
// TODO: Validate the params before sending
@@ -583,7 +641,7 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
Method: "GET",
PathPattern: "/v3/Bus/RouteFare/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteFareReader{formats: a.formats},
@@ -605,7 +663,7 @@ func (a *Client) CityBusAPIRouteFare(params *CityBusAPIRouteFareParams) (*CityBu
}
/*
-CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料
+ CityBusAPIRouteNetwork 取得指定s 縣市 的市區公車路線網路拓撲資料
*/
func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*CityBusAPIRouteNetworkOK, *CityBusAPIRouteNetworkStatus299, error) {
// TODO: Validate the params before sending
@@ -618,7 +676,7 @@ func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*
Method: "GET",
PathPattern: "/v3/Bus/RouteNetwork/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIRouteNetworkReader{formats: a.formats},
@@ -640,7 +698,7 @@ func (a *Client) CityBusAPIRouteNetwork(params *CityBusAPIRouteNetworkParams) (*
}
/*
-CityBusAPIS2STravelTime 取得指定s 縣市 的市區公車路線站間旅行時間基本資料
+ CityBusAPIS2STravelTime 取得指定s 縣市 的市區公車路線站間旅行時間基本資料
*/
func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams) (*CityBusAPIS2STravelTimeOK, *CityBusAPIS2STravelTimeStatus299, error) {
// TODO: Validate the params before sending
@@ -653,7 +711,7 @@ func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams)
Method: "GET",
PathPattern: "/v3/Bus/S2STravelTime/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIS2STravelTimeReader{formats: a.formats},
@@ -675,7 +733,7 @@ func (a *Client) CityBusAPIS2STravelTime(params *CityBusAPIS2STravelTimeParams)
}
/*
-CityBusAPISchedule 取得指定s 縣市 的市區公車定期營運班表
+ CityBusAPISchedule 取得指定s 縣市 的市區公車定期營運班表
*/
func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusAPIScheduleOK, *CityBusAPIScheduleStatus299, error) {
// TODO: Validate the params before sending
@@ -688,7 +746,7 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
Method: "GET",
PathPattern: "/v3/Bus/Schedule/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIScheduleReader{formats: a.formats},
@@ -710,7 +768,7 @@ func (a *Client) CityBusAPISchedule(params *CityBusAPIScheduleParams) (*CityBusA
}
/*
-CityBusAPIShape 取得指定s 縣市 的市區公車空間線型資料
+ CityBusAPIShape 取得指定s 縣市 的市區公車空間線型資料
*/
func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShapeOK, *CityBusAPIShapeStatus299, error) {
// TODO: Validate the params before sending
@@ -723,7 +781,7 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
Method: "GET",
PathPattern: "/v3/Bus/Shape/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIShapeReader{formats: a.formats},
@@ -745,7 +803,7 @@ func (a *Client) CityBusAPIShape(params *CityBusAPIShapeParams) (*CityBusAPIShap
}
/*
-CityBusAPIStation 取得指定s 縣市 的市區公車站位資料
+ CityBusAPIStation 取得指定s 縣市 的市區公車站位資料
*/
func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPIStationOK, *CityBusAPIStationStatus299, error) {
// TODO: Validate the params before sending
@@ -758,7 +816,7 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
Method: "GET",
PathPattern: "/v3/Bus/Station/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStationReader{formats: a.formats},
@@ -780,7 +838,7 @@ func (a *Client) CityBusAPIStation(params *CityBusAPIStationParams) (*CityBusAPI
}
/*
-CityBusAPIStop 取得指定s 縣市 的市區公車站牌資料
+ CityBusAPIStop 取得指定s 縣市 的市區公車站牌資料
*/
func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK, *CityBusAPIStopStatus299, error) {
// TODO: Validate the params before sending
@@ -793,7 +851,7 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
Method: "GET",
PathPattern: "/v3/Bus/Stop/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStopReader{formats: a.formats},
@@ -815,9 +873,9 @@ func (a *Client) CityBusAPIStop(params *CityBusAPIStopParams) (*CityBusAPIStopOK
}
/*
-CityBusAPIStopOfRoute 取得指定s 縣市 的市區公車路線站序資料
+ CityBusAPIStopOfRoute 取得指定s 縣市 的市區公車路線站序資料
-市區公車之路線站序資料
+ 市區公車之路線站序資料
*/
func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*CityBusAPIStopOfRouteOK, *CityBusAPIStopOfRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -830,7 +888,7 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
Method: "GET",
PathPattern: "/v3/Bus/StopOfRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIStopOfRouteReader{formats: a.formats},
@@ -852,9 +910,9 @@ func (a *Client) CityBusAPIStopOfRoute(params *CityBusAPIStopOfRouteParams) (*Ci
}
/*
-CityBusAPISubRoute 取得指定s 縣市 的市區公車附屬路線資料
+ CityBusAPISubRoute 取得指定s 縣市 的市區公車附屬路線資料
-市區公車之附屬路線資料
+ 市區公車之附屬路線資料
*/
func (a *Client) CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusAPISubRouteOK, *CityBusAPISubRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -867,7 +925,7 @@ func (a *Client) CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusA
Method: "GET",
PathPattern: "/v3/Bus/SubRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPISubRouteReader{formats: a.formats},
@@ -889,7 +947,7 @@ func (a *Client) CityBusAPISubRoute(params *CityBusAPISubRouteParams) (*CityBusA
}
/*
-CityBusAPIVehicle 取得指定s 縣市 的市區公車車輛基本資料
+ CityBusAPIVehicle 取得指定s 縣市 的市區公車車輛基本資料
*/
func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPIVehicleOK, *CityBusAPIVehicleStatus299, error) {
// TODO: Validate the params before sending
@@ -902,7 +960,7 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
Method: "GET",
PathPattern: "/v3/Bus/Vehicle/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIVehicleReader{formats: a.formats},
@@ -924,7 +982,7 @@ func (a *Client) CityBusAPIVehicle(params *CityBusAPIVehicleParams) (*CityBusAPI
}
/*
-CityBusAPIVehicleDepot 取得指定s 縣市 的市區公車車輛所屬的營業站基本資料
+ CityBusAPIVehicleDepot 取得指定s 縣市 的市區公車車輛所屬的營業站基本資料
*/
func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*CityBusAPIVehicleDepotOK, *CityBusAPIVehicleDepotStatus299, error) {
// TODO: Validate the params before sending
@@ -937,7 +995,7 @@ func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*
Method: "GET",
PathPattern: "/v3/Bus/VehicleDepot/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIVehicleDepotReader{formats: a.formats},
@@ -959,7 +1017,7 @@ func (a *Client) CityBusAPIVehicleDepot(params *CityBusAPIVehicleDepotParams) (*
}
/*
-CityBusAPIVehicleRoute 取得指定s 縣市 的市區公車車輛所屬路線資料
+ CityBusAPIVehicleRoute 取得指定s 縣市 的市區公車車輛所屬路線資料
*/
func (a *Client) CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*CityBusAPIVehicleRouteOK, *CityBusAPIVehicleRouteStatus299, error) {
// TODO: Validate the params before sending
@@ -972,7 +1030,7 @@ func (a *Client) CityBusAPIVehicleRoute(params *CityBusAPIVehicleRouteParams) (*
Method: "GET",
PathPattern: "/v3/Bus/VehicleRoute/City/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &CityBusAPIVehicleRouteReader{formats: a.formats},
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 1dc540da..3c2c3985 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
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/bus/v3/client/city_bus"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV3)
cli.Transport = transport
-
cli.CityBus = city_bus.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV3 is a client for m o t c transport API v3
type MOTCTransportAPIV3 struct {
- CityBus *city_bus.Client
+ CityBus city_bus.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV3 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV3) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.CityBus.SetTransport(transport)
-
}
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a1_data.go
index 04087ccb..6293eedc 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a1_data.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusA1Data BusA1DataList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]
type MOTCAPIBusDALBusServiceDTOVersion3BusA1Data struct {
// 資料(陣列)
+ // Required: true
A1Datas []*ServiceDTOVersion3BusA1Data `json:"A1Datas"`
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -55,6 +62,26 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) Validate(formats strfmt.Re
res = append(res, err)
}
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -63,8 +90,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) Validate(formats strfmt.Re
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateA1Datas(formats strfmt.Registry) error {
- if swag.IsZero(m.A1Datas) { // not required
- return nil
+ if err := validate.Required("A1Datas", "body", m.A1Datas); err != nil {
+ return err
}
for i := 0; i < len(m.A1Datas); i++ {
@@ -86,6 +113,51 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateA1Datas(formats st
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA1Data) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a2_data.go
index 5925938c..539a973e 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_a2_data.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusA2Data BusA2DataList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]
type MOTCAPIBusDALBusServiceDTOVersion3BusA2Data struct {
// 資料(陣列)
+ // Required: true
A2Datas []*ServiceDTOVersion3BusA2Data `json:"A2Datas"`
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -55,6 +62,26 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) Validate(formats strfmt.Re
res = append(res, err)
}
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -63,8 +90,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) Validate(formats strfmt.Re
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateA2Datas(formats strfmt.Registry) error {
- if swag.IsZero(m.A2Datas) { // not required
- return nil
+ if err := validate.Required("A2Datas", "body", m.A2Datas); err != nil {
+ return err
}
for i := 0; i < len(m.A2Datas); i++ {
@@ -86,6 +113,51 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateA2Datas(formats st
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusA2Data) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_alert.go
index 9f943a60..bcec6f44 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_alert.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusAlert BusAlertList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Alert]
type MOTCAPIBusDALBusServiceDTOVersion3BusAlert struct {
// 資料(陣列)
+ // Required: true
Alerts []*ServiceDTOVersion3BusAlert `json:"Alerts"`
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -55,6 +62,26 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) Validate(formats strfmt.Reg
res = append(res, err)
}
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -63,8 +90,8 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) Validate(formats strfmt.Reg
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAlerts(formats strfmt.Registry) error {
- if swag.IsZero(m.Alerts) { // not required
- return nil
+ if err := validate.Required("Alerts", "body", m.Alerts); err != nil {
+ return err
}
for i := 0; i < len(m.Alerts); i++ {
@@ -86,6 +113,51 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAlerts(formats strf
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusAlert) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_daily_time_table.go
index 02710bab..08f0702c 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_daily_time_table.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable BusDailyTimeTableList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DailyTimeTable]
type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
DailyTimeTables []*ServiceDTOVersion3BusDailyTimeTable `json:"DailyTimeTables"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDailyTimeTables(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateDailyTimeTables(formats strfmt.Registry) error {
- if swag.IsZero(m.DailyTimeTables) { // not required
- return nil
+ if err := validate.Required("DailyTimeTables", "body", m.DailyTimeTables); err != nil {
+ return err
}
for i := 0; i < len(m.DailyTimeTables); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateDailyTimeT
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDailyTimeTable) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_depot.go
index 84349036..9171ec6f 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_depot.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusDepot BusDepotList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Depot]
type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Depots []*ServiceDTOVersion3BusDepot `json:"Depots"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDepot struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDepots(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateDepots(formats strfmt.Registry) error {
- if swag.IsZero(m.Depots) { // not required
- return nil
+ if err := validate.Required("Depots", "body", m.Depots); err != nil {
+ return err
}
for i := 0; i < len(m.Depots); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateDepots(formats strf
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDepot) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_display_stop_of_route.go
index 96dacdfa..22c94190 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_display_stop_of_route.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute BusDisplayStopOfRouteList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DisplayStopOfRoute]
type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
DisplayStopOfRoutes []*ServiceDTOVersion3BusDisplayStopOfRoute `json:"DisplayStopOfRoutes"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDisplayStopOfRoutes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateDisplayStopOfRoutes(formats strfmt.Registry) error {
- if swag.IsZero(m.DisplayStopOfRoutes) { // not required
- return nil
+ if err := validate.Required("DisplayStopOfRoutes", "body", m.DisplayStopOfRoutes); err != nil {
+ return err
}
for i := 0; i < len(m.DisplayStopOfRoutes); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateDispla
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusDisplayStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_first_last_trip_info.go
index a24d904e..f2f69e45 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_first_last_trip_info.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo BusFirstLastTripInfoList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.FirstLastTripInfo]
type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
FirstLastTripInfos []*ServiceDTOVersion3BusFirstLastTripInfo `json:"FirstLastTripInfos"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateFirstLastTripInfos(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateFirstLastTripInfos(formats strfmt.Registry) error {
- if swag.IsZero(m.FirstLastTripInfos) { // not required
- return nil
+ if err := validate.Required("FirstLastTripInfos", "body", m.FirstLastTripInfos); err != nil {
+ return err
}
for i := 0; i < len(m.FirstLastTripInfos); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateFirstLa
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusFirstLastTripInfo) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_n1_data.go
index 77deaad6..0f804df7 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_n1_data.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusN1Data BusN1DataList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]
type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
N1Datas []*ServiceDTOVersion3BusN1Data `json:"N1Datas"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusN1Data struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateN1Datas(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateN1Datas(formats strfmt.Registry) error {
- if swag.IsZero(m.N1Datas) { // not required
- return nil
+ if err := validate.Required("N1Datas", "body", m.N1Datas); err != nil {
+ return err
}
for i := 0; i < len(m.N1Datas); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateN1Datas(formats st
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusN1Data) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_network.go
index 623b1119..5054bda7 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_network.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusNetwork BusNetworkList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Network]
type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Networks []*ServiceDTOVersion3BusNetwork `json:"Networks"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNetwork struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateNetworks(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateNetworks(formats strfmt.Registry) error {
- if swag.IsZero(m.Networks) { // not required
- return nil
+ if err := validate.Required("Networks", "body", m.Networks); err != nil {
+ return err
}
for i := 0; i < len(m.Networks); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateNetworks(formats
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_news.go
index 847771cf..787d25a5 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_news.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusNews BusNewsList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.News]
type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Newses []*ServiceDTOVersion3BusNews `json:"Newses"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusNews struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateNewses(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateNewses(formats strfmt.Registry) error {
- if swag.IsZero(m.Newses) { // not required
- return nil
+ if err := validate.Required("Newses", "body", m.Newses); err != nil {
+ return err
}
for i := 0; i < len(m.Newses); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateNewses(formats strfm
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusNews) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_operator.go
index a29c53bb..f9c00568 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_operator.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusOperator BusOperatorList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Operator]
type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Operators []*ServiceDTOVersion3BusOperator `json:"Operators"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusOperator struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateOperators(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateOperators(formats strfmt.Registry) error {
- if swag.IsZero(m.Operators) { // not required
- return nil
+ if err := validate.Required("Operators", "body", m.Operators); err != nil {
+ return err
}
for i := 0; i < len(m.Operators); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateOperators(format
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusOperator) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route.go
index b8704d0e..e4d23b82 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusRoute BusRouteList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Route]
type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Routes []*ServiceDTOVersion3BusRoute `json:"Routes"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRoute struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRoutes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateRoutes(formats strfmt.Registry) error {
- if swag.IsZero(m.Routes) { // not required
- return nil
+ if err := validate.Required("Routes", "body", m.Routes); err != nil {
+ return err
}
for i := 0; i < len(m.Routes); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateRoutes(formats strf
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRoute) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_fare.go
index 770a5e4c..3a627dcf 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_fare.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare BusRouteFareList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteFare]
type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
RouteFares []*ServiceDTOVersion3BusRouteFare `json:"RouteFares"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRouteFares(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateRouteFares(formats strfmt.Registry) error {
- if swag.IsZero(m.RouteFares) { // not required
- return nil
+ if err := validate.Required("RouteFares", "body", m.RouteFares); err != nil {
+ return err
}
for i := 0; i < len(m.RouteFares); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateRouteFares(form
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteFare) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_network.go
index 05f8815b..ef06a68f 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_route_network.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork BusRouteNetworkList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteNetwork]
type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
RouteNetworks []*ServiceDTOVersion3BusRouteNetwork `json:"RouteNetworks"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateRouteNetworks(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateRouteNetworks(formats strfmt.Registry) error {
- if swag.IsZero(m.RouteNetworks) { // not required
- return nil
+ if err := validate.Required("RouteNetworks", "body", m.RouteNetworks); err != nil {
+ return err
}
for i := 0; i < len(m.RouteNetworks); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateRouteNetwork
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusRouteNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_s2_s_travel_time.go
index 2ef7dd85..bf92fc37 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_s2_s_travel_time.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime BusS2STravelTimeList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.S2STravelTime]
type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
S2STravelTimes []*ServiceDTOVersion3BusS2STravelTime `json:"S2STravelTimes"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateS2STravelTimes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateS2STravelTimes(formats strfmt.Registry) error {
- if swag.IsZero(m.S2STravelTimes) { // not required
- return nil
+ if err := validate.Required("S2STravelTimes", "body", m.S2STravelTimes); err != nil {
+ return err
}
for i := 0; i < len(m.S2STravelTimes); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateS2STravelTi
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusS2STravelTime) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_schedule.go
index 63f5cf69..cd9fcfc6 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_schedule.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusSchedule BusScheduleList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Schedule]
type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Schedules []*ServiceDTOVersion3BusSchedule `json:"Schedules"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSchedule struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateSchedules(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSchedules(formats strfmt.Registry) error {
- if swag.IsZero(m.Schedules) { // not required
- return nil
+ if err := validate.Required("Schedules", "body", m.Schedules); err != nil {
+ return err
}
for i := 0; i < len(m.Schedules); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSchedules(format
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSchedule) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_shape.go
index 594a332f..7fea75dd 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_shape.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusShape BusShapeList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Shape]
type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
// 資料(陣列)
+ // Required: true
Shapes []*ServiceDTOVersion3BusShape `json:"Shapes"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,49 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusShape struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateShapes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateShapes(formats strfmt.Registry) error {
- if swag.IsZero(m.Shapes) { // not required
- return nil
+ if err := validate.Required("Shapes", "body", m.Shapes); err != nil {
+ return err
}
for i := 0; i < len(m.Shapes); i++ {
@@ -86,6 +122,42 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateShapes(formats strf
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusShape) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_station.go
index 0de6a9f2..9b895387 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_station.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusStation BusStationList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Station]
type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// 資料(陣列)
+ // Required: true
Stations []*ServiceDTOVersion3BusStation `json:"Stations"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,67 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStation struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStations(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateStations(formats strfmt.Registry) error {
- if swag.IsZero(m.Stations) { // not required
- return nil
+ if err := validate.Required("Stations", "body", m.Stations); err != nil {
+ return err
}
for i := 0; i < len(m.Stations); i++ {
@@ -86,6 +140,24 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateStations(formats
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStation) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop.go
index 95063360..bafdf8d1 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusStop BusStopList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Stop]
type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// 資料(陣列)
+ // Required: true
Stops []*ServiceDTOVersion3BusStop `json:"Stops"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,67 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStop struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStops(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateStops(formats strfmt.Registry) error {
- if swag.IsZero(m.Stops) { // not required
- return nil
+ if err := validate.Required("Stops", "body", m.Stops); err != nil {
+ return err
}
for i := 0; i < len(m.Stops); i++ {
@@ -86,6 +140,24 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateStops(formats strfmt
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStop) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop_of_route.go
index b912c073..3d3f8c18 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_stop_of_route.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute BusStopOfRouteList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.StopOfRoute]
type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// 資料(陣列)
+ // Required: true
StopOfRoutes []*ServiceDTOVersion3BusStopOfRoute `json:"StopOfRoutes"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,67 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateStopOfRoutes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateStopOfRoutes(formats strfmt.Registry) error {
- if swag.IsZero(m.StopOfRoutes) { // not required
- return nil
+ if err := validate.Required("StopOfRoutes", "body", m.StopOfRoutes); err != nil {
+ return err
}
for i := 0; i < len(m.StopOfRoutes); i++ {
@@ -86,6 +140,24 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateStopOfRoutes(
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusStopOfRoute) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_sub_route.go
index 4d5b10d1..6705e548 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_sub_route.go
@@ -8,40 +8,47 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute BusSubRouteList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.SubRoute]
type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// 資料(陣列)
+ // Required: true
SubRoutes []*ServiceDTOVersion3BusSubRoute `json:"SubRoutes"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料版本編號
VersionID int32 `json:"VersionID,omitempty"`
@@ -51,20 +58,67 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateSubRoutes(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(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 {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSubRoutes(formats strfmt.Registry) error {
- if swag.IsZero(m.SubRoutes) { // not required
- return nil
+ if err := validate.Required("SubRoutes", "body", m.SubRoutes); err != nil {
+ return err
}
for i := 0; i < len(m.SubRoutes); i++ {
@@ -86,6 +140,24 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateSubRoutes(format
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusSubRoute) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle.go
index 281ad656..4689faaf 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle.go
@@ -8,39 +8,46 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusVehicle BusVehicleList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Vehicle]
type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料(陣列)
+ // Required: true
Vehicles []*ServiceDTOVersion3BusVehicle `json:"Vehicles"`
// 資料版本編號
@@ -51,6 +58,26 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicle struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateVehicles(formats); err != nil {
res = append(res, err)
}
@@ -61,10 +88,55 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) Validate(formats strfmt.R
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicle) validateVehicles(formats strfmt.Registry) error {
- if swag.IsZero(m.Vehicles) { // not required
- return nil
+ if err := validate.Required("Vehicles", "body", m.Vehicles); err != nil {
+ return err
}
for i := 0; i < len(m.Vehicles); i++ {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_depot.go
index 56afb34d..fc16b0f2 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_depot.go
@@ -8,39 +8,46 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot BusVehicleDepotList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleDepot]
type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料(陣列)
+ // Required: true
VehicleDepots []*ServiceDTOVersion3BusVehicleDepot `json:"VehicleDepots"`
// 資料版本編號
@@ -51,6 +58,26 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateVehicleDepots(formats); err != nil {
res = append(res, err)
}
@@ -61,10 +88,55 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) Validate(formats str
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleDepot) validateVehicleDepots(formats strfmt.Registry) error {
- if swag.IsZero(m.VehicleDepots) { // not required
- return nil
+ if err := validate.Required("VehicleDepots", "body", m.VehicleDepots); err != nil {
+ return err
}
for i := 0; i < len(m.VehicleDepots); i++ {
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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_route.go
index dc203e07..bf733dc8 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/m_o_t_c_api_bus_d_a_l_bus_service_d_t_o_version3_bus_vehicle_route.go
@@ -8,39 +8,46 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
)
// MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute BusVehicleRouteList
+//
// swagger:model MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleRoute]
type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
// 業管機關簡碼
- AuthorityCode string `json:"AuthorityCode,omitempty"`
+ // Required: true
+ AuthorityCode *string `json:"AuthorityCode"`
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // [來源端平臺]資料更新週期
- SrcUpdateInterval int32 `json:"SrcUpdateInterval,omitempty"`
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
+ // Required: true
+ SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
// DateTime
//
// [來源端平臺]資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- SrcUpdateTime string `json:"SrcUpdateTime,omitempty"`
+ // Required: true
+ SrcUpdateTime *string `json:"SrcUpdateTime"`
// [平臺]資料更新週期(秒)
- UpdateInterval int32 `json:"UpdateInterval,omitempty"`
+ // Required: true
+ UpdateInterval *int32 `json:"UpdateInterval"`
// DateTime
//
// [平臺]資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 資料(陣列)
+ // Required: true
VehicleRoutes []*ServiceDTOVersion3BusVehicleRoute `json:"VehicleRoutes"`
// 資料版本編號
@@ -51,6 +58,26 @@ type MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute struct {
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateAuthorityCode(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSrcUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateInterval(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateVehicleRoutes(formats); err != nil {
res = append(res, err)
}
@@ -61,10 +88,55 @@ func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) Validate(formats str
return nil
}
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateAuthorityCode(formats strfmt.Registry) error {
+
+ if err := validate.Required("AuthorityCode", "body", m.AuthorityCode); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateInterval", "body", m.SrcUpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateSrcUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("SrcUpdateTime", "body", m.SrcUpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateInterval(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIBusDALBusServiceDTOVersion3BusVehicleRoute) validateVehicleRoutes(formats strfmt.Registry) error {
- if swag.IsZero(m.VehicleRoutes) { // not required
- return nil
+ if err := validate.Required("VehicleRoutes", "body", m.VehicleRoutes); err != nil {
+ return err
}
for i := 0; i < len(m.VehicleRoutes); i++ {
diff --git a/bus/v3/models/service_d_t_o_version3_base_health.go b/bus/v3/models/service_d_t_o_version3_base_display_health.go
similarity index 70%
rename from bus/v3/models/service_d_t_o_version3_base_health.go
rename to bus/v3/models/service_d_t_o_version3_base_display_health.go
index 49402e71..eb4bf9e7 100644
--- a/bus/v3/models/service_d_t_o_version3_base_health.go
+++ b/bus/v3/models/service_d_t_o_version3_base_display_health.go
@@ -6,18 +6,18 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion3BaseHealth Health
+// ServiceDTOVersion3BaseDisplayHealth DisplayHealth
//
// API服務健康狀態
-// swagger:model Service.DTO.Version3.Base.Health
-type ServiceDTOVersion3BaseHealth struct {
+//
+// swagger:model Service.DTO.Version3.Base.DisplayHealth
+type ServiceDTOVersion3BaseDisplayHealth struct {
// Inbound
//
@@ -38,8 +38,8 @@ type ServiceDTOVersion3BaseHealth struct {
ServiceName *string `json:"ServiceName"`
}
-// Validate validates this service d t o version3 base health
-func (m *ServiceDTOVersion3BaseHealth) Validate(formats strfmt.Registry) error {
+// Validate validates this service d t o version3 base display health
+func (m *ServiceDTOVersion3BaseDisplayHealth) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateInbound(formats); err != nil {
@@ -64,7 +64,7 @@ func (m *ServiceDTOVersion3BaseHealth) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateInbound(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateInbound(formats strfmt.Registry) error {
if swag.IsZero(m.Inbound) { // not required
return nil
@@ -82,7 +82,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateInbound(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateOutbound(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateOutbound(formats strfmt.Registry) error {
if swag.IsZero(m.Outbound) { // not required
return nil
@@ -100,7 +100,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateOutbound(formats strfmt.Registry)
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateServiceID(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceID(formats strfmt.Registry) error {
if err := validate.Required("ServiceID", "body", m.ServiceID); err != nil {
return err
@@ -109,7 +109,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateServiceID(formats strfmt.Registry
return nil
}
-func (m *ServiceDTOVersion3BaseHealth) validateServiceName(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BaseDisplayHealth) validateServiceName(formats strfmt.Registry) error {
if err := validate.Required("ServiceName", "body", m.ServiceName); err != nil {
return err
@@ -119,7 +119,7 @@ func (m *ServiceDTOVersion3BaseHealth) validateServiceName(formats strfmt.Regist
}
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseHealth) MarshalBinary() ([]byte, error) {
+func (m *ServiceDTOVersion3BaseDisplayHealth) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -127,8 +127,8 @@ func (m *ServiceDTOVersion3BaseHealth) MarshalBinary() ([]byte, error) {
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion3BaseHealth) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion3BaseHealth
+func (m *ServiceDTOVersion3BaseDisplayHealth) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion3BaseDisplayHealth
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/service_d_t_o_version3_base_inbound.go
index afb98e46..a12b34a2 100644
--- a/bus/v3/models/service_d_t_o_version3_base_inbound.go
+++ b/bus/v3/models/service_d_t_o_version3_base_inbound.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BaseInbound Inbound
//
// 本平台資料來源轉入狀態
+//
// swagger:model Service.DTO.Version3.Base.Inbound
type ServiceDTOVersion3BaseInbound struct {
diff --git a/bus/v3/models/service_d_t_o_version3_base_name_type.go b/bus/v3/models/service_d_t_o_version3_base_name_type.go
index a119d519..9f26b43b 100644
--- a/bus/v3/models/service_d_t_o_version3_base_name_type.go
+++ b/bus/v3/models/service_d_t_o_version3_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version3.Base.NameType
type ServiceDTOVersion3BaseNameType struct {
diff --git a/bus/v3/models/service_d_t_o_version3_base_outbound.go b/bus/v3/models/service_d_t_o_version3_base_outbound.go
index 8b302687..a4385337 100644
--- a/bus/v3/models/service_d_t_o_version3_base_outbound.go
+++ b/bus/v3/models/service_d_t_o_version3_base_outbound.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BaseOutbound Outbound
//
// 本平台API狀態
+//
// swagger:model Service.DTO.Version3.Base.Outbound
type ServiceDTOVersion3BaseOutbound struct {
diff --git a/bus/v3/models/service_d_t_o_version3_base_point_type.go b/bus/v3/models/service_d_t_o_version3_base_point_type.go
index 3b2c8707..324a7bb5 100644
--- a/bus/v3/models/service_d_t_o_version3_base_point_type.go
+++ b/bus/v3/models/service_d_t_o_version3_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version3.Base.PointType
type ServiceDTOVersion3BasePointType struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_a1_data.go b/bus/v3/models/service_d_t_o_version3_bus_a1_data.go
index 10527122..7197ab6e 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_a1_data.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_a1_data.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusA1Data A1Data
+//
// swagger:model Service.DTO.Version3.Bus.A1Data
type ServiceDTOVersion3BusA1Data struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_a2_data.go b/bus/v3/models/service_d_t_o_version3_bus_a2_data.go
index b87ea9fc..d86dfbdf 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_a2_data.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_a2_data.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusA2Data A2Data
+//
// swagger:model Service.DTO.Version3.Bus.A2Data
type ServiceDTOVersion3BusA2Data struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_alert.go b/bus/v3/models/service_d_t_o_version3_bus_alert.go
index a7d17fc0..6a8cbbee 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_alert.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_alert.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusAlert Alert
+//
// swagger:model Service.DTO.Version3.Bus.Alert
type ServiceDTOVersion3BusAlert struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go b/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go
index 4d82f18a..358d1cfc 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_daily_time_table.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3BusDailyTimeTable DailyTimeTable
//
// 每日時刻表資料
+//
// swagger:model Service.DTO.Version3.Bus.DailyTimeTable
type ServiceDTOVersion3BusDailyTimeTable struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_depot.go b/bus/v3/models/service_d_t_o_version3_bus_depot.go
index 49fc2846..1212a656 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_depot.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_depot.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusDepot Depot
+//
// swagger:model Service.DTO.Version3.Bus.Depot
type ServiceDTOVersion3BusDepot struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go b/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go
index a04f63b9..48172f55 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusDisplayStopOfRoute DisplayStopOfRoute
+//
// swagger:model Service.DTO.Version3.Bus.DisplayStopOfRoute
type ServiceDTOVersion3BusDisplayStopOfRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go b/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go
index 852b2523..8a97f288 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_display_stop_of_route_stop.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusDisplayStopOfRouteStop Stop
//
// 路線站序資料
+//
// swagger:model Service.DTO.Version3.Bus.DisplayStopOfRoute.Stop
type ServiceDTOVersion3BusDisplayStopOfRouteStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go b/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go
index a897d32a..71bac87a 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusFirstLastTripInfo FirstLastTripInfo
+//
// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo
type ServiceDTOVersion3BusFirstLastTripInfo struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go b/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go
index 0a82646b..e261e1ee 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_first_last_trip_info_first_last_trip.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip FirstLastTrip
+//
// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo.FirstLastTrip
type ServiceDTOVersion3BusFirstLastTripInfoFirstLastTrip struct {
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
index 0c898084..0cc2d708 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusFirstLastTripInfoServiceDay ServiceDay
+//
// swagger:model Service.DTO.Version3.Bus.FirstLastTripInfo.ServiceDay
type ServiceDTOVersion3BusFirstLastTripInfoServiceDay struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_n1_data.go b/bus/v3/models/service_d_t_o_version3_bus_n1_data.go
index 48de0377..8a12a5e1 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_n1_data.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_n1_data.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusN1Data N1Data
+//
// swagger:model Service.DTO.Version3.Bus.N1Data
type ServiceDTOVersion3BusN1Data struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network.go b/bus/v3/models/service_d_t_o_version3_bus_network.go
index 82f70225..6a2a1d73 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_network.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusNetwork Network
+//
// swagger:model Service.DTO.Version3.Bus.Network
type ServiceDTOVersion3BusNetwork struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go b/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go
index c366d484..53b3ad6e 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_network_l_b_s_map_url.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusNetworkLBSMapURL LBSMapURL
+//
// swagger:model Service.DTO.Version3.Bus.Network.LBSMapURL
type ServiceDTOVersion3BusNetworkLBSMapURL struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go b/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go
index 7b45cd4e..d51c703f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_network_map_url.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusNetworkMapURL NetworkMapURL
+//
// swagger:model Service.DTO.Version3.Bus.NetworkMapURL
type ServiceDTOVersion3BusNetworkMapURL struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_news.go b/bus/v3/models/service_d_t_o_version3_bus_news.go
index 0a41e3ee..5e13f8ef 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_news.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_news.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusNews News
+//
// swagger:model Service.DTO.Version3.Bus.News
type ServiceDTOVersion3BusNews struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go
index 1b879cba..15f70dd3 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusODFare ODFare
+//
// swagger:model Service.DTO.Version3.Bus.ODFare
type ServiceDTOVersion3BusODFare struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go
index 18fd120a..408340cd 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_fare.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusODFareFare Fare
+//
// swagger:model Service.DTO.Version3.Bus.ODFare.Fare
type ServiceDTOVersion3BusODFareFare struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go
index 992b052f..9cd59feb 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_o_d_fare_o_d.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusODFareOD OD
+//
// swagger:model Service.DTO.Version3.Bus.ODFare.OD
type ServiceDTOVersion3BusODFareOD struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_operator.go b/bus/v3/models/service_d_t_o_version3_bus_operator.go
index bd460e4e..863acc04 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_operator.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_operator.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusOperator Operator
+//
// swagger:model Service.DTO.Version3.Bus.Operator
type ServiceDTOVersion3BusOperator struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route.go b/bus/v3/models/service_d_t_o_version3_bus_route.go
index e51b3aa7..0deefbc8 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3BusRoute Route
//
// 路線資料型別
+//
// swagger:model Service.DTO.Version3.Bus.Route
type ServiceDTOVersion3BusRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_fare.go b/bus/v3/models/service_d_t_o_version3_bus_route_fare.go
index 9dce7707..83a86069 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route_fare.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusRouteFare RouteFare
+//
// swagger:model Service.DTO.Version3.Bus.RouteFare
type ServiceDTOVersion3BusRouteFare struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_network.go b/bus/v3/models/service_d_t_o_version3_bus_route_network.go
index 443e402c..b445f5ea 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_network.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route_network.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusRouteNetwork RouteNetwork
+//
// swagger:model Service.DTO.Version3.Bus.RouteNetwork
type ServiceDTOVersion3BusRouteNetwork struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go b/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go
index 65ab1e4b..fbb63790 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route_network_segment.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusRouteNetworkSegment Segment
+//
// swagger:model Service.DTO.Version3.Bus.RouteNetwork.Segment
type ServiceDTOVersion3BusRouteNetworkSegment struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_operator.go b/bus/v3/models/service_d_t_o_version3_bus_route_operator.go
index 11ad5d65..f8d55c2d 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_operator.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusRouteOperator Operator
//
// 營運業者資訊
+//
// swagger:model Service.DTO.Version3.Bus.Route.Operator
type ServiceDTOVersion3BusRouteOperator struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_route_stop.go b/bus/v3/models/service_d_t_o_version3_bus_route_stop.go
index 6aa7f22a..1e3377d2 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_route_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_route_stop.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusRouteStop Stop
+//
// swagger:model Service.DTO.Version3.Bus.Route.Stop
type ServiceDTOVersion3BusRouteStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go b/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go
index b87e9a62..9651a275 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusS2STravelTime S2STravelTime
+//
// swagger:model Service.DTO.Version3.Bus.S2STravelTime
type ServiceDTOVersion3BusS2STravelTime struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go b/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go
index 4e76992c..c466bf85 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_s2_s_travel_time_travel_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusS2STravelTimeTravelTime TravelTime
+//
// swagger:model Service.DTO.Version3.Bus.S2STravelTime.TravelTime
type ServiceDTOVersion3BusS2STravelTimeTravelTime struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule.go b/bus/v3/models/service_d_t_o_version3_bus_schedule.go
index ee2c0574..18af3aec 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_schedule.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3BusSchedule Schedule
//
// 營運班表資料
+//
// swagger:model Service.DTO.Version3.Bus.Schedule
type ServiceDTOVersion3BusSchedule struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go
index 4f38cc93..64f1dfd9 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_schedule_date_period.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusScheduleDatePeriod DatePeriod
+//
// swagger:model Service.DTO.Version3.Bus.Schedule.DatePeriod
type ServiceDTOVersion3BusScheduleDatePeriod struct {
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
index 4f7007d6..fe7522e7 100644
--- 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
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"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 {
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
index 86185fe0..584d48f2 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScheduleServiceDay ServiceDay
+//
// swagger:model Service.DTO.Version3.Bus.Schedule.ServiceDay
type ServiceDTOVersion3BusScheduleServiceDay struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go
index 8c797e93..bb94b98b 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_schedule_special_day.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusScheduleSpecialDay SpecialDay
+//
// swagger:model Service.DTO.Version3.Bus.Schedule.SpecialDay
type ServiceDTOVersion3BusScheduleSpecialDay struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go
index aff579f9..552ea8f9 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_schedule_stop_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusScheduleStopTime StopTime
+//
// swagger:model Service.DTO.Version3.Bus.Schedule.StopTime
type ServiceDTOVersion3BusScheduleStopTime struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go b/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go
index c7066d0b..48f8af5f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_schedule_time_table.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusScheduleTimeTable TimeTable
+//
// swagger:model Service.DTO.Version3.Bus.Schedule.TimeTable
type ServiceDTOVersion3BusScheduleTimeTable struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope.go b/bus/v3/models/service_d_t_o_version3_bus_scope.go
index e2da5923..1aed8edd 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_scope.go
@@ -8,15 +8,15 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScope Scope
//
// 通阻影響範圍
+//
// swagger:model Service.DTO.Version3.Bus.Scope
type ServiceDTOVersion3BusScope struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_route.go b/bus/v3/models/service_d_t_o_version3_bus_scope_route.go
index 5f4afc95..3f2a4b33 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_scope_route.go
@@ -6,15 +6,15 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScopeRoute Route
//
// 路線資料
+//
// swagger:model Service.DTO.Version3.Bus.Scope.Route
type ServiceDTOVersion3BusScopeRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go b/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go
index b1aecfea..5abee35e 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_scope_stop.go
@@ -6,15 +6,15 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScopeStop Stop
//
// 站牌資料
+//
// swagger:model Service.DTO.Version3.Bus.Scope.Stop
type ServiceDTOVersion3BusScopeStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go b/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go
index 49233fab..23f3055b 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_scope_sub_route.go
@@ -6,15 +6,15 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScopeSubRoute SubRoute
//
// 附屬路線資料
+//
// swagger:model Service.DTO.Version3.Bus.Scope.SubRoute
type ServiceDTOVersion3BusScopeSubRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go b/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go
index 0d3dc27d..f86de4e5 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_scope_trip.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusScopeTrip Trip
//
// 班次代碼資料
+//
// swagger:model Service.DTO.Version3.Bus.Scope.Trip
type ServiceDTOVersion3BusScopeTrip struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare.go b/bus/v3/models/service_d_t_o_version3_bus_section_fare.go
index 7e83bffb..3ce68961 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_section_fare.go
@@ -8,20 +8,24 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusSectionFare SectionFare
+//
// swagger:model Service.DTO.Version3.Bus.SectionFare
type ServiceDTOVersion3BusSectionFare struct {
// 緩衝區資訊
// Required: true
BufferZones []*ServiceDTOVersion3BusSectionFareBufferZone `json:"BufferZones"`
+
+ // 每段收費資訊
+ // Required: true
+ Fares []*ServiceDTOVersion3BusSectionFareFare `json:"Fares"`
}
// Validate validates this service d t o version3 bus section fare
@@ -32,6 +36,10 @@ func (m *ServiceDTOVersion3BusSectionFare) Validate(formats strfmt.Registry) err
res = append(res, err)
}
+ if err := m.validateFares(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -63,6 +71,31 @@ func (m *ServiceDTOVersion3BusSectionFare) validateBufferZones(formats strfmt.Re
return nil
}
+func (m *ServiceDTOVersion3BusSectionFare) validateFares(formats strfmt.Registry) error {
+
+ if err := validate.Required("Fares", "body", m.Fares); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Fares); i++ {
+ if swag.IsZero(m.Fares[i]) { // not required
+ continue
+ }
+
+ if m.Fares[i] != nil {
+ if err := m.Fares[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Fares" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *ServiceDTOVersion3BusSectionFare) MarshalBinary() ([]byte, error) {
if m == 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
index c229b97f..675e449c 100644
--- 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
@@ -6,16 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- "strconv"
-
- strfmt "github.com/go-openapi/strfmt"
-
"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 {
@@ -32,17 +30,13 @@ type ServiceDTOVersion3BusSectionFareBufferZone struct {
//
// 緩衝區訖點
// Required: true
- FareBufferZoneDestinations *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneDestinations"`
+ FareBufferZoneDestination *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneDestination"`
// FareBufferZone
//
// 緩衝區起點
// Required: true
- FareBufferZoneOrigins *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneOrigins"`
-
- // 每段收費資訊
- // Required: true
- Fares []*ServiceDTOVersion3BusSectionFareFare `json:"Fares"`
+ FareBufferZoneOrigin *ServiceDTOVersion3BusSectionFareFareBufferZone `json:"FareBufferZoneOrigin"`
// 緩衝區順序
// Required: true
@@ -60,15 +54,11 @@ func (m *ServiceDTOVersion3BusSectionFareBufferZone) Validate(formats strfmt.Reg
res = append(res, err)
}
- if err := m.validateFareBufferZoneDestinations(formats); err != nil {
+ if err := m.validateFareBufferZoneDestination(formats); err != nil {
res = append(res, err)
}
- if err := m.validateFareBufferZoneOrigins(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateFares(formats); err != nil {
+ if err := m.validateFareBufferZoneOrigin(formats); err != nil {
res = append(res, err)
}
@@ -91,16 +81,16 @@ func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateDirection(formats s
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneDestinations(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneDestination(formats strfmt.Registry) error {
- if err := validate.Required("FareBufferZoneDestinations", "body", m.FareBufferZoneDestinations); err != nil {
+ if err := validate.Required("FareBufferZoneDestination", "body", m.FareBufferZoneDestination); err != nil {
return err
}
- if m.FareBufferZoneDestinations != nil {
- if err := m.FareBufferZoneDestinations.Validate(formats); err != nil {
+ if m.FareBufferZoneDestination != nil {
+ if err := m.FareBufferZoneDestination.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneDestinations")
+ return ve.ValidateName("FareBufferZoneDestination")
}
return err
}
@@ -109,16 +99,16 @@ func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneDesti
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneOrigins(formats strfmt.Registry) error {
+func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneOrigin(formats strfmt.Registry) error {
- if err := validate.Required("FareBufferZoneOrigins", "body", m.FareBufferZoneOrigins); err != nil {
+ if err := validate.Required("FareBufferZoneOrigin", "body", m.FareBufferZoneOrigin); err != nil {
return err
}
- if m.FareBufferZoneOrigins != nil {
- if err := m.FareBufferZoneOrigins.Validate(formats); err != nil {
+ if m.FareBufferZoneOrigin != nil {
+ if err := m.FareBufferZoneOrigin.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("FareBufferZoneOrigins")
+ return ve.ValidateName("FareBufferZoneOrigin")
}
return err
}
@@ -127,31 +117,6 @@ func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFareBufferZoneOrigi
return nil
}
-func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateFares(formats strfmt.Registry) error {
-
- if err := validate.Required("Fares", "body", m.Fares); err != nil {
- return err
- }
-
- for i := 0; i < len(m.Fares); i++ {
- if swag.IsZero(m.Fares[i]) { // not required
- continue
- }
-
- if m.Fares[i] != nil {
- if err := m.Fares[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Fares" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
func (m *ServiceDTOVersion3BusSectionFareBufferZone) validateSectionSequence(formats strfmt.Registry) error {
if err := validate.Required("SectionSequence", "body", m.SectionSequence); err != nil {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go b/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go
index 912e6c8a..7d23dbf4 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_section_fare_fare.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusSectionFareFare Fare
+//
// swagger:model Service.DTO.Version3.Bus.SectionFare.Fare
type ServiceDTOVersion3BusSectionFareFare struct {
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
index 4108d764..65cae65d 100644
--- 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
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"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 {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_service_type.go b/bus/v3/models/service_d_t_o_version3_bus_service_type.go
index 4d8d5738..a8f45dba 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_service_type.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_service_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusServiceType ServiceType
+//
// swagger:model Service.DTO.Version3.Bus.ServiceType
type ServiceDTOVersion3BusServiceType struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_shape.go b/bus/v3/models/service_d_t_o_version3_bus_shape.go
index 77888031..94688fdf 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_shape.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_shape.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusShape Shape
+//
// swagger:model Service.DTO.Version3.Bus.Shape
type ServiceDTOVersion3BusShape struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go b/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go
index 83d215c3..e6cfc658 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stage_fare.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStageFare StageFare
+//
// swagger:model Service.DTO.Version3.Bus.StageFare
type ServiceDTOVersion3BusStageFare struct {
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
index f8ce73bf..1ae277c2 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusStageFareDiscountPeriod DiscountPeriod
//
// 優惠時段
+//
// swagger:model Service.DTO.Version3.Bus.StageFare.DiscountPeriod
type ServiceDTOVersion3BusStageFareDiscountPeriod struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go
index c53d84a2..ec6c7c8c 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3BusStageFareFare Fare
//
// 票價內容
+//
// swagger:model Service.DTO.Version3.Bus.StageFare.Fare
type ServiceDTOVersion3BusStageFareFare struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go
index a90012c7..ab409a22 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stage_fare_service_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusStageFareServiceDay ServiceDay
//
// 服務日型態
+//
// swagger:model Service.DTO.Version3.Bus.StageFare.ServiceDay
type ServiceDTOVersion3BusStageFareServiceDay struct {
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
index ec57ec0e..b721590d 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusStageFareStage Stage
//
// 計費站
+//
// swagger:model Service.DTO.Version3.Bus.StageFare.Stage
type ServiceDTOVersion3BusStageFareStage struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_station.go b/bus/v3/models/service_d_t_o_version3_bus_station.go
index 136d6dc0..0630ebbc 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_station.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_station.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStation Station
+//
// swagger:model Service.DTO.Version3.Bus.Station
type ServiceDTOVersion3BusStation struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop.go b/bus/v3/models/service_d_t_o_version3_bus_stop.go
index e09290e3..6dee5162 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stop.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStop Stop
+//
// swagger:model Service.DTO.Version3.Bus.Stop
type ServiceDTOVersion3BusStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go
index 1ce7c963..9ae983c8 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStopOfRoute StopOfRoute
+//
// swagger:model Service.DTO.Version3.Bus.StopOfRoute
type ServiceDTOVersion3BusStopOfRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go
index fa74dc76..03c8bb58 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3BusStopOfRouteOperator Operator
//
// 營運業者資訊
+//
// swagger:model Service.DTO.Version3.Bus.StopOfRoute.Operator
type ServiceDTOVersion3BusStopOfRouteOperator struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go
index 63e499ee..ecec36be 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stop_of_route_stop.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStopOfRouteStop Stop
+//
// swagger:model Service.DTO.Version3.Bus.StopOfRoute.Stop
type ServiceDTOVersion3BusStopOfRouteStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_stop_time.go b/bus/v3/models/service_d_t_o_version3_bus_stop_time.go
index bd2514b2..b40e5b34 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_stop_time.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_stop_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusStopTime StopTime
+//
// swagger:model Service.DTO.Version3.Bus.StopTime
type ServiceDTOVersion3BusStopTime struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route.go b/bus/v3/models/service_d_t_o_version3_bus_sub_route.go
index 7f1fb855..9ba05eba 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_sub_route.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusSubRoute SubRoute
+//
// swagger:model Service.DTO.Version3.Bus.SubRoute
type ServiceDTOVersion3BusSubRoute struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go b/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go
index 25e93e4f..17012dc0 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_sub_route_operator.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusSubRouteOperator Operator
+//
// swagger:model Service.DTO.Version3.Bus.SubRoute.Operator
type ServiceDTOVersion3BusSubRouteOperator struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go b/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go
index 8fabb6f7..b191b133 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_sub_route_stop.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusSubRouteStop Stop
+//
// swagger:model Service.DTO.Version3.Bus.SubRoute.Stop
type ServiceDTOVersion3BusSubRouteStop struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_time_table.go b/bus/v3/models/service_d_t_o_version3_bus_time_table.go
index 09ff494c..78e7c8cd 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_time_table.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_time_table.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusTimeTable TimeTable
+//
// swagger:model Service.DTO.Version3.Bus.TimeTable
type ServiceDTOVersion3BusTimeTable struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle.go b/bus/v3/models/service_d_t_o_version3_bus_vehicle.go
index b19c0931..9bedfa4f 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_vehicle.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusVehicle Vehicle
+//
// swagger:model Service.DTO.Version3.Bus.Vehicle
type ServiceDTOVersion3BusVehicle struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go b/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go
index 0cb2c3d5..0f47df02 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_vehicle_depot.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusVehicleDepot VehicleDepot
+//
// swagger:model Service.DTO.Version3.Bus.VehicleDepot
type ServiceDTOVersion3BusVehicleDepot struct {
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
index 47a7c24d..2317daf6 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BusVehicleDepotVehicle Vehicle
+//
// swagger:model Service.DTO.Version3.Bus.VehicleDepot.Vehicle
type ServiceDTOVersion3BusVehicleDepotVehicle struct {
diff --git a/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go b/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go
index c1824015..c0196685 100644
--- a/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go
+++ b/bus/v3/models/service_d_t_o_version3_bus_vehicle_route.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3BusVehicleRoute VehicleRoute
+//
// swagger:model Service.DTO.Version3.Bus.VehicleRoute
type ServiceDTOVersion3BusVehicleRoute struct {
diff --git a/oas.air.v2.json b/oas.air.v2.json
index 4e27b545..9642657d 100644
--- a/oas.air.v2.json
+++ b/oas.air.v2.json
@@ -3,7 +3,7 @@
"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描述:[請點我](http://ptx.transportdata.tw/MOTC/v2/Air/api-docs/oas)"
+ "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/Air/api-docs/oas)"
},
"host": "ptx.transportdata.tw",
"basePath": "/MOTC/",
@@ -261,6 +261,13 @@
"text/json"
],
"parameters": [
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -338,6 +345,13 @@
"required": true,
"type": "string"
},
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -408,6 +422,13 @@
"text/json"
],
"parameters": [
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -485,6 +506,13 @@
"required": true,
"type": "string"
},
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -555,6 +583,13 @@
"text/json"
],
"parameters": [
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -631,6 +666,13 @@
"required": true,
"type": "string"
},
+ {
+ "name": "IsCargo",
+ "in": "query",
+ "description": "是否為貨機",
+ "required": false,
+ "type": "boolean"
+ },
{
"name": "$select",
"in": "query",
@@ -1345,7 +1387,7 @@
"type": "string"
},
"FlightNumber": {
- "description": "航機班號",
+ "description": "航機班號(不包含航空公司的AirlineID,僅有班號數字)",
"type": "string"
},
"AirRouteType": {
@@ -1394,7 +1436,11 @@
"type": "string"
},
"Gate": {
- "description": "登機門",
+ "description": "登機門(僅客機提供)",
+ "type": "string"
+ },
+ "Apron": {
+ "description": "停機坪(僅貨機提供)",
"type": "string"
},
"CodeShare": {
@@ -1410,11 +1456,11 @@
"type": "string"
},
"BaggageClaim": {
- "description": "行李轉盤(離站FIDS沒有「行李轉盤」資訊, 到站FIDS才可能有)",
+ "description": "行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有, 貨機則無此資訊)",
"type": "string"
},
"CheckCounter": {
- "description": "報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有)",
+ "description": "報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有, 貨機則無此資訊)",
"type": "string"
},
"UpdateTime": {
@@ -1443,7 +1489,7 @@
"type": "string"
},
"FlightNumber": {
- "description": "航機班號",
+ "description": "航機班號(不包含航空公司的AirlineID,僅有班號數字)",
"type": "string"
},
"AirRouteType": {
@@ -1492,7 +1538,11 @@
"type": "string"
},
"Gate": {
- "description": "登機門",
+ "description": "登機門(僅客機提供)",
+ "type": "string"
+ },
+ "Apron": {
+ "description": "停機坪(僅貨機提供)",
"type": "string"
},
"CodeShare": {
@@ -1508,11 +1558,11 @@
"type": "string"
},
"BaggageClaim": {
- "description": "行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有)",
+ "description": "行李轉盤(到站FIDS可能有「行李轉盤」資訊, 離站FIDS不會有, 貨機則無此資訊)",
"type": "string"
},
"CheckCounter": {
- "description": "報到櫃檯(到站FIDS不會有「報到櫃台」資訊, 離站FIDS才可能有)",
+ "description": "報到櫃檯(離站FIDS可能有「報到櫃台」資訊, 到站FIDS不會有, 貨機則無此資訊)",
"type": "string"
},
"UpdateTime": {
@@ -1541,7 +1591,7 @@
"type": "string"
},
"FlightNumber": {
- "description": "航機班號",
+ "description": "航機班號(不包含航空公司的AirlineID,僅有班號數字)",
"type": "string"
},
"AirRouteType": {
@@ -1633,11 +1683,19 @@
"type": "string"
},
"ArrivalGate": {
- "description": "抵達登機門",
+ "description": "抵達登機門(僅客機提供)",
"type": "string"
},
"DepartureGate": {
- "description": "出發登機門",
+ "description": "出發登機門(僅客機提供)",
+ "type": "string"
+ },
+ "ArrivalApron": {
+ "description": "抵達停機坪(僅貨機提供)",
+ "type": "string"
+ },
+ "DepartureApron": {
+ "description": "出發停機坪(僅貨機提供)",
"type": "string"
},
"CodeShare": {
@@ -1706,7 +1764,7 @@
"type": "string"
},
"FlightNumber": {
- "description": "班機號碼",
+ "description": "班機號碼(包含航空公司的AirlineID,結構為AirlineID加上3~4碼航機班號數字;若班號僅有兩碼,其結構會加上0補足三碼,\"AirlineID + 0 + 兩碼班號\")",
"type": "string"
},
"DepartureAirportID": {
@@ -1790,7 +1848,7 @@
"type": "string"
},
"FlightNumber": {
- "description": "班機號碼",
+ "description": "航機班號(不包含航空公司的AirlineID,僅有班號數字)",
"type": "string"
}
}
diff --git a/oas.basic.v2.json b/oas.basic.v2.json
index d22e19d3..a6ab5136 100644
--- a/oas.basic.v2.json
+++ b/oas.basic.v2.json
@@ -3,7 +3,7 @@
"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描述:[請點我](http://ptx.transportdata.tw/MOTC/v2/Basic/api-docs/oas)"
+ "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/Basic/api-docs/oas)"
},
"host": "ptx.transportdata.tw",
"basePath": "/MOTC/",
@@ -352,6 +352,11 @@
},
"MOTC.API.Basic.Models.Version2.BasicWrapper[Service.DTO.Version2.Base.News]": {
"title": "NewsList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "Newses"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -497,7 +502,7 @@
"type": "string"
},
"AuthorityCode": {
- "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)",
+ "description": "營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)",
"type": "string"
},
"SubAuthorityCode": {
diff --git a/oas.bike.v2.json b/oas.bike.v2.json
index a02cf4e8..f47d81a2 100644
--- a/oas.bike.v2.json
+++ b/oas.bike.v2.json
@@ -3,7 +3,7 @@
"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描述:[請點我](http://ptx.transportdata.tw/MOTC/v2/Bike/api-docs/oas)"
+ "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/Bike/api-docs/oas)"
},
"host": "ptx.transportdata.tw",
"basePath": "/MOTC/",
@@ -45,15 +45,15 @@
],
"x-enum": {
"NewTaipei": "新北市",
- "PingtungCounty": "屏東縣",
- "Taichung": "臺中市",
- "Taoyuan": "桃園市",
- "Kaohsiung": "高雄市",
- "Hsinchu": "新竹市",
- "Taipei": "臺北市",
"Tainan": "臺南市",
"MiaoliCounty": "苗栗縣",
- "ChanghuaCounty": "彰化縣"
+ "Taipei": "臺北市",
+ "Hsinchu": "新竹市",
+ "PingtungCounty": "屏東縣",
+ "ChanghuaCounty": "彰化縣",
+ "Taoyuan": "桃園市",
+ "Taichung": "臺中市",
+ "Kaohsiung": "高雄市"
}
},
{
@@ -151,16 +151,16 @@
"Tainan"
],
"x-enum": {
- "Hsinchu": "新竹市",
- "ChanghuaCounty": "彰化縣",
- "Tainan": "臺南市",
"Kaohsiung": "高雄市",
- "MiaoliCounty": "苗栗縣",
- "Taoyuan": "桃園市",
"Taichung": "臺中市",
+ "Hsinchu": "新竹市",
+ "ChanghuaCounty": "彰化縣",
"Taipei": "臺北市",
+ "Tainan": "臺南市",
"NewTaipei": "新北市",
- "PingtungCounty": "屏東縣"
+ "Taoyuan": "桃園市",
+ "PingtungCounty": "屏東縣",
+ "MiaoliCounty": "苗栗縣"
}
},
{
@@ -262,28 +262,28 @@
"Kaohsiung"
],
"x-enum": {
- "Tainan": "臺南市",
- "YunlinCounty": "雲林縣",
- "KinmenCounty": "金門縣",
+ "NantouCounty": "南投縣",
+ "HsinchuCounty": "新竹縣",
"Chiayi": "嘉義市",
+ "ChanghuaCounty": "彰化縣",
+ "Kaohsiung": "高雄市",
+ "Taichung": "臺中市",
+ "PingtungCounty": "屏東縣",
+ "YunlinCounty": "雲林縣",
+ "Hsinchu": "新竹市",
+ "PenghuCounty": "澎湖縣",
"TaitungCounty": "臺東縣",
+ "Taipei": "臺北市",
+ "NewTaipei": "新北市",
"Taoyuan": "桃園市",
"MiaoliCounty": "苗栗縣",
+ "YilanCounty": "宜蘭縣",
+ "Tainan": "臺南市",
+ "ChiayiCounty": "嘉義縣",
"Keelung": "基隆市",
- "Taipei": "臺北市",
- "HsinchuCounty": "新竹縣",
- "NantouCounty": "南投縣",
- "Hsinchu": "新竹市",
- "ChanghuaCounty": "彰化縣",
- "PingtungCounty": "屏東縣",
- "NewTaipei": "新北市",
"HualienCounty": "花蓮縣",
- "Taichung": "臺中市",
"LienchiangCounty": "連江縣",
- "Kaohsiung": "高雄市",
- "PenghuCounty": "澎湖縣",
- "ChiayiCounty": "嘉義縣",
- "YilanCounty": "宜蘭縣"
+ "KinmenCounty": "金門縣"
}
},
{
@@ -405,35 +405,35 @@
"type": "string"
},
"AuthorityName": {
- "description": "業管機關名稱",
+ "description": "業管機關名稱(可能包含多個業管機關)",
"type": "string"
},
"CityCode": {
- "description": "路線權管所屬縣市之代碼",
+ "description": "路線所在縣市代碼",
"type": "string"
},
"City": {
- "description": "路線權管所屬縣市",
+ "description": "路線所在縣市名稱",
"type": "string"
},
"Town": {
- "description": "鄉鎮名稱",
+ "description": "路線所在鄉鎮名稱(可能包含多個鄉鎮)",
"type": "string"
},
"RoadSectionStart": {
- "description": "路線名稱",
+ "description": "路線起點描述",
"type": "string"
},
"RoadSectionEnd": {
- "description": "路線名稱",
+ "description": "路線迄點描述",
"type": "string"
},
"Geometry": {
- "description": "well-known text,為路線軌跡資料",
+ "description": "路線軌跡資料",
"type": "string"
},
"Direction": {
- "description": "車行方向",
+ "description": "自行車道車行方向",
"type": "string"
},
"CyclingType": {
diff --git a/oas.bus.v2.json b/oas.bus.v2.json
index 762d9c59..8a41641d 100644
--- a/oas.bus.v2.json
+++ b/oas.bus.v2.json
@@ -47,19 +47,19 @@
"PenghuCounty"
],
"x-enum": {
- "ChiayiCounty": "嘉義縣",
"YilanCounty": "宜蘭縣",
- "HualienCounty": "花蓮縣",
"NantouCounty": "南投縣",
- "MiaoliCounty": "苗栗縣",
- "TaitungCounty": "臺東縣",
+ "PenghuCounty": "澎湖縣",
+ "ChiayiCounty": "嘉義縣",
+ "HsinchuCounty": "新竹縣",
"ChanghuaCounty": "彰化縣",
- "YunlinCounty": "雲林縣",
- "PingtungCounty": "屏東縣",
+ "MiaoliCounty": "苗栗縣",
+ "HualienCounty": "花蓮縣",
"Chiayi": "嘉義市",
- "PenghuCounty": "澎湖縣",
+ "YunlinCounty": "雲林縣",
"Hsinchu": "新竹市",
- "HsinchuCounty": "新竹縣"
+ "TaitungCounty": "臺東縣",
+ "PingtungCounty": "屏東縣"
}
},
{
@@ -135,7 +135,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -177,19 +177,19 @@
"PenghuCounty"
],
"x-enum": {
- "ChiayiCounty": "嘉義縣",
"YilanCounty": "宜蘭縣",
- "HualienCounty": "花蓮縣",
"NantouCounty": "南投縣",
- "MiaoliCounty": "苗栗縣",
- "TaitungCounty": "臺東縣",
+ "PenghuCounty": "澎湖縣",
+ "ChiayiCounty": "嘉義縣",
+ "HsinchuCounty": "新竹縣",
"ChanghuaCounty": "彰化縣",
- "YunlinCounty": "雲林縣",
- "PingtungCounty": "屏東縣",
+ "MiaoliCounty": "苗栗縣",
+ "HualienCounty": "花蓮縣",
"Chiayi": "嘉義市",
- "PenghuCounty": "澎湖縣",
+ "YunlinCounty": "雲林縣",
"Hsinchu": "新竹市",
- "HsinchuCounty": "新竹縣"
+ "TaitungCounty": "臺東縣",
+ "PingtungCounty": "屏東縣"
}
},
{
@@ -272,7 +272,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -314,19 +314,19 @@
"PenghuCounty"
],
"x-enum": {
- "Hsinchu": "新竹市",
- "HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "MiaoliCounty": "苗栗縣",
+ "ChanghuaCounty": "彰化縣",
+ "PingtungCounty": "屏東縣",
"Chiayi": "嘉義市",
"YilanCounty": "宜蘭縣",
- "PenghuCounty": "澎湖縣",
- "HsinchuCounty": "新竹縣",
- "PingtungCounty": "屏東縣",
"TaitungCounty": "臺東縣",
- "ChanghuaCounty": "彰化縣",
+ "ChiayiCounty": "嘉義縣",
+ "PenghuCounty": "澎湖縣",
+ "HualienCounty": "花蓮縣",
"YunlinCounty": "雲林縣",
- "ChiayiCounty": "嘉義縣"
+ "Hsinchu": "新竹市",
+ "MiaoliCounty": "苗栗縣",
+ "NantouCounty": "南投縣",
+ "HsinchuCounty": "新竹縣"
}
},
{
@@ -396,7 +396,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -438,19 +438,19 @@
"PenghuCounty"
],
"x-enum": {
- "Hsinchu": "新竹市",
- "HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "MiaoliCounty": "苗栗縣",
+ "ChanghuaCounty": "彰化縣",
+ "PingtungCounty": "屏東縣",
"Chiayi": "嘉義市",
"YilanCounty": "宜蘭縣",
- "PenghuCounty": "澎湖縣",
- "HsinchuCounty": "新竹縣",
- "PingtungCounty": "屏東縣",
"TaitungCounty": "臺東縣",
- "ChanghuaCounty": "彰化縣",
+ "ChiayiCounty": "嘉義縣",
+ "PenghuCounty": "澎湖縣",
+ "HualienCounty": "花蓮縣",
"YunlinCounty": "雲林縣",
- "ChiayiCounty": "嘉義縣"
+ "Hsinchu": "新竹市",
+ "MiaoliCounty": "苗栗縣",
+ "NantouCounty": "南投縣",
+ "HsinchuCounty": "新竹縣"
}
},
{
@@ -527,7 +527,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -569,19 +569,19 @@
"PenghuCounty"
],
"x-enum": {
- "MiaoliCounty": "苗栗縣",
- "Chiayi": "嘉義市",
- "YunlinCounty": "雲林縣",
"HsinchuCounty": "新竹縣",
- "YilanCounty": "宜蘭縣",
- "PingtungCounty": "屏東縣",
- "PenghuCounty": "澎湖縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
+ "TaitungCounty": "臺東縣",
"ChiayiCounty": "嘉義縣",
+ "MiaoliCounty": "苗栗縣",
"NantouCounty": "南投縣",
+ "YunlinCounty": "雲林縣",
+ "Chiayi": "嘉義市",
+ "PingtungCounty": "屏東縣",
+ "HualienCounty": "花蓮縣",
+ "PenghuCounty": "澎湖縣",
"Hsinchu": "新竹市",
- "TaitungCounty": "臺東縣"
+ "YilanCounty": "宜蘭縣"
}
},
{
@@ -651,7 +651,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -693,19 +693,19 @@
"PenghuCounty"
],
"x-enum": {
- "MiaoliCounty": "苗栗縣",
- "Chiayi": "嘉義市",
- "YunlinCounty": "雲林縣",
"HsinchuCounty": "新竹縣",
- "YilanCounty": "宜蘭縣",
- "PingtungCounty": "屏東縣",
- "PenghuCounty": "澎湖縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
+ "TaitungCounty": "臺東縣",
"ChiayiCounty": "嘉義縣",
+ "MiaoliCounty": "苗栗縣",
"NantouCounty": "南投縣",
+ "YunlinCounty": "雲林縣",
+ "Chiayi": "嘉義市",
+ "PingtungCounty": "屏東縣",
+ "HualienCounty": "花蓮縣",
+ "PenghuCounty": "澎湖縣",
"Hsinchu": "新竹市",
- "TaitungCounty": "臺東縣"
+ "YilanCounty": "宜蘭縣"
}
},
{
@@ -782,7 +782,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -833,28 +833,28 @@
"LienchiangCounty"
],
"x-enum": {
+ "NantouCounty": "南投縣",
+ "PenghuCounty": "澎湖縣",
"YunlinCounty": "雲林縣",
- "TaitungCounty": "臺東縣",
+ "ChanghuaCounty": "彰化縣",
+ "Chiayi": "嘉義市",
"Kaohsiung": "高雄市",
- "MiaoliCounty": "苗栗縣",
- "Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
- "ChiayiCounty": "嘉義縣",
+ "Keelung": "基隆市",
+ "Taipei": "臺北市",
+ "Taoyuan": "桃園市",
+ "YilanCounty": "宜蘭縣",
"HualienCounty": "花蓮縣",
"KinmenCounty": "金門縣",
- "NantouCounty": "南投縣",
"Taichung": "臺中市",
+ "TaitungCounty": "臺東縣",
+ "HsinchuCounty": "新竹縣",
"PingtungCounty": "屏東縣",
- "Tainan": "臺南市",
+ "Hsinchu": "新竹市",
+ "ChiayiCounty": "嘉義縣",
+ "MiaoliCounty": "苗栗縣",
"NewTaipei": "新北市",
- "Taoyuan": "桃園市",
- "Chiayi": "嘉義市",
"LienchiangCounty": "連江縣",
- "Taipei": "臺北市",
- "HsinchuCounty": "新竹縣",
- "ChanghuaCounty": "彰化縣",
- "YilanCounty": "宜蘭縣",
- "Keelung": "基隆市"
+ "Tainan": "臺南市"
}
},
{
@@ -930,7 +930,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -981,28 +981,28 @@
"LienchiangCounty"
],
"x-enum": {
+ "NantouCounty": "南投縣",
+ "PenghuCounty": "澎湖縣",
"YunlinCounty": "雲林縣",
- "TaitungCounty": "臺東縣",
+ "ChanghuaCounty": "彰化縣",
+ "Chiayi": "嘉義市",
"Kaohsiung": "高雄市",
- "MiaoliCounty": "苗栗縣",
- "Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
- "ChiayiCounty": "嘉義縣",
+ "Keelung": "基隆市",
+ "Taipei": "臺北市",
+ "Taoyuan": "桃園市",
+ "YilanCounty": "宜蘭縣",
"HualienCounty": "花蓮縣",
"KinmenCounty": "金門縣",
- "NantouCounty": "南投縣",
"Taichung": "臺中市",
+ "TaitungCounty": "臺東縣",
+ "HsinchuCounty": "新竹縣",
"PingtungCounty": "屏東縣",
- "Tainan": "臺南市",
+ "Hsinchu": "新竹市",
+ "ChiayiCounty": "嘉義縣",
+ "MiaoliCounty": "苗栗縣",
"NewTaipei": "新北市",
- "Taoyuan": "桃園市",
- "Chiayi": "嘉義市",
"LienchiangCounty": "連江縣",
- "Taipei": "臺北市",
- "HsinchuCounty": "新竹縣",
- "ChanghuaCounty": "彰化縣",
- "YilanCounty": "宜蘭縣",
- "Keelung": "基隆市"
+ "Tainan": "臺南市"
}
},
{
@@ -1085,7 +1085,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1136,28 +1136,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taichung": "臺中市",
- "Chiayi": "嘉義市",
- "HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "ChanghuaCounty": "彰化縣",
- "Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
- "MiaoliCounty": "苗栗縣",
- "Taipei": "臺北市",
- "LienchiangCounty": "連江縣",
- "Taoyuan": "桃園市",
"HsinchuCounty": "新竹縣",
- "NewTaipei": "新北市",
- "Keelung": "基隆市",
- "PingtungCounty": "屏東縣",
"ChiayiCounty": "嘉義縣",
+ "TaitungCounty": "臺東縣",
+ "Taoyuan": "桃園市",
"Kaohsiung": "高雄市",
+ "Hsinchu": "新竹市",
+ "Tainan": "臺南市",
+ "Keelung": "基隆市",
+ "PingtungCounty": "屏東縣",
"YilanCounty": "宜蘭縣",
+ "Taipei": "臺北市",
+ "ChanghuaCounty": "彰化縣",
+ "NantouCounty": "南投縣",
+ "PenghuCounty": "澎湖縣",
+ "NewTaipei": "新北市",
+ "HualienCounty": "花蓮縣",
+ "LienchiangCounty": "連江縣",
+ "Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
+ "Taichung": "臺中市",
"KinmenCounty": "金門縣",
- "YunlinCounty": "雲林縣",
- "TaitungCounty": "臺東縣",
- "Tainan": "臺南市"
+ "YunlinCounty": "雲林縣"
}
},
{
@@ -1227,7 +1227,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1278,28 +1278,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taichung": "臺中市",
- "Chiayi": "嘉義市",
- "HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "ChanghuaCounty": "彰化縣",
- "Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
- "MiaoliCounty": "苗栗縣",
- "Taipei": "臺北市",
- "LienchiangCounty": "連江縣",
- "Taoyuan": "桃園市",
"HsinchuCounty": "新竹縣",
- "NewTaipei": "新北市",
- "Keelung": "基隆市",
- "PingtungCounty": "屏東縣",
"ChiayiCounty": "嘉義縣",
+ "TaitungCounty": "臺東縣",
+ "Taoyuan": "桃園市",
"Kaohsiung": "高雄市",
+ "Hsinchu": "新竹市",
+ "Tainan": "臺南市",
+ "Keelung": "基隆市",
+ "PingtungCounty": "屏東縣",
"YilanCounty": "宜蘭縣",
+ "Taipei": "臺北市",
+ "ChanghuaCounty": "彰化縣",
+ "NantouCounty": "南投縣",
+ "PenghuCounty": "澎湖縣",
+ "NewTaipei": "新北市",
+ "HualienCounty": "花蓮縣",
+ "LienchiangCounty": "連江縣",
+ "Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
+ "Taichung": "臺中市",
"KinmenCounty": "金門縣",
- "YunlinCounty": "雲林縣",
- "TaitungCounty": "臺東縣",
- "Tainan": "臺南市"
+ "YunlinCounty": "雲林縣"
}
},
{
@@ -1376,7 +1376,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1427,28 +1427,28 @@
"LienchiangCounty"
],
"x-enum": {
- "ChiayiCounty": "嘉義縣",
- "Taichung": "臺中市",
- "HsinchuCounty": "新竹縣",
"KinmenCounty": "金門縣",
+ "PingtungCounty": "屏東縣",
+ "Taichung": "臺中市",
+ "TaitungCounty": "臺東縣",
+ "HualienCounty": "花蓮縣",
+ "MiaoliCounty": "苗栗縣",
"Chiayi": "嘉義市",
- "NantouCounty": "南投縣",
+ "Keelung": "基隆市",
+ "PenghuCounty": "澎湖縣",
+ "Taipei": "臺北市",
+ "YunlinCounty": "雲林縣",
+ "ChiayiCounty": "嘉義縣",
"Kaohsiung": "高雄市",
+ "NantouCounty": "南投縣",
+ "Tainan": "臺南市",
+ "ChanghuaCounty": "彰化縣",
"Taoyuan": "桃園市",
+ "NewTaipei": "新北市",
+ "YilanCounty": "宜蘭縣",
"LienchiangCounty": "連江縣",
"Hsinchu": "新竹市",
- "MiaoliCounty": "苗栗縣",
- "Keelung": "基隆市",
- "ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
- "TaitungCounty": "臺東縣",
- "YilanCounty": "宜蘭縣",
- "Taipei": "臺北市",
- "NewTaipei": "新北市",
- "PingtungCounty": "屏東縣",
- "PenghuCounty": "澎湖縣",
- "YunlinCounty": "雲林縣",
- "Tainan": "臺南市"
+ "HsinchuCounty": "新竹縣"
}
},
{
@@ -1518,7 +1518,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1569,28 +1569,28 @@
"LienchiangCounty"
],
"x-enum": {
- "ChiayiCounty": "嘉義縣",
- "Taichung": "臺中市",
- "HsinchuCounty": "新竹縣",
"KinmenCounty": "金門縣",
+ "PingtungCounty": "屏東縣",
+ "Taichung": "臺中市",
+ "TaitungCounty": "臺東縣",
+ "HualienCounty": "花蓮縣",
+ "MiaoliCounty": "苗栗縣",
"Chiayi": "嘉義市",
- "NantouCounty": "南投縣",
- "Kaohsiung": "高雄市",
- "Taoyuan": "桃園市",
- "LienchiangCounty": "連江縣",
- "Hsinchu": "新竹市",
- "MiaoliCounty": "苗栗縣",
"Keelung": "基隆市",
- "ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
- "TaitungCounty": "臺東縣",
- "YilanCounty": "宜蘭縣",
- "Taipei": "臺北市",
- "NewTaipei": "新北市",
- "PingtungCounty": "屏東縣",
"PenghuCounty": "澎湖縣",
+ "Taipei": "臺北市",
"YunlinCounty": "雲林縣",
- "Tainan": "臺南市"
+ "ChiayiCounty": "嘉義縣",
+ "Kaohsiung": "高雄市",
+ "NantouCounty": "南投縣",
+ "Tainan": "臺南市",
+ "ChanghuaCounty": "彰化縣",
+ "Taoyuan": "桃園市",
+ "NewTaipei": "新北市",
+ "YilanCounty": "宜蘭縣",
+ "LienchiangCounty": "連江縣",
+ "Hsinchu": "新竹市",
+ "HsinchuCounty": "新竹縣"
}
},
{
@@ -1667,7 +1667,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1720,27 +1720,27 @@
"LienchiangCounty"
],
"x-enum": {
- "Chiayi": "嘉義市",
- "MiaoliCounty": "苗栗縣",
- "TaitungCounty": "臺東縣",
+ "Taichung": "臺中市",
"PenghuCounty": "澎湖縣",
- "Keelung": "基隆市",
- "YilanCounty": "宜蘭縣",
- "Kaohsiung": "高雄市",
- "ChiayiCounty": "嘉義縣",
"LienchiangCounty": "連江縣",
- "NewTaipei": "新北市",
- "YunlinCounty": "雲林縣",
+ "Taipei": "臺北市",
+ "Hsinchu": "新竹市",
"Tainan": "臺南市",
- "NantouCounty": "南投縣",
- "Taichung": "臺中市",
- "PingtungCounty": "屏東縣",
- "Taoyuan": "桃園市",
+ "NewTaipei": "新北市",
+ "MiaoliCounty": "苗栗縣",
+ "Kaohsiung": "高雄市",
+ "ChiayiCounty": "嘉義縣",
+ "Keelung": "基隆市",
+ "TaitungCounty": "臺東縣",
+ "YilanCounty": "宜蘭縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
"KinmenCounty": "金門縣",
- "Taipei": "臺北市",
- "Hsinchu": "新竹市",
+ "HualienCounty": "花蓮縣",
+ "PingtungCounty": "屏東縣",
+ "YunlinCounty": "雲林縣",
+ "Taoyuan": "桃園市",
+ "Chiayi": "嘉義市",
+ "NantouCounty": "南投縣",
"HsinchuCounty": "新竹縣"
}
},
@@ -1777,7 +1777,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1828,28 +1828,28 @@
"LienchiangCounty"
],
"x-enum": {
- "KinmenCounty": "金門縣",
- "HsinchuCounty": "新竹縣",
- "ChiayiCounty": "嘉義縣",
- "Kaohsiung": "高雄市",
"ChanghuaCounty": "彰化縣",
- "Hsinchu": "新竹市",
"LienchiangCounty": "連江縣",
- "Taichung": "臺中市",
+ "HualienCounty": "花蓮縣",
"Taoyuan": "桃園市",
"Chiayi": "嘉義市",
- "Tainan": "臺南市",
- "NewTaipei": "新北市",
+ "MiaoliCounty": "苗栗縣",
"PingtungCounty": "屏東縣",
- "TaitungCounty": "臺東縣",
- "YilanCounty": "宜蘭縣",
+ "KinmenCounty": "金門縣",
"PenghuCounty": "澎湖縣",
- "NantouCounty": "南投縣",
+ "Keelung": "基隆市",
"YunlinCounty": "雲林縣",
+ "ChiayiCounty": "嘉義縣",
+ "HsinchuCounty": "新竹縣",
+ "Hsinchu": "新竹市",
+ "TaitungCounty": "臺東縣",
+ "NantouCounty": "南投縣",
+ "YilanCounty": "宜蘭縣",
"Taipei": "臺北市",
- "Keelung": "基隆市",
- "HualienCounty": "花蓮縣",
- "MiaoliCounty": "苗栗縣"
+ "Tainan": "臺南市",
+ "NewTaipei": "新北市",
+ "Taichung": "臺中市",
+ "Kaohsiung": "高雄市"
}
},
{
@@ -1919,7 +1919,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1970,28 +1970,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taipei": "臺北市",
+ "Kaohsiung": "高雄市",
+ "HsinchuCounty": "新竹縣",
+ "LienchiangCounty": "連江縣",
+ "PenghuCounty": "澎湖縣",
+ "Taoyuan": "桃園市",
"ChiayiCounty": "嘉義縣",
- "YunlinCounty": "雲林縣",
- "NewTaipei": "新北市",
+ "MiaoliCounty": "苗栗縣",
+ "PingtungCounty": "屏東縣",
"YilanCounty": "宜蘭縣",
- "KinmenCounty": "金門縣",
"NantouCounty": "南投縣",
- "PenghuCounty": "澎湖縣",
+ "Taipei": "臺北市",
+ "Tainan": "臺南市",
+ "NewTaipei": "新北市",
+ "ChanghuaCounty": "彰化縣",
+ "HualienCounty": "花蓮縣",
"Chiayi": "嘉義市",
- "MiaoliCounty": "苗栗縣",
- "Taoyuan": "桃園市",
- "PingtungCounty": "屏東縣",
- "Taichung": "臺中市",
+ "YunlinCounty": "雲林縣",
+ "KinmenCounty": "金門縣",
"TaitungCounty": "臺東縣",
- "HualienCounty": "花蓮縣",
- "Keelung": "基隆市",
"Hsinchu": "新竹市",
- "Kaohsiung": "高雄市",
- "HsinchuCounty": "新竹縣",
- "LienchiangCounty": "連江縣",
- "ChanghuaCounty": "彰化縣",
- "Tainan": "臺南市"
+ "Taichung": "臺中市",
+ "Keelung": "基隆市"
}
},
{
@@ -2061,7 +2061,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2112,28 +2112,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taipei": "臺北市",
+ "Kaohsiung": "高雄市",
+ "HsinchuCounty": "新竹縣",
+ "LienchiangCounty": "連江縣",
+ "PenghuCounty": "澎湖縣",
+ "Taoyuan": "桃園市",
"ChiayiCounty": "嘉義縣",
- "YunlinCounty": "雲林縣",
- "NewTaipei": "新北市",
+ "MiaoliCounty": "苗栗縣",
+ "PingtungCounty": "屏東縣",
"YilanCounty": "宜蘭縣",
- "KinmenCounty": "金門縣",
"NantouCounty": "南投縣",
- "PenghuCounty": "澎湖縣",
+ "Taipei": "臺北市",
+ "Tainan": "臺南市",
+ "NewTaipei": "新北市",
+ "ChanghuaCounty": "彰化縣",
+ "HualienCounty": "花蓮縣",
"Chiayi": "嘉義市",
- "MiaoliCounty": "苗栗縣",
- "Taoyuan": "桃園市",
- "PingtungCounty": "屏東縣",
- "Taichung": "臺中市",
+ "YunlinCounty": "雲林縣",
+ "KinmenCounty": "金門縣",
"TaitungCounty": "臺東縣",
- "HualienCounty": "花蓮縣",
- "Keelung": "基隆市",
"Hsinchu": "新竹市",
- "Kaohsiung": "高雄市",
- "HsinchuCounty": "新竹縣",
- "LienchiangCounty": "連江縣",
- "ChanghuaCounty": "彰化縣",
- "Tainan": "臺南市"
+ "Taichung": "臺中市",
+ "Keelung": "基隆市"
}
},
{
@@ -2210,7 +2210,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2261,28 +2261,28 @@
"Taipei"
],
"x-enum": {
- "Chiayi": "嘉義市",
- "NewTaipei": "新北市",
- "PenghuCounty": "澎湖縣",
- "NantouCounty": "南投縣",
+ "Taichung": "臺中市",
+ "Taoyuan": "桃園市",
+ "TaitungCounty": "臺東縣",
"LienchiangCounty": "連江縣",
- "Tainan": "臺南市",
+ "MiaoliCounty": "苗栗縣",
"Kaohsiung": "高雄市",
- "KinmenCounty": "金門縣",
- "PingtungCounty": "屏東縣",
- "HualienCounty": "花蓮縣",
- "Keelung": "基隆市",
+ "Taipei": "臺北市",
+ "PenghuCounty": "澎湖縣",
"YilanCounty": "宜蘭縣",
- "HsinchuCounty": "新竹縣",
- "Taoyuan": "桃園市",
+ "NantouCounty": "南投縣",
"YunlinCounty": "雲林縣",
- "ChiayiCounty": "嘉義縣",
+ "PingtungCounty": "屏東縣",
+ "KinmenCounty": "金門縣",
"Hsinchu": "新竹市",
- "Taipei": "臺北市",
- "MiaoliCounty": "苗栗縣",
- "Taichung": "臺中市",
+ "Keelung": "基隆市",
"ChanghuaCounty": "彰化縣",
- "TaitungCounty": "臺東縣"
+ "HsinchuCounty": "新竹縣",
+ "NewTaipei": "新北市",
+ "HualienCounty": "花蓮縣",
+ "ChiayiCounty": "嘉義縣",
+ "Chiayi": "嘉義市",
+ "Tainan": "臺南市"
}
},
{
@@ -2358,7 +2358,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2405,24 +2405,24 @@
"KinmenCounty"
],
"x-enum": {
- "YilanCounty": "宜蘭縣",
- "PingtungCounty": "屏東縣",
- "TaitungCounty": "臺東縣",
- "Taipei": "臺北市",
- "MiaoliCounty": "苗栗縣",
"YunlinCounty": "雲林縣",
- "Tainan": "臺南市",
"HsinchuCounty": "新竹縣",
- "NantouCounty": "南投縣",
- "Hsinchu": "新竹市",
- "PenghuCounty": "澎湖縣",
- "Chiayi": "嘉義市",
- "KinmenCounty": "金門縣",
+ "HualienCounty": "花蓮縣",
"Kaohsiung": "高雄市",
- "ChiayiCounty": "嘉義縣",
+ "Hsinchu": "新竹市",
+ "MiaoliCounty": "苗栗縣",
+ "YilanCounty": "宜蘭縣",
"NewTaipei": "新北市",
+ "Chiayi": "嘉義市",
+ "TaitungCounty": "臺東縣",
+ "NantouCounty": "南投縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣"
+ "Taipei": "臺北市",
+ "ChiayiCounty": "嘉義縣",
+ "PenghuCounty": "澎湖縣",
+ "PingtungCounty": "屏東縣",
+ "KinmenCounty": "金門縣",
+ "Tainan": "臺南市"
}
},
{
@@ -2498,7 +2498,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2540,19 +2540,19 @@
"PenghuCounty"
],
"x-enum": {
- "HsinchuCounty": "新竹縣",
- "YilanCounty": "宜蘭縣",
- "ChiayiCounty": "嘉義縣",
- "NantouCounty": "南投縣",
- "TaitungCounty": "臺東縣",
"YunlinCounty": "雲林縣",
- "PenghuCounty": "澎湖縣",
+ "HualienCounty": "花蓮縣",
"MiaoliCounty": "苗栗縣",
- "ChanghuaCounty": "彰化縣",
"Hsinchu": "新竹市",
- "HualienCounty": "花蓮縣",
+ "ChiayiCounty": "嘉義縣",
+ "PenghuCounty": "澎湖縣",
+ "TaitungCounty": "臺東縣",
+ "HsinchuCounty": "新竹縣",
+ "Chiayi": "嘉義市",
+ "YilanCounty": "宜蘭縣",
"PingtungCounty": "屏東縣",
- "Chiayi": "嘉義市"
+ "NantouCounty": "南投縣",
+ "ChanghuaCounty": "彰化縣"
}
},
{
@@ -2628,7 +2628,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2732,7 +2732,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2843,7 +2843,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2894,28 +2894,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taichung": "臺中市",
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
- "ChiayiCounty": "嘉義縣",
"HsinchuCounty": "新竹縣",
- "NewTaipei": "新北市",
- "Chiayi": "嘉義市",
- "Hsinchu": "新竹市",
- "PingtungCounty": "屏東縣",
+ "HualienCounty": "花蓮縣",
"Taoyuan": "桃園市",
- "TaitungCounty": "臺東縣",
"YilanCounty": "宜蘭縣",
+ "KinmenCounty": "金門縣",
+ "ChiayiCounty": "嘉義縣",
+ "LienchiangCounty": "連江縣",
+ "PingtungCounty": "屏東縣",
"YunlinCounty": "雲林縣",
- "HualienCounty": "花蓮縣",
+ "NewTaipei": "新北市",
"Keelung": "基隆市",
- "LienchiangCounty": "連江縣",
- "ChanghuaCounty": "彰化縣",
+ "Hsinchu": "新竹市",
+ "Chiayi": "嘉義市",
"Kaohsiung": "高雄市",
- "Taipei": "臺北市",
"NantouCounty": "南投縣",
- "PenghuCounty": "澎湖縣",
- "Tainan": "臺南市"
+ "Tainan": "臺南市",
+ "ChanghuaCounty": "彰化縣",
+ "Taipei": "臺北市",
+ "TaitungCounty": "臺東縣",
+ "MiaoliCounty": "苗栗縣",
+ "Taichung": "臺中市",
+ "PenghuCounty": "澎湖縣"
}
},
{
@@ -2985,7 +2985,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3036,28 +3036,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taichung": "臺中市",
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
- "ChiayiCounty": "嘉義縣",
"HsinchuCounty": "新竹縣",
- "NewTaipei": "新北市",
- "Chiayi": "嘉義市",
- "Hsinchu": "新竹市",
- "PingtungCounty": "屏東縣",
+ "HualienCounty": "花蓮縣",
"Taoyuan": "桃園市",
- "TaitungCounty": "臺東縣",
"YilanCounty": "宜蘭縣",
+ "KinmenCounty": "金門縣",
+ "ChiayiCounty": "嘉義縣",
+ "LienchiangCounty": "連江縣",
+ "PingtungCounty": "屏東縣",
"YunlinCounty": "雲林縣",
- "HualienCounty": "花蓮縣",
+ "NewTaipei": "新北市",
"Keelung": "基隆市",
- "LienchiangCounty": "連江縣",
- "ChanghuaCounty": "彰化縣",
+ "Hsinchu": "新竹市",
+ "Chiayi": "嘉義市",
"Kaohsiung": "高雄市",
- "Taipei": "臺北市",
"NantouCounty": "南投縣",
- "PenghuCounty": "澎湖縣",
- "Tainan": "臺南市"
+ "Tainan": "臺南市",
+ "ChanghuaCounty": "彰化縣",
+ "Taipei": "臺北市",
+ "TaitungCounty": "臺東縣",
+ "MiaoliCounty": "苗栗縣",
+ "Taichung": "臺中市",
+ "PenghuCounty": "澎湖縣"
}
},
{
@@ -3134,7 +3134,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3181,23 +3181,23 @@
"PenghuCounty"
],
"x-enum": {
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
+ "NantouCounty": "南投縣",
+ "PingtungCounty": "屏東縣",
"HsinchuCounty": "新竹縣",
- "YunlinCounty": "雲林縣",
+ "TaitungCounty": "臺東縣",
+ "ChiayiCounty": "嘉義縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
+ "YunlinCounty": "雲林縣",
+ "Tainan": "臺南市",
"Taipei": "臺北市",
- "Hsinchu": "新竹市",
- "ChiayiCounty": "嘉義縣",
- "TaitungCounty": "臺東縣",
- "NantouCounty": "南投縣",
- "YilanCounty": "宜蘭縣",
"NewTaipei": "新北市",
+ "KinmenCounty": "金門縣",
"Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
+ "HualienCounty": "花蓮縣",
+ "Hsinchu": "新竹市",
+ "YilanCounty": "宜蘭縣",
"Keelung": "基隆市",
- "Tainan": "臺南市",
- "PingtungCounty": "屏東縣",
"PenghuCounty": "澎湖縣"
}
},
@@ -3268,7 +3268,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3315,23 +3315,23 @@
"PenghuCounty"
],
"x-enum": {
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
+ "NantouCounty": "南投縣",
+ "PingtungCounty": "屏東縣",
"HsinchuCounty": "新竹縣",
- "YunlinCounty": "雲林縣",
+ "TaitungCounty": "臺東縣",
+ "ChiayiCounty": "嘉義縣",
"ChanghuaCounty": "彰化縣",
- "HualienCounty": "花蓮縣",
+ "YunlinCounty": "雲林縣",
+ "Tainan": "臺南市",
"Taipei": "臺北市",
- "Hsinchu": "新竹市",
- "ChiayiCounty": "嘉義縣",
- "TaitungCounty": "臺東縣",
- "NantouCounty": "南投縣",
- "YilanCounty": "宜蘭縣",
"NewTaipei": "新北市",
+ "KinmenCounty": "金門縣",
"Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
+ "HualienCounty": "花蓮縣",
+ "Hsinchu": "新竹市",
+ "YilanCounty": "宜蘭縣",
"Keelung": "基隆市",
- "Tainan": "臺南市",
- "PingtungCounty": "屏東縣",
"PenghuCounty": "澎湖縣"
}
},
@@ -3409,7 +3409,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3459,28 +3459,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Hsinchu": "新竹市",
- "MiaoliCounty": "苗栗縣",
- "HualienCounty": "花蓮縣",
+ "Kaohsiung": "高雄市",
"Taipei": "臺北市",
+ "Hsinchu": "新竹市",
+ "KinmenCounty": "金門縣",
+ "Tainan": "臺南市",
+ "LienchiangCounty": "連江縣",
+ "Taichung": "臺中市",
+ "Chiayi": "嘉義市",
+ "NewTaipei": "新北市",
"ChiayiCounty": "嘉義縣",
- "Taoyuan": "桃園市",
+ "ChanghuaCounty": "彰化縣",
+ "NantouCounty": "南投縣",
+ "PenghuCounty": "澎湖縣",
"HsinchuCounty": "新竹縣",
- "Tainan": "臺南市",
+ "HualienCounty": "花蓮縣",
+ "MiaoliCounty": "苗栗縣",
+ "YunlinCounty": "雲林縣",
"TaitungCounty": "臺東縣",
- "NantouCounty": "南投縣",
"PingtungCounty": "屏東縣",
- "Keelung": "基隆市",
- "ChanghuaCounty": "彰化縣",
- "NewTaipei": "新北市",
- "KinmenCounty": "金門縣",
- "Kaohsiung": "高雄市",
- "YunlinCounty": "雲林縣",
- "LienchiangCounty": "連江縣",
"YilanCounty": "宜蘭縣",
- "Chiayi": "嘉義市",
- "PenghuCounty": "澎湖縣",
- "Taichung": "臺中市"
+ "Keelung": "基隆市",
+ "Taoyuan": "桃園市"
}
},
{
@@ -3550,7 +3550,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3587,14 +3587,14 @@
"KinmenCounty"
],
"x-enum": {
- "Taoyuan": "桃園市",
- "NewTaipei": "新北市",
"Taichung": "臺中市",
- "Tainan": "臺南市",
"KinmenCounty": "金門縣",
- "Keelung": "基隆市",
+ "Tainan": "臺南市",
+ "NewTaipei": "新北市",
+ "Taoyuan": "桃園市",
+ "Taipei": "臺北市",
"Kaohsiung": "高雄市",
- "Taipei": "臺北市"
+ "Keelung": "基隆市"
}
},
{
@@ -3664,7 +3664,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3701,14 +3701,14 @@
"KinmenCounty"
],
"x-enum": {
- "Taoyuan": "桃園市",
- "NewTaipei": "新北市",
"Taichung": "臺中市",
- "Tainan": "臺南市",
"KinmenCounty": "金門縣",
- "Keelung": "基隆市",
+ "Tainan": "臺南市",
+ "NewTaipei": "新北市",
+ "Taoyuan": "桃園市",
+ "Taipei": "臺北市",
"Kaohsiung": "高雄市",
- "Taipei": "臺北市"
+ "Keelung": "基隆市"
}
},
{
@@ -3785,7 +3785,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3823,31 +3823,32 @@
"PingtungCounty",
"YilanCounty",
"HualienCounty",
- "TaitungCounty"
+ "TaitungCounty",
+ "KinmenCounty"
],
"x-enum": {
- "MiaoliCounty": "苗栗縣",
- "KinmenCounty": "金門縣",
- "HsinchuCounty": "新竹縣",
- "Taoyuan": "桃園市",
"Kaohsiung": "高雄市",
- "NewTaipei": "新北市",
+ "YunlinCounty": "雲林縣",
+ "TaitungCounty": "臺東縣",
"PenghuCounty": "澎湖縣",
- "PingtungCounty": "屏東縣",
- "ChanghuaCounty": "彰化縣",
- "ChiayiCounty": "嘉義縣",
- "Taichung": "臺中市",
"Taipei": "臺北市",
- "YunlinCounty": "雲林縣",
+ "Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
"YilanCounty": "宜蘭縣",
+ "Keelung": "基隆市",
+ "NewTaipei": "新北市",
+ "NantouCounty": "南投縣",
+ "Taichung": "臺中市",
+ "KinmenCounty": "金門縣",
"LienchiangCounty": "連江縣",
"Tainan": "臺南市",
- "Keelung": "基隆市",
- "TaitungCounty": "臺東縣",
- "Chiayi": "嘉義市",
"HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "Hsinchu": "新竹市"
+ "HsinchuCounty": "新竹縣",
+ "Taoyuan": "桃園市",
+ "ChiayiCounty": "嘉義縣",
+ "PingtungCounty": "屏東縣",
+ "Hsinchu": "新竹市",
+ "ChanghuaCounty": "彰化縣"
}
},
{
@@ -3917,7 +3918,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -3955,31 +3956,32 @@
"PingtungCounty",
"YilanCounty",
"HualienCounty",
- "TaitungCounty"
+ "TaitungCounty",
+ "KinmenCounty"
],
"x-enum": {
- "MiaoliCounty": "苗栗縣",
- "KinmenCounty": "金門縣",
- "HsinchuCounty": "新竹縣",
- "Taoyuan": "桃園市",
"Kaohsiung": "高雄市",
- "NewTaipei": "新北市",
+ "YunlinCounty": "雲林縣",
+ "TaitungCounty": "臺東縣",
"PenghuCounty": "澎湖縣",
- "PingtungCounty": "屏東縣",
- "ChanghuaCounty": "彰化縣",
- "ChiayiCounty": "嘉義縣",
- "Taichung": "臺中市",
"Taipei": "臺北市",
- "YunlinCounty": "雲林縣",
+ "Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
"YilanCounty": "宜蘭縣",
+ "Keelung": "基隆市",
+ "NewTaipei": "新北市",
+ "NantouCounty": "南投縣",
+ "Taichung": "臺中市",
+ "KinmenCounty": "金門縣",
"LienchiangCounty": "連江縣",
"Tainan": "臺南市",
- "Keelung": "基隆市",
- "TaitungCounty": "臺東縣",
- "Chiayi": "嘉義市",
"HualienCounty": "花蓮縣",
- "NantouCounty": "南投縣",
- "Hsinchu": "新竹市"
+ "HsinchuCounty": "新竹縣",
+ "Taoyuan": "桃園市",
+ "ChiayiCounty": "嘉義縣",
+ "PingtungCounty": "屏東縣",
+ "Hsinchu": "新竹市",
+ "ChanghuaCounty": "彰化縣"
}
},
{
@@ -4056,7 +4058,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4089,8 +4091,8 @@
],
"x-enum": {
"Tainan": "臺南市",
- "KinmenCounty": "金門縣",
- "Keelung": "基隆市"
+ "Keelung": "基隆市",
+ "KinmenCounty": "金門縣"
}
},
{
@@ -4160,7 +4162,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4202,19 +4204,19 @@
"PenghuCounty"
],
"x-enum": {
+ "Chiayi": "嘉義市",
+ "MiaoliCounty": "苗栗縣",
"PenghuCounty": "澎湖縣",
+ "YilanCounty": "宜蘭縣",
"TaitungCounty": "臺東縣",
- "NantouCounty": "南投縣",
- "PingtungCounty": "屏東縣",
- "MiaoliCounty": "苗栗縣",
"HualienCounty": "花蓮縣",
- "YunlinCounty": "雲林縣",
- "HsinchuCounty": "新竹縣",
"Hsinchu": "新竹市",
- "YilanCounty": "宜蘭縣",
- "Chiayi": "嘉義市",
+ "YunlinCounty": "雲林縣",
+ "NantouCounty": "南投縣",
"ChanghuaCounty": "彰化縣",
- "ChiayiCounty": "嘉義縣"
+ "HsinchuCounty": "新竹縣",
+ "ChiayiCounty": "嘉義縣",
+ "PingtungCounty": "屏東縣"
}
},
{
@@ -4290,7 +4292,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4383,7 +4385,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4483,7 +4485,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4570,7 +4572,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4664,7 +4666,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4751,7 +4753,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4845,7 +4847,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4938,7 +4940,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -4951,7 +4953,7 @@
],
"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",
+ "operationId": "InterCityBusApi_RealTimeByFrequency_2",
"consumes": [],
"produces": [
"application/json",
@@ -5038,7 +5040,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5125,7 +5127,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5219,7 +5221,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5306,7 +5308,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5400,7 +5402,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5455,7 +5457,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5542,7 +5544,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5629,7 +5631,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5723,7 +5725,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5816,7 +5818,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -5909,7 +5911,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6002,7 +6004,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6089,7 +6091,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6183,7 +6185,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6270,7 +6272,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6364,7 +6366,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6451,7 +6453,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6538,7 +6540,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6625,7 +6627,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6719,7 +6721,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6812,7 +6814,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -6820,8 +6822,8 @@
}
},
"definitions": {
- "Service.DTO.Version3.Base.Health": {
- "title": "Health",
+ "Service.DTO.Version3.Base.DisplayHealth": {
+ "title": "DisplayHealth",
"description": "API服務健康狀態",
"required": [
"ServiceID",
@@ -7565,7 +7567,7 @@
"type": "string"
},
"AuthorityCode": {
- "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)",
+ "description": "營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)",
"type": "string"
},
"SubAuthorityCode": {
@@ -7846,6 +7848,13 @@
"description": "該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']",
"type": "integer"
},
+ "SectionFares": {
+ "description": "段次計費",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare"
+ }
+ },
"StageFares": {
"description": "計費站區間計費",
"type": "array",
@@ -7860,6 +7869,31 @@
}
}
},
+ "Service.DTO.Version2.Bus.SectionFare": {
+ "title": "SectionFare",
+ "description": "段次計費",
+ "required": [
+ "BufferZones",
+ "Fares"
+ ],
+ "type": "object",
+ "properties": {
+ "BufferZones": {
+ "description": "緩衝區資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.BufferZone"
+ }
+ },
+ "Fares": {
+ "description": "每段收費資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Fare"
+ }
+ }
+ }
+ },
"Service.DTO.Version2.Bus.BusStageFare": {
"title": "BusStageFare",
"description": "此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)",
@@ -7896,6 +7930,75 @@
}
}
},
+ "Service.DTO.Version2.Bus.SectionFare.BufferZone": {
+ "title": "BufferZone",
+ "required": [
+ "SectionSequence",
+ "Direction",
+ "FareBufferZoneOrigin",
+ "FareBufferZoneDestination"
+ ],
+ "type": "object",
+ "properties": {
+ "ZoneID": {
+ "description": "緩衝區代號",
+ "type": "string"
+ },
+ "SectionSequence": {
+ "format": "int32",
+ "description": "緩衝區順序",
+ "type": "integer"
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
+ "type": "integer"
+ },
+ "FareBufferZoneOrigin": {
+ "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Stop",
+ "title": "Stop",
+ "description": "緩衝區起點"
+ },
+ "FareBufferZoneDestination": {
+ "$ref": "#/definitions/Service.DTO.Version2.Bus.SectionFare.Stop",
+ "title": "Stop",
+ "description": "緩衝區訖點"
+ },
+ "BufferZoneDescription": {
+ "description": "收費緩衝區描述",
+ "type": "string"
+ }
+ }
+ },
+ "Service.DTO.Version2.Bus.SectionFare.Fare": {
+ "title": "Fare",
+ "required": [
+ "TicketType",
+ "FareClass",
+ "Price"
+ ],
+ "type": "object",
+ "properties": {
+ "TicketType": {
+ "format": "int32",
+ "title": "integer",
+ "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
+ "type": "integer"
+ },
+ "FareClass": {
+ "format": "int32",
+ "title": "integer",
+ "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
+ "type": "integer"
+ },
+ "Price": {
+ "format": "int32",
+ "description": "計費價格",
+ "type": "integer"
+ }
+ }
+ },
"Service.DTO.Version2.Bus.BusStage": {
"title": "BusStage",
"description": "計費站",
@@ -7954,6 +8057,23 @@
}
}
},
+ "Service.DTO.Version2.Bus.SectionFare.Stop": {
+ "title": "Stop",
+ "required": [
+ "StopID"
+ ],
+ "type": "object",
+ "properties": {
+ "StopID": {
+ "description": "緩衝區站牌代碼",
+ "type": "string"
+ },
+ "StopName": {
+ "description": "站牌名稱",
+ "type": "string"
+ }
+ }
+ },
"Service.DTO.Version2.Bus.BusDiscountPeriods": {
"title": "BusDiscountPeriods",
"description": "優惠時段",
diff --git a/oas.bus.v3.json b/oas.bus.v3.json
index 09b4d817..6abe693c 100644
--- a/oas.bus.v3.json
+++ b/oas.bus.v3.json
@@ -111,7 +111,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -217,7 +217,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -323,7 +323,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -430,7 +430,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -537,7 +537,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -643,7 +643,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -749,7 +749,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -856,7 +856,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -962,7 +962,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1068,7 +1068,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1174,7 +1174,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1280,7 +1280,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1387,7 +1387,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1501,7 +1501,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1608,7 +1608,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1722,7 +1722,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1829,7 +1829,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -1943,7 +1943,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2050,7 +2050,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2157,7 +2157,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2263,7 +2263,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2369,7 +2369,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2475,7 +2475,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2581,7 +2581,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2687,7 +2687,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2793,7 +2793,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2899,7 +2899,7 @@
"299": {
"description": "加入參數'?health=true'即可查詢此API服務的健康狀態",
"schema": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.Health"
+ "$ref": "#/definitions/Service.DTO.Version3.Base.DisplayHealth"
}
}
}
@@ -2907,8 +2907,8 @@
}
},
"definitions": {
- "Service.DTO.Version3.Base.Health": {
- "title": "Health",
+ "Service.DTO.Version3.Base.DisplayHealth": {
+ "title": "DisplayHealth",
"description": "API服務健康狀態",
"required": [
"ServiceID",
@@ -2990,6 +2990,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A1Data]": {
"title": "BusA1DataList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "A1Datas"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3009,7 +3017,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3201,6 +3209,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.A2Data]": {
"title": "BusA2DataList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "A2Datas"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3220,7 +3236,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3381,6 +3397,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Alert]": {
"title": "BusAlertList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Alerts"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3400,7 +3424,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3577,6 +3601,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DailyTimeTable]": {
"title": "BusDailyTimeTableList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "DailyTimeTables"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3596,7 +3628,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3752,6 +3784,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Depot]": {
"title": "BusDepotList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Depots"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3771,7 +3811,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3839,6 +3879,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.DisplayStopOfRoute]": {
"title": "BusDisplayStopOfRouteList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "DisplayStopOfRoutes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3858,7 +3906,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3962,6 +4010,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.FirstLastTripInfo]": {
"title": "BusFirstLastTripInfoList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "FirstLastTripInfos"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -3981,7 +4037,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4142,6 +4198,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.N1Data]": {
"title": "BusN1DataList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "N1Datas"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4161,7 +4225,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4303,6 +4367,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Network]": {
"title": "BusNetworkList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Networks"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4322,7 +4394,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4424,6 +4496,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.News]": {
"title": "BusNewsList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Newses"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4443,7 +4523,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4537,6 +4617,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Operator]": {
"title": "BusOperatorList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Operators"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4556,7 +4644,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4647,6 +4735,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Route]": {
"title": "BusRouteList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Routes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4666,7 +4762,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4937,6 +5033,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteFare]": {
"title": "BusRouteFareList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "RouteFares"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -4956,7 +5060,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5067,7 +5171,8 @@
"Service.DTO.Version3.Bus.SectionFare": {
"title": "SectionFare",
"required": [
- "BufferZones"
+ "BufferZones",
+ "Fares"
],
"type": "object",
"properties": {
@@ -5077,6 +5182,13 @@
"items": {
"$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.BufferZone"
}
+ },
+ "Fares": {
+ "description": "每段收費資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.Fare"
+ }
}
}
},
@@ -5155,9 +5267,8 @@
"required": [
"SectionSequence",
"Direction",
- "FareBufferZoneOrigins",
- "FareBufferZoneDestinations",
- "Fares"
+ "FareBufferZoneOrigin",
+ "FareBufferZoneDestination"
],
"type": "object",
"properties": {
@@ -5175,12 +5286,12 @@
"description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']",
"type": "integer"
},
- "FareBufferZoneOrigins": {
+ "FareBufferZoneOrigin": {
"$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.FareBufferZone",
"title": "FareBufferZone",
"description": "緩衝區起點"
},
- "FareBufferZoneDestinations": {
+ "FareBufferZoneDestination": {
"$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.FareBufferZone",
"title": "FareBufferZone",
"description": "緩衝區訖點"
@@ -5188,13 +5299,33 @@
"BufferZoneDescription": {
"description": "收費緩衝區描述",
"type": "string"
+ }
+ }
+ },
+ "Service.DTO.Version3.Bus.SectionFare.Fare": {
+ "title": "Fare",
+ "required": [
+ "TicketType",
+ "FareClass",
+ "Price"
+ ],
+ "type": "object",
+ "properties": {
+ "TicketType": {
+ "format": "int32",
+ "title": "integer",
+ "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
+ "type": "integer"
},
- "Fares": {
- "description": "每段收費資訊",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version3.Bus.SectionFare.Fare"
- }
+ "FareClass": {
+ "format": "int32",
+ "title": "integer",
+ "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
+ "type": "integer"
+ },
+ "Price": {
+ "description": "計費價格",
+ "type": "string"
}
}
},
@@ -5332,33 +5463,6 @@
}
}
},
- "Service.DTO.Version3.Bus.SectionFare.Fare": {
- "title": "Fare",
- "required": [
- "TicketType",
- "FareClass",
- "Price"
- ],
- "type": "object",
- "properties": {
- "TicketType": {
- "format": "int32",
- "title": "integer",
- "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
- "type": "integer"
- },
- "FareClass": {
- "format": "int32",
- "title": "integer",
- "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
- "type": "integer"
- },
- "Price": {
- "description": "計費價格",
- "type": "string"
- }
- }
- },
"Service.DTO.Version3.Bus.StageFare.DiscountPeriod": {
"title": "DiscountPeriod",
"description": "優惠時段",
@@ -5473,6 +5577,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.RouteNetwork]": {
"title": "BusRouteNetworkList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "RouteNetworks"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -5492,7 +5604,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5582,6 +5694,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.S2STravelTime]": {
"title": "BusS2STravelTimeList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "S2STravelTimes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -5601,7 +5721,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5705,6 +5825,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Schedule]": {
"title": "BusScheduleList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Schedules"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -5724,7 +5852,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6012,6 +6140,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Shape]": {
"title": "BusShapeList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Shapes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6031,7 +6167,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6111,6 +6247,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Station]": {
"title": "BusStationList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Stations"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6130,7 +6274,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6204,6 +6348,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Stop]": {
"title": "BusStopList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Stops"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6223,7 +6375,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6317,6 +6469,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.StopOfRoute]": {
"title": "BusStopOfRouteList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "StopOfRoutes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6336,7 +6496,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6499,6 +6659,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.SubRoute]": {
"title": "BusSubRouteList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "SubRoutes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6518,7 +6686,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6678,6 +6846,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.Vehicle]": {
"title": "BusVehicleList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "Vehicles"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6697,7 +6873,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6802,6 +6978,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleDepot]": {
"title": "BusVehicleDepotList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "VehicleDepots"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6821,7 +7005,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6886,6 +7070,14 @@
},
"MOTC.API.Bus.DAL.Bus[Service.DTO.Version3.Bus.VehicleRoute]": {
"title": "BusVehicleRouteList",
+ "required": [
+ "UpdateTime",
+ "UpdateInterval",
+ "SrcUpdateTime",
+ "SrcUpdateInterval",
+ "AuthorityCode",
+ "VehicleRoutes"
+ ],
"type": "object",
"properties": {
"UpdateTime": {
@@ -6905,7 +7097,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "[來源端平臺]資料更新週期",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
diff --git a/oas.rail.v2.json b/oas.rail.v2.json
index 0b0568e4..314aafc9 100644
--- a/oas.rail.v2.json
+++ b/oas.rail.v2.json
@@ -38,8 +38,8 @@
],
"x-enum": {
"TRTC": "臺北捷運",
- "TYMC": "桃園捷運",
- "KRTC": "高雄捷運"
+ "KRTC": "高雄捷運",
+ "TYMC": "桃園捷運"
}
},
{
@@ -122,13 +122,15 @@
"TRTC",
"KRTC",
"TYMC",
- "KLRT"
+ "KLRT",
+ "NTDLRT"
],
"x-enum": {
- "KRTC": "高雄捷運",
- "KLRT": "高雄輕軌",
"TYMC": "桃園捷運",
- "TRTC": "臺北捷運"
+ "KLRT": "高雄輕軌",
+ "TRTC": "臺北捷運",
+ "NTDLRT": "淡海輕軌",
+ "KRTC": "高雄捷運"
}
},
{
@@ -211,13 +213,15 @@
"TRTC",
"KRTC",
"TYMC",
- "KLRT"
+ "KLRT",
+ "NTDLRT"
],
"x-enum": {
"KLRT": "高雄輕軌",
+ "KRTC": "高雄捷運",
"TRTC": "臺北捷運",
- "TYMC": "桃園捷運",
- "KRTC": "高雄捷運"
+ "NTDLRT": "淡海輕軌",
+ "TYMC": "桃園捷運"
}
},
{
@@ -306,13 +310,15 @@
"TRTC",
"KRTC",
"TYMC",
- "KLRT"
+ "KLRT",
+ "NTDLRT"
],
"x-enum": {
- "TYMC": "桃園捷運",
- "TRTC": "臺北捷運",
"KLRT": "高雄輕軌",
- "KRTC": "高雄捷運"
+ "TRTC": "臺北捷運",
+ "KRTC": "高雄捷運",
+ "TYMC": "桃園捷運",
+ "NTDLRT": "淡海輕軌"
}
},
{
@@ -397,8 +403,8 @@
],
"x-enum": {
"TYMC": "桃園捷運",
- "TRTC": "臺北捷運",
- "KRTC": "高雄捷運"
+ "KRTC": "高雄捷運",
+ "TRTC": "臺北捷運"
}
},
{
@@ -568,9 +574,9 @@
"TYMC"
],
"x-enum": {
+ "TRTC": "臺北捷運",
"KLRT": "高雄輕軌",
"TYMC": "桃園捷運",
- "TRTC": "臺北捷運",
"KRTC": "高雄捷運"
}
},
@@ -659,12 +665,14 @@
"enum": [
"TRTC",
"KRTC",
- "TYMC"
+ "TYMC",
+ "NTDLRT"
],
"x-enum": {
- "TYMC": "桃園捷運",
+ "KRTC": "高雄捷運",
+ "NTDLRT": "淡海輕軌",
"TRTC": "臺北捷運",
- "KRTC": "高雄捷運"
+ "TYMC": "桃園捷運"
}
},
{
@@ -746,12 +754,14 @@
"enum": [
"TRTC",
"KRTC",
- "TYMC"
+ "TYMC",
+ "NTDLRT"
],
"x-enum": {
- "TYMC": "桃園捷運",
+ "TRTC": "臺北捷運",
+ "NTDLRT": "淡海輕軌",
"KRTC": "高雄捷運",
- "TRTC": "臺北捷運"
+ "TYMC": "桃園捷運"
}
},
{
@@ -837,10 +847,10 @@
"KLRT"
],
"x-enum": {
- "TYMC": "桃園捷運",
- "TRTC": "臺北捷運",
+ "KRTC": "高雄捷運",
"KLRT": "高雄輕軌",
- "KRTC": "高雄捷運"
+ "TYMC": "桃園捷運",
+ "TRTC": "臺北捷運"
}
},
{
@@ -924,9 +934,9 @@
"TYMC"
],
"x-enum": {
- "TRTC": "臺北捷運",
"TYMC": "桃園捷運",
- "KRTC": "高雄捷運"
+ "KRTC": "高雄捷運",
+ "TRTC": "臺北捷運"
}
},
{
@@ -1011,9 +1021,9 @@
"TYMC"
],
"x-enum": {
- "TRTC": "臺北捷運",
"KRTC": "高雄捷運",
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "TRTC": "臺北捷運"
}
},
{
@@ -1096,13 +1106,15 @@
"TRTC",
"KRTC",
"TYMC",
- "KLRT"
+ "KLRT",
+ "NTDLRT"
],
"x-enum": {
- "KRTC": "高雄捷運",
+ "TYMC": "桃園捷運",
"KLRT": "高雄輕軌",
+ "KRTC": "高雄捷運",
"TRTC": "臺北捷運",
- "TYMC": "桃園捷運"
+ "NTDLRT": "淡海輕軌"
}
},
{
@@ -1185,9 +1197,9 @@
"KRTC"
],
"x-enum": {
- "TYMC": "桃園捷運",
"KRTC": "高雄捷運",
- "TRTC": "臺北捷運"
+ "TRTC": "臺北捷運",
+ "TYMC": "桃園捷運"
}
},
{
@@ -1272,9 +1284,9 @@
"TYMC"
],
"x-enum": {
+ "TYMC": "桃園捷運",
"TRTC": "臺北捷運",
- "KRTC": "高雄捷運",
- "TYMC": "桃園捷運"
+ "KRTC": "高雄捷運"
}
},
{
@@ -1354,6 +1366,7 @@
"required": true,
"type": "string",
"enum": [
+ "TRTC",
"KRTC",
"TYMC"
],
@@ -1439,10 +1452,14 @@
"required": true,
"type": "string",
"enum": [
- "TYMC"
+ "TYMC",
+ "KRTC",
+ "KLRT"
],
"x-enum": {
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "KLRT": "高雄輕軌",
+ "KRTC": "高雄捷運"
}
},
{
@@ -1528,10 +1545,14 @@
"required": true,
"type": "string",
"enum": [
- "TYMC"
+ "TYMC",
+ "KRTC",
+ "KLRT"
],
"x-enum": {
- "TYMC": "桃園捷運"
+ "TYMC": "桃園捷運",
+ "KLRT": "高雄輕軌",
+ "KRTC": "高雄捷運"
}
},
{
@@ -2973,6 +2994,83 @@
}
}
},
+ "/v2/Rail/THSR/AvailableSeatStatusList": {
+ "get": {
+ "tags": [
+ "THSR"
+ ],
+ "summary": "取得動態對號座剩餘座位資訊看板資料",
+ "description": "取得動態對號座剩餘座位資訊看板資料",
+ "operationId": "THSRApi_AvailableSeatStatusList",
+ "consumes": [],
+ "produces": [
+ "application/json",
+ "text/json"
+ ],
+ "parameters": [
+ {
+ "name": "$select",
+ "in": "query",
+ "description": "挑選",
+ "type": "string"
+ },
+ {
+ "name": "$filter",
+ "in": "query",
+ "description": "過濾",
+ "type": "string"
+ },
+ {
+ "name": "$orderby",
+ "in": "query",
+ "description": "排序",
+ "type": "string"
+ },
+ {
+ "name": "$top",
+ "in": "query",
+ "description": "取前幾筆",
+ "type": "integer",
+ "default": 30
+ },
+ {
+ "name": "$skip",
+ "in": "query",
+ "description": "跳過前幾筆",
+ "type": "string"
+ },
+ {
+ "name": "$count",
+ "in": "query",
+ "description": "查詢數量",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ]
+ },
+ {
+ "name": "$format",
+ "in": "query",
+ "description": "指定來源格式",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "JSON",
+ "XML"
+ ]
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]"
+ }
+ }
+ }
+ }
+ },
"/v2/Rail/THSR/AvailableSeatStatusList/{StationID}": {
"get": {
"tags": [
@@ -2980,7 +3078,7 @@
],
"summary": "取得動態指定[車站]的對號座剩餘座位資訊看板資料",
"description": "取得動態指定[車站]的對號座剩餘座位資訊看板資料",
- "operationId": "THSRApi_AvailableSeatStatusList",
+ "operationId": "THSRApi_AvailableSeatStatusList_1",
"consumes": [],
"produces": [
"application/json",
@@ -3025,6 +3123,16 @@
"description": "跳過前幾筆",
"type": "string"
},
+ {
+ "name": "$count",
+ "in": "query",
+ "description": "查詢數量",
+ "type": "string",
+ "enum": [
+ "true",
+ "false"
+ ]
+ },
{
"name": "$format",
"in": "query",
@@ -3041,10 +3149,7 @@
"200": {
"description": "OK",
"schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.AvailableSeatStatusList"
- }
+ "$ref": "#/definitions/MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]"
}
}
}
@@ -5081,6 +5186,7 @@
"MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert]": {
"title": "MRTAlertList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5106,7 +5212,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5421,11 +5527,9 @@
}
}
},
- "Service.DTO.Version2.Rail.THSR.AvailableSeatStatusList": {
- "title": "AvailableSeatStatusList",
- "description": "高鐵對號座位狀態看板資料",
+ "MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]": {
+ "title": "V2THSRAvaliableSeatStatusWrapper[AvailableSeat]",
"required": [
- "UpdateTime",
"AvailableSeats"
],
"type": "object",
@@ -5441,6 +5545,11 @@
"items": {
"$ref": "#/definitions/Service.DTO.Version2.Rail.THSR.AvailableSeat"
}
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
+ "type": "integer"
}
}
},
@@ -5683,7 +5792,7 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
"BikeFlag": {
@@ -5961,7 +6070,7 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
"BikeFlag": {
@@ -6459,7 +6568,7 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
"BikeFlag": {
@@ -6801,7 +6910,7 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
"BikeFlag": {
@@ -7148,6 +7257,7 @@
"StationName",
"TripHeadSign",
"DestinationStaionID",
+ "DestinationStationID",
"DestinationStationName",
"EstimateTime",
"SrcUpdateTime",
@@ -7185,6 +7295,10 @@
"description": "目的地車站代號",
"type": "string"
},
+ "DestinationStationID": {
+ "description": "目的地車站代號",
+ "type": "string"
+ },
"DestinationStationName": {
"$ref": "#/definitions/Service.DTO.Version2.Base.NameType",
"title": "NameType",
@@ -7192,7 +7306,7 @@
},
"EstimateTime": {
"format": "int32",
- "description": "下班車次抵達時間預估(秒)",
+ "description": "下班車次抵達時間預估(分)",
"type": "integer"
},
"SrcUpdateTime": {
@@ -7477,6 +7591,7 @@
"MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTNewsList.News]": {
"title": "MRTNewsList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -7502,7 +7617,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -7911,6 +8026,14 @@
"description": "費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))",
"type": "integer"
},
+ "SaleType": {
+ "description": "販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)",
+ "type": "string"
+ },
+ "CitizenCode": {
+ "description": "市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)",
+ "type": "string"
+ },
"Price": {
"format": "int32",
"description": "票價",
@@ -7970,7 +8093,7 @@
"type": "string"
},
"AuthorityCode": {
- "description": "營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)",
+ "description": "營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)",
"type": "string"
},
"SubAuthorityCode": {
diff --git a/oas.rail.v3.json b/oas.rail.v3.json
index b9577f49..4c012b91 100644
--- a/oas.rail.v3.json
+++ b/oas.rail.v3.json
@@ -2700,6 +2700,7 @@
"MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert]": {
"title": "TRAAlertList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -2725,7 +2726,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -2979,10 +2980,12 @@
"MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]": {
"title": "TRADailyStationTimeTableList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
"AuthorityCode",
+ "TrainDate",
"StationTimetables"
],
"type": "object",
@@ -3004,7 +3007,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3055,15 +3058,6 @@
"description": "行駛方向 : [0:'順行',1:'逆行']",
"type": "integer"
},
- "DestinationStationID": {
- "description": "目的站車站代號",
- "type": "string"
- },
- "DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "目的站車站名稱"
- },
"TimeTables": {
"description": "目的站車站名稱",
"type": "array",
@@ -3104,6 +3098,15 @@
"description": "車次代碼",
"type": "string"
},
+ "DestinationStationID": {
+ "description": "目的站車站代號",
+ "type": "string"
+ },
+ "DestinationStationName": {
+ "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
+ "title": "NameType",
+ "description": "目的站車站名稱"
+ },
"TrainTypeID": {
"description": "車種代嗎",
"type": "string"
@@ -3130,10 +3133,13 @@
"MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]": {
"title": "TRADailyTrainTimeTableList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
- "AuthorityCode"
+ "AuthorityCode",
+ "TrainDate",
+ "TrainTimetables"
],
"type": "object",
"properties": {
@@ -3154,7 +3160,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3294,9 +3300,16 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
+ "DiningFlagSections": {
+ "description": "提供訂便當服務之車站區間",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.DiningFlagSection"
+ }
+ },
"BreastFeedFlag": {
"format": "int32",
"title": "integer",
@@ -3366,9 +3379,48 @@
}
}
},
+ "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",
+ "required": [
+ "StartStationID",
+ "EndStationID"
+ ],
+ "type": "object",
+ "properties": {
+ "StartStationID": {
+ "description": "起站車站代碼",
+ "type": "string"
+ },
+ "EndStationID": {
+ "description": "迄站車站代碼",
+ "type": "string"
+ }
+ }
+ },
"MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]": {
"title": "TRAGeneralStationTimetableList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -3395,7 +3447,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3468,15 +3520,6 @@
"description": "行駛方向 : [0:'順行',1:'逆行']",
"type": "integer"
},
- "DestinationStationID": {
- "description": "目的站車站代號",
- "type": "string"
- },
- "DestinationStationName": {
- "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
- "title": "NameType",
- "description": "目的站車站"
- },
"Timetables": {
"description": "車次停靠站資料",
"type": "array",
@@ -3505,6 +3548,15 @@
"description": "車次代碼",
"type": "string"
},
+ "DestinationStationID": {
+ "description": "目的站車站代號",
+ "type": "string"
+ },
+ "DestinationStationName": {
+ "$ref": "#/definitions/Service.DTO.Version3.Base.NameType",
+ "title": "NameType",
+ "description": "目的站車站"
+ },
"TrainTypeID": {
"description": "車種代嗎",
"type": "string"
@@ -3595,6 +3647,7 @@
"MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]": {
"title": "TRAGeneralTrainTimetableList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -3621,7 +3674,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -3784,7 +3837,7 @@
"DiningFlag": {
"format": "int32",
"title": "integer",
- "description": "是否提供餐車服務 : [0:'否',1:'是']",
+ "description": "是否提供訂便當服務 : [0:'否',1:'是']",
"type": "integer"
},
"BreastFeedFlag": {
@@ -3952,6 +4005,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Line]": {
"title": "TRALineList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -3977,7 +4031,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4049,6 +4103,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork]": {
"title": "TRALineNetworkList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4074,7 +4129,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4166,6 +4221,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineTransfer]": {
"title": "TRALineTransferList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4191,7 +4247,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4279,6 +4335,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Network.Network]": {
"title": "TRANetworkList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4304,7 +4361,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4410,6 +4467,7 @@
"MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRANewsList.News]": {
"title": "TRANewsList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4435,7 +4493,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4530,6 +4588,7 @@
"MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]": {
"title": "TRAODFareList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4555,7 +4614,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4678,6 +4737,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Operator]": {
"title": "TRAOperatorList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4703,7 +4763,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4775,6 +4835,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Shape]": {
"title": "TRAShapeList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4800,7 +4861,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4860,6 +4921,7 @@
"MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]": {
"title": "TRASpecificTrainTimetableList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -4886,7 +4948,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -4992,6 +5054,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Station]": {
"title": "TRAStationList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5017,7 +5080,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5109,6 +5172,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationExit.StationExit]": {
"title": "TRAStationExitList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5134,7 +5198,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5267,6 +5331,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility]": {
"title": "TRAStationFacilityList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5292,7 +5357,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5417,6 +5482,7 @@
"MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]": {
"title": "TRAStationLiveBoardList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5442,7 +5508,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5556,6 +5622,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine]": {
"title": "TRAStationOfLineList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5581,7 +5648,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -5664,6 +5731,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer]": {
"title": "TRAStationTransferList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -5689,7 +5757,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6226,6 +6294,7 @@
"MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]": {
"title": "TRATrainLiveBoardList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -6251,7 +6320,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
@@ -6329,6 +6398,7 @@
"MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.TrainType]": {
"title": "TRATrainTypeList",
"required": [
+ "UpdateTime",
"UpdateInterval",
"SrcUpdateTime",
"SrcUpdateInterval",
@@ -6354,7 +6424,7 @@
},
"SrcUpdateInterval": {
"format": "int32",
- "description": "來源端平台資料更新週期(秒)",
+ "description": "來源端平台資料更新週期(秒)['-1: 不定期更新']",
"type": "integer"
},
"AuthorityCode": {
diff --git a/oas.ship.v3.json b/oas.ship.v3.json
index b4ec19f9..d11f8879 100644
--- a/oas.ship.v3.json
+++ b/oas.ship.v3.json
@@ -1,17 +1,15 @@
{
"swagger": "2.0",
"info": {
- "version": "v3",
"title": "MOTC Transport API V3",
- "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/)\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/Ship/api-docs/oas)"
+ "description": "本平臺提供涵蓋全國尺度之公車、臺鐵、高鐵、捷運、航空、自行車等公共運輸旅運資料服務API,歡迎各產政學單位介接使用。\n
利用本平臺開放資料進行各項應用服務開發時,請考量不同特性使用者(如:性別/身心障礙/老幼等)的需求,並歡迎回饋寶貴意見。\n
資料使用葵花寶典:[請點我](https://ptxmotc.gitbooks.io/ptx-api-documentation/content/)\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/Ship/api-docs/oas)",
+ "version": "v3"
},
- "host": "ptx.transportdata.tw:443",
+ "host": "ptx.transportdata.tw",
"basePath": "/MOTC",
"schemes": [
"https"
],
- "consumes": [],
- "produces": [],
"paths": {
"/v3/Ship/Port": {
"get": {
@@ -20,62 +18,55 @@
],
"summary": "取得港口資料",
"operationId": "ShipApi_Port",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -93,8 +84,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/Operator": {
"get": {
@@ -103,62 +93,55 @@
],
"summary": "取得營運業者資料",
"operationId": "ShipApi_Operator",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -176,8 +159,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/Route": {
"get": {
@@ -186,62 +168,55 @@
],
"summary": "取得航運路線資料",
"operationId": "ShipApi_Route",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -259,8 +234,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/Route/{RouteID}": {
"get": {
@@ -269,69 +243,62 @@
],
"summary": "取得[指定航線]資料",
"operationId": "ShipApi_Route_1",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "RouteID",
"in": "path",
+ "name": "RouteID",
"description": "指定航運路線代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -349,8 +316,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/RouteFare": {
"get": {
@@ -359,62 +325,55 @@
],
"summary": "取得航線票價資料",
"operationId": "ShipApi_RouteFare",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -432,8 +391,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/RouteFare/{RouteID}": {
"get": {
@@ -442,69 +400,62 @@
],
"summary": "取得[指定航線]票價資料",
"operationId": "ShipApi_RouteFare_1",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "RouteID",
"in": "path",
+ "name": "RouteID",
"description": "指定航運路線代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -522,8 +473,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/GeneralSchedule": {
"get": {
@@ -532,62 +482,55 @@
],
"summary": "取得定期班表資料",
"operationId": "ShipApi_GeneralSchedule",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -605,8 +548,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/GeneralSchedule/{RouteID}": {
"get": {
@@ -615,69 +557,62 @@
],
"summary": "取得[指定航線]定期班表資料",
"operationId": "ShipApi_GeneralSchedule_1",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "RouteID",
"in": "path",
+ "name": "RouteID",
"description": "指定航運路線代碼",
"required": true,
"type": "string"
},
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -695,8 +630,7 @@
}
}
}
- },
- "parameters": []
+ }
},
"/v3/Ship/Authority": {
"get": {
@@ -705,62 +639,55 @@
],
"summary": "取得業管機關資料",
"operationId": "ShipApi Authority",
- "consumes": [],
"produces": [
- "application/xml",
- "application/json"
+ "application/json",
+ "application/xml"
],
"parameters": [
{
- "name": "$select",
"in": "query",
+ "name": "$select",
"description": "挑選",
- "required": false,
"type": "string"
},
{
- "name": "$filter",
"in": "query",
+ "name": "$filter",
"description": "過濾",
- "required": false,
"type": "string"
},
{
- "name": "$orderby",
"in": "query",
+ "name": "$orderby",
"description": "排序",
- "required": false,
"type": "string"
},
{
- "name": "$top",
"in": "query",
+ "name": "$top",
"description": "取前幾筆",
- "required": false,
"type": "integer",
"default": 30
},
{
- "name": "$skip",
"in": "query",
+ "name": "$skip",
"description": "跳過前幾筆",
- "required": false,
"type": "string"
},
{
- "name": "$count",
"in": "query",
+ "name": "$count",
"description": "查詢數量",
- "required": false,
- "type": "string",
+ "type": "boolean",
"enum": [
- "true",
- "false"
+ true,
+ false
]
},
{
- "name": "$format",
"in": "query",
+ "name": "$format",
"description": "指定來源格式",
"required": true,
"type": "string",
@@ -778,54 +705,23 @@
}
}
}
- },
- "parameters": []
+ }
}
},
"definitions": {
- "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Shared.Specification.V3.Base.Authority]": {
- "title": "ShipAuthorityList",
- "required": [
- "UpdateInterval",
- "VersionID"
- ],
+ "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": {
+ "title": "NameType",
"type": "object",
"properties": {
- "UpdateTime": {
- "title": "DateTime",
- "description": "XML更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "Zh_tw": {
+ "title": "String",
+ "description": "中文繁體名稱",
"type": "string"
},
- "UpdateInterval": {
- "format": "int32",
- "title": "Int32",
- "description": "本平台資料更新週期(秒)",
- "type": "integer"
- },
- "AuthorityCode": {
+ "En": {
"title": "String",
- "description": "業管機關簡碼",
+ "description": "英文名稱",
"type": "string"
- },
- "VersionID": {
- "format": "int32",
- "title": "Int32",
- "description": "資料版本編號",
- "type": "integer"
- },
- "Authorities": {
- "title": "Array",
- "description": "資料(陣列)",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Authority"
- }
- },
- "Count": {
- "format": "int64",
- "description": "資料總筆數",
- "type": "integer"
}
}
},
@@ -833,12 +729,12 @@
"title": "Authority",
"description": "業管機關",
"required": [
+ "AuthorityAddress",
"AuthorityCode",
+ "AuthorityEmail",
"AuthorityName",
"AuthorityOID",
"AuthorityPhone",
- "AuthorityEmail",
- "AuthorityAddress",
"UpdateTime"
],
"type": "object",
@@ -849,9 +745,13 @@
"type": "string"
},
"AuthorityName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "業管機關名稱"
+ "description": "業管機關名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"AuthorityOID": {
"title": "String",
@@ -887,27 +787,58 @@
"title": "DateTime",
"description": "資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
"type": "string"
- }
- }
- },
- "PTX.Service.DTO.Shared.Specification.V3.Base.NameType": {
- "title": "NameType",
- "type": "object",
- "properties": {
- "Zh_tw": {
- "title": "String",
- "description": "中文繁體名稱",
+ },
+ "PK_BaseAuthority": {
+ "format": "uuid",
+ "title": "Guid",
+ "description": "資料唯一碼",
"type": "string"
},
- "En": {
+ "AuthorityID": {
"title": "String",
- "description": "英文名稱",
+ "description": "業管機關代號",
"type": "string"
+ },
+ "EnumID": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "對應至程式所定義之Enum",
+ "type": "integer"
+ },
+ "IsAirDataAuth": {
+ "title": "Boolean",
+ "description": "是否為航空資料之權責單位",
+ "type": "boolean"
+ },
+ "IsBusDataAuth": {
+ "title": "Boolean",
+ "description": "是否為公車資料之權責單位",
+ "type": "boolean"
+ },
+ "IsRailDataAuth": {
+ "title": "Boolean",
+ "description": "是否為軌道資料之權責單位",
+ "type": "boolean"
+ },
+ "IsBikeDataAuth": {
+ "title": "Boolean",
+ "description": "是否為自行車資料之權責單位",
+ "type": "boolean"
+ },
+ "IsTourismDataAuth": {
+ "title": "Boolean",
+ "description": "是否為觀光資料之權責單位",
+ "type": "boolean"
+ },
+ "IsShipDataAuth": {
+ "title": "Boolean",
+ "description": "是否為航運資料之權責單位",
+ "type": "boolean"
}
}
},
- "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Operator]": {
- "title": "ShipOperatorList",
+ "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Shared.Specification.V3.Base.Authority]": {
+ "title": "ShipAuthorityList",
"required": [
"UpdateInterval",
"VersionID"
@@ -936,13 +867,12 @@
"description": "資料版本編號",
"type": "integer"
},
- "Operators": {
+ "Ports": {
"title": "Array",
"description": "資料(陣列)",
- "uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Operator"
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.Authority"
}
},
"Count": {
@@ -962,9 +892,13 @@
"type": "string"
},
"OperatorName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "營運業者名稱"
+ "description": "營運業者名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"OperatorPhone": {
"title": "String",
@@ -1013,8 +947,8 @@
}
}
},
- "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Port]": {
- "title": "ShipPortList",
+ "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Operator]": {
+ "title": "ShipOperatorList",
"required": [
"UpdateInterval",
"VersionID"
@@ -1046,10 +980,9 @@
"Ports": {
"title": "Array",
"description": "資料(陣列)",
- "uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Port"
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Operator"
}
},
"Count": {
@@ -1059,6 +992,24 @@
}
}
},
+ "PTX.Service.DTO.Ship.Specification.V3.PointType": {
+ "title": "PointType",
+ "type": "object",
+ "properties": {
+ "PositionLat": {
+ "format": "double",
+ "title": "Double",
+ "description": "位置緯度",
+ "type": "number"
+ },
+ "PositionLon": {
+ "format": "double",
+ "title": "Double",
+ "description": "位置經度",
+ "type": "number"
+ }
+ }
+ },
"PTX.Service.DTO.Ship.Specification.V3.Port": {
"title": "Port",
"type": "object",
@@ -1074,14 +1025,22 @@
"type": "string"
},
"PortName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "港口名稱"
+ "description": "港口名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"PortPosition": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PointType",
"title": "PointType",
- "description": "港口位置座標"
+ "description": "港口位置座標",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PointType"
+ }
+ ]
},
"PortAddress": {
"title": "String",
@@ -1120,26 +1079,8 @@
}
}
},
- "PTX.Service.DTO.Ship.Specification.V3.PointType": {
- "title": "PointType",
- "type": "object",
- "properties": {
- "PositionLat": {
- "format": "double",
- "title": "Double",
- "description": "位置緯度",
- "type": "number"
- },
- "PositionLon": {
- "format": "double",
- "title": "Double",
- "description": "位置經度",
- "type": "number"
- }
- }
- },
- "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Route]": {
- "title": "ShipRouteList",
+ "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Port]": {
+ "title": "ShipPortList",
"required": [
"UpdateInterval",
"VersionID"
@@ -1168,13 +1109,12 @@
"description": "資料版本編號",
"type": "integer"
},
- "Routes": {
+ "Ports": {
"title": "Array",
"description": "資料(陣列)",
- "uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Route"
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Port"
}
},
"Count": {
@@ -1184,6 +1124,17 @@
}
}
},
+ "PTX.Service.DTO.Ship.Specification.V3.Operators": {
+ "title": "Operators",
+ "type": "object",
+ "properties": {
+ "OperatorID": {
+ "title": "String",
+ "description": "營運業者代碼",
+ "type": "string"
+ }
+ }
+ },
"PTX.Service.DTO.Ship.Specification.V3.Route": {
"title": "Route",
"type": "object",
@@ -1194,9 +1145,13 @@
"type": "string"
},
"RouteName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "航線名稱"
+ "description": "航線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"Description": {
"title": "String",
@@ -1206,7 +1161,6 @@
"Operators": {
"title": "Array",
"description": "營運業者",
- "uniqueItems": false,
"type": "array",
"items": {
"$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Operators"
@@ -1233,14 +1187,18 @@
"type": "string"
},
"TicketPriceDescription": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "票價描述"
+ "description": "票價描述",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"RouteType": {
"format": "int32",
- "title": "Int32",
- "description": "航線種類(1:國內航線(渡輪、藍色公路); 2:離島航線; 3:兩岸航線;4:其他)",
+ "title": "integer",
+ "description": "航線種類 : [1:'國內航線',2:'離島航線',3:'兩岸航線',4:'其他']",
"type": "integer"
},
"RouteMapURL": {
@@ -1261,19 +1219,8 @@
}
}
},
- "PTX.Service.DTO.Ship.Specification.V3.Operators": {
- "title": "Operators",
- "type": "object",
- "properties": {
- "OperatorID": {
- "title": "String",
- "description": "營運業者代碼",
- "type": "string"
- }
- }
- },
- "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.RouteFare]": {
- "title": "ShipRouteFareList",
+ "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Route]": {
+ "title": "ShipRouteList",
"required": [
"UpdateInterval",
"VersionID"
@@ -1302,13 +1249,12 @@
"description": "資料版本編號",
"type": "integer"
},
- "RouteFares": {
+ "Ports": {
"title": "Array",
"description": "資料(陣列)",
- "uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.RouteFare"
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Route"
}
},
"Count": {
@@ -1318,46 +1264,6 @@
}
}
},
- "PTX.Service.DTO.Ship.Specification.V3.RouteFare": {
- "title": "RouteFare",
- "type": "object",
- "properties": {
- "RouteID": {
- "title": "String",
- "description": "航線代碼",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
- "title": "NameType",
- "description": "航線名稱"
- },
- "FareID": {
- "title": "String",
- "description": "票價代碼",
- "type": "string"
- },
- "OriginPort": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PortInfomation",
- "title": "PortInfomation",
- "description": "起始港口資訊"
- },
- "DestinationPort": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PortInfomation",
- "title": "PortInfomation",
- "description": "迄點港口資訊"
- },
- "Fares": {
- "title": "Array",
- "description": "票價內容",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Fare"
- }
- }
- }
- },
"PTX.Service.DTO.Ship.Specification.V3.PortInfomation": {
"title": "PortInfomation",
"type": "object",
@@ -1384,14 +1290,14 @@
},
"TicketType": {
"format": "int32",
- "title": "Int32",
- "description": "票種類型 = ['1: 一般票', '2: 來回票', '3: 電子票證', '4: 回數票', '5: 定期票30天期', '6: 定期票60天期', '7: 早鳥票', '8: 定期票90天期']",
+ "title": "integer",
+ "description": "票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']",
"type": "integer"
},
"FareClass": {
"format": "int32",
- "title": "Int32",
- "description": "費率等級 = ['1: 成人', '2: 學生', '3: 孩童', '4: 敬老', '5: 愛心', '6: 愛心孩童', '7: 愛心優待或愛心陪伴', '8: 團體', '9: 軍警', '10: 由各運業者自行定義的半票']",
+ "title": "integer",
+ "description": "費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']",
"type": "integer"
},
"CabinClass": {
@@ -1407,8 +1313,59 @@
}
}
},
- "PTX.API.Ship.Model.ScheduleWrapper[PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule]": {
- "title": "ShipGeneralScheduleList",
+ "PTX.Service.DTO.Ship.Specification.V3.RouteFare": {
+ "title": "RouteFare",
+ "type": "object",
+ "properties": {
+ "RouteID": {
+ "title": "String",
+ "description": "航線代碼",
+ "type": "string"
+ },
+ "RouteName": {
+ "title": "NameType",
+ "description": "航線名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
+ },
+ "FareID": {
+ "title": "String",
+ "description": "票價代碼",
+ "type": "string"
+ },
+ "OriginPort": {
+ "title": "PortInfomation",
+ "description": "起始港口資訊",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PortInfomation"
+ }
+ ]
+ },
+ "DestinationPort": {
+ "title": "PortInfomation",
+ "description": "迄點港口資訊",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.PortInfomation"
+ }
+ ]
+ },
+ "Fares": {
+ "title": "Array",
+ "description": "票價內容",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Fare"
+ }
+ }
+ }
+ },
+ "PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.RouteFare]": {
+ "title": "ShipRouteFareList",
"required": [
"UpdateInterval",
"VersionID"
@@ -1431,29 +1388,18 @@
"description": "業管機關簡碼",
"type": "string"
},
- "EffectiveDate": {
- "title": "DateTime",
- "description": "有效起始日期(資料表欄位)",
- "type": "string"
- },
- "ExpireDate": {
- "title": "DateTime",
- "description": "YYYY-MM-DD(本欄位通常為空值)",
- "type": "string"
- },
"VersionID": {
"format": "int32",
"title": "Int32",
"description": "資料版本編號",
"type": "integer"
},
- "GeneralSchedules": {
+ "Ports": {
"title": "Array",
"description": "資料(陣列)",
- "uniqueItems": false,
"type": "array",
"items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule"
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.RouteFare"
}
},
"Count": {
@@ -1463,50 +1409,6 @@
}
}
},
- "PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule": {
- "title": "GeneralSchedule",
- "type": "object",
- "properties": {
- "RouteID": {
- "title": "String",
- "description": "航線代碼",
- "type": "string"
- },
- "RouteName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
- "title": "NameType",
- "description": "航線名稱"
- },
- "OperatorID": {
- "title": "String",
- "description": "營運業者代碼",
- "type": "string"
- },
- "Direction": {
- "format": "int32",
- "title": "Int32",
- "description": "方向性描述(0=去程, 1=返程,2=迴圈)",
- "type": "integer"
- },
- "Vessels": {
- "title": "Array",
- "description": "船舶資訊",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Vessel"
- }
- },
- "Timetables": {
- "title": "Array",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Timetable"
- }
- }
- }
- },
"PTX.Service.DTO.Ship.Specification.V3.Vessel": {
"title": "Vessel",
"type": "object",
@@ -1523,30 +1425,6 @@
}
}
},
- "PTX.Service.DTO.Ship.Specification.V3.Timetable": {
- "title": "Timetable",
- "type": "object",
- "properties": {
- "TripID": {
- "title": "String",
- "description": "班次代碼",
- "type": "string"
- },
- "Stoptimes": {
- "title": "Array",
- "description": "航線停靠資料",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Stoptime"
- }
- },
- "ServiceDay": {
- "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.ServiceDay",
- "title": "ServiceDay"
- }
- }
- },
"PTX.Service.DTO.Ship.Specification.V3.Stoptime": {
"title": "Stoptime",
"type": "object",
@@ -1563,9 +1441,13 @@
"type": "string"
},
"PortName": {
- "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType",
"title": "NameType",
- "description": "港口名稱"
+ "description": "港口名稱",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Shared.Specification.V3.Base.NameType"
+ }
+ ]
},
"ArrivalTime": {
"title": "String",
@@ -1596,59 +1478,183 @@
},
"Monday": {
"format": "int32",
- "title": "Int32",
- "description": "星期一是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期一是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Tuesday": {
"format": "int32",
- "title": "Int32",
- "description": "星期二是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期二是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Wednesday": {
"format": "int32",
- "title": "Int32",
- "description": "星期三是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期三是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Thursday": {
"format": "int32",
- "title": "Int32",
- "description": "星期四是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期四是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Friday": {
"format": "int32",
- "title": "Int32",
- "description": "星期五是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期五是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Saturday": {
"format": "int32",
- "title": "Int32",
- "description": "星期六是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期六是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"Sunday": {
"format": "int32",
- "title": "Int32",
- "description": "星期日是否營運 = ['0: 否', '1: 是']",
+ "title": "integer",
+ "description": "星期日是否營運 : [0:'否',1:'是']",
"type": "integer"
},
"NationalHolidays": {
+ "format": "int32",
+ "title": "integer",
+ "description": "國定假日是否營運 : [0:'否',1:'是']",
+ "type": "integer"
+ }
+ }
+ },
+ "PTX.Service.DTO.Ship.Specification.V3.Timetable": {
+ "title": "Timetable",
+ "type": "object",
+ "properties": {
+ "TripID": {
+ "title": "String",
+ "description": "班次代碼",
+ "type": "string"
+ },
+ "Stoptimes": {
+ "title": "Array",
+ "description": "航線停靠資料",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Stoptime"
+ }
+ },
+ "ServiceDay": {
+ "title": "ServiceDay",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.ServiceDay"
+ }
+ ]
+ }
+ }
+ },
+ "PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule": {
+ "title": "GeneralSchedule",
+ "type": "object",
+ "properties": {
+ "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"
+ },
+ "Direction": {
+ "format": "int32",
+ "title": "integer",
+ "description": "方向性描述 : [0:'去程',1:'返程',2:'迴圈']",
+ "type": "integer"
+ },
+ "Vessels": {
+ "title": "Array",
+ "description": "船舶資訊",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Vessel"
+ }
+ },
+ "Timetables": {
+ "title": "Array",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.Timetable"
+ }
+ }
+ }
+ },
+ "PTX.API.Ship.Model.ScheduleWrapper[PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule]": {
+ "title": "ShipGeneralScheduleList",
+ "required": [
+ "UpdateInterval",
+ "VersionID"
+ ],
+ "type": "object",
+ "properties": {
+ "UpdateTime": {
+ "title": "DateTime",
+ "description": "XML更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)",
+ "type": "string"
+ },
+ "UpdateInterval": {
+ "format": "int32",
+ "title": "Int32",
+ "description": "本平台資料更新週期(秒)",
+ "type": "integer"
+ },
+ "AuthorityCode": {
+ "title": "String",
+ "description": "業管機關簡碼",
+ "type": "string"
+ },
+ "EffectiveDate": {
+ "title": "DateTime",
+ "description": "有效起始日期(資料表欄位)",
+ "type": "string"
+ },
+ "ExpireDate": {
+ "title": "DateTime",
+ "description": "YYYY-MM-DD(本欄位通常為空值)",
+ "type": "string"
+ },
+ "VersionID": {
"format": "int32",
"title": "Int32",
- "description": "國定假日是否營運 = ['0: 否', '1: 是']",
+ "description": "資料版本編號",
+ "type": "integer"
+ },
+ "Ports": {
+ "title": "Array",
+ "description": "資料(陣列)",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule"
+ }
+ },
+ "Count": {
+ "format": "int64",
+ "description": "資料總筆數",
"type": "integer"
}
}
}
},
- "parameters": {},
- "responses": {},
- "securityDefinitions": {},
- "security": [],
"tags": [
{
"name": "Ship"
diff --git a/oas.tourism.v2.json b/oas.tourism.v2.json
index 8dddc500..de6e1420 100644
--- a/oas.tourism.v2.json
+++ b/oas.tourism.v2.json
@@ -132,28 +132,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Taipei": "臺北市",
- "PingtungCounty": "屏東縣",
- "Keelung": "基隆市",
+ "YilanCounty": "宜蘭縣",
"Taoyuan": "桃園市",
- "PenghuCounty": "澎湖縣",
- "Hsinchu": "新竹市",
- "Chiayi": "嘉義市",
- "ChanghuaCounty": "彰化縣",
+ "Keelung": "基隆市",
"ChiayiCounty": "嘉義縣",
- "MiaoliCounty": "苗栗縣",
- "YilanCounty": "宜蘭縣",
- "HualienCounty": "花蓮縣",
- "HsinchuCounty": "新竹縣",
- "NewTaipei": "新北市",
"TaitungCounty": "臺東縣",
- "YunlinCounty": "雲林縣",
- "NantouCounty": "南投縣",
- "Kaohsiung": "高雄市",
+ "Taipei": "臺北市",
+ "Chiayi": "嘉義市",
+ "LienchiangCounty": "連江縣",
+ "HsinchuCounty": "新竹縣",
"KinmenCounty": "金門縣",
"Tainan": "臺南市",
- "LienchiangCounty": "連江縣",
- "Taichung": "臺中市"
+ "MiaoliCounty": "苗栗縣",
+ "NantouCounty": "南投縣",
+ "Taichung": "臺中市",
+ "NewTaipei": "新北市",
+ "Kaohsiung": "高雄市",
+ "HualienCounty": "花蓮縣",
+ "PingtungCounty": "屏東縣",
+ "ChanghuaCounty": "彰化縣",
+ "YunlinCounty": "雲林縣",
+ "Hsinchu": "新竹市",
+ "PenghuCounty": "澎湖縣"
}
},
{
@@ -339,28 +339,28 @@
"LienchiangCounty"
],
"x-enum": {
- "Hsinchu": "新竹市",
- "Keelung": "基隆市",
- "LienchiangCounty": "連江縣",
- "Kaohsiung": "高雄市",
+ "Taoyuan": "桃園市",
"ChanghuaCounty": "彰化縣",
- "MiaoliCounty": "苗栗縣",
- "PenghuCounty": "澎湖縣",
- "Taichung": "臺中市",
- "KinmenCounty": "金門縣",
- "NantouCounty": "南投縣",
- "YunlinCounty": "雲林縣",
- "ChiayiCounty": "嘉義縣",
- "HsinchuCounty": "新竹縣",
- "Chiayi": "嘉義市",
- "Taipei": "臺北市",
- "PingtungCounty": "屏東縣",
"HualienCounty": "花蓮縣",
+ "TaitungCounty": "臺東縣",
"NewTaipei": "新北市",
+ "Taipei": "臺北市",
+ "HsinchuCounty": "新竹縣",
+ "PenghuCounty": "澎湖縣",
+ "PingtungCounty": "屏東縣",
+ "Taichung": "臺中市",
"YilanCounty": "宜蘭縣",
+ "Chiayi": "嘉義市",
"Tainan": "臺南市",
- "TaitungCounty": "臺東縣",
- "Taoyuan": "桃園市"
+ "Kaohsiung": "高雄市",
+ "MiaoliCounty": "苗栗縣",
+ "Hsinchu": "新竹市",
+ "LienchiangCounty": "連江縣",
+ "Keelung": "基隆市",
+ "NantouCounty": "南投縣",
+ "ChiayiCounty": "嘉義縣",
+ "KinmenCounty": "金門縣",
+ "YunlinCounty": "雲林縣"
}
},
{
@@ -546,28 +546,28 @@
"LienchiangCounty"
],
"x-enum": {
- "ChanghuaCounty": "彰化縣",
- "HsinchuCounty": "新竹縣",
- "NantouCounty": "南投縣",
- "Hsinchu": "新竹市",
- "Kaohsiung": "高雄市",
- "TaitungCounty": "臺東縣",
- "Tainan": "臺南市",
- "LienchiangCounty": "連江縣",
"YunlinCounty": "雲林縣",
- "Taichung": "臺中市",
"Taipei": "臺北市",
- "NewTaipei": "新北市",
+ "Keelung": "基隆市",
+ "Kaohsiung": "高雄市",
+ "Taoyuan": "桃園市",
+ "Taichung": "臺中市",
+ "YilanCounty": "宜蘭縣",
"HualienCounty": "花蓮縣",
+ "NantouCounty": "南投縣",
+ "PingtungCounty": "屏東縣",
+ "HsinchuCounty": "新竹縣",
+ "LienchiangCounty": "連江縣",
+ "MiaoliCounty": "苗栗縣",
+ "Tainan": "臺南市",
+ "ChanghuaCounty": "彰化縣",
+ "TaitungCounty": "臺東縣",
"Chiayi": "嘉義市",
- "Keelung": "基隆市",
+ "Hsinchu": "新竹市",
"PenghuCounty": "澎湖縣",
- "KinmenCounty": "金門縣",
- "MiaoliCounty": "苗栗縣",
- "PingtungCounty": "屏東縣",
- "YilanCounty": "宜蘭縣",
- "Taoyuan": "桃園市",
- "ChiayiCounty": "嘉義縣"
+ "ChiayiCounty": "嘉義縣",
+ "NewTaipei": "新北市",
+ "KinmenCounty": "金門縣"
}
},
{
@@ -753,28 +753,28 @@
"LienchiangCounty"
],
"x-enum": {
+ "ChanghuaCounty": "彰化縣",
+ "NantouCounty": "南投縣",
+ "Taoyuan": "桃園市",
+ "KinmenCounty": "金門縣",
+ "Hsinchu": "新竹市",
+ "PingtungCounty": "屏東縣",
+ "HsinchuCounty": "新竹縣",
+ "LienchiangCounty": "連江縣",
+ "Tainan": "臺南市",
"YilanCounty": "宜蘭縣",
- "ChiayiCounty": "嘉義縣",
"HualienCounty": "花蓮縣",
- "YunlinCounty": "雲林縣",
+ "Chiayi": "嘉義市",
"Keelung": "基隆市",
- "KinmenCounty": "金門縣",
+ "Taipei": "臺北市",
"Kaohsiung": "高雄市",
- "HsinchuCounty": "新竹縣",
- "Chiayi": "嘉義市",
- "Taoyuan": "桃園市",
- "MiaoliCounty": "苗栗縣",
"NewTaipei": "新北市",
- "NantouCounty": "南投縣",
+ "MiaoliCounty": "苗栗縣",
"PenghuCounty": "澎湖縣",
- "TaitungCounty": "臺東縣",
- "Taipei": "臺北市",
- "LienchiangCounty": "連江縣",
- "ChanghuaCounty": "彰化縣",
- "PingtungCounty": "屏東縣",
+ "ChiayiCounty": "嘉義縣",
"Taichung": "臺中市",
- "Hsinchu": "新竹市",
- "Tainan": "臺南市"
+ "YunlinCounty": "雲林縣",
+ "TaitungCounty": "臺東縣"
}
},
{
@@ -3651,6 +3651,7 @@
"type": "string"
},
"StationGroupID": {
+ "description": "站牌所屬的組站位ID",
"type": "string"
},
"LocationCityCode": {
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 b340b387..17ea99cd 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
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/rail/v2/client/metro"
"github.com/minchao/go-ptx/rail/v2/client/rail_basic"
@@ -59,15 +58,10 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.Metro = metro.New(transport, formats)
-
cli.RailBasic = rail_basic.New(transport, formats)
-
cli.Thsr = t_h_s_r.New(transport, formats)
-
cli.Tra = t_r_a.New(transport, formats)
-
return cli
}
@@ -112,13 +106,13 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- Metro *metro.Client
+ Metro metro.ClientService
- RailBasic *rail_basic.Client
+ RailBasic rail_basic.ClientService
- Thsr *t_h_s_r.Client
+ Thsr t_h_s_r.ClientService
- Tra *t_r_a.Client
+ Tra t_r_a.ClientService
Transport runtime.ClientTransport
}
@@ -126,13 +120,8 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Metro.SetTransport(transport)
-
c.RailBasic.SetTransport(transport)
-
c.Thsr.SetTransport(transport)
-
c.Tra.SetTransport(transport)
-
}
diff --git a/rail/v2/client/metro/metro_api_alert_parameters.go b/rail/v2/client/metro/metro_api_alert_parameters.go
index 3830f346..5974d36d 100644
--- a/rail/v2/client/metro/metro_api_alert_parameters.go
+++ b/rail/v2/client/metro/metro_api_alert_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIAlertParams creates a new MetroAPIAlertParams object
diff --git a/rail/v2/client/metro/metro_api_alert_responses.go b/rail/v2/client/metro/metro_api_alert_responses.go
index f055cf16..4df2fac0 100644
--- a/rail/v2/client/metro/metro_api_alert_responses.go
+++ b/rail/v2/client/metro/metro_api_alert_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIAlertReader is a Reader for the MetroAPIAlert structure.
diff --git a/rail/v2/client/metro/metro_api_first_last_timetable_parameters.go b/rail/v2/client/metro/metro_api_first_last_timetable_parameters.go
index 90c10f6e..d2b14dc7 100644
--- a/rail/v2/client/metro/metro_api_first_last_timetable_parameters.go
+++ b/rail/v2/client/metro/metro_api_first_last_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIFirstLastTimetableParams creates a new MetroAPIFirstLastTimetableParams object
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 954d7a42..1075a7f9 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIFirstLastTimetableReader is a Reader for the MetroAPIFirstLastTimetable structure.
diff --git a/rail/v2/client/metro/metro_api_frequency_parameters.go b/rail/v2/client/metro/metro_api_frequency_parameters.go
index 457b8c5a..b4af1b16 100644
--- a/rail/v2/client/metro/metro_api_frequency_parameters.go
+++ b/rail/v2/client/metro/metro_api_frequency_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIFrequencyParams creates a new MetroAPIFrequencyParams object
diff --git a/rail/v2/client/metro/metro_api_frequency_responses.go b/rail/v2/client/metro/metro_api_frequency_responses.go
index 450a6105..17f4599b 100644
--- a/rail/v2/client/metro/metro_api_frequency_responses.go
+++ b/rail/v2/client/metro/metro_api_frequency_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIFrequencyReader is a Reader for the MetroAPIFrequency structure.
diff --git a/rail/v2/client/metro/metro_api_line_parameters.go b/rail/v2/client/metro/metro_api_line_parameters.go
index a788015e..29948bcc 100644
--- a/rail/v2/client/metro/metro_api_line_parameters.go
+++ b/rail/v2/client/metro/metro_api_line_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPILineParams creates a new MetroAPILineParams object
diff --git a/rail/v2/client/metro/metro_api_line_responses.go b/rail/v2/client/metro/metro_api_line_responses.go
index 4bdcdc50..d7224775 100644
--- a/rail/v2/client/metro/metro_api_line_responses.go
+++ b/rail/v2/client/metro/metro_api_line_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPILineReader is a Reader for the MetroAPILine structure.
diff --git a/rail/v2/client/metro/metro_api_line_transfer_parameters.go b/rail/v2/client/metro/metro_api_line_transfer_parameters.go
index fbd092cd..682fbb64 100644
--- a/rail/v2/client/metro/metro_api_line_transfer_parameters.go
+++ b/rail/v2/client/metro/metro_api_line_transfer_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPILineTransferParams creates a new MetroAPILineTransferParams object
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 47032c0b..68829146 100644
--- a/rail/v2/client/metro/metro_api_line_transfer_responses.go
+++ b/rail/v2/client/metro/metro_api_line_transfer_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPILineTransferReader is a Reader for the MetroAPILineTransfer structure.
diff --git a/rail/v2/client/metro/metro_api_live_board_parameters.go b/rail/v2/client/metro/metro_api_live_board_parameters.go
index 35eb2ecc..94b14a76 100644
--- a/rail/v2/client/metro/metro_api_live_board_parameters.go
+++ b/rail/v2/client/metro/metro_api_live_board_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPILiveBoardParams creates a new MetroAPILiveBoardParams object
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 c6cdc83c..bb62b45b 100644
--- a/rail/v2/client/metro/metro_api_live_board_responses.go
+++ b/rail/v2/client/metro/metro_api_live_board_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPILiveBoardReader is a Reader for the MetroAPILiveBoard structure.
diff --git a/rail/v2/client/metro/metro_api_network_parameters.go b/rail/v2/client/metro/metro_api_network_parameters.go
index 068d3cdf..f229ef28 100644
--- a/rail/v2/client/metro/metro_api_network_parameters.go
+++ b/rail/v2/client/metro/metro_api_network_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPINetworkParams creates a new MetroAPINetworkParams object
diff --git a/rail/v2/client/metro/metro_api_network_responses.go b/rail/v2/client/metro/metro_api_network_responses.go
index 6a6080b5..41c21e42 100644
--- a/rail/v2/client/metro/metro_api_network_responses.go
+++ b/rail/v2/client/metro/metro_api_network_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPINetworkReader is a Reader for the MetroAPINetwork structure.
diff --git a/rail/v2/client/metro/metro_api_news_parameters.go b/rail/v2/client/metro/metro_api_news_parameters.go
index b45f4bae..d182327d 100644
--- a/rail/v2/client/metro/metro_api_news_parameters.go
+++ b/rail/v2/client/metro/metro_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPINewsParams creates a new MetroAPINewsParams object
diff --git a/rail/v2/client/metro/metro_api_news_responses.go b/rail/v2/client/metro/metro_api_news_responses.go
index 275bd985..a9d5ad0c 100644
--- a/rail/v2/client/metro/metro_api_news_responses.go
+++ b/rail/v2/client/metro/metro_api_news_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPINewsReader is a Reader for the MetroAPINews structure.
diff --git a/rail/v2/client/metro/metro_api_o_d_fare_parameters.go b/rail/v2/client/metro/metro_api_o_d_fare_parameters.go
index 62604a59..51d81b65 100644
--- a/rail/v2/client/metro/metro_api_o_d_fare_parameters.go
+++ b/rail/v2/client/metro/metro_api_o_d_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIODFareParams creates a new MetroAPIODFareParams object
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 11da0986..e08846bf 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIODFareReader is a Reader for the MetroAPIODFare structure.
diff --git a/rail/v2/client/metro/metro_api_route_parameters.go b/rail/v2/client/metro/metro_api_route_parameters.go
index 4b6d10b2..69aa71c4 100644
--- a/rail/v2/client/metro/metro_api_route_parameters.go
+++ b/rail/v2/client/metro/metro_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIRouteParams creates a new MetroAPIRouteParams object
diff --git a/rail/v2/client/metro/metro_api_route_responses.go b/rail/v2/client/metro/metro_api_route_responses.go
index 6ebe94b3..a6c94e25 100644
--- a/rail/v2/client/metro/metro_api_route_responses.go
+++ b/rail/v2/client/metro/metro_api_route_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIRouteReader is a Reader for the MetroAPIRoute structure.
diff --git a/rail/v2/client/metro/metro_api_s2_s_travel_time_parameters.go b/rail/v2/client/metro/metro_api_s2_s_travel_time_parameters.go
index 5585218a..bdaccdae 100644
--- a/rail/v2/client/metro/metro_api_s2_s_travel_time_parameters.go
+++ b/rail/v2/client/metro/metro_api_s2_s_travel_time_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIS2STravelTimeParams creates a new MetroAPIS2STravelTimeParams object
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 f47018a1..d42b1900 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIS2STravelTimeReader is a Reader for the MetroAPIS2STravelTime structure.
diff --git a/rail/v2/client/metro/metro_api_shape_parameters.go b/rail/v2/client/metro/metro_api_shape_parameters.go
index 375b3b49..e87d0966 100644
--- a/rail/v2/client/metro/metro_api_shape_parameters.go
+++ b/rail/v2/client/metro/metro_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIShapeParams creates a new MetroAPIShapeParams object
diff --git a/rail/v2/client/metro/metro_api_shape_responses.go b/rail/v2/client/metro/metro_api_shape_responses.go
index be7a5336..d3f37392 100644
--- a/rail/v2/client/metro/metro_api_shape_responses.go
+++ b/rail/v2/client/metro/metro_api_shape_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIShapeReader is a Reader for the MetroAPIShape structure.
diff --git a/rail/v2/client/metro/metro_api_station_exit_parameters.go b/rail/v2/client/metro/metro_api_station_exit_parameters.go
index 02de3871..8a85b5aa 100644
--- a/rail/v2/client/metro/metro_api_station_exit_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_exit_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationExitParams creates a new MetroAPIStationExitParams object
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 3b7159d7..3d0e3916 100644
--- a/rail/v2/client/metro/metro_api_station_exit_responses.go
+++ b/rail/v2/client/metro/metro_api_station_exit_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationExitReader is a Reader for the MetroAPIStationExit structure.
diff --git a/rail/v2/client/metro/metro_api_station_facility_parameters.go b/rail/v2/client/metro/metro_api_station_facility_parameters.go
index 875cb6ec..44595e63 100644
--- a/rail/v2/client/metro/metro_api_station_facility_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_facility_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationFacilityParams creates a new MetroAPIStationFacilityParams object
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 ab461d1a..6ce16c69 100644
--- a/rail/v2/client/metro/metro_api_station_facility_responses.go
+++ b/rail/v2/client/metro/metro_api_station_facility_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationFacilityReader is a Reader for the MetroAPIStationFacility structure.
diff --git a/rail/v2/client/metro/metro_api_station_of_line_parameters.go b/rail/v2/client/metro/metro_api_station_of_line_parameters.go
index ed885d9e..826b327c 100644
--- a/rail/v2/client/metro/metro_api_station_of_line_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_of_line_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationOfLineParams creates a new MetroAPIStationOfLineParams object
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 0b1f9453..fbc9314d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationOfLineReader is a Reader for the MetroAPIStationOfLine structure.
diff --git a/rail/v2/client/metro/metro_api_station_of_route_parameters.go b/rail/v2/client/metro/metro_api_station_of_route_parameters.go
index 55f514ae..aa6ebeef 100644
--- a/rail/v2/client/metro/metro_api_station_of_route_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_of_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationOfRouteParams creates a new MetroAPIStationOfRouteParams object
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 31a5b035..3884dc3e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationOfRouteReader is a Reader for the MetroAPIStationOfRoute structure.
diff --git a/rail/v2/client/metro/metro_api_station_parameters.go b/rail/v2/client/metro/metro_api_station_parameters.go
index 94dc889f..d12eea0a 100644
--- a/rail/v2/client/metro/metro_api_station_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationParams creates a new MetroAPIStationParams object
diff --git a/rail/v2/client/metro/metro_api_station_responses.go b/rail/v2/client/metro/metro_api_station_responses.go
index f198ceec..5ea52778 100644
--- a/rail/v2/client/metro/metro_api_station_responses.go
+++ b/rail/v2/client/metro/metro_api_station_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationReader is a Reader for the MetroAPIStation structure.
diff --git a/rail/v2/client/metro/metro_api_station_time_table_parameters.go b/rail/v2/client/metro/metro_api_station_time_table_parameters.go
index e1e0c797..93dcaef9 100644
--- a/rail/v2/client/metro/metro_api_station_time_table_parameters.go
+++ b/rail/v2/client/metro/metro_api_station_time_table_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewMetroAPIStationTimeTableParams creates a new MetroAPIStationTimeTableParams object
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 6bc22f3f..5061fbc3 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// MetroAPIStationTimeTableReader is a Reader for the MetroAPIStationTimeTable structure.
diff --git a/rail/v2/client/metro/metro_client.go b/rail/v2/client/metro/metro_client.go
index 42823ee7..37fa56d7 100644
--- a/rail/v2/client/metro/metro_client.go
+++ b/rail/v2/client/metro/metro_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new metro API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,51 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ MetroAPIAlert(params *MetroAPIAlertParams) (*MetroAPIAlertOK, error)
+
+ MetroAPIFirstLastTimetable(params *MetroAPIFirstLastTimetableParams) (*MetroAPIFirstLastTimetableOK, error)
+
+ MetroAPIFrequency(params *MetroAPIFrequencyParams) (*MetroAPIFrequencyOK, error)
+
+ MetroAPILine(params *MetroAPILineParams) (*MetroAPILineOK, error)
+
+ MetroAPILineTransfer(params *MetroAPILineTransferParams) (*MetroAPILineTransferOK, error)
+
+ MetroAPILiveBoard(params *MetroAPILiveBoardParams) (*MetroAPILiveBoardOK, error)
+
+ MetroAPINetwork(params *MetroAPINetworkParams) (*MetroAPINetworkOK, error)
+
+ MetroAPINews(params *MetroAPINewsParams) (*MetroAPINewsOK, error)
+
+ MetroAPIODFare(params *MetroAPIODFareParams) (*MetroAPIODFareOK, error)
+
+ MetroAPIRoute(params *MetroAPIRouteParams) (*MetroAPIRouteOK, error)
+
+ MetroAPIS2STravelTime(params *MetroAPIS2STravelTimeParams) (*MetroAPIS2STravelTimeOK, error)
+
+ MetroAPIShape(params *MetroAPIShapeParams) (*MetroAPIShapeOK, error)
+
+ MetroAPIStation(params *MetroAPIStationParams) (*MetroAPIStationOK, error)
+
+ MetroAPIStationExit(params *MetroAPIStationExitParams) (*MetroAPIStationExitOK, error)
+
+ MetroAPIStationFacility(params *MetroAPIStationFacilityParams) (*MetroAPIStationFacilityOK, error)
+
+ MetroAPIStationOfLine(params *MetroAPIStationOfLineParams) (*MetroAPIStationOfLineOK, error)
+
+ MetroAPIStationOfRoute(params *MetroAPIStationOfRouteParams) (*MetroAPIStationOfRouteOK, error)
+
+ MetroAPIStationTimeTable(params *MetroAPIStationTimeTableParams) (*MetroAPIStationTimeTableOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-MetroAPIAlert 取得營運通阻資料s
+ MetroAPIAlert 取得營運通阻資料s
-取得營運通阻資料
+ 取得營運通阻資料
*/
func (a *Client) MetroAPIAlert(params *MetroAPIAlertParams) (*MetroAPIAlertOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +82,7 @@ func (a *Client) MetroAPIAlert(params *MetroAPIAlertParams) (*MetroAPIAlertOK, e
Method: "GET",
PathPattern: "/v2/Rail/Metro/Alert/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIAlertReader{formats: a.formats},
@@ -63,9 +103,9 @@ func (a *Client) MetroAPIAlert(params *MetroAPIAlertParams) (*MetroAPIAlertOK, e
}
/*
-MetroAPIFirstLastTimetable 取得捷運首末班車時刻表資料s
+ MetroAPIFirstLastTimetable 取得捷運首末班車時刻表資料s
-取得捷運首末班車時刻表資料
+ 取得捷運首末班車時刻表資料
*/
func (a *Client) MetroAPIFirstLastTimetable(params *MetroAPIFirstLastTimetableParams) (*MetroAPIFirstLastTimetableOK, error) {
// TODO: Validate the params before sending
@@ -78,7 +118,7 @@ func (a *Client) MetroAPIFirstLastTimetable(params *MetroAPIFirstLastTimetablePa
Method: "GET",
PathPattern: "/v2/Rail/Metro/FirstLastTimetable/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIFirstLastTimetableReader{formats: a.formats},
@@ -99,9 +139,9 @@ func (a *Client) MetroAPIFirstLastTimetable(params *MetroAPIFirstLastTimetablePa
}
/*
-MetroAPIFrequency 取得捷運路線發車班距頻率資料s
+ MetroAPIFrequency 取得捷運路線發車班距頻率資料s
-取得捷運路線發車班距頻率資料
+ 取得捷運路線發車班距頻率資料
*/
func (a *Client) MetroAPIFrequency(params *MetroAPIFrequencyParams) (*MetroAPIFrequencyOK, error) {
// TODO: Validate the params before sending
@@ -114,7 +154,7 @@ func (a *Client) MetroAPIFrequency(params *MetroAPIFrequencyParams) (*MetroAPIFr
Method: "GET",
PathPattern: "/v2/Rail/Metro/Frequency/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIFrequencyReader{formats: a.formats},
@@ -135,9 +175,9 @@ func (a *Client) MetroAPIFrequency(params *MetroAPIFrequencyParams) (*MetroAPIFr
}
/*
-MetroAPILine 取得捷運路線基本資料s
+ MetroAPILine 取得捷運路線基本資料s
-取得捷運路線基本資料
+ 取得捷運路線基本資料
*/
func (a *Client) MetroAPILine(params *MetroAPILineParams) (*MetroAPILineOK, error) {
// TODO: Validate the params before sending
@@ -150,7 +190,7 @@ func (a *Client) MetroAPILine(params *MetroAPILineParams) (*MetroAPILineOK, erro
Method: "GET",
PathPattern: "/v2/Rail/Metro/Line/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPILineReader{formats: a.formats},
@@ -171,9 +211,9 @@ func (a *Client) MetroAPILine(params *MetroAPILineParams) (*MetroAPILineOK, erro
}
/*
-MetroAPILineTransfer 取得捷運路線站間轉乘基本資料s
+ MetroAPILineTransfer 取得捷運路線站間轉乘基本資料s
-取得捷運路線站間轉乘基本資料
+ 取得捷運路線站間轉乘基本資料
*/
func (a *Client) MetroAPILineTransfer(params *MetroAPILineTransferParams) (*MetroAPILineTransferOK, error) {
// TODO: Validate the params before sending
@@ -186,7 +226,7 @@ func (a *Client) MetroAPILineTransfer(params *MetroAPILineTransferParams) (*Metr
Method: "GET",
PathPattern: "/v2/Rail/Metro/LineTransfer/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPILineTransferReader{formats: a.formats},
@@ -207,9 +247,9 @@ func (a *Client) MetroAPILineTransfer(params *MetroAPILineTransferParams) (*Metr
}
/*
-MetroAPILiveBoard 取得捷運車站別列車即時到離站電子看板資訊s
+ MetroAPILiveBoard 取得捷運車站別列車即時到離站電子看板資訊s
-取得捷運車站別列車即時到離站電子看板資訊
+ 取得捷運車站別列車即時到離站電子看板資訊
*/
func (a *Client) MetroAPILiveBoard(params *MetroAPILiveBoardParams) (*MetroAPILiveBoardOK, error) {
// TODO: Validate the params before sending
@@ -222,7 +262,7 @@ func (a *Client) MetroAPILiveBoard(params *MetroAPILiveBoardParams) (*MetroAPILi
Method: "GET",
PathPattern: "/v2/Rail/Metro/LiveBoard/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPILiveBoardReader{formats: a.formats},
@@ -243,9 +283,9 @@ func (a *Client) MetroAPILiveBoard(params *MetroAPILiveBoardParams) (*MetroAPILi
}
/*
-MetroAPINetwork 取得捷運路網資料s
+ MetroAPINetwork 取得捷運路網資料s
-取得捷運路網資料
+ 取得捷運路網資料
*/
func (a *Client) MetroAPINetwork(params *MetroAPINetworkParams) (*MetroAPINetworkOK, error) {
// TODO: Validate the params before sending
@@ -258,7 +298,7 @@ func (a *Client) MetroAPINetwork(params *MetroAPINetworkParams) (*MetroAPINetwor
Method: "GET",
PathPattern: "/v2/Rail/Metro/Network/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPINetworkReader{formats: a.formats},
@@ -279,9 +319,9 @@ func (a *Client) MetroAPINetwork(params *MetroAPINetworkParams) (*MetroAPINetwor
}
/*
-MetroAPINews 取得最新消息s
+ MetroAPINews 取得最新消息s
-取得最新消息
+ 取得最新消息
*/
func (a *Client) MetroAPINews(params *MetroAPINewsParams) (*MetroAPINewsOK, error) {
// TODO: Validate the params before sending
@@ -294,7 +334,7 @@ func (a *Client) MetroAPINews(params *MetroAPINewsParams) (*MetroAPINewsOK, erro
Method: "GET",
PathPattern: "/v2/Rail/Metro/News/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPINewsReader{formats: a.formats},
@@ -315,9 +355,9 @@ func (a *Client) MetroAPINews(params *MetroAPINewsParams) (*MetroAPINewsOK, erro
}
/*
-MetroAPIODFare 取得捷運起迄站間票價資料s
+ MetroAPIODFare 取得捷運起迄站間票價資料s
-取得捷運起迄站間票價資料
+ 取得捷運起迄站間票價資料
*/
func (a *Client) MetroAPIODFare(params *MetroAPIODFareParams) (*MetroAPIODFareOK, error) {
// TODO: Validate the params before sending
@@ -330,7 +370,7 @@ func (a *Client) MetroAPIODFare(params *MetroAPIODFareParams) (*MetroAPIODFareOK
Method: "GET",
PathPattern: "/v2/Rail/Metro/ODFare/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIODFareReader{formats: a.formats},
@@ -351,9 +391,9 @@ func (a *Client) MetroAPIODFare(params *MetroAPIODFareParams) (*MetroAPIODFareOK
}
/*
-MetroAPIRoute 取得捷運營運路線基本資料s
+ MetroAPIRoute 取得捷運營運路線基本資料s
-取得捷運營運路線基本資料
+ 取得捷運營運路線基本資料
*/
func (a *Client) MetroAPIRoute(params *MetroAPIRouteParams) (*MetroAPIRouteOK, error) {
// TODO: Validate the params before sending
@@ -366,7 +406,7 @@ func (a *Client) MetroAPIRoute(params *MetroAPIRouteParams) (*MetroAPIRouteOK, e
Method: "GET",
PathPattern: "/v2/Rail/Metro/Route/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIRouteReader{formats: a.formats},
@@ -387,9 +427,9 @@ func (a *Client) MetroAPIRoute(params *MetroAPIRouteParams) (*MetroAPIRouteOK, e
}
/*
-MetroAPIS2STravelTime 取得捷運列車站間運行時間資料s
+ MetroAPIS2STravelTime 取得捷運列車站間運行時間資料s
-取得捷運列車站間運行時間資料
+ 取得捷運列車站間運行時間資料
*/
func (a *Client) MetroAPIS2STravelTime(params *MetroAPIS2STravelTimeParams) (*MetroAPIS2STravelTimeOK, error) {
// TODO: Validate the params before sending
@@ -402,7 +442,7 @@ func (a *Client) MetroAPIS2STravelTime(params *MetroAPIS2STravelTimeParams) (*Me
Method: "GET",
PathPattern: "/v2/Rail/Metro/S2STravelTime/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIS2STravelTimeReader{formats: a.formats},
@@ -423,9 +463,9 @@ func (a *Client) MetroAPIS2STravelTime(params *MetroAPIS2STravelTimeParams) (*Me
}
/*
-MetroAPIShape 取得指定營運業者之軌道路網實體路線圖資資料s
+ MetroAPIShape 取得指定營運業者之軌道路網實體路線圖資資料s
-取得指定營運業者之軌道路網實體路線圖資資料
+ 取得指定營運業者之軌道路網實體路線圖資資料
*/
func (a *Client) MetroAPIShape(params *MetroAPIShapeParams) (*MetroAPIShapeOK, error) {
// TODO: Validate the params before sending
@@ -438,7 +478,7 @@ func (a *Client) MetroAPIShape(params *MetroAPIShapeParams) (*MetroAPIShapeOK, e
Method: "GET",
PathPattern: "/v2/Rail/Metro/Shape/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIShapeReader{formats: a.formats},
@@ -459,9 +499,9 @@ func (a *Client) MetroAPIShape(params *MetroAPIShapeParams) (*MetroAPIShapeOK, e
}
/*
-MetroAPIStation 取得捷運車站基本資料s
+ MetroAPIStation 取得捷運車站基本資料s
-取得捷運車站基本資料
+ 取得捷運車站基本資料
*/
func (a *Client) MetroAPIStation(params *MetroAPIStationParams) (*MetroAPIStationOK, error) {
// TODO: Validate the params before sending
@@ -474,7 +514,7 @@ func (a *Client) MetroAPIStation(params *MetroAPIStationParams) (*MetroAPIStatio
Method: "GET",
PathPattern: "/v2/Rail/Metro/Station/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationReader{formats: a.formats},
@@ -495,9 +535,9 @@ func (a *Client) MetroAPIStation(params *MetroAPIStationParams) (*MetroAPIStatio
}
/*
-MetroAPIStationExit 取得捷運車站出入口基本資料s
+ MetroAPIStationExit 取得捷運車站出入口基本資料s
-取得捷運車站出入口基本資料
+ 取得捷運車站出入口基本資料
*/
func (a *Client) MetroAPIStationExit(params *MetroAPIStationExitParams) (*MetroAPIStationExitOK, error) {
// TODO: Validate the params before sending
@@ -510,7 +550,7 @@ func (a *Client) MetroAPIStationExit(params *MetroAPIStationExitParams) (*MetroA
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationExit/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationExitReader{formats: a.formats},
@@ -531,9 +571,9 @@ func (a *Client) MetroAPIStationExit(params *MetroAPIStationExitParams) (*MetroA
}
/*
-MetroAPIStationFacility 取得捷運車站設施資料s
+ MetroAPIStationFacility 取得捷運車站設施資料s
-取得捷運車站設施資料
+ 取得捷運車站設施資料
*/
func (a *Client) MetroAPIStationFacility(params *MetroAPIStationFacilityParams) (*MetroAPIStationFacilityOK, error) {
// TODO: Validate the params before sending
@@ -546,7 +586,7 @@ func (a *Client) MetroAPIStationFacility(params *MetroAPIStationFacilityParams)
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationFacility/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationFacilityReader{formats: a.formats},
@@ -567,9 +607,9 @@ func (a *Client) MetroAPIStationFacility(params *MetroAPIStationFacilityParams)
}
/*
-MetroAPIStationOfLine 取得捷運路線車站基本資料s
+ MetroAPIStationOfLine 取得捷運路線車站基本資料s
-取得捷運路線車站基本資料
+ 取得捷運路線車站基本資料
*/
func (a *Client) MetroAPIStationOfLine(params *MetroAPIStationOfLineParams) (*MetroAPIStationOfLineOK, error) {
// TODO: Validate the params before sending
@@ -582,7 +622,7 @@ func (a *Client) MetroAPIStationOfLine(params *MetroAPIStationOfLineParams) (*Me
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationOfLine/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationOfLineReader{formats: a.formats},
@@ -603,9 +643,9 @@ func (a *Client) MetroAPIStationOfLine(params *MetroAPIStationOfLineParams) (*Me
}
/*
-MetroAPIStationOfRoute 取得捷運營運路線車站基本資料s
+ MetroAPIStationOfRoute 取得捷運營運路線車站基本資料s
-取得捷運營運路線車站基本資料
+ 取得捷運營運路線車站基本資料
*/
func (a *Client) MetroAPIStationOfRoute(params *MetroAPIStationOfRouteParams) (*MetroAPIStationOfRouteOK, error) {
// TODO: Validate the params before sending
@@ -618,7 +658,7 @@ func (a *Client) MetroAPIStationOfRoute(params *MetroAPIStationOfRouteParams) (*
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationOfRoute/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationOfRouteReader{formats: a.formats},
@@ -639,9 +679,9 @@ func (a *Client) MetroAPIStationOfRoute(params *MetroAPIStationOfRouteParams) (*
}
/*
-MetroAPIStationTimeTable 取得捷運站別時刻表資料s
+ MetroAPIStationTimeTable 取得捷運站別時刻表資料s
-取得捷運站別時刻表資料
+ 取得捷運站別時刻表資料
## 使用注意事項
臺北捷運目前無提供文湖線站別時刻表,建議您可使用[取得捷運路線發車班距頻率資料]取得文湖線列車相關資訊。
@@ -657,7 +697,7 @@ func (a *Client) MetroAPIStationTimeTable(params *MetroAPIStationTimeTableParams
Method: "GET",
PathPattern: "/v2/Rail/Metro/StationTimeTable/{Operator}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &MetroAPIStationTimeTableReader{formats: a.formats},
diff --git a/rail/v2/client/rail_basic/rail_api_operator_parameters.go b/rail/v2/client/rail_basic/rail_api_operator_parameters.go
index 6c4829b7..43834a10 100644
--- a/rail/v2/client/rail_basic/rail_api_operator_parameters.go
+++ b/rail/v2/client/rail_basic/rail_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewRailAPIOperatorParams creates a new RailAPIOperatorParams object
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 ab3733ca..bf433861 100644
--- a/rail/v2/client/rail_basic/rail_api_operator_responses.go
+++ b/rail/v2/client/rail_basic/rail_api_operator_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// RailAPIOperatorReader is a Reader for the RailAPIOperator structure.
diff --git a/rail/v2/client/rail_basic/rail_basic_client.go b/rail/v2/client/rail_basic/rail_basic_client.go
index 58bc6b25..e66c7d5f 100644
--- a/rail/v2/client/rail_basic/rail_basic_client.go
+++ b/rail/v2/client/rail_basic/rail_basic_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new rail basic API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,8 +25,15 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ RailAPIOperator(params *RailAPIOperatorParams) (*RailAPIOperatorOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-RailAPIOperator rail Api operator API
+ RailAPIOperator rail Api operator API
*/
func (a *Client) RailAPIOperator(params *RailAPIOperatorParams) (*RailAPIOperatorOK, error) {
// TODO: Validate the params before sending
@@ -40,7 +46,7 @@ func (a *Client) RailAPIOperator(params *RailAPIOperatorParams) (*RailAPIOperato
Method: "GET",
PathPattern: "/v2/Rail/Operator",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &RailAPIOperatorReader{formats: a.formats},
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_parameters.go
index d021c1b9..435c7bb9 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_alert_info_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIAlertInfoParams creates a new THSRAPIAlertInfoParams object
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 e53aed31..d9c1a66d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIAlertInfoReader is a Reader for the THSRAPIAlertInfo structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list1_parameters.go
new file mode 100644
index 00000000..421fb897
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list1_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"
+)
+
+// NewTHSRAPIAvailableSeatStatusList1Params creates a new THSRAPIAvailableSeatStatusList1Params object
+// with the default values initialized.
+func NewTHSRAPIAvailableSeatStatusList1Params() *THSRAPIAvailableSeatStatusList1Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatusList1Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatusList1ParamsWithTimeout creates a new THSRAPIAvailableSeatStatusList1Params object
+// with the default values initialized, and the ability to set a timeout on a request
+func NewTHSRAPIAvailableSeatStatusList1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusList1Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatusList1Params{
+ DollarTop: &dollarTopDefault,
+
+ timeout: timeout,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatusList1ParamsWithContext creates a new THSRAPIAvailableSeatStatusList1Params object
+// with the default values initialized, and the ability to set a context for a request
+func NewTHSRAPIAvailableSeatStatusList1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusList1Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatusList1Params{
+ DollarTop: &dollarTopDefault,
+
+ Context: ctx,
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatusList1ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusList1Params object
+// with the default values initialized, and the ability to set a custom HTTPClient for a request
+func NewTHSRAPIAvailableSeatStatusList1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusList1Params {
+ var (
+ dollarTopDefault = int64(30)
+ )
+ return &THSRAPIAvailableSeatStatusList1Params{
+ DollarTop: &dollarTopDefault,
+ HTTPClient: client,
+ }
+}
+
+/*THSRAPIAvailableSeatStatusList1Params contains all the parameters to send to the API endpoint
+for the t h s r Api available seat status list 1 operation typically these are written to a http.Request
+*/
+type THSRAPIAvailableSeatStatusList1Params struct {
+
+ /*DollarCount
+ 查詢數量
+
+ */
+ DollarCount *string
+ /*DollarFilter
+ 過濾
+
+ */
+ DollarFilter *string
+ /*DollarFormat
+ 指定來源格式
+
+ */
+ DollarFormat string
+ /*DollarOrderby
+ 排序
+
+ */
+ DollarOrderby *string
+ /*DollarSelect
+ 挑選
+
+ */
+ DollarSelect *string
+ /*DollarSkip
+ 跳過前幾筆
+
+ */
+ DollarSkip *string
+ /*DollarTop
+ 取前幾筆
+
+ */
+ DollarTop *int64
+ /*StationID
+ 起點車站代碼
+
+ */
+ StationID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithTimeout adds the timeout to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithDollarCount adds the dollarCount to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarCount(dollarCount)
+ return o
+}
+
+// SetDollarCount adds the dollarCount to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarCount(dollarCount *string) {
+ o.DollarCount = dollarCount
+}
+
+// WithDollarFilter adds the dollarFilter to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarFilter(dollarFilter)
+ return o
+}
+
+// SetDollarFilter adds the dollarFilter to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarFilter(dollarFilter *string) {
+ o.DollarFilter = dollarFilter
+}
+
+// WithDollarFormat adds the dollarFormat to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarFormat(dollarFormat)
+ return o
+}
+
+// SetDollarFormat adds the dollarFormat to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarFormat(dollarFormat string) {
+ o.DollarFormat = dollarFormat
+}
+
+// WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarOrderby(dollarOrderby)
+ return o
+}
+
+// SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarOrderby(dollarOrderby *string) {
+ o.DollarOrderby = dollarOrderby
+}
+
+// WithDollarSelect adds the dollarSelect to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarSelect(dollarSelect)
+ return o
+}
+
+// SetDollarSelect adds the dollarSelect to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarSelect(dollarSelect *string) {
+ o.DollarSelect = dollarSelect
+}
+
+// WithDollarSkip adds the dollarSkip to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarSkip(dollarSkip)
+ return o
+}
+
+// SetDollarSkip adds the dollarSkip to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarSkip(dollarSkip *string) {
+ o.DollarSkip = dollarSkip
+}
+
+// WithDollarTop adds the dollarTop to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetDollarTop(dollarTop)
+ return o
+}
+
+// SetDollarTop adds the dollarTop to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetDollarTop(dollarTop *int64) {
+ o.DollarTop = dollarTop
+}
+
+// WithStationID adds the stationID to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) WithStationID(stationID string) *THSRAPIAvailableSeatStatusList1Params {
+ o.SetStationID(stationID)
+ return o
+}
+
+// SetStationID adds the stationId to the t h s r Api available seat status list 1 params
+func (o *THSRAPIAvailableSeatStatusList1Params) SetStationID(stationID string) {
+ o.StationID = stationID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *THSRAPIAvailableSeatStatusList1Params) 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 string
+ if o.DollarCount != nil {
+ qrDollarCount = *o.DollarCount
+ }
+ qDollarCount := 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 StationID
+ if err := r.SetPathParam("StationID", o.StationID); 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_status_list1_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list1_responses.go
new file mode 100644
index 00000000..6af96bef
--- /dev/null
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list1_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"
+)
+
+// THSRAPIAvailableSeatStatusList1Reader is a Reader for the THSRAPIAvailableSeatStatusList1 structure.
+type THSRAPIAvailableSeatStatusList1Reader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *THSRAPIAvailableSeatStatusList1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewTHSRAPIAvailableSeatStatusList1OK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+
+ default:
+ return nil, runtime.NewAPIError("unknown error", response, response.Code())
+ }
+}
+
+// NewTHSRAPIAvailableSeatStatusList1OK creates a THSRAPIAvailableSeatStatusList1OK with default headers values
+func NewTHSRAPIAvailableSeatStatusList1OK() *THSRAPIAvailableSeatStatusList1OK {
+ return &THSRAPIAvailableSeatStatusList1OK{}
+}
+
+/*THSRAPIAvailableSeatStatusList1OK handles this case with default header values.
+
+OK
+*/
+type THSRAPIAvailableSeatStatusList1OK struct {
+ Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
+}
+
+func (o *THSRAPIAvailableSeatStatusList1OK) Error() string {
+ return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatusList/{StationID}][%d] tHSRApiAvailableSeatStatusList1OK %+v", 200, o.Payload)
+}
+
+func (o *THSRAPIAvailableSeatStatusList1OK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat {
+ return o.Payload
+}
+
+func (o *THSRAPIAvailableSeatStatusList1OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat)
+
+ // 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_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_parameters.go
index 1cd21907..34e1cc58 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIAvailableSeatStatusListParams creates a new THSRAPIAvailableSeatStatusListParams object
@@ -74,6 +73,11 @@ for the t h s r Api available seat status list operation typically these are wri
*/
type THSRAPIAvailableSeatStatusListParams struct {
+ /*DollarCount
+ 查詢數量
+
+ */
+ DollarCount *string
/*DollarFilter
過濾
@@ -104,11 +108,6 @@ type THSRAPIAvailableSeatStatusListParams struct {
*/
DollarTop *int64
- /*StationID
- 起點車站代碼
-
- */
- StationID string
timeout time.Duration
Context context.Context
@@ -148,6 +147,17 @@ func (o *THSRAPIAvailableSeatStatusListParams) SetHTTPClient(client *http.Client
o.HTTPClient = client
}
+// WithDollarCount adds the dollarCount to the t h s r Api available seat status list params
+func (o *THSRAPIAvailableSeatStatusListParams) WithDollarCount(dollarCount *string) *THSRAPIAvailableSeatStatusListParams {
+ o.SetDollarCount(dollarCount)
+ return o
+}
+
+// SetDollarCount adds the dollarCount to the t h s r Api available seat status list params
+func (o *THSRAPIAvailableSeatStatusListParams) SetDollarCount(dollarCount *string) {
+ o.DollarCount = dollarCount
+}
+
// WithDollarFilter adds the dollarFilter to the t h s r Api available seat status list params
func (o *THSRAPIAvailableSeatStatusListParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusListParams {
o.SetDollarFilter(dollarFilter)
@@ -214,17 +224,6 @@ func (o *THSRAPIAvailableSeatStatusListParams) SetDollarTop(dollarTop *int64) {
o.DollarTop = dollarTop
}
-// WithStationID adds the stationID to the t h s r Api available seat status list params
-func (o *THSRAPIAvailableSeatStatusListParams) WithStationID(stationID string) *THSRAPIAvailableSeatStatusListParams {
- o.SetStationID(stationID)
- return o
-}
-
-// SetStationID adds the stationId to the t h s r Api available seat status list params
-func (o *THSRAPIAvailableSeatStatusListParams) SetStationID(stationID string) {
- o.StationID = stationID
-}
-
// WriteToRequest writes these params to a swagger request
func (o *THSRAPIAvailableSeatStatusListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
@@ -233,6 +232,22 @@ func (o *THSRAPIAvailableSeatStatusListParams) WriteToRequest(r runtime.ClientRe
}
var res []error
+ if o.DollarCount != nil {
+
+ // query param $count
+ var qrDollarCount string
+ if o.DollarCount != nil {
+ qrDollarCount = *o.DollarCount
+ }
+ qDollarCount := qrDollarCount
+ if qDollarCount != "" {
+ if err := r.SetQueryParam("$count", qDollarCount); err != nil {
+ return err
+ }
+ }
+
+ }
+
if o.DollarFilter != nil {
// query param $filter
@@ -322,11 +337,6 @@ func (o *THSRAPIAvailableSeatStatusListParams) WriteToRequest(r runtime.ClientRe
}
- // path param StationID
- if err := r.SetPathParam("StationID", o.StationID); err != nil {
- return err
- }
-
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_responses.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_responses.go
index 84fe6a83..e6eb19a5 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_responses.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_available_seat_status_list_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIAvailableSeatStatusListReader is a Reader for the THSRAPIAvailableSeatStatusList structure.
@@ -46,21 +45,23 @@ func NewTHSRAPIAvailableSeatStatusListOK() *THSRAPIAvailableSeatStatusListOK {
OK
*/
type THSRAPIAvailableSeatStatusListOK struct {
- Payload []*models.ServiceDTOVersion2RailTHSRAvailableSeatStatusList
+ Payload *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
}
func (o *THSRAPIAvailableSeatStatusListOK) Error() string {
- return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatusList/{StationID}][%d] tHSRApiAvailableSeatStatusListOK %+v", 200, o.Payload)
+ return fmt.Sprintf("[GET /v2/Rail/THSR/AvailableSeatStatusList][%d] tHSRApiAvailableSeatStatusListOK %+v", 200, o.Payload)
}
-func (o *THSRAPIAvailableSeatStatusListOK) GetPayload() []*models.ServiceDTOVersion2RailTHSRAvailableSeatStatusList {
+func (o *THSRAPIAvailableSeatStatusListOK) GetPayload() *models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat {
return o.Payload
}
func (o *THSRAPIAvailableSeatStatusListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+ o.Payload = new(models.MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat)
+
// response payload
- if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
return err
}
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_parameters.go
index eff1dcc3..ecdfcb40 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTimetable1Params creates a new THSRAPIDailyTimetable1Params object
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 2512cce6..9cf0968b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTimetable1Reader is a Reader for the THSRAPIDailyTimetable1 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_parameters.go
index 92a091d3..4e3391b4 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable2_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTimetable2Params creates a new THSRAPIDailyTimetable2Params object
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 23e68b42..2b820b84 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTimetable2Reader is a Reader for the THSRAPIDailyTimetable2 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_parameters.go
index 8e15d0c7..f4f51c31 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable3_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTimetable3Params creates a new THSRAPIDailyTimetable3Params object
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 5c486491..16ddc359 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTimetable3Reader is a Reader for the THSRAPIDailyTimetable3 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_parameters.go
index 78e2c3d4..98a2f61e 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTimetableParams creates a new THSRAPIDailyTimetableParams object
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 6941c94e..67ee229d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTimetableReader is a Reader for the THSRAPIDailyTimetable structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_parameters.go
index bc2aa2fa..ccd44ef0 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTrainInfo1Params creates a new THSRAPIDailyTrainInfo1Params object
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 4a74f1f3..0d202b3e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTrainInfo1Reader is a Reader for the THSRAPIDailyTrainInfo1 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_parameters.go
index 537372ae..b6686803 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info2_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTrainInfo2Params creates a new THSRAPIDailyTrainInfo2Params object
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 2bcab31d..13b89aba 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTrainInfo2Reader is a Reader for the THSRAPIDailyTrainInfo2 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_parameters.go
index 4428828d..daa13d41 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info3_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTrainInfo3Params creates a new THSRAPIDailyTrainInfo3Params object
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 86ef56aa..57bf811e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTrainInfo3Reader is a Reader for the THSRAPIDailyTrainInfo3 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_parameters.go
index c4806943..af09ce34 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_daily_train_info_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIDailyTrainInfoParams creates a new THSRAPIDailyTrainInfoParams object
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 2223cfe1..5ea86009 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIDailyTrainInfoReader is a Reader for the THSRAPIDailyTrainInfo structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_parameters.go
index ea6df2a3..e1981521 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIGeneralTimetable1Params creates a new THSRAPIGeneralTimetable1Params object
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 3f614f27..97c919ba 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIGeneralTimetable1Reader is a Reader for the THSRAPIGeneralTimetable1 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_parameters.go
index 7e0ead45..0ca594a2 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_general_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIGeneralTimetableParams creates a new THSRAPIGeneralTimetableParams object
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 3acbe95e..b52ca5fc 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIGeneralTimetableReader is a Reader for the THSRAPIGeneralTimetable structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_news_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_news_parameters.go
index baf01e84..1e5f8795 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_news_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPINewsParams creates a new THSRAPINewsParams object
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 aa38d221..9df74654 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPINewsReader is a Reader for the THSRAPINews structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_parameters.go
index 97dc6979..4d57c320 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_daily_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIODDailyTimetableParams creates a new THSRAPIODDailyTimetableParams object
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 567bbabf..ca4f129b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIODDailyTimetableReader is a Reader for the THSRAPIODDailyTimetable structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_parameters.go
index 262ea297..2129abc5 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIODFare1Params creates a new THSRAPIODFare1Params object
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 4ce06565..09757524 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIODFare1Reader is a Reader for the THSRAPIODFare1 structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_parameters.go
index a32d08a8..b163f322 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_o_d_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIODFareParams creates a new THSRAPIODFareParams object
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 8d6fdaa2..ec00fa43 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIODFareReader is a Reader for the THSRAPIODFare structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_parameters.go
index 26513a93..06796bbe 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIShapeParams creates a new THSRAPIShapeParams object
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 f260db25..eba5209f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIShapeReader is a Reader for the THSRAPIShape structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_parameters.go
index c869aacf..9793357a 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_exit_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIStationExitParams creates a new THSRAPIStationExitParams object
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 84bcf172..a13e47cc 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIStationExitReader is a Reader for the THSRAPIStationExit structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go
index 2c0c3beb..0bd44428 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIStationParams creates a new THSRAPIStationParams object
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 522e5cc6..21132236 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIStationReader is a Reader for the THSRAPIStation structure.
diff --git a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_parameters.go b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_parameters.go
index 8a4a54c1..a006d5b5 100644
--- a/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_parameters.go
+++ b/rail/v2/client/t_h_s_r/t_h_s_r_api_station_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTHSRAPIStationTimetableParams creates a new THSRAPIStationTimetableParams object
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 0aab1188..9e412424 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// THSRAPIStationTimetableReader is a Reader for the THSRAPIStationTimetable structure.
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 f6bc5791..b5e2433e 100644
--- a/rail/v2/client/t_h_s_r/thsr_client.go
+++ b/rail/v2/client/t_h_s_r/thsr_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new t h s r API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,57 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlertInfoOK, error)
+
+ THSRAPIAvailableSeatStatusList(params *THSRAPIAvailableSeatStatusListParams) (*THSRAPIAvailableSeatStatusListOK, error)
+
+ THSRAPIAvailableSeatStatusList1(params *THSRAPIAvailableSeatStatusList1Params) (*THSRAPIAvailableSeatStatusList1OK, error)
+
+ THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*THSRAPIDailyTimetableOK, error)
+
+ THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*THSRAPIDailyTimetable1OK, error)
+
+ THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params) (*THSRAPIDailyTimetable2OK, error)
+
+ THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params) (*THSRAPIDailyTimetable3OK, error)
+
+ THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams) (*THSRAPIDailyTrainInfoOK, error)
+
+ THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params) (*THSRAPIDailyTrainInfo1OK, error)
+
+ THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params) (*THSRAPIDailyTrainInfo2OK, error)
+
+ THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params) (*THSRAPIDailyTrainInfo3OK, error)
+
+ THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams) (*THSRAPIGeneralTimetableOK, error)
+
+ THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params) (*THSRAPIGeneralTimetable1OK, error)
+
+ THSRAPINews(params *THSRAPINewsParams) (*THSRAPINewsOK, error)
+
+ THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams) (*THSRAPIODDailyTimetableOK, error)
+
+ THSRAPIODFare(params *THSRAPIODFareParams) (*THSRAPIODFareOK, error)
+
+ THSRAPIODFare1(params *THSRAPIODFare1Params) (*THSRAPIODFare1OK, error)
+
+ THSRAPIShape(params *THSRAPIShapeParams) (*THSRAPIShapeOK, error)
+
+ THSRAPIStation(params *THSRAPIStationParams) (*THSRAPIStationOK, error)
+
+ THSRAPIStationExit(params *THSRAPIStationExitParams) (*THSRAPIStationExitOK, error)
+
+ THSRAPIStationTimetable(params *THSRAPIStationTimetableParams) (*THSRAPIStationTimetableOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-THSRAPIAlertInfo 取得即時通阻事件資料s
+ THSRAPIAlertInfo 取得即時通阻事件資料s
-取得即時通阻事件資料
+ 取得即時通阻事件資料
*/
func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlertInfoOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +88,7 @@ func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlert
Method: "GET",
PathPattern: "/v2/Rail/THSR/AlertInfo",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIAlertInfoReader{formats: a.formats},
@@ -63,9 +109,9 @@ func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams) (*THSRAPIAlert
}
/*
-THSRAPIAvailableSeatStatusList 取得動態指定s 車站 的對號座剩餘座位資訊看板資料
+ THSRAPIAvailableSeatStatusList 取得動態對號座剩餘座位資訊看板資料s
-取得動態指定[車站]的對號座剩餘座位資訊看板資料
+ 取得動態對號座剩餘座位資訊看板資料
*/
func (a *Client) THSRAPIAvailableSeatStatusList(params *THSRAPIAvailableSeatStatusListParams) (*THSRAPIAvailableSeatStatusListOK, error) {
// TODO: Validate the params before sending
@@ -76,9 +122,9 @@ func (a *Client) THSRAPIAvailableSeatStatusList(params *THSRAPIAvailableSeatStat
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "THSRApi_AvailableSeatStatusList",
Method: "GET",
- PathPattern: "/v2/Rail/THSR/AvailableSeatStatusList/{StationID}",
+ PathPattern: "/v2/Rail/THSR/AvailableSeatStatusList",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIAvailableSeatStatusListReader{formats: a.formats},
@@ -99,9 +145,45 @@ func (a *Client) THSRAPIAvailableSeatStatusList(params *THSRAPIAvailableSeatStat
}
/*
-THSRAPIDailyTimetable 取得當天所有車次的時刻表資料s
+ THSRAPIAvailableSeatStatusList1 取得動態指定s 車站 的對號座剩餘座位資訊看板資料
+
+ 取得動態指定[車站]的對號座剩餘座位資訊看板資料
+*/
+func (a *Client) THSRAPIAvailableSeatStatusList1(params *THSRAPIAvailableSeatStatusList1Params) (*THSRAPIAvailableSeatStatusList1OK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewTHSRAPIAvailableSeatStatusList1Params()
+ }
+
+ result, err := a.transport.Submit(&runtime.ClientOperation{
+ ID: "THSRApi_AvailableSeatStatusList_1",
+ Method: "GET",
+ PathPattern: "/v2/Rail/THSR/AvailableSeatStatusList/{StationID}",
+ ProducesMediaTypes: []string{"application/json", "text/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"https"},
+ Params: params,
+ Reader: &THSRAPIAvailableSeatStatusList1Reader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ })
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*THSRAPIAvailableSeatStatusList1OK)
+ 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_AvailableSeatStatusList_1: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ THSRAPIDailyTimetable 取得當天所有車次的時刻表資料s
-取得當天所有車次的時刻表資料
+ 取得當天所有車次的時刻表資料
*/
func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*THSRAPIDailyTimetableOK, error) {
// TODO: Validate the params before sending
@@ -114,7 +196,7 @@ func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*TH
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTimetableReader{formats: a.formats},
@@ -135,9 +217,9 @@ func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams) (*TH
}
/*
-THSRAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料
+ THSRAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料
-取得當天指定[車次]的時刻表資料
+ 取得當天指定[車次]的時刻表資料
*/
func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*THSRAPIDailyTimetable1OK, error) {
// TODO: Validate the params before sending
@@ -150,7 +232,7 @@ func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Today/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTimetable1Reader{formats: a.formats},
@@ -171,9 +253,9 @@ func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params) (*
}
/*
-THSRAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料
+ THSRAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料
-取得指定[日期]所有車次的時刻表資料(高鐵提供近28天每日時刻表)
+ 取得指定[日期]所有車次的時刻表資料(高鐵提供近28天每日時刻表)
*/
func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params) (*THSRAPIDailyTimetable2OK, error) {
// TODO: Validate the params before sending
@@ -186,7 +268,7 @@ func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTimetable2Reader{formats: a.formats},
@@ -207,9 +289,9 @@ func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params) (*
}
/*
-THSRAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料
+ THSRAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料
-取得指定[日期],[車次]的時刻表資料(高鐵提供近28天每日時刻表)
+ 取得指定[日期],[車次]的時刻表資料(高鐵提供近28天每日時刻表)
*/
func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params) (*THSRAPIDailyTimetable3OK, error) {
// TODO: Validate the params before sending
@@ -222,7 +304,7 @@ func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTimetable3Reader{formats: a.formats},
@@ -243,9 +325,9 @@ func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params) (*
}
/*
-THSRAPIDailyTrainInfo 取得當天所有車次的車次資料s
+ THSRAPIDailyTrainInfo 取得當天所有車次的車次資料s
-取得當天所有車次的車次資料
+ 取得當天所有車次的車次資料
*/
func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams) (*THSRAPIDailyTrainInfoOK, error) {
// TODO: Validate the params before sending
@@ -258,7 +340,7 @@ func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams) (*TH
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTrainInfoReader{formats: a.formats},
@@ -279,9 +361,9 @@ func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams) (*TH
}
/*
-THSRAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料
+ THSRAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料
-取得當天指定[車次]的車次資料
+ 取得當天指定[車次]的車次資料
*/
func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params) (*THSRAPIDailyTrainInfo1OK, error) {
// TODO: Validate the params before sending
@@ -294,7 +376,7 @@ func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/Today/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTrainInfo1Reader{formats: a.formats},
@@ -315,9 +397,9 @@ func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params) (*
}
/*
-THSRAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料
+ THSRAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料
-取得指定[日期]所有車次的車次資料(高鐵提供近28天每日時刻表)
+ 取得指定[日期]所有車次的車次資料(高鐵提供近28天每日時刻表)
*/
func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params) (*THSRAPIDailyTrainInfo2OK, error) {
// TODO: Validate the params before sending
@@ -330,7 +412,7 @@ func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTrainInfo2Reader{formats: a.formats},
@@ -351,9 +433,9 @@ func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params) (*
}
/*
-THSRAPIDailyTrainInfo3 取得指定s 日期 車次 的車次資料
+ THSRAPIDailyTrainInfo3 取得指定s 日期 車次 的車次資料
-取得指定[日期],[車次]的車次資料(高鐵提供近28天每日時刻表)
+ 取得指定[日期],[車次]的車次資料(高鐵提供近28天每日時刻表)
*/
func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params) (*THSRAPIDailyTrainInfo3OK, error) {
// TODO: Validate the params before sending
@@ -366,7 +448,7 @@ func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params) (*
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIDailyTrainInfo3Reader{formats: a.formats},
@@ -387,9 +469,9 @@ func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params) (*
}
/*
-THSRAPIGeneralTimetable 取得所有車次的定期時刻表資料s
+ THSRAPIGeneralTimetable 取得所有車次的定期時刻表資料s
-取得所有車次的定期時刻表資料
+ 取得所有車次的定期時刻表資料
*/
func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams) (*THSRAPIGeneralTimetableOK, error) {
// TODO: Validate the params before sending
@@ -402,7 +484,7 @@ func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams)
Method: "GET",
PathPattern: "/v2/Rail/THSR/GeneralTimetable",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIGeneralTimetableReader{formats: a.formats},
@@ -423,9 +505,9 @@ func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams)
}
/*
-THSRAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料
+ THSRAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料
-取得指定[車次]的定期時刻表資料
+ 取得指定[車次]的定期時刻表資料
*/
func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params) (*THSRAPIGeneralTimetable1OK, error) {
// TODO: Validate the params before sending
@@ -438,7 +520,7 @@ func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params
Method: "GET",
PathPattern: "/v2/Rail/THSR/GeneralTimetable/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIGeneralTimetable1Reader{formats: a.formats},
@@ -459,9 +541,9 @@ func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params
}
/*
-THSRAPINews 取得高鐵最新消息資料s
+ THSRAPINews 取得高鐵最新消息資料s
-取得高鐵最新消息資料
+ 取得高鐵最新消息資料
*/
func (a *Client) THSRAPINews(params *THSRAPINewsParams) (*THSRAPINewsOK, error) {
// TODO: Validate the params before sending
@@ -474,7 +556,7 @@ func (a *Client) THSRAPINews(params *THSRAPINewsParams) (*THSRAPINewsOK, error)
Method: "GET",
PathPattern: "/v2/Rail/THSR/News",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPINewsReader{formats: a.formats},
@@ -495,9 +577,9 @@ func (a *Client) THSRAPINews(params *THSRAPINewsParams) (*THSRAPINewsOK, error)
}
/*
-THSRAPIODDailyTimetable 取得指定s 日期 起迄站間 之時刻表資料
+ THSRAPIODDailyTimetable 取得指定s 日期 起迄站間 之時刻表資料
-取得指定[日期],[起迄站間]之時刻表資料
+ 取得指定[日期],[起迄站間]之時刻表資料
*/
func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams) (*THSRAPIODDailyTimetableOK, error) {
// TODO: Validate the params before sending
@@ -510,7 +592,7 @@ func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams)
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIODDailyTimetableReader{formats: a.formats},
@@ -531,9 +613,9 @@ func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams)
}
/*
-THSRAPIODFare 取得票價資料s
+ THSRAPIODFare 取得票價資料s
-取得票價資料
+ 取得票價資料
*/
func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams) (*THSRAPIODFareOK, error) {
// TODO: Validate the params before sending
@@ -546,7 +628,7 @@ func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams) (*THSRAPIODFareOK, e
Method: "GET",
PathPattern: "/v2/Rail/THSR/ODFare",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIODFareReader{formats: a.formats},
@@ -567,9 +649,9 @@ func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams) (*THSRAPIODFareOK, e
}
/*
-THSRAPIODFare1 取得指定s 起訖站間 之票價資料
+ THSRAPIODFare1 取得指定s 起訖站間 之票價資料
-取得指定[起訖站間]之票價資料
+ 取得指定[起訖站間]之票價資料
*/
func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params) (*THSRAPIODFare1OK, error) {
// TODO: Validate the params before sending
@@ -582,7 +664,7 @@ func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params) (*THSRAPIODFare1OK
Method: "GET",
PathPattern: "/v2/Rail/THSR/ODFare/{OriginStationID}/to/{DestinationStationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIODFare1Reader{formats: a.formats},
@@ -603,9 +685,9 @@ func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params) (*THSRAPIODFare1OK
}
/*
-THSRAPIShape 取得軌道路網實體路線圖資資料s
+ THSRAPIShape 取得軌道路網實體路線圖資資料s
-取得軌道路網實體路線圖資資料
+ 取得軌道路網實體路線圖資資料
*/
func (a *Client) THSRAPIShape(params *THSRAPIShapeParams) (*THSRAPIShapeOK, error) {
// TODO: Validate the params before sending
@@ -618,7 +700,7 @@ func (a *Client) THSRAPIShape(params *THSRAPIShapeParams) (*THSRAPIShapeOK, erro
Method: "GET",
PathPattern: "/v2/Rail/THSR/Shape",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIShapeReader{formats: a.formats},
@@ -639,9 +721,9 @@ func (a *Client) THSRAPIShape(params *THSRAPIShapeParams) (*THSRAPIShapeOK, erro
}
/*
-THSRAPIStation 取得車站基本資料s
+ THSRAPIStation 取得車站基本資料s
-取得車站基本資料
+ 取得車站基本資料
*/
func (a *Client) THSRAPIStation(params *THSRAPIStationParams) (*THSRAPIStationOK, error) {
// TODO: Validate the params before sending
@@ -654,7 +736,7 @@ func (a *Client) THSRAPIStation(params *THSRAPIStationParams) (*THSRAPIStationOK
Method: "GET",
PathPattern: "/v2/Rail/THSR/Station",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIStationReader{formats: a.formats},
@@ -675,9 +757,9 @@ func (a *Client) THSRAPIStation(params *THSRAPIStationParams) (*THSRAPIStationOK
}
/*
-THSRAPIStationExit 取得車站出入口基本資料s
+ THSRAPIStationExit 取得車站出入口基本資料s
-取得車站出入口基本資料
+ 取得車站出入口基本資料
*/
func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams) (*THSRAPIStationExitOK, error) {
// TODO: Validate the params before sending
@@ -690,7 +772,7 @@ func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams) (*THSRAPIS
Method: "GET",
PathPattern: "/v2/Rail/THSR/StationExit",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIStationExitReader{formats: a.formats},
@@ -711,9 +793,9 @@ func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams) (*THSRAPIS
}
/*
-THSRAPIStationTimetable 取得指定s 日期 車站 的站別時刻表資料
+ THSRAPIStationTimetable 取得指定s 日期 車站 的站別時刻表資料
-取得指定[日期],[車站]的站別時刻表資料
+ 取得指定[日期],[車站]的站別時刻表資料
*/
func (a *Client) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams) (*THSRAPIStationTimetableOK, error) {
// TODO: Validate the params before sending
@@ -726,7 +808,7 @@ func (a *Client) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams)
Method: "GET",
PathPattern: "/v2/Rail/THSR/DailyTimetable/Station/{StationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &THSRAPIStationTimetableReader{formats: a.formats},
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_parameters.go
index 1589935e..b1efb5f3 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTimetable1Params creates a new TRAAPIDailyTimetable1Params object
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 1bae5d20..3663e422 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTimetable1Reader is a Reader for the TRAAPIDailyTimetable1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_parameters.go
index d378fc66..5851625a 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable2_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTimetable2Params creates a new TRAAPIDailyTimetable2Params object
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 746a4c4b..edd4b462 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTimetable2Reader is a Reader for the TRAAPIDailyTimetable2 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_parameters.go
index 7c0d919f..daddf027 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable3_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTimetable3Params creates a new TRAAPIDailyTimetable3Params object
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 99a7ae80..03df37af 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTimetable3Reader is a Reader for the TRAAPIDailyTimetable3 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_parameters.go
index 7b7fc7e0..34367555 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTimetableParams creates a new TRAAPIDailyTimetableParams object
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 08b96f84..0a036503 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTimetableReader is a Reader for the TRAAPIDailyTimetable structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_parameters.go
index ccd5527c..0db8f79e 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTrainInfo1Params creates a new TRAAPIDailyTrainInfo1Params object
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 b77697b6..75c002b5 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTrainInfo1Reader is a Reader for the TRAAPIDailyTrainInfo1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_parameters.go
index 8df3d23f..edaf101c 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info2_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTrainInfo2Params creates a new TRAAPIDailyTrainInfo2Params object
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 e62e806b..f139b680 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTrainInfo2Reader is a Reader for the TRAAPIDailyTrainInfo2 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_parameters.go
index 8bf2a4aa..317729d0 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info3_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTrainInfo3Params creates a new TRAAPIDailyTrainInfo3Params object
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 cd480824..68d665cd 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTrainInfo3Reader is a Reader for the TRAAPIDailyTrainInfo3 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_parameters.go
index 72bff6f3..4f30e5e0 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_daily_train_info_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIDailyTrainInfoParams creates a new TRAAPIDailyTrainInfoParams object
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 2dc4921c..187f324d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIDailyTrainInfoReader is a Reader for the TRAAPIDailyTrainInfo structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_parameters.go
index e2b36e61..b48c83d4 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_timetable1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIGeneralTimetable1Params creates a new TRAAPIGeneralTimetable1Params object
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 f82a0cfc..ad6b5aeb 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIGeneralTimetable1Reader is a Reader for the TRAAPIGeneralTimetable1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_timetable_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_general_timetable_parameters.go
index d4b4d59f..1379cab1 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_timetable_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIGeneralTimetableParams creates a new TRAAPIGeneralTimetableParams object
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 1c2894ce..93faf1cc 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIGeneralTimetableReader is a Reader for the TRAAPIGeneralTimetable structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_parameters.go
index 62cd16de..d663b7e1 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_train_info1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIGeneralTrainInfo1Params creates a new TRAAPIGeneralTrainInfo1Params object
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 f10e2a1d..7055f1b6 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIGeneralTrainInfo1Reader is a Reader for the TRAAPIGeneralTrainInfo1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_general_train_info_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_general_train_info_parameters.go
index afdb31b9..6fb24cc0 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_general_train_info_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_general_train_info_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIGeneralTrainInfoParams creates a new TRAAPIGeneralTrainInfoParams object
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 b7d7908a..48f90c07 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIGeneralTrainInfoReader is a Reader for the TRAAPIGeneralTrainInfo structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_line_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_line_parameters.go
index cb8850b5..e93bea9c 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_line_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_line_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPILineParams creates a new TRAAPILineParams object
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 a5509261..5564bf44 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPILineReader is a Reader for the TRAAPILine structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_board1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_live_board1_parameters.go
index 5c9b79f0..40fd6b88 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_board1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_board1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPILiveBoard1Params creates a new TRAAPILiveBoard1Params object
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 321d285a..4a39c2da 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPILiveBoard1Reader is a Reader for the TRAAPILiveBoard1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_board_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_live_board_parameters.go
index 01f4e0d1..28ea4d0e 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_board_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_board_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPILiveBoardParams creates a new TRAAPILiveBoardParams object
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 9801a38f..9f1d005d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPILiveBoardReader is a Reader for the TRAAPILiveBoard structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_parameters.go
index 874105c5..007bfcbb 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_live_train_delay_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPILiveTrainDelayParams creates a new TRAAPILiveTrainDelayParams object
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 04d4fc46..07300a5c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPILiveTrainDelayReader is a Reader for the TRAAPILiveTrainDelay structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_network_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_network_parameters.go
index 41eedf0e..754303c6 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_network_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_network_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPINetworkParams creates a new TRAAPINetworkParams object
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 e9e3675e..4a083ec6 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPINetworkReader is a Reader for the TRAAPINetwork structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_parameters.go
index 09dc2722..2f383185 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_daily_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIODDailyTimetableParams creates a new TRAAPIODDailyTimetableParams object
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 e6fc657a..b72b5f0d 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIODDailyTimetableReader is a Reader for the TRAAPIODDailyTimetable structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_parameters.go
index 10025b41..9d57c5cf 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIODFareStation1Params creates a new TRAAPIODFareStation1Params object
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 658b7ecc..18512b98 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIODFareStation1Reader is a Reader for the TRAAPIODFareStation1 structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_parameters.go
index 1de0d95c..3377542d 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_o_d_fare_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIODFareStationParams creates a new TRAAPIODFareStationParams object
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 3956e41c..58ab4752 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIODFareStationReader is a Reader for the TRAAPIODFareStation structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_shape_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_shape_parameters.go
index 90b24669..8979c4ee 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_shape_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIShapeParams creates a new TRAAPIShapeParams object
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 598bd4a3..c71e6ea9 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIShapeReader is a Reader for the TRAAPIShape structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_of_line_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_station_of_line_parameters.go
index e412066a..d7085500 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_of_line_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_of_line_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIStationOfLineParams creates a new TRAAPIStationOfLineParams object
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 287f07a2..ceeaeb52 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIStationOfLineReader is a Reader for the TRAAPIStationOfLine structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go
index 6ecb1ceb..9a988ea8 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIStationParams creates a new TRAAPIStationParams object
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 9ac5bb8c..a697d918 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIStationReader is a Reader for the TRAAPIStation structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_station_timetable_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_station_timetable_parameters.go
index d90f1eed..a428291b 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_station_timetable_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_station_timetable_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPIStationTimetableParams creates a new TRAAPIStationTimetableParams object
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 538d84a7..9455a501 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPIStationTimetableReader is a Reader for the TRAAPIStationTimetable structure.
diff --git a/rail/v2/client/t_r_a/t_r_a_api_train_type_parameters.go b/rail/v2/client/t_r_a/t_r_a_api_train_type_parameters.go
index eed0b06c..07a18648 100644
--- a/rail/v2/client/t_r_a/t_r_a_api_train_type_parameters.go
+++ b/rail/v2/client/t_r_a/t_r_a_api_train_type_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTRAAPITrainTypeParams creates a new TRAAPITrainTypeParams object
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 af3914ca..e7f93ffc 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v2/models"
+ "github.com/minchao/go-ptx/rail/v2/models"
)
// TRAAPITrainTypeReader is a Reader for the TRAAPITrainType structure.
diff --git a/rail/v2/client/t_r_a/tra_client.go b/rail/v2/client/t_r_a/tra_client.go
index 77c32db6..096782f2 100644
--- a/rail/v2/client/t_r_a/tra_client.go
+++ b/rail/v2/client/t_r_a/tra_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new t r a API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,65 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ TRAAPIDailyTimetable(params *TRAAPIDailyTimetableParams) (*TRAAPIDailyTimetableOK, error)
+
+ TRAAPIDailyTimetable1(params *TRAAPIDailyTimetable1Params) (*TRAAPIDailyTimetable1OK, error)
+
+ TRAAPIDailyTimetable2(params *TRAAPIDailyTimetable2Params) (*TRAAPIDailyTimetable2OK, error)
+
+ TRAAPIDailyTimetable3(params *TRAAPIDailyTimetable3Params) (*TRAAPIDailyTimetable3OK, error)
+
+ TRAAPIDailyTrainInfo(params *TRAAPIDailyTrainInfoParams) (*TRAAPIDailyTrainInfoOK, error)
+
+ TRAAPIDailyTrainInfo1(params *TRAAPIDailyTrainInfo1Params) (*TRAAPIDailyTrainInfo1OK, error)
+
+ TRAAPIDailyTrainInfo2(params *TRAAPIDailyTrainInfo2Params) (*TRAAPIDailyTrainInfo2OK, error)
+
+ TRAAPIDailyTrainInfo3(params *TRAAPIDailyTrainInfo3Params) (*TRAAPIDailyTrainInfo3OK, error)
+
+ TRAAPIGeneralTimetable(params *TRAAPIGeneralTimetableParams) (*TRAAPIGeneralTimetableOK, error)
+
+ TRAAPIGeneralTimetable1(params *TRAAPIGeneralTimetable1Params) (*TRAAPIGeneralTimetable1OK, error)
+
+ TRAAPIGeneralTrainInfo(params *TRAAPIGeneralTrainInfoParams) (*TRAAPIGeneralTrainInfoOK, error)
+
+ TRAAPIGeneralTrainInfo1(params *TRAAPIGeneralTrainInfo1Params) (*TRAAPIGeneralTrainInfo1OK, error)
+
+ TRAAPILine(params *TRAAPILineParams) (*TRAAPILineOK, error)
+
+ TRAAPILiveBoard(params *TRAAPILiveBoardParams) (*TRAAPILiveBoardOK, error)
+
+ TRAAPILiveBoard1(params *TRAAPILiveBoard1Params) (*TRAAPILiveBoard1OK, error)
+
+ TRAAPILiveTrainDelay(params *TRAAPILiveTrainDelayParams) (*TRAAPILiveTrainDelayOK, error)
+
+ TRAAPINetwork(params *TRAAPINetworkParams) (*TRAAPINetworkOK, error)
+
+ TRAAPIODDailyTimetable(params *TRAAPIODDailyTimetableParams) (*TRAAPIODDailyTimetableOK, error)
+
+ TRAAPIODFareStation(params *TRAAPIODFareStationParams) (*TRAAPIODFareStationOK, error)
+
+ TRAAPIODFareStation1(params *TRAAPIODFareStation1Params) (*TRAAPIODFareStation1OK, error)
+
+ TRAAPIShape(params *TRAAPIShapeParams) (*TRAAPIShapeOK, error)
+
+ TRAAPIStation(params *TRAAPIStationParams) (*TRAAPIStationOK, error)
+
+ TRAAPIStationOfLine(params *TRAAPIStationOfLineParams) (*TRAAPIStationOfLineOK, error)
+
+ TRAAPIStationTimetable(params *TRAAPIStationTimetableParams) (*TRAAPIStationTimetableOK, error)
+
+ TRAAPITrainType(params *TRAAPITrainTypeParams) (*TRAAPITrainTypeOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-TRAAPIDailyTimetable 取得當天所有車次的時刻表資料s
+ TRAAPIDailyTimetable 取得當天所有車次的時刻表資料s
-取得當天所有車次的時刻表資料
+ 取得當天所有車次的時刻表資料
*/
func (a *Client) TRAAPIDailyTimetable(params *TRAAPIDailyTimetableParams) (*TRAAPIDailyTimetableOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +96,7 @@ func (a *Client) TRAAPIDailyTimetable(params *TRAAPIDailyTimetableParams) (*TRAA
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTimetableReader{formats: a.formats},
@@ -63,9 +117,9 @@ func (a *Client) TRAAPIDailyTimetable(params *TRAAPIDailyTimetableParams) (*TRAA
}
/*
-TRAAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料
+ TRAAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料
-取得當天指定[車次]的時刻表資料
+ 取得當天指定[車次]的時刻表資料
*/
func (a *Client) TRAAPIDailyTimetable1(params *TRAAPIDailyTimetable1Params) (*TRAAPIDailyTimetable1OK, error) {
// TODO: Validate the params before sending
@@ -78,7 +132,7 @@ func (a *Client) TRAAPIDailyTimetable1(params *TRAAPIDailyTimetable1Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Today/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTimetable1Reader{formats: a.formats},
@@ -99,9 +153,9 @@ func (a *Client) TRAAPIDailyTimetable1(params *TRAAPIDailyTimetable1Params) (*TR
}
/*
-TRAAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料
+ TRAAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料
-取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)
+ 取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)
*/
func (a *Client) TRAAPIDailyTimetable2(params *TRAAPIDailyTimetable2Params) (*TRAAPIDailyTimetable2OK, error) {
// TODO: Validate the params before sending
@@ -114,7 +168,7 @@ func (a *Client) TRAAPIDailyTimetable2(params *TRAAPIDailyTimetable2Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTimetable2Reader{formats: a.formats},
@@ -135,9 +189,9 @@ func (a *Client) TRAAPIDailyTimetable2(params *TRAAPIDailyTimetable2Params) (*TR
}
/*
-TRAAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料
+ TRAAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料
-取得指定[日期],[車次]的時刻表資料(台鐵提供近60天每日時刻表)
+ 取得指定[日期],[車次]的時刻表資料(台鐵提供近60天每日時刻表)
*/
func (a *Client) TRAAPIDailyTimetable3(params *TRAAPIDailyTimetable3Params) (*TRAAPIDailyTimetable3OK, error) {
// TODO: Validate the params before sending
@@ -150,7 +204,7 @@ func (a *Client) TRAAPIDailyTimetable3(params *TRAAPIDailyTimetable3Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTimetable3Reader{formats: a.formats},
@@ -171,9 +225,9 @@ func (a *Client) TRAAPIDailyTimetable3(params *TRAAPIDailyTimetable3Params) (*TR
}
/*
-TRAAPIDailyTrainInfo 取得當天所有車次的車次資料s
+ TRAAPIDailyTrainInfo 取得當天所有車次的車次資料s
-取得當天所有車次的車次資料
+ 取得當天所有車次的車次資料
*/
func (a *Client) TRAAPIDailyTrainInfo(params *TRAAPIDailyTrainInfoParams) (*TRAAPIDailyTrainInfoOK, error) {
// TODO: Validate the params before sending
@@ -186,7 +240,7 @@ func (a *Client) TRAAPIDailyTrainInfo(params *TRAAPIDailyTrainInfoParams) (*TRAA
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTrainInfoReader{formats: a.formats},
@@ -207,9 +261,9 @@ func (a *Client) TRAAPIDailyTrainInfo(params *TRAAPIDailyTrainInfoParams) (*TRAA
}
/*
-TRAAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料
+ TRAAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料
-取得當天指定[車次]的車次資料
+ 取得當天指定[車次]的車次資料
*/
func (a *Client) TRAAPIDailyTrainInfo1(params *TRAAPIDailyTrainInfo1Params) (*TRAAPIDailyTrainInfo1OK, error) {
// TODO: Validate the params before sending
@@ -222,7 +276,7 @@ func (a *Client) TRAAPIDailyTrainInfo1(params *TRAAPIDailyTrainInfo1Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/Today/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTrainInfo1Reader{formats: a.formats},
@@ -243,9 +297,9 @@ func (a *Client) TRAAPIDailyTrainInfo1(params *TRAAPIDailyTrainInfo1Params) (*TR
}
/*
-TRAAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料
+ TRAAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料
-取得指定[日期]所有車次的車次資料(台鐵提供近60天每日時刻表)
+ 取得指定[日期]所有車次的車次資料(台鐵提供近60天每日時刻表)
*/
func (a *Client) TRAAPIDailyTrainInfo2(params *TRAAPIDailyTrainInfo2Params) (*TRAAPIDailyTrainInfo2OK, error) {
// TODO: Validate the params before sending
@@ -258,7 +312,7 @@ func (a *Client) TRAAPIDailyTrainInfo2(params *TRAAPIDailyTrainInfo2Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTrainInfo2Reader{formats: a.formats},
@@ -279,9 +333,9 @@ func (a *Client) TRAAPIDailyTrainInfo2(params *TRAAPIDailyTrainInfo2Params) (*TR
}
/*
-TRAAPIDailyTrainInfo3 取得指定s 日期 與 車次 的車次資料
+ TRAAPIDailyTrainInfo3 取得指定s 日期 與 車次 的車次資料
-取得指定[日期]與[車次]的車次資料(台鐵提供近60天每日時刻表)
+ 取得指定[日期]與[車次]的車次資料(台鐵提供近60天每日時刻表)
*/
func (a *Client) TRAAPIDailyTrainInfo3(params *TRAAPIDailyTrainInfo3Params) (*TRAAPIDailyTrainInfo3OK, error) {
// TODO: Validate the params before sending
@@ -294,7 +348,7 @@ func (a *Client) TRAAPIDailyTrainInfo3(params *TRAAPIDailyTrainInfo3Params) (*TR
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTrainInfo/TrainNo/{TrainNo}/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIDailyTrainInfo3Reader{formats: a.formats},
@@ -315,9 +369,9 @@ func (a *Client) TRAAPIDailyTrainInfo3(params *TRAAPIDailyTrainInfo3Params) (*TR
}
/*
-TRAAPIGeneralTimetable 取得所有車次的定期時刻表資料s
+ TRAAPIGeneralTimetable 取得所有車次的定期時刻表資料s
-取得所有車次的定期時刻表資料
+ 取得所有車次的定期時刻表資料
*/
func (a *Client) TRAAPIGeneralTimetable(params *TRAAPIGeneralTimetableParams) (*TRAAPIGeneralTimetableOK, error) {
// TODO: Validate the params before sending
@@ -330,7 +384,7 @@ func (a *Client) TRAAPIGeneralTimetable(params *TRAAPIGeneralTimetableParams) (*
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTimetable",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIGeneralTimetableReader{formats: a.formats},
@@ -351,9 +405,9 @@ func (a *Client) TRAAPIGeneralTimetable(params *TRAAPIGeneralTimetableParams) (*
}
/*
-TRAAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料
+ TRAAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料
-取得指定[車次]的定期時刻表資料
+ 取得指定[車次]的定期時刻表資料
*/
func (a *Client) TRAAPIGeneralTimetable1(params *TRAAPIGeneralTimetable1Params) (*TRAAPIGeneralTimetable1OK, error) {
// TODO: Validate the params before sending
@@ -366,7 +420,7 @@ func (a *Client) TRAAPIGeneralTimetable1(params *TRAAPIGeneralTimetable1Params)
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTimetable/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIGeneralTimetable1Reader{formats: a.formats},
@@ -387,9 +441,9 @@ func (a *Client) TRAAPIGeneralTimetable1(params *TRAAPIGeneralTimetable1Params)
}
/*
-TRAAPIGeneralTrainInfo 取得所有車次的定期車次資料s
+ TRAAPIGeneralTrainInfo 取得所有車次的定期車次資料s
-取得所有車次的定期車次資料
+ 取得所有車次的定期車次資料
*/
func (a *Client) TRAAPIGeneralTrainInfo(params *TRAAPIGeneralTrainInfoParams) (*TRAAPIGeneralTrainInfoOK, error) {
// TODO: Validate the params before sending
@@ -402,7 +456,7 @@ func (a *Client) TRAAPIGeneralTrainInfo(params *TRAAPIGeneralTrainInfoParams) (*
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTrainInfo",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIGeneralTrainInfoReader{formats: a.formats},
@@ -423,9 +477,9 @@ func (a *Client) TRAAPIGeneralTrainInfo(params *TRAAPIGeneralTrainInfoParams) (*
}
/*
-TRAAPIGeneralTrainInfo1 取得指定s 車次 的定期車次資料
+ TRAAPIGeneralTrainInfo1 取得指定s 車次 的定期車次資料
-取得指定[車次]的定期車次資料
+ 取得指定[車次]的定期車次資料
*/
func (a *Client) TRAAPIGeneralTrainInfo1(params *TRAAPIGeneralTrainInfo1Params) (*TRAAPIGeneralTrainInfo1OK, error) {
// TODO: Validate the params before sending
@@ -438,7 +492,7 @@ func (a *Client) TRAAPIGeneralTrainInfo1(params *TRAAPIGeneralTrainInfo1Params)
Method: "GET",
PathPattern: "/v2/Rail/TRA/GeneralTrainInfo/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIGeneralTrainInfo1Reader{formats: a.formats},
@@ -459,9 +513,9 @@ func (a *Client) TRAAPIGeneralTrainInfo1(params *TRAAPIGeneralTrainInfo1Params)
}
/*
-TRAAPILine 取得路線基本資料s
+ TRAAPILine 取得路線基本資料s
-取得路線基本資料
+ 取得路線基本資料
*/
func (a *Client) TRAAPILine(params *TRAAPILineParams) (*TRAAPILineOK, error) {
// TODO: Validate the params before sending
@@ -474,7 +528,7 @@ func (a *Client) TRAAPILine(params *TRAAPILineParams) (*TRAAPILineOK, error) {
Method: "GET",
PathPattern: "/v2/Rail/TRA/Line",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPILineReader{formats: a.formats},
@@ -495,9 +549,9 @@ func (a *Client) TRAAPILine(params *TRAAPILineParams) (*TRAAPILineOK, error) {
}
/*
-TRAAPILiveBoard 取得車站別列車即時到離站電子看板s 動態前後30分鐘的車次
+ TRAAPILiveBoard 取得車站別列車即時到離站電子看板s 動態前後30分鐘的車次
-取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊
+ 取得車站別列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊
*/
func (a *Client) TRAAPILiveBoard(params *TRAAPILiveBoardParams) (*TRAAPILiveBoardOK, error) {
// TODO: Validate the params before sending
@@ -510,7 +564,7 @@ func (a *Client) TRAAPILiveBoard(params *TRAAPILiveBoardParams) (*TRAAPILiveBoar
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveBoard",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPILiveBoardReader{formats: a.formats},
@@ -531,9 +585,9 @@ func (a *Client) TRAAPILiveBoard(params *TRAAPILiveBoardParams) (*TRAAPILiveBoar
}
/*
-TRAAPILiveBoard1 取得指定s 車站 列車即時到離站電子看板 動態前後30分鐘的車次
+ TRAAPILiveBoard1 取得指定s 車站 列車即時到離站電子看板 動態前後30分鐘的車次
-取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊
+ 取得指定[車站]列車即時到離站電子看板(動態前後30分鐘的車次)。更新頻率:2分鐘。此資料已過濾離站車次資訊
*/
func (a *Client) TRAAPILiveBoard1(params *TRAAPILiveBoard1Params) (*TRAAPILiveBoard1OK, error) {
// TODO: Validate the params before sending
@@ -546,7 +600,7 @@ func (a *Client) TRAAPILiveBoard1(params *TRAAPILiveBoard1Params) (*TRAAPILiveBo
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveBoard/Station/{StationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPILiveBoard1Reader{formats: a.formats},
@@ -567,9 +621,9 @@ func (a *Client) TRAAPILiveBoard1(params *TRAAPILiveBoard1Params) (*TRAAPILiveBo
}
/*
-TRAAPILiveTrainDelay 取得列車即時準點s 延誤時間資料
+ TRAAPILiveTrainDelay 取得列車即時準點s 延誤時間資料
-取得列車即時準點/延誤時間資料。更新頻率:2分鐘
+ 取得列車即時準點/延誤時間資料。更新頻率:2分鐘
*/
func (a *Client) TRAAPILiveTrainDelay(params *TRAAPILiveTrainDelayParams) (*TRAAPILiveTrainDelayOK, error) {
// TODO: Validate the params before sending
@@ -582,7 +636,7 @@ func (a *Client) TRAAPILiveTrainDelay(params *TRAAPILiveTrainDelayParams) (*TRAA
Method: "GET",
PathPattern: "/v2/Rail/TRA/LiveTrainDelay",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPILiveTrainDelayReader{formats: a.formats},
@@ -603,9 +657,9 @@ func (a *Client) TRAAPILiveTrainDelay(params *TRAAPILiveTrainDelayParams) (*TRAA
}
/*
-TRAAPINetwork 取得臺鐵路網資料s
+ TRAAPINetwork 取得臺鐵路網資料s
-取得臺鐵路網資料
+ 取得臺鐵路網資料
*/
func (a *Client) TRAAPINetwork(params *TRAAPINetworkParams) (*TRAAPINetworkOK, error) {
// TODO: Validate the params before sending
@@ -618,7 +672,7 @@ func (a *Client) TRAAPINetwork(params *TRAAPINetworkParams) (*TRAAPINetworkOK, e
Method: "GET",
PathPattern: "/v2/Rail/TRA/Network",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPINetworkReader{formats: a.formats},
@@ -639,9 +693,9 @@ func (a *Client) TRAAPINetwork(params *TRAAPINetworkParams) (*TRAAPINetworkOK, e
}
/*
-TRAAPIODDailyTimetable 取得指定s 日期 起迄站間 之站間時刻表資料
+ TRAAPIODDailyTimetable 取得指定s 日期 起迄站間 之站間時刻表資料
-取得指定[日期],[起迄站間]之站間時刻表資料
+ 取得指定[日期],[起迄站間]之站間時刻表資料
*/
func (a *Client) TRAAPIODDailyTimetable(params *TRAAPIODDailyTimetableParams) (*TRAAPIODDailyTimetableOK, error) {
// TODO: Validate the params before sending
@@ -654,7 +708,7 @@ func (a *Client) TRAAPIODDailyTimetable(params *TRAAPIODDailyTimetableParams) (*
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIODDailyTimetableReader{formats: a.formats},
@@ -675,9 +729,9 @@ func (a *Client) TRAAPIODDailyTimetable(params *TRAAPIODDailyTimetableParams) (*
}
/*
-TRAAPIODFareStation 取得指定s 起訖站間 之票價資料
+ TRAAPIODFareStation 取得指定s 起訖站間 之票價資料
-取得指定[起訖站間]之票價資料
+ 取得指定[起訖站間]之票價資料
*/
func (a *Client) TRAAPIODFareStation(params *TRAAPIODFareStationParams) (*TRAAPIODFareStationOK, error) {
// TODO: Validate the params before sending
@@ -690,7 +744,7 @@ func (a *Client) TRAAPIODFareStation(params *TRAAPIODFareStationParams) (*TRAAPI
Method: "GET",
PathPattern: "/v2/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIODFareStationReader{formats: a.formats},
@@ -711,9 +765,9 @@ func (a *Client) TRAAPIODFareStation(params *TRAAPIODFareStationParams) (*TRAAPI
}
/*
-TRAAPIODFareStation1 取得票價資料s
+ TRAAPIODFareStation1 取得票價資料s
-取得票價資料
+ 取得票價資料
*/
func (a *Client) TRAAPIODFareStation1(params *TRAAPIODFareStation1Params) (*TRAAPIODFareStation1OK, error) {
// TODO: Validate the params before sending
@@ -726,7 +780,7 @@ func (a *Client) TRAAPIODFareStation1(params *TRAAPIODFareStation1Params) (*TRAA
Method: "GET",
PathPattern: "/v2/Rail/TRA/ODFare",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIODFareStation1Reader{formats: a.formats},
@@ -747,9 +801,9 @@ func (a *Client) TRAAPIODFareStation1(params *TRAAPIODFareStation1Params) (*TRAA
}
/*
-TRAAPIShape 取得軌道路網實體路線圖資資料s
+ TRAAPIShape 取得軌道路網實體路線圖資資料s
-取得軌道路網實體路線圖資資料
+ 取得軌道路網實體路線圖資資料
*/
func (a *Client) TRAAPIShape(params *TRAAPIShapeParams) (*TRAAPIShapeOK, error) {
// TODO: Validate the params before sending
@@ -762,7 +816,7 @@ func (a *Client) TRAAPIShape(params *TRAAPIShapeParams) (*TRAAPIShapeOK, error)
Method: "GET",
PathPattern: "/v2/Rail/TRA/Shape",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIShapeReader{formats: a.formats},
@@ -783,9 +837,9 @@ func (a *Client) TRAAPIShape(params *TRAAPIShapeParams) (*TRAAPIShapeOK, error)
}
/*
-TRAAPIStation 取得車站基本資料s
+ TRAAPIStation 取得車站基本資料s
-取得車站基本資料
+ 取得車站基本資料
*/
func (a *Client) TRAAPIStation(params *TRAAPIStationParams) (*TRAAPIStationOK, error) {
// TODO: Validate the params before sending
@@ -798,7 +852,7 @@ func (a *Client) TRAAPIStation(params *TRAAPIStationParams) (*TRAAPIStationOK, e
Method: "GET",
PathPattern: "/v2/Rail/TRA/Station",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIStationReader{formats: a.formats},
@@ -819,9 +873,9 @@ func (a *Client) TRAAPIStation(params *TRAAPIStationParams) (*TRAAPIStationOK, e
}
/*
-TRAAPIStationOfLine 取得路線車站基本資料s
+ TRAAPIStationOfLine 取得路線車站基本資料s
-取得路線車站基本資料
+ 取得路線車站基本資料
*/
func (a *Client) TRAAPIStationOfLine(params *TRAAPIStationOfLineParams) (*TRAAPIStationOfLineOK, error) {
// TODO: Validate the params before sending
@@ -834,7 +888,7 @@ func (a *Client) TRAAPIStationOfLine(params *TRAAPIStationOfLineParams) (*TRAAPI
Method: "GET",
PathPattern: "/v2/Rail/TRA/StationOfLine",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIStationOfLineReader{formats: a.formats},
@@ -855,9 +909,9 @@ func (a *Client) TRAAPIStationOfLine(params *TRAAPIStationOfLineParams) (*TRAAPI
}
/*
-TRAAPIStationTimetable 取得指定s 日期 車站 的站別時刻表資料
+ TRAAPIStationTimetable 取得指定s 日期 車站 的站別時刻表資料
-取得指定[日期],[車站]的站別時刻表資料
+ 取得指定[日期],[車站]的站別時刻表資料
*/
func (a *Client) TRAAPIStationTimetable(params *TRAAPIStationTimetableParams) (*TRAAPIStationTimetableOK, error) {
// TODO: Validate the params before sending
@@ -870,7 +924,7 @@ func (a *Client) TRAAPIStationTimetable(params *TRAAPIStationTimetableParams) (*
Method: "GET",
PathPattern: "/v2/Rail/TRA/DailyTimetable/Station/{StationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPIStationTimetableReader{formats: a.formats},
@@ -891,9 +945,9 @@ func (a *Client) TRAAPIStationTimetable(params *TRAAPIStationTimetableParams) (*
}
/*
-TRAAPITrainType 取得所有列車車種資料s
+ TRAAPITrainType 取得所有列車車種資料s
-取得所有列車車種資料
+ 取得所有列車車種資料
*/
func (a *Client) TRAAPITrainType(params *TRAAPITrainTypeParams) (*TRAAPITrainTypeOK, error) {
// TODO: Validate the params before sending
@@ -906,7 +960,7 @@ func (a *Client) TRAAPITrainType(params *TRAAPITrainTypeParams) (*TRAAPITrainTyp
Method: "GET",
PathPattern: "/v2/Rail/TRA/TrainType",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TRAAPITrainTypeReader{formats: a.formats},
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/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
index 6f403457..9b9750be 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert MRTAlertList
+//
// swagger:model MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert]
type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListA
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListA
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertL
return nil
}
+func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTAlertListAlert) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 92ee7bae..f6737687 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews MRTNewsList
+//
// swagger:model MOTC.API.Rail.Models.MRTRealTimeWrapper[Service.DTO.Version2.Rail.Metro.MRTNewsList.News]
type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNe
// Required: true
Newses []*ServiceDTOVersion2RailMetroMRTNewsListNews `json:"Newses"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNe
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsLi
return nil
}
+func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsMRTRealTimeWrapperServiceDTOVersion2RailMetroMRTNewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat_status_list.go b/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
similarity index 56%
rename from rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat_status_list.go
rename to 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
index 2840d23a..8f67e13a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat_status_list.go
+++ b/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
@@ -8,49 +8,45 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
-// ServiceDTOVersion2RailTHSRAvailableSeatStatusList AvailableSeatStatusList
+// MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat V2THSRAvaliableSeatStatusWrapper[AvailableSeat]
//
-// 高鐵對號座位狀態看板資料
-// swagger:model Service.DTO.Version2.Rail.THSR.AvailableSeatStatusList
-type ServiceDTOVersion2RailTHSRAvailableSeatStatusList struct {
+// swagger:model MOTC.API.Rail.Models.V2THSRAvaliableSeatStatusWrapper[Service.DTO.Version2.Rail.THSR.AvailableSeat]
+type MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat struct {
// 對號座位狀態資訊(依高鐵規定若營運狀態有異常狀況時,剩餘座位資訊將停留在最後正常運行時間之狀態不做更新,實際資料請參考高鐵各車站現場對號座剩餘座位資訊看板)
// Required: true
AvailableSeats []*ServiceDTOVersion2RailTHSRAvailableSeat `json:"AvailableSeats"`
+ // 資料總筆數
+ Count int64 `json:"Count,omitempty"`
+
// DateTime
//
// 更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- // Required: true
- UpdateTime *string `json:"UpdateTime"`
+ UpdateTime string `json:"UpdateTime,omitempty"`
}
-// Validate validates this service d t o version2 rail t h s r available seat status list
-func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) Validate(formats strfmt.Registry) error {
+// 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 {
var res []error
if err := m.validateAvailableSeats(formats); err != nil {
res = append(res, err)
}
- if err := m.validateUpdateTime(formats); err != nil {
- res = append(res, err)
- }
-
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) validateAvailableSeats(formats strfmt.Registry) error {
+func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) validateAvailableSeats(formats strfmt.Registry) error {
if err := validate.Required("AvailableSeats", "body", m.AvailableSeats); err != nil {
return err
@@ -75,17 +71,8 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) validateAvailableSea
return nil
}
-func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) validateUpdateTime(formats strfmt.Registry) error {
-
- if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
- return err
- }
-
- return nil
-}
-
// MarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) MarshalBinary() ([]byte, error) {
+func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
@@ -93,8 +80,8 @@ func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) MarshalBinary() ([]b
}
// UnmarshalBinary interface implementation
-func (m *ServiceDTOVersion2RailTHSRAvailableSeatStatusList) UnmarshalBinary(b []byte) error {
- var res ServiceDTOVersion2RailTHSRAvailableSeatStatusList
+func (m *MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat) UnmarshalBinary(b []byte) error {
+ var res MOTCAPIRailModelsV2THSRAvaliableSeatStatusWrapperServiceDTOVersion2RailTHSRAvailableSeat
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/service_d_t_o_version2_base_fare.go
index a0a6385d..e6280810 100644
--- a/rail/v2/models/service_d_t_o_version2_base_fare.go
+++ b/rail/v2/models/service_d_t_o_version2_base_fare.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseFare Fare
//
// 票價資料型別
+//
// swagger:model Service.DTO.Version2.Base.Fare
type ServiceDTOVersion2BaseFare struct {
diff --git a/rail/v2/models/service_d_t_o_version2_base_name_type.go b/rail/v2/models/service_d_t_o_version2_base_name_type.go
index 0687ebed..56abdf5a 100644
--- a/rail/v2/models/service_d_t_o_version2_base_name_type.go
+++ b/rail/v2/models/service_d_t_o_version2_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
diff --git a/rail/v2/models/service_d_t_o_version2_base_operator.go b/rail/v2/models/service_d_t_o_version2_base_operator.go
index dc5c9a1e..910f2faa 100644
--- a/rail/v2/models/service_d_t_o_version2_base_operator.go
+++ b/rail/v2/models/service_d_t_o_version2_base_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,10 +15,11 @@ import (
// ServiceDTOVersion2BaseOperator Operator
//
// 營運業者資料型別
+//
// swagger:model Service.DTO.Version2.Base.Operator
type ServiceDTOVersion2BaseOperator struct {
- // 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
+ // 營運業者業管機關簡碼(對於公路客運/國道客運而言為THB)
// Required: true
AuthorityCode *string `json:"AuthorityCode"`
diff --git a/rail/v2/models/service_d_t_o_version2_base_point_type.go b/rail/v2/models/service_d_t_o_version2_base_point_type.go
index 08616778..171a47ea 100644
--- a/rail/v2/models/service_d_t_o_version2_base_point_type.go
+++ b/rail/v2/models/service_d_t_o_version2_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version2.Base.PointType
type ServiceDTOVersion2BasePointType struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go
index 76717ee6..d55cba68 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_drinking_fountain.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroFacilityDrinkingFountain DrinkingFountain
//
// 飲水機位置資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Facility.DrinkingFountain
type ServiceDTOVersion2RailMetroFacilityDrinkingFountain struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go
index 81ca2870..39360e3c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_elevator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroFacilityElevator Elevator
//
// 無障礙電梯位置資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Facility.Elevator
type ServiceDTOVersion2RailMetroFacilityElevator struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go
index 601b5bad..7a47cb38 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_information_spot.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroFacilityInformationSpot InformationSpot
//
// 詢問處位置資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Facility.InformationSpot
type ServiceDTOVersion2RailMetroFacilityInformationSpot struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go
index baaaeee1..50a8450b 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_facility_toilet.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroFacilityToilet Toilet
//
// 廁所位置資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Facility.Toilet
type ServiceDTOVersion2RailMetroFacilityToilet struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go
index 3f4d6be6..04171815 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_first_last_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroFirstLastTimetable FirstLastTimetable
//
// 首末班車時刻表資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.FirstLastTimetable
type ServiceDTOVersion2RailMetroFirstLastTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go b/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go
index 3e94cff8..2b468b84 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_frequency.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroFrequency Frequency
//
// 路線發車班距頻率資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Frequency
type ServiceDTOVersion2RailMetroFrequency struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_line.go b/rail/v2/models/service_d_t_o_version2_rail_metro_line.go
index 7bbcdb02..a6a047da 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_line.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_line.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroLine Line
//
// 捷運路線資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Line
type ServiceDTOVersion2RailMetroLine struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go b/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go
index e04deae8..fa63bf3f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_line_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroLineTransfer LineTransfer
//
// 捷運路線站間轉乘基本資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.LineTransfer
type ServiceDTOVersion2RailMetroLineTransfer struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go b/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go
index f5ba2c39..9b46c943 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_live_board.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroLiveBoard LiveBoard
//
// 捷運列車到離站動態資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.LiveBoard
type ServiceDTOVersion2RailMetroLiveBoard struct {
@@ -23,13 +23,17 @@ type ServiceDTOVersion2RailMetroLiveBoard struct {
// Required: true
DestinationStaionID *string `json:"DestinationStaionID"`
+ // 目的地車站代號
+ // Required: true
+ DestinationStationID *string `json:"DestinationStationID"`
+
// NameType
//
// 目的地車站名稱
// Required: true
DestinationStationName *ServiceDTOVersion2BaseNameType `json:"DestinationStationName"`
- // 下班車次抵達時間預估(秒)
+ // 下班車次抵達時間預估(分)
// Required: true
EstimateTime *int32 `json:"EstimateTime"`
@@ -81,6 +85,10 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) Validate(formats strfmt.Registry)
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)
}
@@ -132,6 +140,15 @@ func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStaionID(forma
return nil
}
+func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("DestinationStationID", "body", m.DestinationStationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *ServiceDTOVersion2RailMetroLiveBoard) validateDestinationStationName(formats strfmt.Registry) error {
if err := validate.Required("DestinationStationName", "body", m.DestinationStationName); err != nil {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
index 3fbd9905..d8eecb70 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlert Alert
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.Alert
type ServiceDTOVersion2RailMetroMRTAlertListAlert struct {
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/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go
index 555604b0..f562169a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScope AlertScope
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScope
type ServiceDTOVersion2RailMetroMRTAlertListAlertScope struct {
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
index cfe1b165..d1012cd4 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine AlertScopeLine
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLine
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLine struct {
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/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line_section.go
index f7402c67..67106bc6 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/service_d_t_o_version2_rail_metro_m_r_t_alert_list_alert_scope_line_section.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection AlertScopeLineSection
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeLineSection
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeLineSection struct {
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
index b9ddd7ac..c0e44011 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork AlertScopeNetwork
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeNetwork
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeNetwork struct {
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
index 0d16f12e..2fbc2c46 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute AlertScopeRoute
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeRoute
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeRoute struct {
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
index 08c5efe7..17d7b717 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation AlertScopeStation
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeStation
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeStation struct {
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
index 3c324e02..4ce23145 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain AlertScopeTrain
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTAlertList.AlertScopeTrain
type ServiceDTOVersion2RailMetroMRTAlertListAlertScopeTrain struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
index 99698281..196d1501 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_m_r_t_news_list_news.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2RailMetroMRTNewsListNews News
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MRTNewsList.News
type ServiceDTOVersion2RailMetroMRTNewsListNews struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go b/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go
index 875c7d7c..9715899c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_metro_shape.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroMetroShape MetroShape
//
// 捷運線型資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.MetroShape
type ServiceDTOVersion2RailMetroMetroShape struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_network.go b/rail/v2/models/service_d_t_o_version2_rail_metro_network.go
index 94014f58..b4cc03aa 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_network.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_network.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroNetwork Network
//
// 捷運路網資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Network
type ServiceDTOVersion2RailMetroNetwork struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go b/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go
index 0ceb086d..fb6039f3 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_network_sub_class_line.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroNetworkSubClassLine Line
//
// 捷運路網資料-捷運路線資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.NetworkSubClass.Line
type ServiceDTOVersion2RailMetroNetworkSubClassLine struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go b/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go
index 9ba50e87..0e38a1e3 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_o_d_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroODFare ODFare
//
// 起迄站間票價資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.ODFare
type ServiceDTOVersion2RailMetroODFare struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_route.go b/rail/v2/models/service_d_t_o_version2_rail_metro_route.go
index 00fa926c..844702c6 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_route.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_route.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroRoute Route
//
// 營運路線基本資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Route
type ServiceDTOVersion2RailMetroRoute struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go b/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go
index 2328479d..ff5ae6c3 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_s2_s_travel_time.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroS2STravelTime S2STravelTime
//
// 列車站間運行時間基本資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.S2STravelTime
type ServiceDTOVersion2RailMetroS2STravelTime struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station.go
index 00dc1f91..5be46c2d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroStation Station
//
// 捷運車站資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.Station
type ServiceDTOVersion2RailMetroStation struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go
index 1019fa56..7fec0a4d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station_exit.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroStationExit StationExit
//
// 捷運車站出入口基本資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.StationExit
type ServiceDTOVersion2RailMetroStationExit struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go
index f11a6392..8a1119b6 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station_facility.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroStationFacility StationFacility
//
// 捷運車站設施資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.StationFacility
type ServiceDTOVersion2RailMetroStationFacility struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go
index db2891d0..aac11ac8 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_line.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroStationOfLine StationOfLine
//
// 路線車站資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.StationOfLine
type ServiceDTOVersion2RailMetroStationOfLine struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go
index 75ff98e3..fd55c948 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station_of_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroStationOfRoute StationOfRoute
//
// 路線車站資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.StationOfRoute
type ServiceDTOVersion2RailMetroStationOfRoute struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go b/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go
index 3798561e..face6344 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_station_time_table.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailMetroStationTimeTable StationTimeTable
//
// 站別時刻表資料
+//
// swagger:model Service.DTO.Version2.Rail.Metro.StationTimeTable
type ServiceDTOVersion2RailMetroStationTimeTable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go
index 6b073dca..68c2a1a1 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_fare.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,9 +15,13 @@ import (
// ServiceDTOVersion2RailMetroSubClassFare Fare
//
// 票價資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Fare
type ServiceDTOVersion2RailMetroSubClassFare struct {
+ // 市民所屬縣市代碼 (TPE: 臺北市, NWT: 新北市, OTHERS: 其他)
+ CitizenCode string `json:"CitizenCode,omitempty"`
+
// 費率等級(1:成人(Adult), 2:學生(Student), 3:孩童(Child), 4:敬老(Senior), 5:愛心(Disabled), 6:愛心孩童(Disabled Child), 7:愛心優待/愛心陪伴, 8:團體(Group))
// Required: true
FareClass *int32 `json:"FareClass"`
@@ -27,6 +30,9 @@ type ServiceDTOVersion2RailMetroSubClassFare struct {
// Required: true
Price *int32 `json:"Price"`
+ // 販售方式 (1: 現場櫃台販售, 2: 現場機器販售, 3: 線上販售, 99: 其他)
+ SaleType string `json:"SaleType,omitempty"`
+
// 票種(1:一般票(單程票), 2:來回票(悠遊卡/一卡通), 3:電子票証, 4:回數票, 5:定期票(30天期), 6:定期票(60天期))
// Required: true
TicketType *int32 `json:"TicketType"`
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go
index b2248574..0554ef83 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_headway.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassHeadway Headway
//
// 班距頻率資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Headway
type ServiceDTOVersion2RailMetroSubClassHeadway struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go
index 703c6f5a..0097831a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_operation_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassOperationTime OperationTime
//
// 營運時間資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.OperationTime
type ServiceDTOVersion2RailMetroSubClassOperationTime struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go
index 662f33a1..6075882e 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_service_days.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassServiceDays ServiceDays
//
// 服務日型態
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.ServiceDays
type ServiceDTOVersion2RailMetroSubClassServiceDays struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go
index bd5265ad..212179fb 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_special_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassSpecialDay SpecialDay
//
// 特定日期
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.SpecialDay
type ServiceDTOVersion2RailMetroSubClassSpecialDay struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go
index 8316d0ae..da686b9a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassStation Station
//
// 路線車站資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Station
type ServiceDTOVersion2RailMetroSubClassStation struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go
index fb8bef86..9883dc37 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassTimetable Timetable
//
// 車站發車時刻資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.Timetable
type ServiceDTOVersion2RailMetroSubClassTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go
index 6da379b3..7d571d82 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_metro_sub_class_travel_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailMetroSubClassTravelTime TravelTime
//
// 站間運行時間資訊
+//
// swagger:model Service.DTO.Version2.Rail.Metro.SubClass.TravelTime
type ServiceDTOVersion2RailMetroSubClassTravelTime struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go
index 03b7efb5..5944cc0f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_alert_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRAlertInfo AlertInfo
//
// 高鐵即時通阻事件資料
+//
// swagger:model Service.DTO.Version2.Rail.THSR.AlertInfo
type ServiceDTOVersion2RailTHSRAlertInfo struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go
index b8aeb1fa..7dedbe3c 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_available_seat.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTHSRAvailableSeat AvailableSeat
//
// 高鐵對號座位狀態資訊
+//
// swagger:model Service.DTO.Version2.Rail.THSR.AvailableSeat
type ServiceDTOVersion2RailTHSRAvailableSeat struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go
index 6accdabb..9d1434ed 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_general_timetable.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTHSRGeneralTimetable GeneralTimetable
//
// 高鐵定期時刻表資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.GeneralTimetable
type ServiceDTOVersion2RailTHSRGeneralTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go
index 6c86313e..fbe797d9 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_news.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRNews News
//
// 高鐵最新消息
+//
// swagger:model Service.DTO.Version2.Rail.THSR.News
type ServiceDTOVersion2RailTHSRNews struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go
index e47e28e1..9cf70465 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_timetable.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTHSRRailDailyTimetable RailDailyTimetable
//
// 高鐵到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailDailyTimetable
type ServiceDTOVersion2RailTHSRRailDailyTimetable struct {
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/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go
index e8dcea7f..d8e29dd9 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_daily_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailDailyTrainInfo RailDailyTrainInfo
//
// 高鐵車次資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailDailyTrainInfo
type ServiceDTOVersion2RailTHSRRailDailyTrainInfo struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go
index 839464d4..b96b8d05 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailGeneralTimetable RailGeneralTimetable
//
// 高鐵到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailGeneralTimetable
type ServiceDTOVersion2RailTHSRRailGeneralTimetable struct {
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/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go
index 8170f7bb..60df3d59 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_general_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailGeneralTrainInfo RailGeneralTrainInfo
//
// 高鐵車次定期資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailGeneralTrainInfo
type ServiceDTOVersion2RailTHSRRailGeneralTrainInfo struct {
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
index b7f76877..8959e249 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailODDailyTimetable RailODDailyTimetable
//
// 高鐵起訖站間到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailODDailyTimetable
type ServiceDTOVersion2RailTHSRRailODDailyTimetable struct {
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/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go
index 58e9bcb1..a84164bb 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_o_d_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTHSRRailODFare RailODFare
//
// 高鐵起訖站票價資料
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailODFare
type ServiceDTOVersion2RailTHSRRailODFare struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go
index 0546b6d2..d8e1e9a5 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailStation RailStation
//
// 高鐵車站資料
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailStation
type ServiceDTOVersion2RailTHSRRailStation struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go
index 1e3e6572..61a6ecc7 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_station_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailStationTimetable RailStationTimetable
//
// 高鐵車站站別時刻表資料型別
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailStationTimetable
type ServiceDTOVersion2RailTHSRRailStationTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go
index e064d322..fe3f3df2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_rail_stop_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRRailStopTime RailStopTime
//
// 高鐵停靠時間資料
+//
// swagger:model Service.DTO.Version2.Rail.THSR.RailStopTime
type ServiceDTOVersion2RailTHSRRailStopTime struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go
index 3910f3a8..ab9439d2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_service_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRServiceDay ServiceDay
//
// 高鐵服務日型態
+//
// swagger:model Service.DTO.Version2.Rail.THSR.ServiceDay
type ServiceDTOVersion2RailTHSRServiceDay struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go
index 23cb3e31..9cbe58d1 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_station_exit.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRStationExit StationExit
//
// 高鐵車站出入口資料
+//
// swagger:model Service.DTO.Version2.Rail.THSR.StationExit
type ServiceDTOVersion2RailTHSRStationExit struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go
index 4be892d9..9d999c99 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_h_s_r_stop_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRStopStation StopStation
//
// 車次停靠站點組合
+//
// swagger:model Service.DTO.Version2.Rail.THSR.StopStation
type ServiceDTOVersion2RailTHSRStopStation struct {
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/service_d_t_o_version2_rail_t_h_s_r_t_h_s_r_shape.go
index 947ef6a8..76725def 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/service_d_t_o_version2_rail_t_h_s_r_t_h_s_r_shape.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2RailTHSRTHSRShape THSRShape
+//
// swagger:model Service.DTO.Version2.Rail.THSR.THSRShape
type ServiceDTOVersion2RailTHSRTHSRShape struct {
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/service_d_t_o_version2_rail_t_h_s_r_time_info_rail_daily_train_info.go
index 7920964b..fa9f7f13 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/service_d_t_o_version2_rail_t_h_s_r_time_info_rail_daily_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo RailDailyTrainInfo
//
// 高鐵車次資料型別(時刻表用)
+//
// swagger:model Service.DTO.Version2.Rail.THSR.TimeInfo.RailDailyTrainInfo
type ServiceDTOVersion2RailTHSRTimeInfoRailDailyTrainInfo struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go
index 0d40462d..fe2bb66d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_general_timetable.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTRAGeneralTimetable GeneralTimetable
//
// 台鐵定期時刻表資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.GeneralTimetable
type ServiceDTOVersion2RailTRAGeneralTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go
index 1e216f5e..58235b6f 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRALine Line
//
// 路線基本資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.Line
type ServiceDTOVersion2RailTRALine struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go
index 86165095..94ace1f0 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_simple.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRALineSimple Line_Simple
//
// 路線基本資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.Line_Simple
type ServiceDTOVersion2RailTRALineSimple struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go
index d00fe032..762c32d2 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_line_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRALineStation LineStation
//
// 路線車站資訊
+//
// swagger:model Service.DTO.Version2.Rail.TRA.LineStation
type ServiceDTOVersion2RailTRALineStation struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go
index 28ca36eb..162aae29 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_network.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTRANetwork Network
//
// 臺鐵路網資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.Network
type ServiceDTOVersion2RailTRANetwork struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go
index dd5a1e9b..6350338d 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_timetable.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTRARailDailyTimetable RailDailyTimetable
//
// 台鐵到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailDailyTimetable
type ServiceDTOVersion2RailTRARailDailyTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go
index 79dba7c7..db155127 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_daily_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailDailyTrainInfo RailDailyTrainInfo
//
// 臺鐵車次資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailDailyTrainInfo
type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
@@ -39,7 +39,7 @@ type ServiceDTOVersion2RailTRARailDailyTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go
index d6092c22..1d957277 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailGeneralTimetable RailGeneralTimetable
//
// 台鐵到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailGeneralTimetable
type ServiceDTOVersion2RailTRARailGeneralTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go
index 9de2a4a1..68bd9b96 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_general_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailGeneralTrainInfo RailGeneralTrainInfo
//
// 臺鐵車次定期資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailGeneralTrainInfo
type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
@@ -39,7 +39,7 @@ type ServiceDTOVersion2RailTRARailGeneralTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go
index 450a2226..8c31ba78 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_board.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailLiveBoard RailLiveBoard
//
// 台鐵車次動態車次站別即時電子看板資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailLiveBoard
type ServiceDTOVersion2RailTRARailLiveBoard struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go
index 4df9e234..23f8cd69 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_live_train_delay.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailLiveTrainDelay RailLiveTrainDelay
//
// 台鐵列車即時準點/延誤時間資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailLiveTrainDelay
type ServiceDTOVersion2RailTRARailLiveTrainDelay struct {
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
index 4b10e7ee..a0a53faa 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailODDailyTimetable RailODDailyTimetable
//
// 台鐵起訖站間到離站時刻資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailODDailyTimetable
type ServiceDTOVersion2RailTRARailODDailyTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go
index 61242969..369791c8 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_o_d_fare.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTRARailODFare RailODFare
//
// 臺鐵起訖站票價資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailODFare
type ServiceDTOVersion2RailTRARailODFare struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go
index aacb8b00..36b7f300 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailStation RailStation
//
// 台鐵車站資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailStation
type ServiceDTOVersion2RailTRARailStation struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go
index 7a2312d9..5f82a8fe 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_station_timetable.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailStationTimetable RailStationTimetable
//
// 台鐵車站站別時刻表資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailStationTimetable
type ServiceDTOVersion2RailTRARailStationTimetable struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go
index bcf6aa6c..b112ee4a 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_rail_stop_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRARailStopTime RailStopTime
//
// 台鐵停靠時間資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.RailStopTime
type ServiceDTOVersion2RailTRARailStopTime struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go
index dab940ab..bc0c9488 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_service_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRAServiceDay ServiceDay
//
// 台鐵服務日型態
+//
// swagger:model Service.DTO.Version2.Rail.TRA.ServiceDay
type ServiceDTOVersion2RailTRAServiceDay struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go
index b6c0f693..3e2c2e5b 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_station_of_line.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2RailTRAStationOfLine StationOfLine
//
// 路線車站基本資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.StationOfLine
type ServiceDTOVersion2RailTRAStationOfLine struct {
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go
index 021bf509..bca02c05 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_t_r_a_shape.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRATRAShape TRAShape
//
// 臺鐵線型資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.TRAShape
type ServiceDTOVersion2RailTRATRAShape struct {
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/service_d_t_o_version2_rail_t_r_a_time_info_rail_daily_train_info.go
index c2d1c3dd..9ed4e587 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/service_d_t_o_version2_rail_t_r_a_time_info_rail_daily_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo RailDailyTrainInfo
//
// 臺鐵車次資料型別
+//
// swagger:model Service.DTO.Version2.Rail.TRA.TimeInfo.RailDailyTrainInfo
type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
@@ -39,7 +39,7 @@ type ServiceDTOVersion2RailTRATimeInfoRailDailyTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
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
index 845f59cb..944b1048 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo RailGeneralTrainInfo
//
// 臺鐵車次定期資料型別(時刻表用)
+//
// swagger:model Service.DTO.Version2.Rail.TRA.TimeInfo.RailGeneralTrainInfo
type ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo struct {
@@ -39,7 +39,7 @@ type ServiceDTOVersion2RailTRATimeInfoRailGeneralTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
diff --git a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go
index 9ea54d16..8f8fea25 100644
--- a/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go
+++ b/rail/v2/models/service_d_t_o_version2_rail_t_r_a_train_type.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2RailTRATrainType TrainType
//
// 臺鐵列車車種資料
+//
// swagger:model Service.DTO.Version2.Rail.TRA.TrainType
type ServiceDTOVersion2RailTRATrainType struct {
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 88e7f942..db7fff61 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
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/rail/v3/client/t_r_a"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV3)
cli.Transport = transport
-
cli.Tra = t_r_a.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV3 is a client for m o t c transport API v3
type MOTCTransportAPIV3 struct {
- Tra *t_r_a.Client
+ Tra t_r_a.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV3 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV3) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Tra.SetTransport(transport)
-
}
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 5ccec66a..ae9fbeb6 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewAlertAPIControllerGetParams creates a new AlertAPIControllerGetParams object
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 1685e7a9..1a8a7372 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// AlertAPIControllerGetReader is a Reader for the AlertAPIControllerGet structure.
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 2cd7d5fb..f3a0462d 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyStationTimeTableAPIControllerGet1Params creates a new DailyStationTimeTableAPIControllerGet1Params object
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 5d9872b4..f197c3e5 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyStationTimeTableAPIControllerGet1Reader is a Reader for the DailyStationTimeTableAPIControllerGet1 structure.
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 0d854eb1..41c037ed 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyStationTimeTableAPIControllerGet2Params creates a new DailyStationTimeTableAPIControllerGet2Params object
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 52a697b3..e6396dd3 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyStationTimeTableAPIControllerGet2Reader is a Reader for the DailyStationTimeTableAPIControllerGet2 structure.
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 92a5d11c..6cbb4635 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyStationTimeTableAPIControllerGetParams creates a new DailyStationTimeTableAPIControllerGetParams object
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 f2c5a3c1..9b3f5a4b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyStationTimeTableAPIControllerGetReader is a Reader for the DailyStationTimeTableAPIControllerGet structure.
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 601050f6..31744140 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyTrainTimeTableAPIControllerGet1Params creates a new DailyTrainTimeTableAPIControllerGet1Params object
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 40bcbcbe..527533f9 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyTrainTimeTableAPIControllerGet1Reader is a Reader for the DailyTrainTimeTableAPIControllerGet1 structure.
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 883dbbf3..1075a159 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyTrainTimeTableAPIControllerGet2Params creates a new DailyTrainTimeTableAPIControllerGet2Params object
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 089217cd..8044265f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyTrainTimeTableAPIControllerGet2Reader is a Reader for the DailyTrainTimeTableAPIControllerGet2 structure.
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 5bdd6d24..19390cca 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyTrainTimeTableAPIControllerGet3Params creates a new DailyTrainTimeTableAPIControllerGet3Params object
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 3c91cf74..28365146 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyTrainTimeTableAPIControllerGet3Reader is a Reader for the DailyTrainTimeTableAPIControllerGet3 structure.
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 bd6f20ed..2dcc6256 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyTrainTimeTableAPIControllerGet4Params creates a new DailyTrainTimeTableAPIControllerGet4Params object
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 220784fe..e206b573 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyTrainTimeTableAPIControllerGet4Reader is a Reader for the DailyTrainTimeTableAPIControllerGet4 structure.
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 f18467d5..a95ed817 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewDailyTrainTimeTableAPIControllerGetParams creates a new DailyTrainTimeTableAPIControllerGetParams object
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 7337ba69..8efcdce8 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// DailyTrainTimeTableAPIControllerGetReader is a Reader for the DailyTrainTimeTableAPIControllerGet structure.
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 c858c100..559e30d8 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewGeneralStationTimetableAPIControllerGet1Params creates a new GeneralStationTimetableAPIControllerGet1Params object
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 e31c8d11..d820626e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// GeneralStationTimetableAPIControllerGet1Reader is a Reader for the GeneralStationTimetableAPIControllerGet1 structure.
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 538aff60..2c3acf69 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewGeneralStationTimetableAPIControllerGetParams creates a new GeneralStationTimetableAPIControllerGetParams object
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 8cc78506..c99541e1 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// GeneralStationTimetableAPIControllerGetReader is a Reader for the GeneralStationTimetableAPIControllerGet structure.
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 a5ab6fc3..9b2f7600 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewGeneralTrainTimetableAPIControllerGet1Params creates a new GeneralTrainTimetableAPIControllerGet1Params object
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 2b985d17..8f0a9eb7 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// GeneralTrainTimetableAPIControllerGet1Reader is a Reader for the GeneralTrainTimetableAPIControllerGet1 structure.
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 58c2ddf2..460d9705 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewGeneralTrainTimetableAPIControllerGetParams creates a new GeneralTrainTimetableAPIControllerGetParams object
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 dec024ac..4668bc78 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// GeneralTrainTimetableAPIControllerGetReader is a Reader for the GeneralTrainTimetableAPIControllerGet structure.
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 979a5410..2c30849b 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewLineAPIControllerGetParams creates a new LineAPIControllerGetParams object
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 cb51ef6a..b89e7113 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// LineAPIControllerGetReader is a Reader for the LineAPIControllerGet structure.
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 479f9378..8ff42893 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewLineNetworkAPIControllerGetParams creates a new LineNetworkAPIControllerGetParams object
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 4fd9a802..e284941a 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// LineNetworkAPIControllerGetReader is a Reader for the LineNetworkAPIControllerGet structure.
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 d043e266..e0fafa38 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewLineTransferAPIControllerGetParams creates a new LineTransferAPIControllerGetParams object
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 3d7a96f1..bd354980 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// LineTransferAPIControllerGetReader is a Reader for the LineTransferAPIControllerGet structure.
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 a8740309..c0668677 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewNetworkAPIControllerGetParams creates a new NetworkAPIControllerGetParams object
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 eadabce6..5351d69e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// NetworkAPIControllerGetReader is a Reader for the NetworkAPIControllerGet structure.
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 35e8740b..a7f04f03 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewNewsAPIControllerGetParams creates a new NewsAPIControllerGetParams object
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 ae9c03b0..507de9d5 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// NewsAPIControllerGetReader is a Reader for the NewsAPIControllerGet structure.
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 ab13bfaf..a2447868 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewODFareAPIControllerAPIControllerGet1Params creates a new ODFareAPIControllerAPIControllerGet1Params object
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 92f5e9c3..10bdd23b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// ODFareAPIControllerAPIControllerGet1Reader is a Reader for the ODFareAPIControllerAPIControllerGet1 structure.
diff --git a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go
index 602e8063..6bbf1e9e 100644
--- a/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go
+++ b/rail/v3/client/t_r_a/o_d_fare_api_controller_api_controller_get_parameters.go
@@ -13,8 +13,7 @@ import (
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// NewODFareAPIControllerAPIControllerGetParams creates a new ODFareAPIControllerAPIControllerGetParams object
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 45017b46..b9879b8f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// ODFareAPIControllerAPIControllerGetReader is a Reader for the ODFareAPIControllerAPIControllerGet structure.
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 30f6118e..f105c166 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewOperatorAPIControllerGetParams creates a new OperatorAPIControllerGetParams object
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 7fc9fcfa..85688331 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// OperatorAPIControllerGetReader is a Reader for the OperatorAPIControllerGet structure.
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 fcd8d7c2..0ddaf142 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShapeAPIControllerGetParams creates a new ShapeAPIControllerGetParams object
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 e15d3be7..ab735daf 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// ShapeAPIControllerGetReader is a Reader for the ShapeAPIControllerGet structure.
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 80d63268..81947134 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewSpecificTrainTimetableAPIControllerGet1Params creates a new SpecificTrainTimetableAPIControllerGet1Params object
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 8dffd843..96e81751 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// SpecificTrainTimetableAPIControllerGet1Reader is a Reader for the SpecificTrainTimetableAPIControllerGet1 structure.
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 ac2f993a..e0808d17 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewSpecificTrainTimetableAPIControllerGetParams creates a new SpecificTrainTimetableAPIControllerGetParams object
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 9ed71935..97a62b94 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// SpecificTrainTimetableAPIControllerGetReader is a Reader for the SpecificTrainTimetableAPIControllerGet structure.
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 6c4f3e6f..06bd9520 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationAPIControllerGetParams creates a new StationAPIControllerGetParams object
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 6483b597..18bcba5e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationAPIControllerGetReader is a Reader for the StationAPIControllerGet structure.
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 9044e8d1..e9ebb7e7 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationExitAPIControllerGetParams creates a new StationExitAPIControllerGetParams object
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 32aaa588..94cfd12a 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationExitAPIControllerGetReader is a Reader for the StationExitAPIControllerGet structure.
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 2b2c0b19..d234e265 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationFacilityAPIControllerGetParams creates a new StationFacilityAPIControllerGetParams object
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 efb617b2..f8c5a683 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationFacilityAPIControllerGetReader is a Reader for the StationFacilityAPIControllerGet structure.
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 e94adbc4..d917aca0 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationLiveBoardAPIControllerGet1Params creates a new StationLiveBoardAPIControllerGet1Params object
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 f554bffc..668bf297 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationLiveBoardAPIControllerGet1Reader is a Reader for the StationLiveBoardAPIControllerGet1 structure.
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 b6d6fa8d..ecaaeb1b 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationLiveBoardAPIControllerGetParams creates a new StationLiveBoardAPIControllerGetParams object
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 ef88cb41..850751fe 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationLiveBoardAPIControllerGetReader is a Reader for the StationLiveBoardAPIControllerGet structure.
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 2b5e6816..7bd7a20e 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationOfLineAPIControllerGetParams creates a new StationOfLineAPIControllerGetParams object
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 900aebaf..2c37000e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationOfLineAPIControllerGetReader is a Reader for the StationOfLineAPIControllerGet structure.
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 6954a2c6..6135a66b 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewStationTransferAPIControllerGetParams creates a new StationTransferAPIControllerGetParams object
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 99ebb7a2..ed4252ec 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// StationTransferAPIControllerGetReader is a Reader for the StationTransferAPIControllerGet structure.
diff --git a/rail/v3/client/t_r_a/tra_client.go b/rail/v3/client/t_r_a/tra_client.go
index eafabd09..e955665d 100644
--- a/rail/v3/client/t_r_a/tra_client.go
+++ b/rail/v3/client/t_r_a/tra_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new t r a API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,83 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ AlertAPIControllerGet(params *AlertAPIControllerGetParams) (*AlertAPIControllerGetOK, error)
+
+ DailyStationTimeTableAPIControllerGet(params *DailyStationTimeTableAPIControllerGetParams) (*DailyStationTimeTableAPIControllerGetOK, error)
+
+ DailyStationTimeTableAPIControllerGet1(params *DailyStationTimeTableAPIControllerGet1Params) (*DailyStationTimeTableAPIControllerGet1OK, error)
+
+ DailyStationTimeTableAPIControllerGet2(params *DailyStationTimeTableAPIControllerGet2Params) (*DailyStationTimeTableAPIControllerGet2OK, error)
+
+ DailyTrainTimeTableAPIControllerGet(params *DailyTrainTimeTableAPIControllerGetParams) (*DailyTrainTimeTableAPIControllerGetOK, error)
+
+ DailyTrainTimeTableAPIControllerGet1(params *DailyTrainTimeTableAPIControllerGet1Params) (*DailyTrainTimeTableAPIControllerGet1OK, error)
+
+ DailyTrainTimeTableAPIControllerGet2(params *DailyTrainTimeTableAPIControllerGet2Params) (*DailyTrainTimeTableAPIControllerGet2OK, error)
+
+ DailyTrainTimeTableAPIControllerGet3(params *DailyTrainTimeTableAPIControllerGet3Params) (*DailyTrainTimeTableAPIControllerGet3OK, error)
+
+ DailyTrainTimeTableAPIControllerGet4(params *DailyTrainTimeTableAPIControllerGet4Params) (*DailyTrainTimeTableAPIControllerGet4OK, error)
+
+ GeneralStationTimetableAPIControllerGet(params *GeneralStationTimetableAPIControllerGetParams) (*GeneralStationTimetableAPIControllerGetOK, error)
+
+ GeneralStationTimetableAPIControllerGet1(params *GeneralStationTimetableAPIControllerGet1Params) (*GeneralStationTimetableAPIControllerGet1OK, error)
+
+ GeneralTrainTimetableAPIControllerGet(params *GeneralTrainTimetableAPIControllerGetParams) (*GeneralTrainTimetableAPIControllerGetOK, error)
+
+ GeneralTrainTimetableAPIControllerGet1(params *GeneralTrainTimetableAPIControllerGet1Params) (*GeneralTrainTimetableAPIControllerGet1OK, error)
+
+ LineAPIControllerGet(params *LineAPIControllerGetParams) (*LineAPIControllerGetOK, error)
+
+ LineNetworkAPIControllerGet(params *LineNetworkAPIControllerGetParams) (*LineNetworkAPIControllerGetOK, error)
+
+ LineTransferAPIControllerGet(params *LineTransferAPIControllerGetParams) (*LineTransferAPIControllerGetOK, error)
+
+ NetworkAPIControllerGet(params *NetworkAPIControllerGetParams) (*NetworkAPIControllerGetOK, error)
+
+ NewsAPIControllerGet(params *NewsAPIControllerGetParams) (*NewsAPIControllerGetOK, error)
+
+ ODFareAPIControllerAPIControllerGet(params *ODFareAPIControllerAPIControllerGetParams) (*ODFareAPIControllerAPIControllerGetOK, error)
+
+ ODFareAPIControllerAPIControllerGet1(params *ODFareAPIControllerAPIControllerGet1Params) (*ODFareAPIControllerAPIControllerGet1OK, error)
+
+ OperatorAPIControllerGet(params *OperatorAPIControllerGetParams) (*OperatorAPIControllerGetOK, error)
+
+ ShapeAPIControllerGet(params *ShapeAPIControllerGetParams) (*ShapeAPIControllerGetOK, error)
+
+ SpecificTrainTimetableAPIControllerGet(params *SpecificTrainTimetableAPIControllerGetParams) (*SpecificTrainTimetableAPIControllerGetOK, error)
+
+ SpecificTrainTimetableAPIControllerGet1(params *SpecificTrainTimetableAPIControllerGet1Params) (*SpecificTrainTimetableAPIControllerGet1OK, error)
+
+ StationAPIControllerGet(params *StationAPIControllerGetParams) (*StationAPIControllerGetOK, error)
+
+ StationExitAPIControllerGet(params *StationExitAPIControllerGetParams) (*StationExitAPIControllerGetOK, error)
+
+ StationFacilityAPIControllerGet(params *StationFacilityAPIControllerGetParams) (*StationFacilityAPIControllerGetOK, error)
+
+ StationLiveBoardAPIControllerGet(params *StationLiveBoardAPIControllerGetParams) (*StationLiveBoardAPIControllerGetOK, error)
+
+ StationLiveBoardAPIControllerGet1(params *StationLiveBoardAPIControllerGet1Params) (*StationLiveBoardAPIControllerGet1OK, error)
+
+ StationOfLineAPIControllerGet(params *StationOfLineAPIControllerGetParams) (*StationOfLineAPIControllerGetOK, error)
+
+ StationTransferAPIControllerGet(params *StationTransferAPIControllerGetParams) (*StationTransferAPIControllerGetOK, error)
+
+ TrainLiveBoardAPIControllerGet(params *TrainLiveBoardAPIControllerGetParams) (*TrainLiveBoardAPIControllerGetOK, error)
+
+ TrainLiveBoardAPIControllerGet1(params *TrainLiveBoardAPIControllerGet1Params) (*TrainLiveBoardAPIControllerGet1OK, error)
+
+ TrainTypeAPIControllerGet(params *TrainTypeAPIControllerGetParams) (*TrainTypeAPIControllerGetOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-AlertAPIControllerGet 取得營運通阻資料s
+ AlertAPIControllerGet 取得營運通阻資料s
-取得營運通阻資料
+ 取得營運通阻資料
*/
func (a *Client) AlertAPIControllerGet(params *AlertAPIControllerGetParams) (*AlertAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +114,7 @@ func (a *Client) AlertAPIControllerGet(params *AlertAPIControllerGetParams) (*Al
Method: "GET",
PathPattern: "/v3/Rail/TRA/Alert",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &AlertAPIControllerGetReader{formats: a.formats},
@@ -63,9 +135,9 @@ func (a *Client) AlertAPIControllerGet(params *AlertAPIControllerGetParams) (*Al
}
/*
-DailyStationTimeTableAPIControllerGet 取得當天各站站別時刻表資料s
+ DailyStationTimeTableAPIControllerGet 取得當天各站站別時刻表資料s
-取得當天各站站別時刻表資料
+ 取得當天各站站別時刻表資料
*/
func (a *Client) DailyStationTimeTableAPIControllerGet(params *DailyStationTimeTableAPIControllerGetParams) (*DailyStationTimeTableAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -78,7 +150,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet(params *DailyStationTimeT
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyStationTimeTableAPIControllerGetReader{formats: a.formats},
@@ -99,9 +171,9 @@ func (a *Client) DailyStationTimeTableAPIControllerGet(params *DailyStationTimeT
}
/*
-DailyStationTimeTableAPIControllerGet1 取得當天指定s 車站 的時刻表資料
+ DailyStationTimeTableAPIControllerGet1 取得當天指定s 車站 的時刻表資料
-取得當天指定[車站]的時刻表資料
+ 取得當天指定[車站]的時刻表資料
*/
func (a *Client) DailyStationTimeTableAPIControllerGet1(params *DailyStationTimeTableAPIControllerGet1Params) (*DailyStationTimeTableAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -114,7 +186,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet1(params *DailyStationTime
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/Today/Station/{StationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyStationTimeTableAPIControllerGet1Reader{formats: a.formats},
@@ -135,9 +207,9 @@ func (a *Client) DailyStationTimeTableAPIControllerGet1(params *DailyStationTime
}
/*
-DailyStationTimeTableAPIControllerGet2 取得各站每日站別時刻表資料s
+ DailyStationTimeTableAPIControllerGet2 取得各站每日站別時刻表資料s
-取得各站每日站別時刻表資料
+ 取得各站每日站別時刻表資料
*/
func (a *Client) DailyStationTimeTableAPIControllerGet2(params *DailyStationTimeTableAPIControllerGet2Params) (*DailyStationTimeTableAPIControllerGet2OK, error) {
// TODO: Validate the params before sending
@@ -150,7 +222,7 @@ func (a *Client) DailyStationTimeTableAPIControllerGet2(params *DailyStationTime
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyStationTimetable/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyStationTimeTableAPIControllerGet2Reader{formats: a.formats},
@@ -171,9 +243,9 @@ func (a *Client) DailyStationTimeTableAPIControllerGet2(params *DailyStationTime
}
/*
-DailyTrainTimeTableAPIControllerGet 取得當天車次時刻表資料s
+ DailyTrainTimeTableAPIControllerGet 取得當天車次時刻表資料s
-取得當天車次時刻表資料
+ 取得當天車次時刻表資料
*/
func (a *Client) DailyTrainTimeTableAPIControllerGet(params *DailyTrainTimeTableAPIControllerGetParams) (*DailyTrainTimeTableAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -186,7 +258,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet(params *DailyTrainTimeTable
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/Today",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyTrainTimeTableAPIControllerGetReader{formats: a.formats},
@@ -207,9 +279,9 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet(params *DailyTrainTimeTable
}
/*
-DailyTrainTimeTableAPIControllerGet1 取得當天指定s 車次 的時刻表資料
+ DailyTrainTimeTableAPIControllerGet1 取得當天指定s 車次 的時刻表資料
-取得當天指定[車次]的時刻表資料
+ 取得當天指定[車次]的時刻表資料
*/
func (a *Client) DailyTrainTimeTableAPIControllerGet1(params *DailyTrainTimeTableAPIControllerGet1Params) (*DailyTrainTimeTableAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -222,7 +294,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet1(params *DailyTrainTimeTabl
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/Today/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyTrainTimeTableAPIControllerGet1Reader{formats: a.formats},
@@ -243,9 +315,9 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet1(params *DailyTrainTimeTabl
}
/*
-DailyTrainTimeTableAPIControllerGet2 取得指定s 日期 所有車次的時刻表資料
+ DailyTrainTimeTableAPIControllerGet2 取得指定s 日期 所有車次的時刻表資料
-取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)
+ 取得指定[日期]所有車次的時刻表資料(台鐵提供近60天每日時刻表)
*/
func (a *Client) DailyTrainTimeTableAPIControllerGet2(params *DailyTrainTimeTableAPIControllerGet2Params) (*DailyTrainTimeTableAPIControllerGet2OK, error) {
// TODO: Validate the params before sending
@@ -258,7 +330,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet2(params *DailyTrainTimeTabl
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/TrainDate/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyTrainTimeTableAPIControllerGet2Reader{formats: a.formats},
@@ -279,9 +351,9 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet2(params *DailyTrainTimeTabl
}
/*
-DailyTrainTimeTableAPIControllerGet3 取得指定s 日期 起迄站間 之站間時刻表資料 僅列出查詢的停靠站
+ DailyTrainTimeTableAPIControllerGet3 取得指定s 日期 起迄站間 之站間時刻表資料 僅列出查詢的停靠站
-取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)
+ 取得指定[日期],[起迄站間]之站間時刻表資料(僅列出查詢的停靠站)
*/
func (a *Client) DailyTrainTimeTableAPIControllerGet3(params *DailyTrainTimeTableAPIControllerGet3Params) (*DailyTrainTimeTableAPIControllerGet3OK, error) {
// TODO: Validate the params before sending
@@ -294,7 +366,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet3(params *DailyTrainTimeTabl
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/OD/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyTrainTimeTableAPIControllerGet3Reader{formats: a.formats},
@@ -315,9 +387,9 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet3(params *DailyTrainTimeTabl
}
/*
-DailyTrainTimeTableAPIControllerGet4 取得指定s 日期 起迄站間 之站間時刻表資料
+ DailyTrainTimeTableAPIControllerGet4 取得指定s 日期 起迄站間 之站間時刻表資料
-取得指定[日期],[起迄站間]之站間時刻表資料
+ 取得指定[日期],[起迄站間]之站間時刻表資料
*/
func (a *Client) DailyTrainTimeTableAPIControllerGet4(params *DailyTrainTimeTableAPIControllerGet4Params) (*DailyTrainTimeTableAPIControllerGet4OK, error) {
// TODO: Validate the params before sending
@@ -330,7 +402,7 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet4(params *DailyTrainTimeTabl
Method: "GET",
PathPattern: "/v3/Rail/TRA/DailyTrainTimetable/OD/Inclusive/{OriginStationID}/to/{DestinationStationID}/{TrainDate}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &DailyTrainTimeTableAPIControllerGet4Reader{formats: a.formats},
@@ -351,9 +423,9 @@ func (a *Client) DailyTrainTimeTableAPIControllerGet4(params *DailyTrainTimeTabl
}
/*
-GeneralStationTimetableAPIControllerGet 取得各站的定期站別時刻表資料s
+ GeneralStationTimetableAPIControllerGet 取得各站的定期站別時刻表資料s
-取得各站的定期站別時刻表資料
+ 取得各站的定期站別時刻表資料
*/
func (a *Client) GeneralStationTimetableAPIControllerGet(params *GeneralStationTimetableAPIControllerGetParams) (*GeneralStationTimetableAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -366,7 +438,7 @@ func (a *Client) GeneralStationTimetableAPIControllerGet(params *GeneralStationT
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralStationTimetable",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &GeneralStationTimetableAPIControllerGetReader{formats: a.formats},
@@ -387,9 +459,9 @@ func (a *Client) GeneralStationTimetableAPIControllerGet(params *GeneralStationT
}
/*
-GeneralStationTimetableAPIControllerGet1 取得指定s 車站 的定期站別時刻表資料
+ GeneralStationTimetableAPIControllerGet1 取得指定s 車站 的定期站別時刻表資料
-取得指定[車站]的定期站別時刻表資料
+ 取得指定[車站]的定期站別時刻表資料
*/
func (a *Client) GeneralStationTimetableAPIControllerGet1(params *GeneralStationTimetableAPIControllerGet1Params) (*GeneralStationTimetableAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -402,7 +474,7 @@ func (a *Client) GeneralStationTimetableAPIControllerGet1(params *GeneralStation
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralStationTimetable/Station/{StationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &GeneralStationTimetableAPIControllerGet1Reader{formats: a.formats},
@@ -423,9 +495,9 @@ func (a *Client) GeneralStationTimetableAPIControllerGet1(params *GeneralStation
}
/*
-GeneralTrainTimetableAPIControllerGet 取得所有車次的定期時刻表資料s
+ GeneralTrainTimetableAPIControllerGet 取得所有車次的定期時刻表資料s
-取得所有車次的定期時刻表資料
+ 取得所有車次的定期時刻表資料
*/
func (a *Client) GeneralTrainTimetableAPIControllerGet(params *GeneralTrainTimetableAPIControllerGetParams) (*GeneralTrainTimetableAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -438,7 +510,7 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet(params *GeneralTrainTimet
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralTrainTimetable",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &GeneralTrainTimetableAPIControllerGetReader{formats: a.formats},
@@ -459,9 +531,9 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet(params *GeneralTrainTimet
}
/*
-GeneralTrainTimetableAPIControllerGet1 取得指定s 車次 的定期時刻表資料
+ GeneralTrainTimetableAPIControllerGet1 取得指定s 車次 的定期時刻表資料
-取得指定[車次]的定期時刻表資料
+ 取得指定[車次]的定期時刻表資料
*/
func (a *Client) GeneralTrainTimetableAPIControllerGet1(params *GeneralTrainTimetableAPIControllerGet1Params) (*GeneralTrainTimetableAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -474,7 +546,7 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet1(params *GeneralTrainTime
Method: "GET",
PathPattern: "/v3/Rail/TRA/GeneralTrainTimetable/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &GeneralTrainTimetableAPIControllerGet1Reader{formats: a.formats},
@@ -495,9 +567,9 @@ func (a *Client) GeneralTrainTimetableAPIControllerGet1(params *GeneralTrainTime
}
/*
-LineAPIControllerGet 取得路線基本資料s
+ LineAPIControllerGet 取得路線基本資料s
-取得路線基本資料
+ 取得路線基本資料
*/
func (a *Client) LineAPIControllerGet(params *LineAPIControllerGetParams) (*LineAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -510,7 +582,7 @@ func (a *Client) LineAPIControllerGet(params *LineAPIControllerGetParams) (*Line
Method: "GET",
PathPattern: "/v3/Rail/TRA/Line",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &LineAPIControllerGetReader{formats: a.formats},
@@ -531,9 +603,9 @@ func (a *Client) LineAPIControllerGet(params *LineAPIControllerGetParams) (*Line
}
/*
-LineNetworkAPIControllerGet 取得路線網路拓撲基本資料s
+ LineNetworkAPIControllerGet 取得路線網路拓撲基本資料s
-取得路線網路拓撲基本資料
+ 取得路線網路拓撲基本資料
*/
func (a *Client) LineNetworkAPIControllerGet(params *LineNetworkAPIControllerGetParams) (*LineNetworkAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -546,7 +618,7 @@ func (a *Client) LineNetworkAPIControllerGet(params *LineNetworkAPIControllerGet
Method: "GET",
PathPattern: "/v3/Rail/TRA/LineNetwork",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &LineNetworkAPIControllerGetReader{formats: a.formats},
@@ -567,9 +639,9 @@ func (a *Client) LineNetworkAPIControllerGet(params *LineNetworkAPIControllerGet
}
/*
-LineTransferAPIControllerGet 取得內部路線轉乘資料s
+ LineTransferAPIControllerGet 取得內部路線轉乘資料s
-取得內部路線轉乘資料
+ 取得內部路線轉乘資料
*/
func (a *Client) LineTransferAPIControllerGet(params *LineTransferAPIControllerGetParams) (*LineTransferAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -582,7 +654,7 @@ func (a *Client) LineTransferAPIControllerGet(params *LineTransferAPIControllerG
Method: "GET",
PathPattern: "/v3/Rail/TRA/LineTransfer",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &LineTransferAPIControllerGetReader{formats: a.formats},
@@ -603,9 +675,9 @@ func (a *Client) LineTransferAPIControllerGet(params *LineTransferAPIControllerG
}
/*
-NetworkAPIControllerGet 取得臺鐵路網資料s
+ NetworkAPIControllerGet 取得臺鐵路網資料s
-取得臺鐵路網資料
+ 取得臺鐵路網資料
*/
func (a *Client) NetworkAPIControllerGet(params *NetworkAPIControllerGetParams) (*NetworkAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -618,7 +690,7 @@ func (a *Client) NetworkAPIControllerGet(params *NetworkAPIControllerGetParams)
Method: "GET",
PathPattern: "/v3/Rail/TRA/Network",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &NetworkAPIControllerGetReader{formats: a.formats},
@@ -639,9 +711,9 @@ func (a *Client) NetworkAPIControllerGet(params *NetworkAPIControllerGetParams)
}
/*
-NewsAPIControllerGet 取得最新消息s
+ NewsAPIControllerGet 取得最新消息s
-取得最新消息
+ 取得最新消息
*/
func (a *Client) NewsAPIControllerGet(params *NewsAPIControllerGetParams) (*NewsAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -654,7 +726,7 @@ func (a *Client) NewsAPIControllerGet(params *NewsAPIControllerGetParams) (*News
Method: "GET",
PathPattern: "/v3/Rail/TRA/News",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &NewsAPIControllerGetReader{formats: a.formats},
@@ -675,9 +747,9 @@ func (a *Client) NewsAPIControllerGet(params *NewsAPIControllerGetParams) (*News
}
/*
-ODFareAPIControllerAPIControllerGet 取得票價資料s 檔案
+ ODFareAPIControllerAPIControllerGet 取得票價資料s 檔案
-取得Gzip壓縮檔
+ 取得Gzip壓縮檔
*/
func (a *Client) ODFareAPIControllerAPIControllerGet(params *ODFareAPIControllerAPIControllerGetParams) (*ODFareAPIControllerAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -690,7 +762,7 @@ func (a *Client) ODFareAPIControllerAPIControllerGet(params *ODFareAPIController
Method: "GET",
PathPattern: "/v3/Rail/TRA/ODFare",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ODFareAPIControllerAPIControllerGetReader{formats: a.formats},
@@ -711,9 +783,9 @@ func (a *Client) ODFareAPIControllerAPIControllerGet(params *ODFareAPIController
}
/*
-ODFareAPIControllerAPIControllerGet1 取得指定起迄站間票價資料s
+ ODFareAPIControllerAPIControllerGet1 取得指定起迄站間票價資料s
-取得指定起迄站間票價資料
+ 取得指定起迄站間票價資料
*/
func (a *Client) ODFareAPIControllerAPIControllerGet1(params *ODFareAPIControllerAPIControllerGet1Params) (*ODFareAPIControllerAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -726,7 +798,7 @@ func (a *Client) ODFareAPIControllerAPIControllerGet1(params *ODFareAPIControlle
Method: "GET",
PathPattern: "/v3/Rail/TRA/ODFare/{OriginStationID}/to/{DestinationStationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ODFareAPIControllerAPIControllerGet1Reader{formats: a.formats},
@@ -747,9 +819,9 @@ func (a *Client) ODFareAPIControllerAPIControllerGet1(params *ODFareAPIControlle
}
/*
-OperatorAPIControllerGet 取得台鐵營運業者基本資料s
+ OperatorAPIControllerGet 取得台鐵營運業者基本資料s
-取得台鐵營運業者基本資料
+ 取得台鐵營運業者基本資料
*/
func (a *Client) OperatorAPIControllerGet(params *OperatorAPIControllerGetParams) (*OperatorAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -762,7 +834,7 @@ func (a *Client) OperatorAPIControllerGet(params *OperatorAPIControllerGetParams
Method: "GET",
PathPattern: "/v3/Rail/TRA/Operator",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &OperatorAPIControllerGetReader{formats: a.formats},
@@ -783,9 +855,9 @@ func (a *Client) OperatorAPIControllerGet(params *OperatorAPIControllerGetParams
}
/*
-ShapeAPIControllerGet 取得線型基本資料s
+ ShapeAPIControllerGet 取得線型基本資料s
-取得線型基本資料
+ 取得線型基本資料
*/
func (a *Client) ShapeAPIControllerGet(params *ShapeAPIControllerGetParams) (*ShapeAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -798,7 +870,7 @@ func (a *Client) ShapeAPIControllerGet(params *ShapeAPIControllerGetParams) (*Sh
Method: "GET",
PathPattern: "/v3/Rail/TRA/Shape",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShapeAPIControllerGetReader{formats: a.formats},
@@ -819,9 +891,9 @@ func (a *Client) ShapeAPIControllerGet(params *ShapeAPIControllerGetParams) (*Sh
}
/*
-SpecificTrainTimetableAPIControllerGet 取得所有特殊車次時刻表資料s
+ SpecificTrainTimetableAPIControllerGet 取得所有特殊車次時刻表資料s
-取得所有特殊車次時刻表資料
+ 取得所有特殊車次時刻表資料
*/
func (a *Client) SpecificTrainTimetableAPIControllerGet(params *SpecificTrainTimetableAPIControllerGetParams) (*SpecificTrainTimetableAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -834,7 +906,7 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet(params *SpecificTrainTim
Method: "GET",
PathPattern: "/v3/Rail/TRA/SpecificTrainTimetable",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &SpecificTrainTimetableAPIControllerGetReader{formats: a.formats},
@@ -855,9 +927,9 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet(params *SpecificTrainTim
}
/*
-SpecificTrainTimetableAPIControllerGet1 取得指定s 車次 的特殊車次時刻表資料
+ SpecificTrainTimetableAPIControllerGet1 取得指定s 車次 的特殊車次時刻表資料
-取得指定[車次]的特殊車次時刻表資料
+ 取得指定[車次]的特殊車次時刻表資料
*/
func (a *Client) SpecificTrainTimetableAPIControllerGet1(params *SpecificTrainTimetableAPIControllerGet1Params) (*SpecificTrainTimetableAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -870,7 +942,7 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet1(params *SpecificTrainTi
Method: "GET",
PathPattern: "/v3/Rail/TRA/SpecificTrainTimetable/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &SpecificTrainTimetableAPIControllerGet1Reader{formats: a.formats},
@@ -891,9 +963,9 @@ func (a *Client) SpecificTrainTimetableAPIControllerGet1(params *SpecificTrainTi
}
/*
-StationAPIControllerGet 取得車站基本資料s
+ StationAPIControllerGet 取得車站基本資料s
-取得車站基本資料
+ 取得車站基本資料
*/
func (a *Client) StationAPIControllerGet(params *StationAPIControllerGetParams) (*StationAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -906,7 +978,7 @@ func (a *Client) StationAPIControllerGet(params *StationAPIControllerGetParams)
Method: "GET",
PathPattern: "/v3/Rail/TRA/Station",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationAPIControllerGetReader{formats: a.formats},
@@ -927,9 +999,9 @@ func (a *Client) StationAPIControllerGet(params *StationAPIControllerGetParams)
}
/*
-StationExitAPIControllerGet 取得車站出入口基本資料s
+ StationExitAPIControllerGet 取得車站出入口基本資料s
-取得車站出入口基本資料
+ 取得車站出入口基本資料
*/
func (a *Client) StationExitAPIControllerGet(params *StationExitAPIControllerGetParams) (*StationExitAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -942,7 +1014,7 @@ func (a *Client) StationExitAPIControllerGet(params *StationExitAPIControllerGet
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationExit",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationExitAPIControllerGetReader{formats: a.formats},
@@ -963,9 +1035,9 @@ func (a *Client) StationExitAPIControllerGet(params *StationExitAPIControllerGet
}
/*
-StationFacilityAPIControllerGet 取得車站設施資料s
+ StationFacilityAPIControllerGet 取得車站設施資料s
-取得車站設施資料
+ 取得車站設施資料
*/
func (a *Client) StationFacilityAPIControllerGet(params *StationFacilityAPIControllerGetParams) (*StationFacilityAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -978,7 +1050,7 @@ func (a *Client) StationFacilityAPIControllerGet(params *StationFacilityAPIContr
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationFacility",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationFacilityAPIControllerGetReader{formats: a.formats},
@@ -999,9 +1071,9 @@ func (a *Client) StationFacilityAPIControllerGet(params *StationFacilityAPIContr
}
/*
-StationLiveBoardAPIControllerGet 取得列車即時到離站資料s
+ StationLiveBoardAPIControllerGet 取得列車即時到離站資料s
-取得列車即時到離站資料
+ 取得列車即時到離站資料
*/
func (a *Client) StationLiveBoardAPIControllerGet(params *StationLiveBoardAPIControllerGetParams) (*StationLiveBoardAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -1014,7 +1086,7 @@ func (a *Client) StationLiveBoardAPIControllerGet(params *StationLiveBoardAPICon
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationLiveBoard",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationLiveBoardAPIControllerGetReader{formats: a.formats},
@@ -1035,9 +1107,9 @@ func (a *Client) StationLiveBoardAPIControllerGet(params *StationLiveBoardAPICon
}
/*
-StationLiveBoardAPIControllerGet1 取得指定s 車站 的列車即時到離站資料
+ StationLiveBoardAPIControllerGet1 取得指定s 車站 的列車即時到離站資料
-取得指定[車站]的列車即時到離站資料
+ 取得指定[車站]的列車即時到離站資料
*/
func (a *Client) StationLiveBoardAPIControllerGet1(params *StationLiveBoardAPIControllerGet1Params) (*StationLiveBoardAPIControllerGet1OK, error) {
// TODO: Validate the params before sending
@@ -1050,7 +1122,7 @@ func (a *Client) StationLiveBoardAPIControllerGet1(params *StationLiveBoardAPICo
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationLiveBoard/Station/{StationID}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationLiveBoardAPIControllerGet1Reader{formats: a.formats},
@@ -1071,9 +1143,9 @@ func (a *Client) StationLiveBoardAPIControllerGet1(params *StationLiveBoardAPICo
}
/*
-StationOfLineAPIControllerGet 取得路線車站基本資料s
+ StationOfLineAPIControllerGet 取得路線車站基本資料s
-取得路線車站基本資料
+ 取得路線車站基本資料
*/
func (a *Client) StationOfLineAPIControllerGet(params *StationOfLineAPIControllerGetParams) (*StationOfLineAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -1086,7 +1158,7 @@ func (a *Client) StationOfLineAPIControllerGet(params *StationOfLineAPIControlle
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationOfLine",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationOfLineAPIControllerGetReader{formats: a.formats},
@@ -1107,9 +1179,9 @@ func (a *Client) StationOfLineAPIControllerGet(params *StationOfLineAPIControlle
}
/*
-StationTransferAPIControllerGet 取得車站跨運具轉乘資訊s
+ StationTransferAPIControllerGet 取得車站跨運具轉乘資訊s
-取得車站跨運具轉乘資訊
+ 取得車站跨運具轉乘資訊
*/
func (a *Client) StationTransferAPIControllerGet(params *StationTransferAPIControllerGetParams) (*StationTransferAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -1122,7 +1194,7 @@ func (a *Client) StationTransferAPIControllerGet(params *StationTransferAPIContr
Method: "GET",
PathPattern: "/v3/Rail/TRA/StationTransfer",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &StationTransferAPIControllerGetReader{formats: a.formats},
@@ -1143,9 +1215,9 @@ func (a *Client) StationTransferAPIControllerGet(params *StationTransferAPIContr
}
/*
-TrainLiveBoardAPIControllerGet 取得列車即時位置動態資料s
+ TrainLiveBoardAPIControllerGet 取得列車即時位置動態資料s
-取得列車即時位置動態資料
+ 取得列車即時位置動態資料
## 使用注意事項
1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。
@@ -1164,7 +1236,7 @@ func (a *Client) TrainLiveBoardAPIControllerGet(params *TrainLiveBoardAPIControl
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainLiveBoard",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TrainLiveBoardAPIControllerGetReader{formats: a.formats},
@@ -1185,9 +1257,9 @@ func (a *Client) TrainLiveBoardAPIControllerGet(params *TrainLiveBoardAPIControl
}
/*
-TrainLiveBoardAPIControllerGet1 取得指定s 車次 的列車即時位置動態資料
+ TrainLiveBoardAPIControllerGet1 取得指定s 車次 的列車即時位置動態資料
-取得指定[車次]的列車即時位置動態資料
+ 取得指定[車次]的列車即時位置動態資料
## 使用注意事項
1. 本項資料為「列車目前所在之車站」資料,而更新資料的時機點為「列車離站時」(由 CTC 提供),其內容之車站資料可能為經過站,也可能為停靠站。
@@ -1206,7 +1278,7 @@ func (a *Client) TrainLiveBoardAPIControllerGet1(params *TrainLiveBoardAPIContro
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainLiveBoard/TrainNo/{TrainNo}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TrainLiveBoardAPIControllerGet1Reader{formats: a.formats},
@@ -1227,9 +1299,9 @@ func (a *Client) TrainLiveBoardAPIControllerGet1(params *TrainLiveBoardAPIContro
}
/*
-TrainTypeAPIControllerGet 取得所有列車車種資料s
+ TrainTypeAPIControllerGet 取得所有列車車種資料s
-取得所有列車車種資料
+ 取得所有列車車種資料
*/
func (a *Client) TrainTypeAPIControllerGet(params *TrainTypeAPIControllerGetParams) (*TrainTypeAPIControllerGetOK, error) {
// TODO: Validate the params before sending
@@ -1242,7 +1314,7 @@ func (a *Client) TrainTypeAPIControllerGet(params *TrainTypeAPIControllerGetPara
Method: "GET",
PathPattern: "/v3/Rail/TRA/TrainType",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TrainTypeAPIControllerGetReader{formats: a.formats},
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 f8e4accf..b1449f9d 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTrainLiveBoardAPIControllerGet1Params creates a new TrainLiveBoardAPIControllerGet1Params object
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 480bf8a5..815b9775 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// TrainLiveBoardAPIControllerGet1Reader is a Reader for the TrainLiveBoardAPIControllerGet1 structure.
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 051cf1da..088ccca2 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTrainLiveBoardAPIControllerGetParams creates a new TrainLiveBoardAPIControllerGetParams object
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 d485738d..455effba 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// TrainLiveBoardAPIControllerGetReader is a Reader for the TrainLiveBoardAPIControllerGet structure.
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 d881995f..ff259051 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
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTrainTypeAPIControllerGetParams creates a new TrainTypeAPIControllerGetParams object
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 e1dbe4ca..b9554956 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/rail/v3/models"
+ "github.com/minchao/go-ptx/rail/v3/models"
)
// TrainTypeAPIControllerGetReader is a Reader for the TrainTypeAPIControllerGet structure.
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line.go
index 525bb97b..6ce49558 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine TRALineList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Line]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
// Required: true
Lines []*ServiceDTOVersion3RailTRALine `json:"Lines"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine struct {
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) Validate(
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateU
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALine) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 34e84e0e..3afbad57 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork TRALineNetworkList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetw
// Required: true
LineNetworks []*ServiceDTOVersion3RailTRALineNetworkLineNetwork `json:"LineNetworks"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetw
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLine
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineNetworkLineNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_transfer.go
index 5d43a253..e1fcb01b 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_line_transfer.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer TRALineTransferList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.LineTransfer]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct
// Required: true
LineTransfers []*ServiceDTOVersion3RailTRALineTransfer `json:"LineTransfers"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer struct
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) V
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) v
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRALineTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_network_network.go
index c0e8a2bd..89706484 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_network_network.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork TRANetworkList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Network.Network]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork stru
// Required: true
Networks []*ServiceDTOVersion3RailTRANetworkNetwork `json:"Networks"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork stru
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork)
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRANetworkNetwork) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_operator.go
index c68566db..219cbb76 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_operator.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator TRAOperatorList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Operator]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
// Required: true
Operators []*ServiceDTOVersion3RailTRAOperator `json:"Operators"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator struct {
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) Valid
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) valid
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAOperator) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_shape.go
index b3b16155..843691a8 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_shape.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape TRAShapeList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Shape]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
// Required: true
Shapes []*ServiceDTOVersion3RailTRAShape `json:"Shapes"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape struct {
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) Validate
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validate
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAShape) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station.go
index 196b65bc..871329b7 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_station.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation TRAStationList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.Station]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation struct {
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) Valida
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) valida
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStation) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 8c5a0d58..d3e44d8c 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit TRAStationExitList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationExit.StationExit]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationE
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationE
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStat
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationExitStationExit) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index e6333729..635ea9d9 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility TRAStationFacilityList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStat
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStat
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacility
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationFacilityStationFacility) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 961e9b9d..a2a0d512 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine TRAStationOfLineList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStatio
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStatio
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineSt
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationOfLineStationOfLine) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index e26e8470..08b6a2cf 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer TRAStationTransferList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStat
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStat
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransfer
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRAStationTransferStationTransfer) MarshalBinary() ([]byte, error) {
if m == nil {
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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_train_type.go
index e7b7593d..25d1c64c 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/m_o_t_c_api_rail_models_t_r_a_base_wrapper_service_d_t_o_version3_rail_t_r_a_train_type.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType TRATrainTypeList
+//
// swagger:model MOTC.API.Rail.Models.TRABaseWrapper[Service.DTO.Version3.Rail.TRA.TrainType]
type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType struct {
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) Vali
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) vali
return nil
}
+func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRABaseWrapperServiceDTOVersion3RailTRATrainType) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 86db7ec1..ba1d605c 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable TRAGeneralStationTimetableList
+//
// swagger:model MOTC.API.Rail.Models.TRAGeneralStationWrapper[Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable]
type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable struct {
@@ -37,7 +37,7 @@ type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralSt
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -64,7 +64,8 @@ type MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralSt
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
@@ -98,6 +99,10 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -174,6 +179,15 @@ func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGener
return nil
}
+func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRAGeneralStationWrapperServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index f0ef12dd..8c8b8b0d 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable TRAGeneralTrainTimetableList
+//
// swagger:model MOTC.API.Rail.Models.TRAGeneralTrainWrapper[Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable]
type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable struct {
@@ -37,7 +37,7 @@ type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrai
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -64,7 +64,8 @@ type MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrai
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
@@ -98,6 +99,10 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -174,6 +179,15 @@ func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneral
return nil
}
+func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRAGeneralTrainWrapperServiceDTOVersion3RailTRAGeneralTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 7635ddf2..8c3b74c2 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare TRAODFareList
+//
// swagger:model MOTC.API.Rail.Models.TRAODFareWrapper[Service.DTO.Version3.Rail.TRA.ODFare.ODFare]
type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare struct {
@@ -36,7 +36,7 @@ type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare stru
// Required: true
ODFares []*ServiceDTOVersion3RailTRAODFareODFare `json:"ODFares"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -56,7 +56,8 @@ type MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare stru
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -83,6 +84,10 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -150,6 +155,15 @@ func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare)
return nil
}
+func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRAODFareWrapperServiceDTOVersion3RailTRAODFareODFare) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 671555be..5934ecf8 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert TRAAlertList
+//
// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert]
type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAle
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAle
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertLis
return nil
}
+func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAAlertListAlert) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 7dc8b256..0dfb2466 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews TRANewsList
+//
// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRANewsList.News]
type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews struct {
@@ -30,7 +30,7 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
// Required: true
Newses []*ServiceDTOVersion3RailTRATRANewsListNews `json:"Newses"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsList
return nil
}
+func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRANewsListNews) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 8806db8a..6aa905d1 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard TRAStationLiveBoardList
+//
// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard]
type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveB
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveB
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationL
return nil
}
+func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index fad4f5f9..9c8095d8 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard TRATrainLiveBoardList
+//
// swagger:model MOTC.API.Rail.Models.TRARealTimeWrapper[Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard]
type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoa
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -47,7 +47,8 @@ type MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoa
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -74,6 +75,10 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -141,6 +146,15 @@ func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiv
return nil
}
+func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRARealTimeWrapperServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index fd597e23..55158437 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable TRASpecificTrainTimetableList
+//
// swagger:model MOTC.API.Rail.Models.TRASpecificWrapper[Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable]
type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable struct {
@@ -37,7 +37,7 @@ type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTi
// 有效終止日期
ExpireDate string `json:"ExpireDate,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -64,7 +64,8 @@ type MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTi
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ UpdateTime *string `json:"UpdateTime"`
// 時刻表適用情形說明
ValidityDesciption string `json:"ValidityDesciption,omitempty"`
@@ -98,6 +99,10 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -174,6 +179,15 @@ func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTra
return nil
}
+func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTRASpecificWrapperServiceDTOVersion3RailTRASpecificTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index c50cdc09..8d91f40e 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable TRADailyStationTimeTableList
+//
// swagger:model MOTC.API.Rail.Models.TraDailyStationWrapper[Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable]
type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -41,7 +41,8 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
StationTimetables []*ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable `json:"StationTimetables"`
// 營運日說明(yyyy-MM-dd)
- TrainDate string `json:"TrainDate,omitempty"`
+ // Required: true
+ TrainDate *string `json:"TrainDate"`
// 本平台資料更新週期(秒)
// Required: true
@@ -50,7 +51,8 @@ type MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStatio
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -73,10 +75,18 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
res = append(res, err)
}
+ if err := m.validateTrainDate(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateUpdateInterval(formats); err != nil {
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -135,6 +145,15 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
+func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateTrainDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateUpdateInterval(formats strfmt.Registry) error {
if err := validate.Required("UpdateInterval", "body", m.UpdateInterval); err != nil {
@@ -144,6 +163,15 @@ func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailySt
return nil
}
+func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTraDailyStationWrapperServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
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/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
index 3d818837..a9f20acb 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/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
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable TRADailyTrainTimeTableList
+//
// swagger:model MOTC.API.Rail.Models.TraDailyTrainWrapper[Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable]
type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable struct {
@@ -26,7 +26,7 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
// 資料總筆數
Count int64 `json:"Count,omitempty"`
- // 來源端平台資料更新週期(秒)
+ // 來源端平台資料更新週期(秒)['-1: 不定期更新']
// Required: true
SrcUpdateInterval *int32 `json:"SrcUpdateInterval"`
@@ -37,9 +37,11 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
SrcUpdateTime *string `json:"SrcUpdateTime"`
// 營運日說明(yyyy-MM-dd)
- TrainDate string `json:"TrainDate,omitempty"`
+ // Required: true
+ TrainDate *string `json:"TrainDate"`
// 資料(陣列)
+ // Required: true
TrainTimetables []*ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable `json:"TrainTimetables"`
// 本平台資料更新週期(秒)
@@ -49,7 +51,8 @@ type MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTim
// DateTime
//
// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
- UpdateTime string `json:"UpdateTime,omitempty"`
+ // Required: true
+ 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
@@ -68,6 +71,10 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
res = append(res, err)
}
+ if err := m.validateTrainDate(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateTrainTimetables(formats); err != nil {
res = append(res, err)
}
@@ -76,6 +83,10 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
res = append(res, err)
}
+ if err := m.validateUpdateTime(formats); err != nil {
+ res = append(res, err)
+ }
+
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@@ -109,10 +120,19 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
+func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateTrainDate(formats strfmt.Registry) error {
+
+ if err := validate.Required("TrainDate", "body", m.TrainDate); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateTrainTimetables(formats strfmt.Registry) error {
- if swag.IsZero(m.TrainTimetables) { // not required
- return nil
+ if err := validate.Required("TrainTimetables", "body", m.TrainTimetables); err != nil {
+ return err
}
for i := 0; i < len(m.TrainTimetables); i++ {
@@ -143,6 +163,15 @@ func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrai
return nil
}
+func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) validateUpdateTime(formats strfmt.Registry) error {
+
+ if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
+ return err
+ }
+
+ return nil
+}
+
// MarshalBinary interface implementation
func (m *MOTCAPIRailModelsTraDailyTrainWrapperServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable) MarshalBinary() ([]byte, error) {
if m == nil {
diff --git a/rail/v3/models/service_d_t_o_version3_base_name_type.go b/rail/v3/models/service_d_t_o_version3_base_name_type.go
index a119d519..9f26b43b 100644
--- a/rail/v3/models/service_d_t_o_version3_base_name_type.go
+++ b/rail/v3/models/service_d_t_o_version3_base_name_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version3.Base.NameType
type ServiceDTOVersion3BaseNameType struct {
diff --git a/rail/v3/models/service_d_t_o_version3_base_point_type.go b/rail/v3/models/service_d_t_o_version3_base_point_type.go
index 3b2c8707..324a7bb5 100644
--- a/rail/v3/models/service_d_t_o_version3_base_point_type.go
+++ b/rail/v3/models/service_d_t_o_version3_base_point_type.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version3.Base.PointType
type ServiceDTOVersion3BasePointType struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go
index 109d41a6..222ae8ca 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_service_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRACommonServiceDay ServiceDay
//
// 台鐵服務日型態
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Common.ServiceDay
type ServiceDTOVersion3RailTRACommonServiceDay struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go
index 8ebeaa5d..270e4c1e 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_special_day.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRACommonSpecialDay SpecialDay
//
// 台鐵特定日期
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Common.SpecialDay
type ServiceDTOVersion3RailTRACommonSpecialDay struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go
index dbbb67b6..b344b23f 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_stop_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRACommonStopTime StopTime
//
// 台鐵停靠時間資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Common.StopTime
type ServiceDTOVersion3RailTRACommonStopTime struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go
index b10bcc60..1e5230e3 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_common_train_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRACommonTrainInfo TrainInfo
//
// 臺鐵車次定期資料型別(時刻表用)
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Common.TrainInfo
type ServiceDTOVersion3RailTRACommonTrainInfo struct {
@@ -45,7 +45,7 @@ type ServiceDTOVersion3RailTRACommonTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
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/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
index 378bc89b..58a91517 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/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_station_timetable.go
@@ -8,25 +8,17 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable StationTimetable
+//
// swagger:model Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.StationTimetable
type ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable struct {
- // 目的站車站代號
- DestinationStationID string `json:"DestinationStationID,omitempty"`
-
- // NameType
- //
- // 目的站車站名稱
- DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
-
// integer
//
// 行駛方向 : [0:'順行',1:'逆行']
@@ -52,10 +44,6 @@ type ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable struct {
func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateDestinationStationName(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validateStationName(formats); err != nil {
res = append(res, err)
}
@@ -70,24 +58,6 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) Validat
return nil
}
-func (m *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) 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 *ServiceDTOVersion3RailTRADailyStationTimeTableStationTimetable) validateStationName(formats strfmt.Registry) error {
if swag.IsZero(m.StationName) { // not required
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/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_time_table.go
index ccaaf8a5..b312c79b 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/service_d_t_o_version3_rail_t_r_a_daily_station_time_table_time_table.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable TimeTable
+//
// swagger:model Service.DTO.Version3.Rail.TRA.DailyStationTimeTable.TimeTable
type ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable struct {
@@ -23,6 +23,14 @@ type ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable struct {
// 發車時刻
DepartureTime string `json:"DepartureTime,omitempty"`
+ // 目的站車站代號
+ DestinationStationID string `json:"DestinationStationID,omitempty"`
+
+ // NameType
+ //
+ // 目的站車站名稱
+ DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
+
// 發車順序
// Required: true
Sequence *int32 `json:"Sequence"`
@@ -46,6 +54,10 @@ type ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable struct {
func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateDestinationStationName(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateSequence(formats); err != nil {
res = append(res, err)
}
@@ -60,6 +72,24 @@ func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) Validate(forma
return nil
}
+func (m *ServiceDTOVersion3RailTRADailyStationTimeTableTimeTable) 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 {
if err := validate.Required("Sequence", "body", m.Sequence); err != nil {
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
new file mode 100644
index 00000000..f53c5633
--- /dev/null
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_dining_flag_section.go
@@ -0,0 +1,103 @@
+// 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_daily_train_time_table_section_among.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_section_among.go
new file mode 100644
index 00000000..cd1bb99e
--- /dev/null
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_section_among.go
@@ -0,0 +1,81 @@
+// 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"
+)
+
+// ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong SectionAmong
+//
+// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.SectionAmong
+type ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong struct {
+
+ // 迄站車站代碼
+ // Required: true
+ EndStationID *string `json:"EndStationID"`
+
+ // 起站車站代碼
+ // 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 {
+ var res []error
+
+ if err := m.validateEndStationID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStartStationID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateEndStationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("EndStationID", "body", m.EndStationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) validateStartStationID(formats strfmt.Registry) error {
+
+ if err := validate.Required("StartStationID", "body", m.StartStationID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong) UnmarshalBinary(b []byte) error {
+ var res ServiceDTOVersion3RailTRADailyTrainTimeTableSectionAmong
+ 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_stop_time.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_stop_time.go
index 8896fe3a..0e8dae09 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/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_stop_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime StopTime
+//
// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.StopTime
type ServiceDTOVersion3RailTRADailyTrainTimeTableStopTime struct {
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/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_info.go
index 349bb306..c69e70c8 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/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_info.go
@@ -6,14 +6,16 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
+ "strconv"
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo TrainInfo
+//
// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainInfo
type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
@@ -42,10 +44,13 @@ type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo struct {
// integer
//
- // 是否提供餐車服務 : [0:'否',1:'是']
+ // 是否提供訂便當服務 : [0:'否',1:'是']
// Required: true
DiningFlag *int32 `json:"DiningFlag"`
+ // 提供訂便當服務之車站區間
+ DiningFlagSections []*ServiceDTOVersion3RailTRADailyTrainTimeTableDiningFlagSection `json:"DiningFlagSections"`
+
// integer
//
// 行駛方向 : [0:'順行',1:'逆行']
@@ -143,6 +148,10 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) Validate(formats
res = append(res, err)
}
+ if err := m.validateDiningFlagSections(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateDirection(formats); err != nil {
res = append(res, err)
}
@@ -221,6 +230,31 @@ func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFl
return nil
}
+func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDiningFlagSections(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.DiningFlagSections) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.DiningFlagSections); i++ {
+ if swag.IsZero(m.DiningFlagSections[i]) { // not required
+ continue
+ }
+
+ if m.DiningFlagSections[i] != nil {
+ if err := m.DiningFlagSections[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("DiningFlagSections" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
func (m *ServiceDTOVersion3RailTRADailyTrainTimeTableTrainInfo) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
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/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
index 2811e639..186399bf 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/service_d_t_o_version3_rail_t_r_a_daily_train_time_table_train_timetable.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable TrainTimetable
+//
// swagger:model Service.DTO.Version3.Rail.TRA.DailyTrainTimeTable.TrainTimetable
type ServiceDTOVersion3RailTRADailyTrainTimeTableTrainTimetable struct {
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/service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
index ee8cfcbf..2ceb5aef 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/service_d_t_o_version3_rail_t_r_a_general_station_timetable_general_station_timetable.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,17 +17,10 @@ import (
// ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable GeneralStationTimetable
//
// 台鐵車站站別時刻表資料型別
+//
// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.GeneralStationTimetable
type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable struct {
- // 目的站車站代號
- DestinationStationID string `json:"DestinationStationID,omitempty"`
-
- // NameType
- //
- // 目的站車站
- DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
-
// integer
//
// 行駛方向 : [0:'順行',1:'逆行']
@@ -62,10 +54,6 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable str
func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateDestinationStationName(formats); err != nil {
- res = append(res, err)
- }
-
if err := m.validateDirection(formats); err != nil {
res = append(res, err)
}
@@ -92,24 +80,6 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable
return nil
}
-func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) 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 *ServiceDTOVersion3RailTRAGeneralStationTimetableGeneralStationTimetable) validateDirection(formats strfmt.Registry) error {
if err := validate.Required("Direction", "body", m.Direction); err != nil {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go
index 9cd872dc..e9e9fd6a 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_service_day.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay ServiceDay
//
// 服務日型態
+//
// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.ServiceDay
type ServiceDTOVersion3RailTRAGeneralStationTimetableServiceDay struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go
index b586fb4a..fbcab984 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_general_station_timetable_timetable.go
@@ -6,15 +6,15 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable Timetable
//
// 車次停靠站資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.GeneralStationTimetable.Timetable
type ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable struct {
@@ -24,6 +24,14 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable struct {
// 發車時刻
DepartureTime string `json:"DepartureTime,omitempty"`
+ // 目的站車站代號
+ DestinationStationID string `json:"DestinationStationID,omitempty"`
+
+ // NameType
+ //
+ // 目的站車站
+ DestinationStationName *ServiceDTOVersion3BaseNameType `json:"DestinationStationName,omitempty"`
+
// 發車順序
Sequence int32 `json:"Sequence,omitempty"`
@@ -46,6 +54,10 @@ type ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable struct {
func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) Validate(formats strfmt.Registry) error {
var res []error
+ if err := m.validateDestinationStationName(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateTrainTypeName(formats); err != nil {
res = append(res, err)
}
@@ -56,6 +68,24 @@ func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) Validate(for
return nil
}
+func (m *ServiceDTOVersion3RailTRAGeneralStationTimetableTimetable) 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 {
if swag.IsZero(m.TrainTypeName) { // not required
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
index 52fb491a..e8aafd16 100644
--- 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
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAGeneralTrainTimetable GeneralTrainTimetable
//
// 台鐵定期時刻表資料型別
+//
// swagger:model Service.DTO.Version3.Rail.TRA.GeneralTrainTimetable
type ServiceDTOVersion3RailTRAGeneralTrainTimetable struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go
index 5c32c777..2578511b 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRALine Line
//
// 路線基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Line
type ServiceDTOVersion3RailTRALine struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
index eb996d40..b279bddd 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_network.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRALineNetworkLineNetwork LineNetwork
//
// 路線網路拓撲基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.LineNetwork.LineNetwork
type ServiceDTOVersion3RailTRALineNetworkLineNetwork struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go
index 42ea6878..08a2084c 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_network_line_segment.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRALineNetworkLineSegment LineSegment
//
// 路線站點間線段資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.LineNetwork.LineSegment
type ServiceDTOVersion3RailTRALineNetworkLineSegment struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go
index c51961ad..a73b29fe 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_line_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRALineTransfer LineTransfer
//
// 台鐵路線站間轉乘基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.LineTransfer
type ServiceDTOVersion3RailTRALineTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go
index 0db7bdf4..a55766e8 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_line.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRANetworkLine Line
//
// 路線基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Network.Line
type ServiceDTOVersion3RailTRANetworkLine struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go
index eb5fa56b..04c75f19 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_network_map_name_type.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRANetworkMapNameType MapNameType
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Network.MapNameType
type ServiceDTOVersion3RailTRANetworkMapNameType struct {
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
index a1d599d1..fe424c32 100644
--- 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
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRANetworkNetwork Network
//
// 臺鐵路網資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Network.Network
type ServiceDTOVersion3RailTRANetworkNetwork struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go
index a9afb166..2c19c512 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_o_d_fare_fare.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRAODFareFare Fare
+//
// swagger:model Service.DTO.Version3.Rail.TRA.ODFare.Fare
type ServiceDTOVersion3RailTRAODFareFare struct {
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/service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
index a291172a..94229cb1 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/service_d_t_o_version3_rail_t_r_a_o_d_fare_o_d_fare.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRAODFareODFare ODFare
+//
// swagger:model Service.DTO.Version3.Rail.TRA.ODFare.ODFare
type ServiceDTOVersion3RailTRAODFareODFare struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go
index c1312f29..33826238 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAOperator Operator
//
// 台鐵者營運業者基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Operator
type ServiceDTOVersion3RailTRAOperator struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go
index 1b3cc7d9..090b2168 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_shape.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAShape Shape
//
// 臺鐵線型資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Shape
type ServiceDTOVersion3RailTRAShape struct {
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
index 8f20c017..a87e26ec 100644
--- 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
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRASpecificTrainTimetable SpecificTrainTimetable
//
// 台鐵特殊車次時刻表資料型別
+//
// swagger:model Service.DTO.Version3.Rail.TRA.SpecificTrainTimetable
type ServiceDTOVersion3RailTRASpecificTrainTimetable struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go
index 5cff491a..7f5c3cb5 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStation Station
//
// 台鐵車站資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.Station
type ServiceDTOVersion3RailTRAStation struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go
index be45960d..c43d2775 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_exit.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationExitExit Exit
//
// 車站出入口
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationExit.Exit
type ServiceDTOVersion3RailTRAStationExitExit struct {
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
index 03d82f26..71c361be 100644
--- 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
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"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 {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
index 4e271a6c..32441af6 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_exit_station_exit.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAStationExitStationExit StationExit
//
// 台鐵車站出入口資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationExit.StationExit
type ServiceDTOVersion3RailTRAStationExitStationExit struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go
index 0924c71a..493773d4 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_facility_info.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRAStationFacilityFacilityInfo FacilityInfo
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.FacilityInfo
type ServiceDTOVersion3RailTRAStationFacilityFacilityInfo struct {
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
index 4f061a81..34ea84df 100644
--- 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
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL FacilityMapURL
//
// 車站設施簡圖網址連結資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.FacilityMapURL
type ServiceDTOVersion3RailTRAStationFacilityFacilityMapURL struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
index e7cd03a4..7f594294 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_facility_station_facility.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAStationFacilityStationFacility StationFacility
//
// 車站設施資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationFacility.StationFacility
type ServiceDTOVersion3RailTRAStationFacilityStationFacility struct {
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/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go
index d866a294..5a812e79 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_of_line_line_station.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationOfLineLineStation LineStation
//
// 路線車站資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationOfLine.LineStation
type ServiceDTOVersion3RailTRAStationOfLineLineStation struct {
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/service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
index 4bfc8123..94f98e50 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/service_d_t_o_version3_rail_t_r_a_station_of_line_station_of_line.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAStationOfLineStationOfLine StationOfLine
//
// 路線車站基本資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationOfLine.StationOfLine
type ServiceDTOVersion3RailTRAStationOfLineStationOfLine struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go
index 2884936e..7596c018 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_airport_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferAirportTransfer AirportTransfer
//
// 航空運具轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.AirportTransfer
type ServiceDTOVersion3RailTRAStationTransferAirportTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go
index 7ce4f9d8..0fdc32c9 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bike_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferBikeTransfer BikeTransfer
//
// 公共自行車轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.BikeTransfer
type ServiceDTOVersion3RailTRAStationTransferBikeTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go
index dad2459b..164d479f 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_bus_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferBusTransfer BusTransfer
//
// 公車運具轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.BusTransfer
type ServiceDTOVersion3RailTRAStationTransferBusTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go
index a50f1311..105dc11c 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_ferry_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferFerryTransfer FerryTransfer
//
// 航運轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.FerryTransfer
type ServiceDTOVersion3RailTRAStationTransferFerryTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go
index ce3bf596..c825bc9a 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_map_url.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferMapURL MapURL
//
// 轉乘地圖簡圖連結資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.MapURL
type ServiceDTOVersion3RailTRAStationTransferMapURL struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go
index cf0c4d2d..bf6513da 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_parking_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferParkingTransfer ParkingTransfer
//
// 停車場轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.ParkingTransfer
type ServiceDTOVersion3RailTRAStationTransferParkingTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go
index 91c6c637..69513f58 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_rail_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferRailTransfer RailTransfer
//
// 軌道轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.RailTransfer
type ServiceDTOVersion3RailTRAStationTransferRailTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
index 76879207..d4d08b06 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_station_transfer.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferStationTransfer StationTransfer
//
// 車站跨運具轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.StationTransfer
type ServiceDTOVersion3RailTRAStationTransferStationTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go
index c9fb84da..664722dc 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_taxi_transfer.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferTaxiTransfer TaxiTransfer
//
// 計程車轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.TaxiTransfer
type ServiceDTOVersion3RailTRAStationTransferTaxiTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go
index 16432fff..e28a61fd 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_station_transfer_transfer.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion3RailTRAStationTransferTransfer Transfer
//
// 跨運具轉乘資訊
+//
// swagger:model Service.DTO.Version3.Rail.TRA.StationTransfer.Transfer
type ServiceDTOVersion3RailTRAStationTransferTransfer struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
index 85e8eea9..73a32ea9 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRATRAAlertListAlert Alert
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.Alert
type ServiceDTOVersion3RailTRATRAAlertListAlert struct {
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/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope.go
index 677a21c0..72e77fc9 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/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScope AlertScope
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScope
type ServiceDTOVersion3RailTRATRAAlertListAlertScope struct {
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
index e6b53245..b2c96060 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine AlertScopeLine
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLine
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeLine struct {
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/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
index 3850abfa..1a56d8be 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/service_d_t_o_version3_rail_t_r_a_t_r_a_alert_list_alert_scope_line_section.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection AlertScopeLineSection
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeLineSection
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeLineSection struct {
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
index fb19ff8c..f6a792ee 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork AlertScopeNetwork
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeNetwork
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeNetwork struct {
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
index a0a27020..62a69262 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute AlertScopeRoute
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeRoute
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeRoute struct {
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
index d98e36c7..4c44bf92 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation AlertScopeStation
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeStation
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeStation struct {
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
index 968c5236..f924244e 100644
--- 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
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain AlertScopeTrain
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAAlertList.AlertScopeTrain
type ServiceDTOVersion3RailTRATRAAlertListAlertScopeTrain struct {
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/service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
index 3db6f83c..b62711f1 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/service_d_t_o_version3_rail_t_r_a_t_r_a_news_list_news.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRATRANewsListNews News
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRANewsList.News
type ServiceDTOVersion3RailTRATRANewsListNews struct {
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/service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
index 84ad19fd..e880b071 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/service_d_t_o_version3_rail_t_r_a_t_r_a_station_live_board_list_station_live_board.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard StationLiveBoard
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRAStationLiveBoardList.StationLiveBoard
type ServiceDTOVersion3RailTRATRAStationLiveBoardListStationLiveBoard struct {
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/service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
index c370c53c..2a282fb3 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/service_d_t_o_version3_rail_t_r_a_t_r_a_train_live_board_list_train_live_board.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard TrainLiveBoard
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TRATrainLiveBoardList.TrainLiveBoard
type ServiceDTOVersion3RailTRATRATrainLiveBoardListTrainLiveBoard struct {
diff --git a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go
index ad42ad46..9ea18653 100644
--- a/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go
+++ b/rail/v3/models/service_d_t_o_version3_rail_t_r_a_train_type.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion3RailTRATrainType TrainType
//
// 臺鐵列車車種資料
+//
// swagger:model Service.DTO.Version3.Rail.TRA.TrainType
type ServiceDTOVersion3RailTRATrainType struct {
diff --git a/ship/v3/client/m_o_t_c_transport_api_v3_client.go b/ship/v3/client/m_o_t_c_transport_api_v3_client.go
index 7ae1e9dd..5f910ea9 100644
--- a/ship/v3/client/m_o_t_c_transport_api_v3_client.go
+++ b/ship/v3/client/m_o_t_c_transport_api_v3_client.go
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/ship/v3/client/ship"
)
@@ -20,7 +19,7 @@ var Default = NewHTTPClient(nil)
const (
// DefaultHost is the default Host
// found in Meta (info) section of spec file
- DefaultHost string = "ptx.transportdata.tw:443"
+ DefaultHost string = "ptx.transportdata.tw"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
DefaultBasePath string = "/MOTC"
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV3)
cli.Transport = transport
-
cli.Ship = ship.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV3 is a client for m o t c transport API v3
type MOTCTransportAPIV3 struct {
- Ship *ship.Client
+ Ship ship.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV3 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV3) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Ship.SetTransport(transport)
-
}
diff --git a/ship/v3/client/ship/ship_api_authority_parameters.go b/ship/v3/client/ship/ship_api_authority_parameters.go
index 60cba037..cc649748 100644
--- a/ship/v3/client/ship/ship_api_authority_parameters.go
+++ b/ship/v3/client/ship/ship_api_authority_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIAuthorityParams creates a new ShipAPIAuthorityParams object
@@ -78,7 +77,7 @@ type ShipAPIAuthorityParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIAuthorityParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api authority params
-func (o *ShipAPIAuthorityParams) WithDollarCount(dollarCount *string) *ShipAPIAuthorityParams {
+func (o *ShipAPIAuthorityParams) WithDollarCount(dollarCount *bool) *ShipAPIAuthorityParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api authority params
-func (o *ShipAPIAuthorityParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIAuthorityParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIAuthorityParams) WriteToRequest(r runtime.ClientRequest, reg str
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/ship/v3/client/ship/ship_api_authority_responses.go b/ship/v3/client/ship/ship_api_authority_responses.go
index 7ddc0f7f..1b151fdc 100644
--- a/ship/v3/client/ship/ship_api_authority_responses.go
+++ b/ship/v3/client/ship/ship_api_authority_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIAuthorityReader is a Reader for the ShipAPIAuthority structure.
diff --git a/ship/v3/client/ship/ship_api_general_schedule1_parameters.go b/ship/v3/client/ship/ship_api_general_schedule1_parameters.go
index 8168fc80..b5d2b429 100644
--- a/ship/v3/client/ship/ship_api_general_schedule1_parameters.go
+++ b/ship/v3/client/ship/ship_api_general_schedule1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIGeneralSchedule1Params creates a new ShipAPIGeneralSchedule1Params object
@@ -78,7 +77,7 @@ type ShipAPIGeneralSchedule1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -154,13 +153,13 @@ func (o *ShipAPIGeneralSchedule1Params) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api general schedule 1 params
-func (o *ShipAPIGeneralSchedule1Params) WithDollarCount(dollarCount *string) *ShipAPIGeneralSchedule1Params {
+func (o *ShipAPIGeneralSchedule1Params) WithDollarCount(dollarCount *bool) *ShipAPIGeneralSchedule1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api general schedule 1 params
-func (o *ShipAPIGeneralSchedule1Params) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIGeneralSchedule1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -252,11 +251,11 @@ func (o *ShipAPIGeneralSchedule1Params) 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/ship/v3/client/ship/ship_api_general_schedule1_responses.go b/ship/v3/client/ship/ship_api_general_schedule1_responses.go
index bbdd0df3..c1a1bb89 100644
--- a/ship/v3/client/ship/ship_api_general_schedule1_responses.go
+++ b/ship/v3/client/ship/ship_api_general_schedule1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIGeneralSchedule1Reader is a Reader for the ShipAPIGeneralSchedule1 structure.
diff --git a/ship/v3/client/ship/ship_api_general_schedule_parameters.go b/ship/v3/client/ship/ship_api_general_schedule_parameters.go
index 47b28a51..3f27a103 100644
--- a/ship/v3/client/ship/ship_api_general_schedule_parameters.go
+++ b/ship/v3/client/ship/ship_api_general_schedule_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIGeneralScheduleParams creates a new ShipAPIGeneralScheduleParams object
@@ -78,7 +77,7 @@ type ShipAPIGeneralScheduleParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIGeneralScheduleParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api general schedule params
-func (o *ShipAPIGeneralScheduleParams) WithDollarCount(dollarCount *string) *ShipAPIGeneralScheduleParams {
+func (o *ShipAPIGeneralScheduleParams) WithDollarCount(dollarCount *bool) *ShipAPIGeneralScheduleParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api general schedule params
-func (o *ShipAPIGeneralScheduleParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIGeneralScheduleParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIGeneralScheduleParams) 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/ship/v3/client/ship/ship_api_general_schedule_responses.go b/ship/v3/client/ship/ship_api_general_schedule_responses.go
index 60169834..b1e68252 100644
--- a/ship/v3/client/ship/ship_api_general_schedule_responses.go
+++ b/ship/v3/client/ship/ship_api_general_schedule_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIGeneralScheduleReader is a Reader for the ShipAPIGeneralSchedule structure.
diff --git a/ship/v3/client/ship/ship_api_operator_parameters.go b/ship/v3/client/ship/ship_api_operator_parameters.go
index a3ba5d3f..0fb36279 100644
--- a/ship/v3/client/ship/ship_api_operator_parameters.go
+++ b/ship/v3/client/ship/ship_api_operator_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIOperatorParams creates a new ShipAPIOperatorParams object
@@ -78,7 +77,7 @@ type ShipAPIOperatorParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIOperatorParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api operator params
-func (o *ShipAPIOperatorParams) WithDollarCount(dollarCount *string) *ShipAPIOperatorParams {
+func (o *ShipAPIOperatorParams) WithDollarCount(dollarCount *bool) *ShipAPIOperatorParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api operator params
-func (o *ShipAPIOperatorParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIOperatorParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIOperatorParams) 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/ship/v3/client/ship/ship_api_operator_responses.go b/ship/v3/client/ship/ship_api_operator_responses.go
index 283d8704..3359b0d7 100644
--- a/ship/v3/client/ship/ship_api_operator_responses.go
+++ b/ship/v3/client/ship/ship_api_operator_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIOperatorReader is a Reader for the ShipAPIOperator structure.
diff --git a/ship/v3/client/ship/ship_api_port_parameters.go b/ship/v3/client/ship/ship_api_port_parameters.go
index fdba992c..182aadad 100644
--- a/ship/v3/client/ship/ship_api_port_parameters.go
+++ b/ship/v3/client/ship/ship_api_port_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIPortParams creates a new ShipAPIPortParams object
@@ -78,7 +77,7 @@ type ShipAPIPortParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIPortParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api port params
-func (o *ShipAPIPortParams) WithDollarCount(dollarCount *string) *ShipAPIPortParams {
+func (o *ShipAPIPortParams) WithDollarCount(dollarCount *bool) *ShipAPIPortParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api port params
-func (o *ShipAPIPortParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIPortParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.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/ship/v3/client/ship/ship_api_port_responses.go b/ship/v3/client/ship/ship_api_port_responses.go
index 367c72e7..71313b70 100644
--- a/ship/v3/client/ship/ship_api_port_responses.go
+++ b/ship/v3/client/ship/ship_api_port_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIPortReader is a Reader for the ShipAPIPort structure.
diff --git a/ship/v3/client/ship/ship_api_route1_parameters.go b/ship/v3/client/ship/ship_api_route1_parameters.go
index 4321b01b..1b5edea2 100644
--- a/ship/v3/client/ship/ship_api_route1_parameters.go
+++ b/ship/v3/client/ship/ship_api_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIRoute1Params creates a new ShipAPIRoute1Params object
@@ -78,7 +77,7 @@ type ShipAPIRoute1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -154,13 +153,13 @@ func (o *ShipAPIRoute1Params) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api route 1 params
-func (o *ShipAPIRoute1Params) WithDollarCount(dollarCount *string) *ShipAPIRoute1Params {
+func (o *ShipAPIRoute1Params) WithDollarCount(dollarCount *bool) *ShipAPIRoute1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api route 1 params
-func (o *ShipAPIRoute1Params) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIRoute1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -252,11 +251,11 @@ func (o *ShipAPIRoute1Params) 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/ship/v3/client/ship/ship_api_route1_responses.go b/ship/v3/client/ship/ship_api_route1_responses.go
index d7aa408e..39ff93ea 100644
--- a/ship/v3/client/ship/ship_api_route1_responses.go
+++ b/ship/v3/client/ship/ship_api_route1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIRoute1Reader is a Reader for the ShipAPIRoute1 structure.
diff --git a/ship/v3/client/ship/ship_api_route_fare1_parameters.go b/ship/v3/client/ship/ship_api_route_fare1_parameters.go
index 309e0e1e..4f8a3c84 100644
--- a/ship/v3/client/ship/ship_api_route_fare1_parameters.go
+++ b/ship/v3/client/ship/ship_api_route_fare1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIRouteFare1Params creates a new ShipAPIRouteFare1Params object
@@ -78,7 +77,7 @@ type ShipAPIRouteFare1Params struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -154,13 +153,13 @@ func (o *ShipAPIRouteFare1Params) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api route fare 1 params
-func (o *ShipAPIRouteFare1Params) WithDollarCount(dollarCount *string) *ShipAPIRouteFare1Params {
+func (o *ShipAPIRouteFare1Params) WithDollarCount(dollarCount *bool) *ShipAPIRouteFare1Params {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api route fare 1 params
-func (o *ShipAPIRouteFare1Params) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIRouteFare1Params) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -252,11 +251,11 @@ func (o *ShipAPIRouteFare1Params) 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/ship/v3/client/ship/ship_api_route_fare1_responses.go b/ship/v3/client/ship/ship_api_route_fare1_responses.go
index 0b2bc39f..78432f41 100644
--- a/ship/v3/client/ship/ship_api_route_fare1_responses.go
+++ b/ship/v3/client/ship/ship_api_route_fare1_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIRouteFare1Reader is a Reader for the ShipAPIRouteFare1 structure.
diff --git a/ship/v3/client/ship/ship_api_route_fare_parameters.go b/ship/v3/client/ship/ship_api_route_fare_parameters.go
index 436c90f8..f185c6bf 100644
--- a/ship/v3/client/ship/ship_api_route_fare_parameters.go
+++ b/ship/v3/client/ship/ship_api_route_fare_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIRouteFareParams creates a new ShipAPIRouteFareParams object
@@ -78,7 +77,7 @@ type ShipAPIRouteFareParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIRouteFareParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api route fare params
-func (o *ShipAPIRouteFareParams) WithDollarCount(dollarCount *string) *ShipAPIRouteFareParams {
+func (o *ShipAPIRouteFareParams) WithDollarCount(dollarCount *bool) *ShipAPIRouteFareParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api route fare params
-func (o *ShipAPIRouteFareParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIRouteFareParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIRouteFareParams) WriteToRequest(r runtime.ClientRequest, reg str
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/ship/v3/client/ship/ship_api_route_fare_responses.go b/ship/v3/client/ship/ship_api_route_fare_responses.go
index bbfb4f8d..aa09da25 100644
--- a/ship/v3/client/ship/ship_api_route_fare_responses.go
+++ b/ship/v3/client/ship/ship_api_route_fare_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIRouteFareReader is a Reader for the ShipAPIRouteFare structure.
diff --git a/ship/v3/client/ship/ship_api_route_parameters.go b/ship/v3/client/ship/ship_api_route_parameters.go
index 66a750b4..1ecee2b9 100644
--- a/ship/v3/client/ship/ship_api_route_parameters.go
+++ b/ship/v3/client/ship/ship_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewShipAPIRouteParams creates a new ShipAPIRouteParams object
@@ -78,7 +77,7 @@ type ShipAPIRouteParams struct {
查詢數量
*/
- DollarCount *string
+ DollarCount *bool
/*DollarFilter
過濾
@@ -149,13 +148,13 @@ func (o *ShipAPIRouteParams) SetHTTPClient(client *http.Client) {
}
// WithDollarCount adds the dollarCount to the ship Api route params
-func (o *ShipAPIRouteParams) WithDollarCount(dollarCount *string) *ShipAPIRouteParams {
+func (o *ShipAPIRouteParams) WithDollarCount(dollarCount *bool) *ShipAPIRouteParams {
o.SetDollarCount(dollarCount)
return o
}
// SetDollarCount adds the dollarCount to the ship Api route params
-func (o *ShipAPIRouteParams) SetDollarCount(dollarCount *string) {
+func (o *ShipAPIRouteParams) SetDollarCount(dollarCount *bool) {
o.DollarCount = dollarCount
}
@@ -236,11 +235,11 @@ func (o *ShipAPIRouteParams) 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/ship/v3/client/ship/ship_api_route_responses.go b/ship/v3/client/ship/ship_api_route_responses.go
index 73652d06..6ce17d66 100644
--- a/ship/v3/client/ship/ship_api_route_responses.go
+++ b/ship/v3/client/ship/ship_api_route_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/ship/v3/models"
+ "github.com/minchao/go-ptx/ship/v3/models"
)
// ShipAPIRouteReader is a Reader for the ShipAPIRoute structure.
diff --git a/ship/v3/client/ship/ship_client.go b/ship/v3/client/ship/ship_client.go
index 5bc82846..5d5a7311 100644
--- a/ship/v3/client/ship/ship_client.go
+++ b/ship/v3/client/ship/ship_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new ship API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,8 +25,31 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ ShipAPIAuthority(params *ShipAPIAuthorityParams) (*ShipAPIAuthorityOK, error)
+
+ ShipAPIGeneralSchedule(params *ShipAPIGeneralScheduleParams) (*ShipAPIGeneralScheduleOK, error)
+
+ ShipAPIGeneralSchedule1(params *ShipAPIGeneralSchedule1Params) (*ShipAPIGeneralSchedule1OK, error)
+
+ ShipAPIOperator(params *ShipAPIOperatorParams) (*ShipAPIOperatorOK, error)
+
+ ShipAPIPort(params *ShipAPIPortParams) (*ShipAPIPortOK, error)
+
+ ShipAPIRoute(params *ShipAPIRouteParams) (*ShipAPIRouteOK, error)
+
+ ShipAPIRouteFare(params *ShipAPIRouteFareParams) (*ShipAPIRouteFareOK, error)
+
+ ShipAPIRouteFare1(params *ShipAPIRouteFare1Params) (*ShipAPIRouteFare1OK, error)
+
+ ShipAPIRoute1(params *ShipAPIRoute1Params) (*ShipAPIRoute1OK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-ShipAPIAuthority 取得業管機關資料s
+ ShipAPIAuthority 取得業管機關資料s
*/
func (a *Client) ShipAPIAuthority(params *ShipAPIAuthorityParams) (*ShipAPIAuthorityOK, error) {
// TODO: Validate the params before sending
@@ -40,7 +62,7 @@ func (a *Client) ShipAPIAuthority(params *ShipAPIAuthorityParams) (*ShipAPIAutho
Method: "GET",
PathPattern: "/v3/Ship/Authority",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIAuthorityReader{formats: a.formats},
@@ -61,7 +83,7 @@ func (a *Client) ShipAPIAuthority(params *ShipAPIAuthorityParams) (*ShipAPIAutho
}
/*
-ShipAPIGeneralSchedule 取得定期班表資料s
+ ShipAPIGeneralSchedule 取得定期班表資料s
*/
func (a *Client) ShipAPIGeneralSchedule(params *ShipAPIGeneralScheduleParams) (*ShipAPIGeneralScheduleOK, error) {
// TODO: Validate the params before sending
@@ -74,7 +96,7 @@ func (a *Client) ShipAPIGeneralSchedule(params *ShipAPIGeneralScheduleParams) (*
Method: "GET",
PathPattern: "/v3/Ship/GeneralSchedule",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIGeneralScheduleReader{formats: a.formats},
@@ -95,7 +117,7 @@ func (a *Client) ShipAPIGeneralSchedule(params *ShipAPIGeneralScheduleParams) (*
}
/*
-ShipAPIGeneralSchedule1 取得s 指定航線 定期班表資料
+ ShipAPIGeneralSchedule1 取得s 指定航線 定期班表資料
*/
func (a *Client) ShipAPIGeneralSchedule1(params *ShipAPIGeneralSchedule1Params) (*ShipAPIGeneralSchedule1OK, error) {
// TODO: Validate the params before sending
@@ -108,7 +130,7 @@ func (a *Client) ShipAPIGeneralSchedule1(params *ShipAPIGeneralSchedule1Params)
Method: "GET",
PathPattern: "/v3/Ship/GeneralSchedule/{RouteID}",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIGeneralSchedule1Reader{formats: a.formats},
@@ -129,7 +151,7 @@ func (a *Client) ShipAPIGeneralSchedule1(params *ShipAPIGeneralSchedule1Params)
}
/*
-ShipAPIOperator 取得營運業者資料s
+ ShipAPIOperator 取得營運業者資料s
*/
func (a *Client) ShipAPIOperator(params *ShipAPIOperatorParams) (*ShipAPIOperatorOK, error) {
// TODO: Validate the params before sending
@@ -142,7 +164,7 @@ func (a *Client) ShipAPIOperator(params *ShipAPIOperatorParams) (*ShipAPIOperato
Method: "GET",
PathPattern: "/v3/Ship/Operator",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIOperatorReader{formats: a.formats},
@@ -163,7 +185,7 @@ func (a *Client) ShipAPIOperator(params *ShipAPIOperatorParams) (*ShipAPIOperato
}
/*
-ShipAPIPort 取得港口資料s
+ ShipAPIPort 取得港口資料s
*/
func (a *Client) ShipAPIPort(params *ShipAPIPortParams) (*ShipAPIPortOK, error) {
// TODO: Validate the params before sending
@@ -176,7 +198,7 @@ func (a *Client) ShipAPIPort(params *ShipAPIPortParams) (*ShipAPIPortOK, error)
Method: "GET",
PathPattern: "/v3/Ship/Port",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIPortReader{formats: a.formats},
@@ -197,7 +219,7 @@ func (a *Client) ShipAPIPort(params *ShipAPIPortParams) (*ShipAPIPortOK, error)
}
/*
-ShipAPIRoute 取得航運路線資料s
+ ShipAPIRoute 取得航運路線資料s
*/
func (a *Client) ShipAPIRoute(params *ShipAPIRouteParams) (*ShipAPIRouteOK, error) {
// TODO: Validate the params before sending
@@ -210,7 +232,7 @@ func (a *Client) ShipAPIRoute(params *ShipAPIRouteParams) (*ShipAPIRouteOK, erro
Method: "GET",
PathPattern: "/v3/Ship/Route",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIRouteReader{formats: a.formats},
@@ -231,7 +253,7 @@ func (a *Client) ShipAPIRoute(params *ShipAPIRouteParams) (*ShipAPIRouteOK, erro
}
/*
-ShipAPIRouteFare 取得航線票價資料s
+ ShipAPIRouteFare 取得航線票價資料s
*/
func (a *Client) ShipAPIRouteFare(params *ShipAPIRouteFareParams) (*ShipAPIRouteFareOK, error) {
// TODO: Validate the params before sending
@@ -244,7 +266,7 @@ func (a *Client) ShipAPIRouteFare(params *ShipAPIRouteFareParams) (*ShipAPIRoute
Method: "GET",
PathPattern: "/v3/Ship/RouteFare",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIRouteFareReader{formats: a.formats},
@@ -265,7 +287,7 @@ func (a *Client) ShipAPIRouteFare(params *ShipAPIRouteFareParams) (*ShipAPIRoute
}
/*
-ShipAPIRouteFare1 取得s 指定航線 票價資料
+ ShipAPIRouteFare1 取得s 指定航線 票價資料
*/
func (a *Client) ShipAPIRouteFare1(params *ShipAPIRouteFare1Params) (*ShipAPIRouteFare1OK, error) {
// TODO: Validate the params before sending
@@ -278,7 +300,7 @@ func (a *Client) ShipAPIRouteFare1(params *ShipAPIRouteFare1Params) (*ShipAPIRou
Method: "GET",
PathPattern: "/v3/Ship/RouteFare/{RouteID}",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIRouteFare1Reader{formats: a.formats},
@@ -299,7 +321,7 @@ func (a *Client) ShipAPIRouteFare1(params *ShipAPIRouteFare1Params) (*ShipAPIRou
}
/*
-ShipAPIRoute1 取得s 指定航線 資料
+ ShipAPIRoute1 取得s 指定航線 資料
*/
func (a *Client) ShipAPIRoute1(params *ShipAPIRoute1Params) (*ShipAPIRoute1OK, error) {
// TODO: Validate the params before sending
@@ -312,7 +334,7 @@ func (a *Client) ShipAPIRoute1(params *ShipAPIRoute1Params) (*ShipAPIRoute1OK, e
Method: "GET",
PathPattern: "/v3/Ship/Route/{RouteID}",
ProducesMediaTypes: []string{"application/json", "application/xml"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &ShipAPIRoute1Reader{formats: a.formats},
diff --git a/ship/v3/models/p_t_x_api_ship_model_schedule_wrapper_p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go b/ship/v3/models/p_t_x_api_ship_model_schedule_wrapper_p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
index 35edfcb6..e03ab574 100644
--- a/ship/v3/models/p_t_x_api_ship_model_schedule_wrapper_p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
+++ b/ship/v3/models/p_t_x_api_ship_model_schedule_wrapper_p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedule ShipGeneralScheduleList
+//
// swagger:model PTX.API.Ship.Model.ScheduleWrapper[PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule]
type PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedule struct {
@@ -40,7 +40,7 @@ type PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedu
// Array
//
// 資料(陣列)
- GeneralSchedules []*PTXServiceDTOShipSpecificationV3GeneralSchedule `json:"GeneralSchedules"`
+ Ports []*PTXServiceDTOShipSpecificationV3GeneralSchedule `json:"Ports"`
// Int32
//
@@ -64,7 +64,7 @@ type PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedu
func (m *PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedule) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateGeneralSchedules(formats); err != nil {
+ if err := m.validatePorts(formats); err != nil {
res = append(res, err)
}
@@ -82,21 +82,21 @@ func (m *PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSc
return nil
}
-func (m *PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedule) validateGeneralSchedules(formats strfmt.Registry) error {
+func (m *PTXAPIShipModelScheduleWrapperPTXServiceDTOShipSpecificationV3GeneralSchedule) validatePorts(formats strfmt.Registry) error {
- if swag.IsZero(m.GeneralSchedules) { // not required
+ if swag.IsZero(m.Ports) { // not required
return nil
}
- for i := 0; i < len(m.GeneralSchedules); i++ {
- if swag.IsZero(m.GeneralSchedules[i]) { // not required
+ for i := 0; i < len(m.Ports); i++ {
+ if swag.IsZero(m.Ports[i]) { // not required
continue
}
- if m.GeneralSchedules[i] != nil {
- if err := m.GeneralSchedules[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("GeneralSchedules" + "." + strconv.Itoa(i))
+ return ve.ValidateName("Ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_shared_specification_v3_base_authority.go b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
index 15f9d31a..4060901a 100644
--- a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
+++ b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
@@ -8,22 +8,17 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority ShipAuthorityList
+//
// swagger:model PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Shared.Specification.V3.Base.Authority]
type PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority struct {
- // Array
- //
- // 資料(陣列)
- Authorities []*PTXServiceDTOSharedSpecificationV3BaseAuthority `json:"Authorities"`
-
// String
//
// 業管機關簡碼
@@ -32,6 +27,11 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority s
// 資料總筆數
Count int64 `json:"Count,omitempty"`
+ // Array
+ //
+ // 資料(陣列)
+ Ports []*PTXServiceDTOSharedSpecificationV3BaseAuthority `json:"Ports"`
+
// Int32
//
// 本平台資料更新週期(秒)
@@ -54,7 +54,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority s
func (m *PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateAuthorities(formats); err != nil {
+ if err := m.validatePorts(formats); err != nil {
res = append(res, err)
}
@@ -72,21 +72,21 @@ func (m *PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthori
return nil
}
-func (m *PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority) validateAuthorities(formats strfmt.Registry) error {
+func (m *PTXAPIShipModelShipWrapperPTXServiceDTOSharedSpecificationV3BaseAuthority) validatePorts(formats strfmt.Registry) error {
- if swag.IsZero(m.Authorities) { // not required
+ if swag.IsZero(m.Ports) { // not required
return nil
}
- for i := 0; i < len(m.Authorities); i++ {
- if swag.IsZero(m.Authorities[i]) { // not required
+ for i := 0; i < len(m.Ports); i++ {
+ if swag.IsZero(m.Ports[i]) { // not required
continue
}
- if m.Authorities[i] != nil {
- if err := m.Authorities[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Authorities" + "." + strconv.Itoa(i))
+ return ve.ValidateName("Ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_operator.go b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_operator.go
index e3323fe8..f9243b7c 100644
--- a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_operator.go
+++ b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_operator.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator ShipOperatorList
+//
// swagger:model PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Operator]
type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator struct {
@@ -30,7 +30,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator struct {
// Array
//
// 資料(陣列)
- Operators []*PTXServiceDTOShipSpecificationV3Operator `json:"Operators"`
+ Ports []*PTXServiceDTOShipSpecificationV3Operator `json:"Ports"`
// Int32
//
@@ -54,7 +54,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator struct {
func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateOperators(formats); err != nil {
+ if err := m.validatePorts(formats); err != nil {
res = append(res, err)
}
@@ -72,21 +72,21 @@ func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator) Val
return nil
}
-func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator) validateOperators(formats strfmt.Registry) error {
+func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Operator) validatePorts(formats strfmt.Registry) error {
- if swag.IsZero(m.Operators) { // not required
+ if swag.IsZero(m.Ports) { // not required
return nil
}
- for i := 0; i < len(m.Operators); i++ {
- if swag.IsZero(m.Operators[i]) { // not required
+ for i := 0; i < len(m.Ports); i++ {
+ if swag.IsZero(m.Ports[i]) { // not required
continue
}
- if m.Operators[i] != nil {
- if err := m.Operators[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Operators" + "." + strconv.Itoa(i))
+ return ve.ValidateName("Ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_port.go b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_port.go
index f56f5ccf..b5b656d4 100644
--- a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_port.go
+++ b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_port.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Port ShipPortList
+//
// swagger:model PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Port]
type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Port struct {
diff --git a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route.go b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route.go
index a8c669d9..b0a5f48f 100644
--- a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route.go
+++ b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route ShipRouteList
+//
// swagger:model PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.Route]
type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route struct {
@@ -30,7 +30,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route struct {
// Array
//
// 資料(陣列)
- Routes []*PTXServiceDTOShipSpecificationV3Route `json:"Routes"`
+ Ports []*PTXServiceDTOShipSpecificationV3Route `json:"Ports"`
// Int32
//
@@ -54,7 +54,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route struct {
func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateRoutes(formats); err != nil {
+ if err := m.validatePorts(formats); err != nil {
res = append(res, err)
}
@@ -72,21 +72,21 @@ func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route) Valida
return nil
}
-func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route) validateRoutes(formats strfmt.Registry) error {
+func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3Route) validatePorts(formats strfmt.Registry) error {
- if swag.IsZero(m.Routes) { // not required
+ if swag.IsZero(m.Ports) { // not required
return nil
}
- for i := 0; i < len(m.Routes); i++ {
- if swag.IsZero(m.Routes[i]) { // not required
+ for i := 0; i < len(m.Ports); i++ {
+ if swag.IsZero(m.Ports[i]) { // not required
continue
}
- if m.Routes[i] != nil {
- if err := m.Routes[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("Routes" + "." + strconv.Itoa(i))
+ return ve.ValidateName("Ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route_fare.go b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
index ee4bea1e..67bb59ef 100644
--- a/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
+++ b/ship/v3/models/p_t_x_api_ship_model_ship_wrapper_p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare ShipRouteFareList
+//
// swagger:model PTX.API.Ship.Model.ShipWrapper[PTX.Service.DTO.Ship.Specification.V3.RouteFare]
type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare struct {
@@ -30,7 +30,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare struct
// Array
//
// 資料(陣列)
- RouteFares []*PTXServiceDTOShipSpecificationV3RouteFare `json:"RouteFares"`
+ Ports []*PTXServiceDTOShipSpecificationV3RouteFare `json:"Ports"`
// Int32
//
@@ -54,7 +54,7 @@ type PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare struct
func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateRouteFares(formats); err != nil {
+ if err := m.validatePorts(formats); err != nil {
res = append(res, err)
}
@@ -72,21 +72,21 @@ func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare) Va
return nil
}
-func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare) validateRouteFares(formats strfmt.Registry) error {
+func (m *PTXAPIShipModelShipWrapperPTXServiceDTOShipSpecificationV3RouteFare) validatePorts(formats strfmt.Registry) error {
- if swag.IsZero(m.RouteFares) { // not required
+ if swag.IsZero(m.Ports) { // not required
return nil
}
- for i := 0; i < len(m.RouteFares); i++ {
- if swag.IsZero(m.RouteFares[i]) { // not required
+ for i := 0; i < len(m.Ports); i++ {
+ if swag.IsZero(m.Ports[i]) { // not required
continue
}
- if m.RouteFares[i] != nil {
- if err := m.RouteFares[i].Validate(formats); err != nil {
+ if m.Ports[i] != nil {
+ if err := m.Ports[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("RouteFares" + "." + strconv.Itoa(i))
+ return ve.ValidateName("Ports" + "." + strconv.Itoa(i))
}
return err
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_authority.go b/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
index 1c9106f5..510ae90f 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_authority.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// PTXServiceDTOSharedSpecificationV3BaseAuthority Authority
//
// 業管機關
+//
// swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Authority
type PTXServiceDTOSharedSpecificationV3BaseAuthority struct {
@@ -37,11 +37,18 @@ type PTXServiceDTOSharedSpecificationV3BaseAuthority struct {
// Required: true
AuthorityEmail *string `json:"AuthorityEmail"`
+ // String
+ //
+ // 業管機關代號
+ AuthorityID string `json:"AuthorityID,omitempty"`
+
// NameType
//
// 業管機關名稱
// Required: true
- AuthorityName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"AuthorityName"`
+ AuthorityName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"AuthorityName"`
// String
//
@@ -60,11 +67,52 @@ type PTXServiceDTOSharedSpecificationV3BaseAuthority struct {
// 業管機關官網網址
AuthorityURL string `json:"AuthorityUrl,omitempty"`
+ // Int32
+ //
+ // 對應至程式所定義之Enum
+ EnumID int32 `json:"EnumID,omitempty"`
+
+ // Boolean
+ //
+ // 是否為航空資料之權責單位
+ IsAirDataAuth bool `json:"IsAirDataAuth,omitempty"`
+
+ // Boolean
+ //
+ // 是否為自行車資料之權責單位
+ IsBikeDataAuth bool `json:"IsBikeDataAuth,omitempty"`
+
+ // Boolean
+ //
+ // 是否為公車資料之權責單位
+ IsBusDataAuth bool `json:"IsBusDataAuth,omitempty"`
+
+ // Boolean
+ //
+ // 是否為軌道資料之權責單位
+ IsRailDataAuth bool `json:"IsRailDataAuth,omitempty"`
+
+ // Boolean
+ //
+ // 是否為航運資料之權責單位
+ IsShipDataAuth bool `json:"IsShipDataAuth,omitempty"`
+
+ // Boolean
+ //
+ // 是否為觀光資料之權責單位
+ IsTourismDataAuth bool `json:"IsTourismDataAuth,omitempty"`
+
// String
//
// 業管機關Logo網址
LogoURL string `json:"LogoURL,omitempty"`
+ // Guid
+ //
+ // 資料唯一碼
+ // Format: uuid
+ PKBaseAuthority strfmt.UUID `json:"PK_BaseAuthority,omitempty"`
+
// DateTime
//
// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
@@ -100,6 +148,10 @@ func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) Validate(formats strfm
res = append(res, err)
}
+ if err := m.validatePKBaseAuthority(formats); err != nil {
+ res = append(res, err)
+ }
+
if err := m.validateUpdateTime(formats); err != nil {
res = append(res, err)
}
@@ -139,19 +191,6 @@ func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) validateAuthorityEmail
func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) validateAuthorityName(formats strfmt.Registry) error {
- if err := validate.Required("AuthorityName", "body", m.AuthorityName); err != nil {
- return err
- }
-
- if m.AuthorityName != nil {
- if err := m.AuthorityName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("AuthorityName")
- }
- return err
- }
- }
-
return nil
}
@@ -173,6 +212,19 @@ func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) validateAuthorityPhone
return nil
}
+func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) validatePKBaseAuthority(formats strfmt.Registry) error {
+
+ if swag.IsZero(m.PKBaseAuthority) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("PK_BaseAuthority", "body", "uuid", m.PKBaseAuthority.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
func (m *PTXServiceDTOSharedSpecificationV3BaseAuthority) validateUpdateTime(formats strfmt.Registry) error {
if err := validate.Required("UpdateTime", "body", m.UpdateTime); err != nil {
diff --git a/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go b/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
index f9cb4e8f..adc99033 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_shared_specification_v3_base_name_type.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "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 {
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_fare.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_fare.go
index 06695e10..66ab3e8f 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_fare.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_fare.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Fare Fare
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Fare
type PTXServiceDTOShipSpecificationV3Fare struct {
@@ -20,9 +20,9 @@ type PTXServiceDTOShipSpecificationV3Fare struct {
// 艙等
CabinClass string `json:"CabinClass,omitempty"`
- // Int32
+ // integer
//
- // 費率等級 = ['1: 成人', '2: 學生', '3: 孩童', '4: 敬老', '5: 愛心', '6: 愛心孩童', '7: 愛心優待或愛心陪伴', '8: 團體', '9: 軍警', '10: 由各運業者自行定義的半票']
+ // 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']
FareClass int32 `json:"FareClass,omitempty"`
// String
@@ -35,9 +35,9 @@ type PTXServiceDTOShipSpecificationV3Fare struct {
// 計費價格
Price int32 `json:"Price,omitempty"`
- // Int32
+ // integer
//
- // 票種類型 = ['1: 一般票', '2: 來回票', '3: 電子票證', '4: 回數票', '5: 定期票30天期', '6: 定期票60天期', '7: 早鳥票', '8: 定期票90天期']
+ // 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']
TicketType int32 `json:"TicketType,omitempty"`
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
index d013a783..99c73195 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_general_schedule.go
@@ -8,19 +8,19 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3GeneralSchedule GeneralSchedule
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.GeneralSchedule
type PTXServiceDTOShipSpecificationV3GeneralSchedule struct {
- // Int32
+ // integer
//
- // 方向性描述(0=去程, 1=返程,2=迴圈)
+ // 方向性描述 : [0:'去程',1:'返程',2:'迴圈']
Direction int32 `json:"Direction,omitempty"`
// String
@@ -36,7 +36,9 @@ type PTXServiceDTOShipSpecificationV3GeneralSchedule struct {
// NameType
//
// 航線名稱
- RouteName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
// Array
Timetables []*PTXServiceDTOShipSpecificationV3Timetable `json:"Timetables"`
@@ -75,15 +77,6 @@ func (m *PTXServiceDTOShipSpecificationV3GeneralSchedule) validateRouteName(form
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
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operator.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operator.go
index 802a5e4e..2fb1602e 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operator.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operator.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Operator Operator
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Operator
type PTXServiceDTOShipSpecificationV3Operator struct {
@@ -49,7 +49,9 @@ type PTXServiceDTOShipSpecificationV3Operator struct {
// NameType
//
// 營運業者名稱
- OperatorName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"OperatorName,omitempty"`
+ OperatorName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"OperatorName,omitempty"`
// String
//
@@ -92,15 +94,6 @@ func (m *PTXServiceDTOShipSpecificationV3Operator) validateOperatorName(formats
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
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operators.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operators.go
index 10a31889..ece66223 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operators.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_operators.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Operators Operators
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Operators
type PTXServiceDTOShipSpecificationV3Operators struct {
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_point_type.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_point_type.go
index a42f645b..c65408c8 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_point_type.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_point_type.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3PointType PointType
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.PointType
type PTXServiceDTOShipSpecificationV3PointType struct {
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port.go
index 5093daa8..dd7715bd 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Port Port
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Port
type PTXServiceDTOShipSpecificationV3Port struct {
@@ -54,7 +54,9 @@ type PTXServiceDTOShipSpecificationV3Port struct {
// NameType
//
// 港口名稱
- PortName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"PortName,omitempty"`
+ PortName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"PortName,omitempty"`
// String
//
@@ -64,7 +66,9 @@ type PTXServiceDTOShipSpecificationV3Port struct {
// PointType
//
// 港口位置座標
- PortPosition *PTXServiceDTOShipSpecificationV3PointType `json:"PortPosition,omitempty"`
+ PortPosition struct {
+ PTXServiceDTOShipSpecificationV3PointType
+ } `json:"PortPosition,omitempty"`
// String
//
@@ -96,15 +100,6 @@ func (m *PTXServiceDTOShipSpecificationV3Port) validatePortName(formats strfmt.R
return nil
}
- if m.PortName != nil {
- if err := m.PortName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("PortName")
- }
- return err
- }
- }
-
return nil
}
@@ -114,15 +109,6 @@ func (m *PTXServiceDTOShipSpecificationV3Port) validatePortPosition(formats strf
return nil
}
- if m.PortPosition != nil {
- if err := m.PortPosition.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("PortPosition")
- }
- return err
- }
- }
-
return nil
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port_infomation.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port_infomation.go
index 8213162a..63789702 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port_infomation.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_port_infomation.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3PortInfomation PortInfomation
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.PortInfomation
type PTXServiceDTOShipSpecificationV3PortInfomation struct {
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route.go
index e748c62a..14751baf 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route.go
@@ -8,13 +8,13 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Route Route
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Route
type PTXServiceDTOShipSpecificationV3Route struct {
@@ -56,11 +56,13 @@ type PTXServiceDTOShipSpecificationV3Route struct {
// NameType
//
// 航線名稱
- RouteName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
- // Int32
+ // integer
//
- // 航線種類(1:國內航線(渡輪、藍色公路); 2:離島航線; 3:兩岸航線;4:其他)
+ // 航線種類 : [1:'國內航線',2:'離島航線',3:'兩岸航線',4:'其他']
RouteType int32 `json:"RouteType,omitempty"`
// String
@@ -76,7 +78,9 @@ type PTXServiceDTOShipSpecificationV3Route struct {
// NameType
//
// 票價描述
- TicketPriceDescription *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"TicketPriceDescription,omitempty"`
+ TicketPriceDescription struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"TicketPriceDescription,omitempty"`
// String
//
@@ -137,15 +141,6 @@ func (m *PTXServiceDTOShipSpecificationV3Route) validateRouteName(formats strfmt
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
}
@@ -155,15 +150,6 @@ func (m *PTXServiceDTOShipSpecificationV3Route) validateTicketPriceDescription(f
return nil
}
- 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
- }
- }
-
return nil
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route_fare.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
index 7c7f79ad..368efd0c 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_route_fare.go
@@ -8,20 +8,22 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3RouteFare RouteFare
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.RouteFare
type PTXServiceDTOShipSpecificationV3RouteFare struct {
// PortInfomation
//
// 迄點港口資訊
- DestinationPort *PTXServiceDTOShipSpecificationV3PortInfomation `json:"DestinationPort,omitempty"`
+ DestinationPort struct {
+ PTXServiceDTOShipSpecificationV3PortInfomation
+ } `json:"DestinationPort,omitempty"`
// String
//
@@ -36,7 +38,9 @@ type PTXServiceDTOShipSpecificationV3RouteFare struct {
// PortInfomation
//
// 起始港口資訊
- OriginPort *PTXServiceDTOShipSpecificationV3PortInfomation `json:"OriginPort,omitempty"`
+ OriginPort struct {
+ PTXServiceDTOShipSpecificationV3PortInfomation
+ } `json:"OriginPort,omitempty"`
// String
//
@@ -46,7 +50,9 @@ type PTXServiceDTOShipSpecificationV3RouteFare struct {
// NameType
//
// 航線名稱
- RouteName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"RouteName,omitempty"`
+ RouteName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"RouteName,omitempty"`
}
// Validate validates this p t x service d t o ship specification v3 route fare
@@ -81,15 +87,6 @@ func (m *PTXServiceDTOShipSpecificationV3RouteFare) validateDestinationPort(form
return nil
}
- if m.DestinationPort != nil {
- if err := m.DestinationPort.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("DestinationPort")
- }
- return err
- }
- }
-
return nil
}
@@ -124,15 +121,6 @@ func (m *PTXServiceDTOShipSpecificationV3RouteFare) validateOriginPort(formats s
return nil
}
- if m.OriginPort != nil {
- if err := m.OriginPort.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("OriginPort")
- }
- return err
- }
- }
-
return nil
}
@@ -142,15 +130,6 @@ func (m *PTXServiceDTOShipSpecificationV3RouteFare) validateRouteName(formats st
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
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_service_day.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_service_day.go
index d9af47c0..1119fb0d 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_service_day.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_service_day.go
@@ -6,33 +6,33 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3ServiceDay ServiceDay
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.ServiceDay
type PTXServiceDTOShipSpecificationV3ServiceDay struct {
- // Int32
+ // integer
//
- // 星期五是否營運 = ['0: 否', '1: 是']
+ // 星期五是否營運 : [0:'否',1:'是']
Friday int32 `json:"Friday,omitempty"`
- // Int32
+ // integer
//
- // 星期一是否營運 = ['0: 否', '1: 是']
+ // 星期一是否營運 : [0:'否',1:'是']
Monday int32 `json:"Monday,omitempty"`
- // Int32
+ // integer
//
- // 國定假日是否營運 = ['0: 否', '1: 是']
+ // 國定假日是否營運 : [0:'否',1:'是']
NationalHolidays int32 `json:"NationalHolidays,omitempty"`
- // Int32
+ // integer
//
- // 星期六是否營運 = ['0: 否', '1: 是']
+ // 星期六是否營運 : [0:'否',1:'是']
Saturday int32 `json:"Saturday,omitempty"`
// String
@@ -40,24 +40,24 @@ type PTXServiceDTOShipSpecificationV3ServiceDay struct {
// 服務日標籤
ServiceTag string `json:"ServiceTag,omitempty"`
- // Int32
+ // integer
//
- // 星期日是否營運 = ['0: 否', '1: 是']
+ // 星期日是否營運 : [0:'否',1:'是']
Sunday int32 `json:"Sunday,omitempty"`
- // Int32
+ // integer
//
- // 星期四是否營運 = ['0: 否', '1: 是']
+ // 星期四是否營運 : [0:'否',1:'是']
Thursday int32 `json:"Thursday,omitempty"`
- // Int32
+ // integer
//
- // 星期二是否營運 = ['0: 否', '1: 是']
+ // 星期二是否營運 : [0:'否',1:'是']
Tuesday int32 `json:"Tuesday,omitempty"`
- // Int32
+ // integer
//
- // 星期三是否營運 = ['0: 否', '1: 是']
+ // 星期三是否營運 : [0:'否',1:'是']
Wednesday int32 `json:"Wednesday,omitempty"`
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_stoptime.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_stoptime.go
index a5d57d95..a76c9686 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_stoptime.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_stoptime.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Stoptime Stoptime
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Stoptime
type PTXServiceDTOShipSpecificationV3Stoptime struct {
@@ -34,7 +34,9 @@ type PTXServiceDTOShipSpecificationV3Stoptime struct {
// NameType
//
// 港口名稱
- PortName *PTXServiceDTOSharedSpecificationV3BaseNameType `json:"PortName,omitempty"`
+ PortName struct {
+ PTXServiceDTOSharedSpecificationV3BaseNameType
+ } `json:"PortName,omitempty"`
// Int32
//
@@ -67,15 +69,6 @@ func (m *PTXServiceDTOShipSpecificationV3Stoptime) validatePortName(formats strf
return nil
}
- if m.PortName != nil {
- if err := m.PortName.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("PortName")
- }
- return err
- }
- }
-
return nil
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_timetable.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_timetable.go
index 1073f35f..0aa0e1c1 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_timetable.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_timetable.go
@@ -8,18 +8,20 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Timetable Timetable
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Timetable
type PTXServiceDTOShipSpecificationV3Timetable struct {
// ServiceDay
- ServiceDay *PTXServiceDTOShipSpecificationV3ServiceDay `json:"ServiceDay,omitempty"`
+ ServiceDay struct {
+ PTXServiceDTOShipSpecificationV3ServiceDay
+ } `json:"ServiceDay,omitempty"`
// Array
//
@@ -56,15 +58,6 @@ func (m *PTXServiceDTOShipSpecificationV3Timetable) validateServiceDay(formats s
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
}
diff --git a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_vessel.go b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_vessel.go
index 213e53eb..2c32f043 100644
--- a/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_vessel.go
+++ b/ship/v3/models/p_t_x_service_d_t_o_ship_specification_v3_vessel.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PTXServiceDTOShipSpecificationV3Vessel Vessel
+//
// swagger:model PTX.Service.DTO.Ship.Specification.V3.Vessel
type PTXServiceDTOShipSpecificationV3Vessel struct {
diff --git a/spec/main.go b/spec/main.go
index ce4435de..6455b601 100644
--- a/spec/main.go
+++ b/spec/main.go
@@ -45,6 +45,9 @@ func main() {
{
Filename: "oas.ship.v3.json",
URL: "https://ptx.transportdata.tw/MOTC/v3/Ship/api-docs/oas",
+ Pipeline: []Step{
+ fixProperty,
+ },
},
} {
fmt.Printf("Generate %s\n", oas.Filename)
@@ -88,3 +91,13 @@ func writeFile(filename string, data []byte) {
_ = enc.Encode(v)
_ = ioutil.WriteFile(filename, bf.Bytes(), 0644)
}
+
+func fixProperty(data []byte) []byte {
+ return bytes.Replace(data, []byte(`"description": "資料版本編號",
+ "type": "integer"
+ },
+ "Items": {`), []byte(`"description": "資料版本編號",
+ "type": "integer"
+ },
+ "Ports": {`), -1)
+}
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 ce8256b7..2a28215d 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
@@ -8,8 +8,7 @@ package client
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"github.com/minchao/go-ptx/tourism/v2/client/tourism"
)
@@ -56,9 +55,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *MOTCTransp
cli := new(MOTCTransportAPIV2)
cli.Transport = transport
-
cli.Tourism = tourism.New(transport, formats)
-
return cli
}
@@ -103,7 +100,7 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
// MOTCTransportAPIV2 is a client for m o t c transport API v2
type MOTCTransportAPIV2 struct {
- Tourism *tourism.Client
+ Tourism tourism.ClientService
Transport runtime.ClientTransport
}
@@ -111,7 +108,5 @@ type MOTCTransportAPIV2 struct {
// SetTransport changes the transport on the client and all its subresources
func (c *MOTCTransportAPIV2) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Tourism.SetTransport(transport)
-
}
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_parameters.go
index 9eea735e..62f8906f 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIEstimatedTimeOfArrival1Params creates a new TaiwanTripBusAPIEstimatedTimeOfArrival1Params object
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 9adae5a3..41db797a 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIEstimatedTimeOfArrival1Reader is a Reader for the TaiwanTripBusAPIEstimatedTimeOfArrival1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_parameters.go
index 77fe97ca..7ae85b99 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_estimated_time_of_arrival_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIEstimatedTimeOfArrivalParams creates a new TaiwanTripBusAPIEstimatedTimeOfArrivalParams object
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 399a04a6..0b7e1c4e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIEstimatedTimeOfArrivalReader is a Reader for the TaiwanTripBusAPIEstimatedTimeOfArrival structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_news_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_news_parameters.go
index fc41bb0e..6eae9a29 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_news_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_news_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPINewsParams creates a new TaiwanTripBusAPINewsParams object
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 77e699ac..4e1939c4 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPINewsReader is a Reader for the TaiwanTripBusAPINews structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_parameters.go
index efc0aa2f..6bd46fc3 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRealTimeByFrequency1Params creates a new TaiwanTripBusAPIRealTimeByFrequency1Params object
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 b01d3349..f23afd5c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRealTimeByFrequency1Reader is a Reader for the TaiwanTripBusAPIRealTimeByFrequency1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_parameters.go
index 7cf0a7b8..2a74788d 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_by_frequency_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRealTimeByFrequencyParams creates a new TaiwanTripBusAPIRealTimeByFrequencyParams object
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 37c953eb..54d5685e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRealTimeByFrequencyReader is a Reader for the TaiwanTripBusAPIRealTimeByFrequency structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_parameters.go
index 6e42a85d..3ae79a7e 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRealTimeNearStop1Params creates a new TaiwanTripBusAPIRealTimeNearStop1Params object
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 0e148e37..4b747bd1 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRealTimeNearStop1Reader is a Reader for the TaiwanTripBusAPIRealTimeNearStop1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_parameters.go
index c5067f90..e1a9658e 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_real_time_near_stop_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRealTimeNearStopParams creates a new TaiwanTripBusAPIRealTimeNearStopParams object
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 1eb078bd..615e645b 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRealTimeNearStopReader is a Reader for the TaiwanTripBusAPIRealTimeNearStop structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_parameters.go
index 8d056335..743b6fab 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRoute1Params creates a new TaiwanTripBusAPIRoute1Params object
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 f721ef39..35960f17 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRoute1Reader is a Reader for the TaiwanTripBusAPIRoute1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_route_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_route_parameters.go
index 111b61b3..c8022760 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_route_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIRouteParams creates a new TaiwanTripBusAPIRouteParams object
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 f34b55d8..34775923 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIRouteReader is a Reader for the TaiwanTripBusAPIRoute structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_parameters.go
index a751b839..b152a07f 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_s2_travel_time_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIS2TravelTimeParams creates a new TaiwanTripBusAPIS2TravelTimeParams object
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 da899c2f..eafbb09c 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIS2TravelTimeReader is a Reader for the TaiwanTripBusAPIS2TravelTime structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_parameters.go
index 271cd67a..ea9415d4 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPISchedule1Params creates a new TaiwanTripBusAPISchedule1Params object
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 a022dc6b..3606fba8 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPISchedule1Reader is a Reader for the TaiwanTripBusAPISchedule1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_parameters.go
index 2483c5da..d80ef148 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_schedule_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIScheduleParams creates a new TaiwanTripBusAPIScheduleParams object
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 e8a4faa5..d01e3a2f 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIScheduleReader is a Reader for the TaiwanTripBusAPISchedule structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_parameters.go
index c5590345..cf424cb4 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIShape1Params creates a new TaiwanTripBusAPIShape1Params object
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 a7cd0ef5..01c416b6 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIShape1Reader is a Reader for the TaiwanTripBusAPIShape1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_parameters.go
index faff6deb..a5ee4b88 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_shape_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIShapeParams creates a new TaiwanTripBusAPIShapeParams object
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 f9120c09..6193d5d0 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIShapeReader is a Reader for the TaiwanTripBusAPIShape structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_parameters.go
index 6007ed0f..562116e7 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route1_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIStopOfRoute1Params creates a new TaiwanTripBusAPIStopOfRoute1Params object
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 7626d503..aa6a5cff 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIStopOfRoute1Reader is a Reader for the TaiwanTripBusAPIStopOfRoute1 structure.
diff --git a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_parameters.go b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_parameters.go
index 7e8fcbae..f9a825eb 100644
--- a/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_parameters.go
+++ b/tourism/v2/client/tourism/taiwan_trip_bus_api_stop_of_route_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTaiwanTripBusAPIStopOfRouteParams creates a new TaiwanTripBusAPIStopOfRouteParams object
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 26014e67..73f6ee7e 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
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TaiwanTripBusAPIStopOfRouteReader is a Reader for the TaiwanTripBusAPIStopOfRoute structure.
diff --git a/tourism/v2/client/tourism/tourism_api_activity0_parameters.go b/tourism/v2/client/tourism/tourism_api_activity0_parameters.go
index 1c3608d3..3956832b 100644
--- a/tourism/v2/client/tourism/tourism_api_activity0_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_activity0_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIActivity0Params creates a new TourismAPIActivity0Params object
diff --git a/tourism/v2/client/tourism/tourism_api_activity0_responses.go b/tourism/v2/client/tourism/tourism_api_activity0_responses.go
index 6affa8f8..23df73a3 100644
--- a/tourism/v2/client/tourism/tourism_api_activity0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_activity0_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIActivity0Reader is a Reader for the TourismAPIActivity0 structure.
diff --git a/tourism/v2/client/tourism/tourism_api_activity_parameters.go b/tourism/v2/client/tourism/tourism_api_activity_parameters.go
index c11192d7..4c85fb64 100644
--- a/tourism/v2/client/tourism/tourism_api_activity_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_activity_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIActivityParams creates a new TourismAPIActivityParams object
diff --git a/tourism/v2/client/tourism/tourism_api_activity_responses.go b/tourism/v2/client/tourism/tourism_api_activity_responses.go
index 65525110..b53abe72 100644
--- a/tourism/v2/client/tourism/tourism_api_activity_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_activity_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIActivityReader is a Reader for the TourismAPIActivity structure.
diff --git a/tourism/v2/client/tourism/tourism_api_hotel0_parameters.go b/tourism/v2/client/tourism/tourism_api_hotel0_parameters.go
index 2b49a081..573330d6 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel0_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel0_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIHotel0Params creates a new TourismAPIHotel0Params object
diff --git a/tourism/v2/client/tourism/tourism_api_hotel0_responses.go b/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
index a1b218e2..f0322683 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel0_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIHotel0Reader is a Reader for the TourismAPIHotel0 structure.
diff --git a/tourism/v2/client/tourism/tourism_api_hotel_parameters.go b/tourism/v2/client/tourism/tourism_api_hotel_parameters.go
index cb12dc34..c9fe82a4 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIHotelParams creates a new TourismAPIHotelParams object
diff --git a/tourism/v2/client/tourism/tourism_api_hotel_responses.go b/tourism/v2/client/tourism/tourism_api_hotel_responses.go
index 71a812f3..bb68e625 100644
--- a/tourism/v2/client/tourism/tourism_api_hotel_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_hotel_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIHotelReader is a Reader for the TourismAPIHotel structure.
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant0_parameters.go b/tourism/v2/client/tourism/tourism_api_restaurant0_parameters.go
index 20b0d3a1..331320d7 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant0_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant0_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIRestaurant0Params creates a new TourismAPIRestaurant0Params object
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go b/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
index 0cd8045c..ccb99f98 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant0_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIRestaurant0Reader is a Reader for the TourismAPIRestaurant0 structure.
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant_parameters.go b/tourism/v2/client/tourism/tourism_api_restaurant_parameters.go
index 44994d2d..8baeb38a 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIRestaurantParams creates a new TourismAPIRestaurantParams object
diff --git a/tourism/v2/client/tourism/tourism_api_restaurant_responses.go b/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
index ff7e605b..24cfccc3 100644
--- a/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_restaurant_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIRestaurantReader is a Reader for the TourismAPIRestaurant structure.
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 b6abc207..4d51fced 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot0_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIScenicSpot0Params creates a new TourismAPIScenicSpot0Params object
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 851f4e59..6329c075 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot0_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIScenicSpot0Reader is a Reader for the TourismAPIScenicSpot0 structure.
diff --git a/tourism/v2/client/tourism/tourism_api_scenic_spot_parameters.go b/tourism/v2/client/tourism/tourism_api_scenic_spot_parameters.go
index 7a043f02..5942da31 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot_parameters.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot_parameters.go
@@ -13,9 +13,8 @@ import (
"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"
-
- strfmt "github.com/go-openapi/strfmt"
)
// NewTourismAPIScenicSpotParams creates a new TourismAPIScenicSpotParams object
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 a8c85a13..6cbeaaef 100644
--- a/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go
+++ b/tourism/v2/client/tourism/tourism_api_scenic_spot_responses.go
@@ -10,10 +10,9 @@ import (
"io"
"github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
- strfmt "github.com/go-openapi/strfmt"
-
- models "github.com/minchao/go-ptx/tourism/v2/models"
+ "github.com/minchao/go-ptx/tourism/v2/models"
)
// TourismAPIScenicSpotReader is a Reader for the TourismAPIScenicSpot structure.
diff --git a/tourism/v2/client/tourism/tourism_client.go b/tourism/v2/client/tourism/tourism_client.go
index 6162641a..27405937 100644
--- a/tourism/v2/client/tourism/tourism_client.go
+++ b/tourism/v2/client/tourism/tourism_client.go
@@ -9,12 +9,11 @@ import (
"fmt"
"github.com/go-openapi/runtime"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
)
// New creates a new tourism API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
}
@@ -26,10 +25,63 @@ type Client struct {
formats strfmt.Registry
}
+// ClientService is the interface for Client methods
+type ClientService interface {
+ TaiwanTripBusAPIEstimatedTimeOfArrival(params *TaiwanTripBusAPIEstimatedTimeOfArrivalParams) (*TaiwanTripBusAPIEstimatedTimeOfArrivalOK, error)
+
+ TaiwanTripBusAPIEstimatedTimeOfArrival1(params *TaiwanTripBusAPIEstimatedTimeOfArrival1Params) (*TaiwanTripBusAPIEstimatedTimeOfArrival1OK, error)
+
+ TaiwanTripBusAPINews(params *TaiwanTripBusAPINewsParams) (*TaiwanTripBusAPINewsOK, error)
+
+ TaiwanTripBusAPIRealTimeByFrequency(params *TaiwanTripBusAPIRealTimeByFrequencyParams) (*TaiwanTripBusAPIRealTimeByFrequencyOK, error)
+
+ TaiwanTripBusAPIRealTimeByFrequency1(params *TaiwanTripBusAPIRealTimeByFrequency1Params) (*TaiwanTripBusAPIRealTimeByFrequency1OK, error)
+
+ TaiwanTripBusAPIRealTimeNearStop(params *TaiwanTripBusAPIRealTimeNearStopParams) (*TaiwanTripBusAPIRealTimeNearStopOK, error)
+
+ TaiwanTripBusAPIRealTimeNearStop1(params *TaiwanTripBusAPIRealTimeNearStop1Params) (*TaiwanTripBusAPIRealTimeNearStop1OK, error)
+
+ TaiwanTripBusAPIRoute(params *TaiwanTripBusAPIRouteParams) (*TaiwanTripBusAPIRouteOK, error)
+
+ TaiwanTripBusAPIRoute1(params *TaiwanTripBusAPIRoute1Params) (*TaiwanTripBusAPIRoute1OK, error)
+
+ TaiwanTripBusAPIS2TravelTime(params *TaiwanTripBusAPIS2TravelTimeParams) (*TaiwanTripBusAPIS2TravelTimeOK, error)
+
+ TaiwanTripBusAPISchedule(params *TaiwanTripBusAPIScheduleParams) (*TaiwanTripBusAPIScheduleOK, error)
+
+ TaiwanTripBusAPISchedule1(params *TaiwanTripBusAPISchedule1Params) (*TaiwanTripBusAPISchedule1OK, error)
+
+ TaiwanTripBusAPIShape(params *TaiwanTripBusAPIShapeParams) (*TaiwanTripBusAPIShapeOK, error)
+
+ TaiwanTripBusAPIShape1(params *TaiwanTripBusAPIShape1Params) (*TaiwanTripBusAPIShape1OK, error)
+
+ TaiwanTripBusAPIStopOfRoute(params *TaiwanTripBusAPIStopOfRouteParams) (*TaiwanTripBusAPIStopOfRouteOK, error)
+
+ TaiwanTripBusAPIStopOfRoute1(params *TaiwanTripBusAPIStopOfRoute1Params) (*TaiwanTripBusAPIStopOfRoute1OK, error)
+
+ TourismAPIActivity(params *TourismAPIActivityParams) (*TourismAPIActivityOK, error)
+
+ TourismAPIActivity0(params *TourismAPIActivity0Params) (*TourismAPIActivity0OK, error)
+
+ TourismAPIHotel(params *TourismAPIHotelParams) (*TourismAPIHotelOK, error)
+
+ TourismAPIHotel0(params *TourismAPIHotel0Params) (*TourismAPIHotel0OK, error)
+
+ TourismAPIRestaurant(params *TourismAPIRestaurantParams) (*TourismAPIRestaurantOK, error)
+
+ TourismAPIRestaurant0(params *TourismAPIRestaurant0Params) (*TourismAPIRestaurant0OK, error)
+
+ TourismAPIScenicSpot(params *TourismAPIScenicSpotParams) (*TourismAPIScenicSpotOK, error)
+
+ TourismAPIScenicSpot0(params *TourismAPIScenicSpot0Params) (*TourismAPIScenicSpot0OK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
/*
-TaiwanTripBusAPIEstimatedTimeOfArrival 取得台灣好行公車的預估到站資料s n1
+ TaiwanTripBusAPIEstimatedTimeOfArrival 取得台灣好行公車的預估到站資料s n1
-取得台灣好行公車的預估到站資料(N1)
+ 取得台灣好行公車的預估到站資料(N1)
*/
func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival(params *TaiwanTripBusAPIEstimatedTimeOfArrivalParams) (*TaiwanTripBusAPIEstimatedTimeOfArrivalOK, error) {
// TODO: Validate the params before sending
@@ -42,7 +94,7 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival(params *TaiwanTripBusAPI
Method: "GET",
PathPattern: "/v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIEstimatedTimeOfArrivalReader{formats: a.formats},
@@ -63,9 +115,9 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival(params *TaiwanTripBusAPI
}
/*
-TaiwanTripBusAPIEstimatedTimeOfArrival1 取得指定s 路線名稱 的台灣好行公車的預估到站資料 n1
+ TaiwanTripBusAPIEstimatedTimeOfArrival1 取得指定s 路線名稱 的台灣好行公車的預估到站資料 n1
-取得指定[路線名稱]的台灣好行公車的預估到站資料(N1)
+ 取得指定[路線名稱]的台灣好行公車的預估到站資料(N1)
*/
func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival1(params *TaiwanTripBusAPIEstimatedTimeOfArrival1Params) (*TaiwanTripBusAPIEstimatedTimeOfArrival1OK, error) {
// TODO: Validate the params before sending
@@ -78,7 +130,7 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival1(params *TaiwanTripBusAP
Method: "GET",
PathPattern: "/v2/Tourism/Bus/EstimatedTimeOfArrival/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIEstimatedTimeOfArrival1Reader{formats: a.formats},
@@ -99,9 +151,9 @@ func (a *Client) TaiwanTripBusAPIEstimatedTimeOfArrival1(params *TaiwanTripBusAP
}
/*
-TaiwanTripBusAPINews 取得台灣好行公車之最新消息s
+ TaiwanTripBusAPINews 取得台灣好行公車之最新消息s
-取得台灣好行公車之最新消息
+ 取得台灣好行公車之最新消息
*/
func (a *Client) TaiwanTripBusAPINews(params *TaiwanTripBusAPINewsParams) (*TaiwanTripBusAPINewsOK, error) {
// TODO: Validate the params before sending
@@ -114,7 +166,7 @@ func (a *Client) TaiwanTripBusAPINews(params *TaiwanTripBusAPINewsParams) (*Taiw
Method: "GET",
PathPattern: "/v2/Tourism/Bus/News/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPINewsReader{formats: a.formats},
@@ -135,9 +187,9 @@ func (a *Client) TaiwanTripBusAPINews(params *TaiwanTripBusAPINewsParams) (*Taiw
}
/*
-TaiwanTripBusAPIRealTimeByFrequency 取得台灣好行公車的動態定時資料s a1
+ TaiwanTripBusAPIRealTimeByFrequency 取得台灣好行公車的動態定時資料s a1
-取得台灣好行公車的動態定時資料(A1)
+ 取得台灣好行公車的動態定時資料(A1)
*/
func (a *Client) TaiwanTripBusAPIRealTimeByFrequency(params *TaiwanTripBusAPIRealTimeByFrequencyParams) (*TaiwanTripBusAPIRealTimeByFrequencyOK, error) {
// TODO: Validate the params before sending
@@ -150,7 +202,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency(params *TaiwanTripBusAPIRea
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRealTimeByFrequencyReader{formats: a.formats},
@@ -171,9 +223,9 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency(params *TaiwanTripBusAPIRea
}
/*
-TaiwanTripBusAPIRealTimeByFrequency1 取得指定s 路線名稱 的台灣好行公車的動態定時資料 a1
+ TaiwanTripBusAPIRealTimeByFrequency1 取得指定s 路線名稱 的台灣好行公車的動態定時資料 a1
-取得指定[路線名稱]的台灣好行公車的動態定時資料(A1)
+ 取得指定[路線名稱]的台灣好行公車的動態定時資料(A1)
*/
func (a *Client) TaiwanTripBusAPIRealTimeByFrequency1(params *TaiwanTripBusAPIRealTimeByFrequency1Params) (*TaiwanTripBusAPIRealTimeByFrequency1OK, error) {
// TODO: Validate the params before sending
@@ -186,7 +238,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency1(params *TaiwanTripBusAPIRe
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeByFrequency/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRealTimeByFrequency1Reader{formats: a.formats},
@@ -207,9 +259,9 @@ func (a *Client) TaiwanTripBusAPIRealTimeByFrequency1(params *TaiwanTripBusAPIRe
}
/*
-TaiwanTripBusAPIRealTimeNearStop 取得台灣好行公車的動態定點資料s a2
+ TaiwanTripBusAPIRealTimeNearStop 取得台灣好行公車的動態定點資料s a2
-取得台灣好行公車的動態定點資料(A2)
+ 取得台灣好行公車的動態定點資料(A2)
*/
func (a *Client) TaiwanTripBusAPIRealTimeNearStop(params *TaiwanTripBusAPIRealTimeNearStopParams) (*TaiwanTripBusAPIRealTimeNearStopOK, error) {
// TODO: Validate the params before sending
@@ -222,7 +274,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop(params *TaiwanTripBusAPIRealTi
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRealTimeNearStopReader{formats: a.formats},
@@ -243,9 +295,9 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop(params *TaiwanTripBusAPIRealTi
}
/*
-TaiwanTripBusAPIRealTimeNearStop1 取得指定s 路線名稱 的台灣好行公車的動態定點資料 a2
+ TaiwanTripBusAPIRealTimeNearStop1 取得指定s 路線名稱 的台灣好行公車的動態定點資料 a2
-取得指定[路線名稱]的台灣好行公車的動態定點資料(A2)
+ 取得指定[路線名稱]的台灣好行公車的動態定點資料(A2)
*/
func (a *Client) TaiwanTripBusAPIRealTimeNearStop1(params *TaiwanTripBusAPIRealTimeNearStop1Params) (*TaiwanTripBusAPIRealTimeNearStop1OK, error) {
// TODO: Validate the params before sending
@@ -258,7 +310,7 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop1(params *TaiwanTripBusAPIRealT
Method: "GET",
PathPattern: "/v2/Tourism/Bus/RealTimeNearStop/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRealTimeNearStop1Reader{formats: a.formats},
@@ -279,9 +331,9 @@ func (a *Client) TaiwanTripBusAPIRealTimeNearStop1(params *TaiwanTripBusAPIRealT
}
/*
-TaiwanTripBusAPIRoute 取得台灣好行公車路線資料s
+ TaiwanTripBusAPIRoute 取得台灣好行公車路線資料s
-取得台灣好行公車路線資料
+ 取得台灣好行公車路線資料
*/
func (a *Client) TaiwanTripBusAPIRoute(params *TaiwanTripBusAPIRouteParams) (*TaiwanTripBusAPIRouteOK, error) {
// TODO: Validate the params before sending
@@ -294,7 +346,7 @@ func (a *Client) TaiwanTripBusAPIRoute(params *TaiwanTripBusAPIRouteParams) (*Ta
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Route/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRouteReader{formats: a.formats},
@@ -315,9 +367,9 @@ func (a *Client) TaiwanTripBusAPIRoute(params *TaiwanTripBusAPIRouteParams) (*Ta
}
/*
-TaiwanTripBusAPIRoute1 取得指定s 路線名稱 的台灣好行公車路線資料
+ TaiwanTripBusAPIRoute1 取得指定s 路線名稱 的台灣好行公車路線資料
-取得指定[路線名稱]的台灣好行公車路線資料
+ 取得指定[路線名稱]的台灣好行公車路線資料
*/
func (a *Client) TaiwanTripBusAPIRoute1(params *TaiwanTripBusAPIRoute1Params) (*TaiwanTripBusAPIRoute1OK, error) {
// TODO: Validate the params before sending
@@ -330,7 +382,7 @@ func (a *Client) TaiwanTripBusAPIRoute1(params *TaiwanTripBusAPIRoute1Params) (*
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Route/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIRoute1Reader{formats: a.formats},
@@ -351,9 +403,9 @@ func (a *Client) TaiwanTripBusAPIRoute1(params *TaiwanTripBusAPIRoute1Params) (*
}
/*
-TaiwanTripBusAPIS2TravelTime 取得台灣好行公車路線站間旅行時間基本資料s
+ TaiwanTripBusAPIS2TravelTime 取得台灣好行公車路線站間旅行時間基本資料s
-取得台灣好行公車路線站間旅行時間基本資料
+ 取得台灣好行公車路線站間旅行時間基本資料
*/
func (a *Client) TaiwanTripBusAPIS2TravelTime(params *TaiwanTripBusAPIS2TravelTimeParams) (*TaiwanTripBusAPIS2TravelTimeOK, error) {
// TODO: Validate the params before sending
@@ -366,7 +418,7 @@ func (a *Client) TaiwanTripBusAPIS2TravelTime(params *TaiwanTripBusAPIS2TravelTi
Method: "GET",
PathPattern: "/v2/Tourism/Bus/S2TravelTime/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIS2TravelTimeReader{formats: a.formats},
@@ -387,9 +439,9 @@ func (a *Client) TaiwanTripBusAPIS2TravelTime(params *TaiwanTripBusAPIS2TravelTi
}
/*
-TaiwanTripBusAPISchedule 取得台灣好行公車路線班表資料s
+ TaiwanTripBusAPISchedule 取得台灣好行公車路線班表資料s
-取得台灣好行公車路線班表資料
+ 取得台灣好行公車路線班表資料
*/
func (a *Client) TaiwanTripBusAPISchedule(params *TaiwanTripBusAPIScheduleParams) (*TaiwanTripBusAPIScheduleOK, error) {
// TODO: Validate the params before sending
@@ -402,7 +454,7 @@ func (a *Client) TaiwanTripBusAPISchedule(params *TaiwanTripBusAPIScheduleParams
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Schedule/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIScheduleReader{formats: a.formats},
@@ -423,9 +475,9 @@ func (a *Client) TaiwanTripBusAPISchedule(params *TaiwanTripBusAPIScheduleParams
}
/*
-TaiwanTripBusAPISchedule1 取得指定s 路線名稱 的台灣好行公車路線班表資料
+ TaiwanTripBusAPISchedule1 取得指定s 路線名稱 的台灣好行公車路線班表資料
-取得指定[路線名稱]的台灣好行公車路線班表資料
+ 取得指定[路線名稱]的台灣好行公車路線班表資料
*/
func (a *Client) TaiwanTripBusAPISchedule1(params *TaiwanTripBusAPISchedule1Params) (*TaiwanTripBusAPISchedule1OK, error) {
// TODO: Validate the params before sending
@@ -438,7 +490,7 @@ func (a *Client) TaiwanTripBusAPISchedule1(params *TaiwanTripBusAPISchedule1Para
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Schedule/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPISchedule1Reader{formats: a.formats},
@@ -459,9 +511,9 @@ func (a *Client) TaiwanTripBusAPISchedule1(params *TaiwanTripBusAPISchedule1Para
}
/*
-TaiwanTripBusAPIShape 取得台灣好行公車線型資料s
+ TaiwanTripBusAPIShape 取得台灣好行公車線型資料s
-取得台灣好行公車線型資料
+ 取得台灣好行公車線型資料
*/
func (a *Client) TaiwanTripBusAPIShape(params *TaiwanTripBusAPIShapeParams) (*TaiwanTripBusAPIShapeOK, error) {
// TODO: Validate the params before sending
@@ -474,7 +526,7 @@ func (a *Client) TaiwanTripBusAPIShape(params *TaiwanTripBusAPIShapeParams) (*Ta
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Shape/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIShapeReader{formats: a.formats},
@@ -495,9 +547,9 @@ func (a *Client) TaiwanTripBusAPIShape(params *TaiwanTripBusAPIShapeParams) (*Ta
}
/*
-TaiwanTripBusAPIShape1 取得指定s 路線名稱 的台灣好行公車線型資料
+ TaiwanTripBusAPIShape1 取得指定s 路線名稱 的台灣好行公車線型資料
-取得指定[路線名稱]的台灣好行公車線型資料
+ 取得指定[路線名稱]的台灣好行公車線型資料
*/
func (a *Client) TaiwanTripBusAPIShape1(params *TaiwanTripBusAPIShape1Params) (*TaiwanTripBusAPIShape1OK, error) {
// TODO: Validate the params before sending
@@ -510,7 +562,7 @@ func (a *Client) TaiwanTripBusAPIShape1(params *TaiwanTripBusAPIShape1Params) (*
Method: "GET",
PathPattern: "/v2/Tourism/Bus/Shape/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIShape1Reader{formats: a.formats},
@@ -531,9 +583,9 @@ func (a *Client) TaiwanTripBusAPIShape1(params *TaiwanTripBusAPIShape1Params) (*
}
/*
-TaiwanTripBusAPIStopOfRoute 取得台灣好行公車路線與站牌資料s
+ TaiwanTripBusAPIStopOfRoute 取得台灣好行公車路線與站牌資料s
-取得台灣好行公車路線與站牌資料
+ 取得台灣好行公車路線與站牌資料
*/
func (a *Client) TaiwanTripBusAPIStopOfRoute(params *TaiwanTripBusAPIStopOfRouteParams) (*TaiwanTripBusAPIStopOfRouteOK, error) {
// TODO: Validate the params before sending
@@ -546,7 +598,7 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute(params *TaiwanTripBusAPIStopOfRoute
Method: "GET",
PathPattern: "/v2/Tourism/Bus/StopOfRoute/TaiwanTrip",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIStopOfRouteReader{formats: a.formats},
@@ -567,9 +619,9 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute(params *TaiwanTripBusAPIStopOfRoute
}
/*
-TaiwanTripBusAPIStopOfRoute1 取得指定s 路線名稱 的台灣好行公車路線與站牌資料
+ TaiwanTripBusAPIStopOfRoute1 取得指定s 路線名稱 的台灣好行公車路線與站牌資料
-取得指定[路線名稱]的台灣好行公車路線與站牌資料
+ 取得指定[路線名稱]的台灣好行公車路線與站牌資料
*/
func (a *Client) TaiwanTripBusAPIStopOfRoute1(params *TaiwanTripBusAPIStopOfRoute1Params) (*TaiwanTripBusAPIStopOfRoute1OK, error) {
// TODO: Validate the params before sending
@@ -582,7 +634,7 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute1(params *TaiwanTripBusAPIStopOfRout
Method: "GET",
PathPattern: "/v2/Tourism/Bus/StopOfRoute/TaiwanTrip/{TaiwanTripName}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TaiwanTripBusAPIStopOfRoute1Reader{formats: a.formats},
@@ -603,9 +655,9 @@ func (a *Client) TaiwanTripBusAPIStopOfRoute1(params *TaiwanTripBusAPIStopOfRout
}
/*
-TourismAPIActivity 取得所有觀光活動資料s
+ TourismAPIActivity 取得所有觀光活動資料s
-取得所有觀光活動資料
+ 取得所有觀光活動資料
*/
func (a *Client) TourismAPIActivity(params *TourismAPIActivityParams) (*TourismAPIActivityOK, error) {
// TODO: Validate the params before sending
@@ -618,7 +670,7 @@ func (a *Client) TourismAPIActivity(params *TourismAPIActivityParams) (*TourismA
Method: "GET",
PathPattern: "/v2/Tourism/Activity",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIActivityReader{formats: a.formats},
@@ -639,9 +691,9 @@ func (a *Client) TourismAPIActivity(params *TourismAPIActivityParams) (*TourismA
}
/*
-TourismAPIActivity0 取得指定s 縣市 觀光活動資料
+ TourismAPIActivity0 取得指定s 縣市 觀光活動資料
-取得指定[縣市]觀光活動資料
+ 取得指定[縣市]觀光活動資料
*/
func (a *Client) TourismAPIActivity0(params *TourismAPIActivity0Params) (*TourismAPIActivity0OK, error) {
// TODO: Validate the params before sending
@@ -654,7 +706,7 @@ func (a *Client) TourismAPIActivity0(params *TourismAPIActivity0Params) (*Touris
Method: "GET",
PathPattern: "/v2/Tourism/Activity/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIActivity0Reader{formats: a.formats},
@@ -675,9 +727,9 @@ func (a *Client) TourismAPIActivity0(params *TourismAPIActivity0Params) (*Touris
}
/*
-TourismAPIHotel 取得所有觀光旅宿資料s
+ TourismAPIHotel 取得所有觀光旅宿資料s
-取得所有觀光旅宿資料
+ 取得所有觀光旅宿資料
*/
func (a *Client) TourismAPIHotel(params *TourismAPIHotelParams) (*TourismAPIHotelOK, error) {
// TODO: Validate the params before sending
@@ -690,7 +742,7 @@ func (a *Client) TourismAPIHotel(params *TourismAPIHotelParams) (*TourismAPIHote
Method: "GET",
PathPattern: "/v2/Tourism/Hotel",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIHotelReader{formats: a.formats},
@@ -711,9 +763,9 @@ func (a *Client) TourismAPIHotel(params *TourismAPIHotelParams) (*TourismAPIHote
}
/*
-TourismAPIHotel0 取得指定s 縣市 觀光旅宿資料
+ TourismAPIHotel0 取得指定s 縣市 觀光旅宿資料
-取得指定[縣市]觀光旅宿資料
+ 取得指定[縣市]觀光旅宿資料
*/
func (a *Client) TourismAPIHotel0(params *TourismAPIHotel0Params) (*TourismAPIHotel0OK, error) {
// TODO: Validate the params before sending
@@ -726,7 +778,7 @@ func (a *Client) TourismAPIHotel0(params *TourismAPIHotel0Params) (*TourismAPIHo
Method: "GET",
PathPattern: "/v2/Tourism/Hotel/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIHotel0Reader{formats: a.formats},
@@ -747,9 +799,9 @@ func (a *Client) TourismAPIHotel0(params *TourismAPIHotel0Params) (*TourismAPIHo
}
/*
-TourismAPIRestaurant 取得所有觀光餐飲資料s
+ TourismAPIRestaurant 取得所有觀光餐飲資料s
-取得所有觀光餐飲資料
+ 取得所有觀光餐飲資料
*/
func (a *Client) TourismAPIRestaurant(params *TourismAPIRestaurantParams) (*TourismAPIRestaurantOK, error) {
// TODO: Validate the params before sending
@@ -762,7 +814,7 @@ func (a *Client) TourismAPIRestaurant(params *TourismAPIRestaurantParams) (*Tour
Method: "GET",
PathPattern: "/v2/Tourism/Restaurant",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIRestaurantReader{formats: a.formats},
@@ -783,9 +835,9 @@ func (a *Client) TourismAPIRestaurant(params *TourismAPIRestaurantParams) (*Tour
}
/*
-TourismAPIRestaurant0 取得指定s 縣市 觀光餐飲資料
+ TourismAPIRestaurant0 取得指定s 縣市 觀光餐飲資料
-取得指定[縣市]觀光餐飲資料
+ 取得指定[縣市]觀光餐飲資料
*/
func (a *Client) TourismAPIRestaurant0(params *TourismAPIRestaurant0Params) (*TourismAPIRestaurant0OK, error) {
// TODO: Validate the params before sending
@@ -798,7 +850,7 @@ func (a *Client) TourismAPIRestaurant0(params *TourismAPIRestaurant0Params) (*To
Method: "GET",
PathPattern: "/v2/Tourism/Restaurant/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIRestaurant0Reader{formats: a.formats},
@@ -819,9 +871,9 @@ func (a *Client) TourismAPIRestaurant0(params *TourismAPIRestaurant0Params) (*To
}
/*
-TourismAPIScenicSpot 取得所有觀光景點資料s
+ TourismAPIScenicSpot 取得所有觀光景點資料s
-取得所有觀光景點資料
+ 取得所有觀光景點資料
*/
func (a *Client) TourismAPIScenicSpot(params *TourismAPIScenicSpotParams) (*TourismAPIScenicSpotOK, error) {
// TODO: Validate the params before sending
@@ -834,7 +886,7 @@ func (a *Client) TourismAPIScenicSpot(params *TourismAPIScenicSpotParams) (*Tour
Method: "GET",
PathPattern: "/v2/Tourism/ScenicSpot",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIScenicSpotReader{formats: a.formats},
@@ -855,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
@@ -870,7 +922,7 @@ func (a *Client) TourismAPIScenicSpot0(params *TourismAPIScenicSpot0Params) (*To
Method: "GET",
PathPattern: "/v2/Tourism/ScenicSpot/{City}",
ProducesMediaTypes: []string{"application/json", "text/json"},
- ConsumesMediaTypes: []string{""},
+ ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"https"},
Params: params,
Reader: &TourismAPIScenicSpot0Reader{formats: a.formats},
diff --git a/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go b/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go
index 36d176b3..9e246ca6 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go
+++ b/tourism/v2/models/service_d_t_o_version2_application_activity_tourism_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2ApplicationActivityTourismInfo ActivityTourismInfo
//
// 取得觀光活動資料
+//
// swagger:model Service.DTO.Version2.Application.ActivityTourismInfo
type ServiceDTOVersion2ApplicationActivityTourismInfo struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go b/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go
index 0dddc6fc..381bc288 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go
+++ b/tourism/v2/models/service_d_t_o_version2_application_hotel_tourism_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2ApplicationHotelTourismInfo HotelTourismInfo
//
// 取得觀光旅宿資料
+//
// swagger:model Service.DTO.Version2.Application.HotelTourismInfo
type ServiceDTOVersion2ApplicationHotelTourismInfo struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go b/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go
index 236f1915..ba470300 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go
+++ b/tourism/v2/models/service_d_t_o_version2_application_restaurant_tourism_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2ApplicationRestaurantTourismInfo RestaurantTourismInfo
//
// 取得觀光餐飲資料
+//
// swagger:model Service.DTO.Version2.Application.RestaurantTourismInfo
type ServiceDTOVersion2ApplicationRestaurantTourismInfo struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go b/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go
index aaf01c62..622a1275 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go
+++ b/tourism/v2/models/service_d_t_o_version2_application_scenic_spot_tourism_info.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2ApplicationScenicSpotTourismInfo ScenicSpotTourismInfo
//
// 取得觀光景點資料
+//
// swagger:model Service.DTO.Version2.Application.ScenicSpotTourismInfo
type ServiceDTOVersion2ApplicationScenicSpotTourismInfo struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go b/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go
index 48301cb4..a68cfa15 100644
--- a/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go
+++ b/tourism/v2/models/service_d_t_o_version2_application_tourism_picture.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2ApplicationTourismPicture TourismPicture
//
// 觀光照片資料型別
+//
// swagger:model Service.DTO.Version2.Application.TourismPicture
type ServiceDTOVersion2ApplicationTourismPicture struct {
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
index 0687ebed..56abdf5a 100644
--- 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
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BaseNameType NameType
//
// 名稱資料型別
+//
// swagger:model Service.DTO.Version2.Base.NameType
type ServiceDTOVersion2BaseNameType struct {
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
index 08616778..171a47ea 100644
--- 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
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BasePointType PointType
//
// 座標資料型別
+//
// swagger:model Service.DTO.Version2.Base.PointType
type ServiceDTOVersion2BasePointType struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go b/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go
index 0c01aedd..0c5eb722 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_bus_frequency.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusFrequency BusFrequency
+//
// swagger:model Service.DTO.Version2.Bus.BusFrequency
type ServiceDTOVersion2BusBusFrequency struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go b/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
index 2baababb..3ac08fb4 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_bus_stop_time.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusStopTime BusStopTime
//
// 公車停靠時間資料
+//
// swagger:model Service.DTO.Version2.Bus.BusStopTime
type ServiceDTOVersion2BusBusStopTime struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go b/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
index bab1c9d2..4151f5f8 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_bus_sub_route.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusBusSubRoute BusSubRoute
//
// 附屬路線資料型別
+//
// swagger:model Service.DTO.Version2.Bus.BusSubRoute
type ServiceDTOVersion2BusBusSubRoute struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go b/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go
index 43d27a25..c2a62822 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_bus_timetable.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusBusTimetable BusTimetable
+//
// swagger:model Service.DTO.Version2.Bus.BusTimetable
type ServiceDTOVersion2BusBusTimetable struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_date_period.go b/tourism/v2/models/service_d_t_o_version2_bus_date_period.go
index 65453b1b..d7237249 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_date_period.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_date_period.go
@@ -6,12 +6,12 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BusDatePeriod DatePeriod
+//
// swagger:model Service.DTO.Version2.Bus.DatePeriod
type ServiceDTOVersion2BusDatePeriod struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go b/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go
index ce458ace..b1d5e0a6 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_route_operator.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2BusRouteOperator RouteOperator
//
// 營運業者資訊
+//
// swagger:model Service.DTO.Version2.Bus.RouteOperator
type ServiceDTOVersion2BusRouteOperator struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_service_day.go b/tourism/v2/models/service_d_t_o_version2_bus_service_day.go
index 49977d9e..a7f38a49 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_service_day.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_service_day.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2BusServiceDay ServiceDay
+//
// swagger:model Service.DTO.Version2.Bus.ServiceDay
type ServiceDTOVersion2BusServiceDay struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_special_day.go b/tourism/v2/models/service_d_t_o_version2_bus_special_day.go
index e94b3e99..1e6320de 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_special_day.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_special_day.go
@@ -6,13 +6,13 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ServiceDTOVersion2BusSpecialDay SpecialDay
+//
// swagger:model Service.DTO.Version2.Bus.SpecialDay
type ServiceDTOVersion2BusSpecialDay struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_bus_stop.go b/tourism/v2/models/service_d_t_o_version2_bus_stop.go
index 2cecd11d..af202d2f 100644
--- a/tourism/v2/models/service_d_t_o_version2_bus_stop.go
+++ b/tourism/v2/models/service_d_t_o_version2_bus_stop.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,13 +15,14 @@ import (
// ServiceDTOVersion2BusStop Stop
//
// 站牌代碼資料
+//
// swagger:model Service.DTO.Version2.Bus.Stop
type ServiceDTOVersion2BusStop struct {
// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
LocationCityCode string `json:"LocationCityCode,omitempty"`
- // station group ID
+ // 站牌所屬的組站位ID
// Required: true
StationGroupID *string `json:"StationGroupID"`
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go
index ed2dd4d6..38ee593a 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a1_data.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusA1Data BusA1Data
//
// 定時車機資料型別
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusA1Data
type ServiceDTOVersion2TaiwanTripBusBusA1Data struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go
index c9156ec8..57881052 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_a2_data.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusA2Data BusA2Data
//
// 定點車機資料型別
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusA2Data
type ServiceDTOVersion2TaiwanTripBusBusA2Data struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go
index 7e9363ab..6e01d828 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_n1_estimate_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime BusN1EstimateTime
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusN1EstimateTime
type ServiceDTOVersion2TaiwanTripBusBusN1EstimateTime struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go
index 3b2366e6..24572042 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusRoute BusRoute
//
// 路線資料型別
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusRoute
type ServiceDTOVersion2TaiwanTripBusBusRoute struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go
index e448cc6c..f68578a4 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_schedule.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2TaiwanTripBusBusSchedule BusSchedule
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusSchedule
type ServiceDTOVersion2TaiwanTripBusBusSchedule struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go
index f64f2ab7..bcd0c9f4 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_stop_of_route.go
@@ -8,9 +8,8 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -18,6 +17,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusStopOfRoute BusStopOfRoute
//
// 路線與站牌對應資料
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusStopOfRoute
type ServiceDTOVersion2TaiwanTripBusBusStopOfRoute struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go
index 2b212e95..ada23ec9 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_news.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews BusTaiwanTripNews
//
// 台灣好行最新消息資料
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripNews
type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripNews struct {
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/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time.go
index c0884f8f..41dc10d9 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/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time.go
@@ -8,14 +8,14 @@ package models
import (
"strconv"
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime BusTaiwanTripS2STravelTime
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime
type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTime struct {
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/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time_travel_time.go
index c8753868..3a7e3ee0 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/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_s2_s_travel_time_travel_time.go
@@ -6,14 +6,14 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime TravelTime
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripS2STravelTime.TravelTime
type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripS2STravelTimeTravelTime struct {
diff --git a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go
index 95ec28ae..2733eeb8 100644
--- a/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go
+++ b/tourism/v2/models/service_d_t_o_version2_taiwan_trip_bus_bus_taiwan_trip_shape.go
@@ -6,9 +6,8 @@ package models
// Editing this file might prove futile when you re-run the swagger generate command
import (
- strfmt "github.com/go-openapi/strfmt"
-
"github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-openapi/validate"
)
@@ -16,6 +15,7 @@ import (
// ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape BusTaiwanTripShape
//
// 台灣好行線型資料
+//
// swagger:model Service.DTO.Version2.TaiwanTripBus.BusTaiwanTripShape
type ServiceDTOVersion2TaiwanTripBusBusTaiwanTripShape struct {