models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const BUSLINE_SEQ = "BUSLINE_SEQ"
View Source
const BUSROUTE_SEQ = "BUSROUTE_SEQ"
View Source
const BUSSCHEDULEMASTERLINE = "BUSSCHEDULEMASTERLINE"
View Source
const BUSSTOP_SEQ = "BUSSTOP"

Variables

This section is empty.

Functions

This section is empty.

Types

type BusRoute

type BusRoute struct {
	Id              int64   `json:"Id" gorm:"PrimaryKey"`
	Route_code      int32   `json:"RouteCode" gorm:"index:ROUTE_CODE_UN,unique"`
	Line_code       int32   `json:"LineCode" gorm:"index:LINE_CODE_INDX"`
	Route_descr     string  `json:"RouteDescr"`
	Route_descr_eng string  `json:"RouteDescrEng"`
	Route_type      int8    `json:"RouteType"`
	Route_distance  float32 `json:"RouteDistance"`
}

type BusRouteStops

type BusRouteStops struct {
	Route_code int32 `json:"route_code" gorm:"primaryKey"`
	Stop_code  int64 `json:"stop_code" gorm:"primaryKey"`
	Senu       int16 `json:"senu" gorm:"primaryKey"`
}

type BusScheduleMasterLine

type BusScheduleMasterLine struct {
	Id            int64  `json: id`
	Sdc_descr     string `json: sdc_descr`
	Sdc_descr_eng string `json: sdc_descr_eng`
	Sdc_code      int16  `json: sdc_code`
	Line_code     int32  `json: line_code`
}

type BusScheduleMasterLineDto

type BusScheduleMasterLineDto struct {
	Sdc_descr     string `json: sdc_descr`
	Sdc_descr_eng string `json: sdc_descr_eng`
	Sdc_code      int32  `json: sdc_code`
}

This is a model Describe Master Bus Line

type BusSheduleLine

type BusSheduleLine struct {
	Id        int32 `json: id`
	Sdc_code  int16 `json:sdc_code`
	Ml_code   int16 `json:ml_code`
	Line_code int32 `json: line_code`
}

type BusStop

type BusStop struct {
	Id              int64   `json:"Id" gorm:"primaryKey"`
	Stop_code       int64   `json:"StopCode" gorm:"index:STOP_CODE_UN,unique"`
	Stop_id         string  `json:"StopID"`
	Stop_descr      string  `json:"StopDescr"`
	Stop_descr_eng  string  `json:"StopDescrEng"`
	Stop_street     string  `json:"StopStreet"`
	Stop_street_eng string  `json:"StopStreetEng"`
	Stop_heading    int32   `json:"StopHeading"`
	Stop_lat        float64 `json:"StopLat"`
	Stop_lng        float64 `json:"StopLng"`
	Stop_type       int8    `json:"StopType"`
	Stop_amea       int8    `json:"StopAmea"`
}

type BusStopDto

type BusStopDto struct {
	Id               int64   `json:"Id"`
	Stop_code        int64   `json:"StopCode"`
	Stop_id          string  `json:"StopID"`
	Stop_descr       string  `json:"StopDescr"`
	Stop_descr_eng   string  `json:"StopDescrEng"`
	Stop_street      string  `json:"StopStreet"`
	Stop_street_eng  string  `json:"StopStreetEng"`
	Stop_heading     int32   `json:"StopHeading"`
	Stop_lat         float64 `json:"StopLat"`
	Stop_lng         float64 `json:"StopLng"`
	Route_stop_order int16   `json:"RouteStopOrder"`
	Stop_type        int8    `json:"StopType"`
	Stop_amea        int8    `json:"StopAmea"`
}

type Busline

type Busline struct {
	Id             int64  `gorm:"primaryKey"`
	Ml_code        int16  `json:"ml_code"`
	Sdc_code       int16  `json:"sdc_code"`
	Line_code      int32  `json:"line_code" validate:"required" gorm:"index:LINE_CODE,unique"`
	Line_id        string `json:"line_id"`
	Line_descr     string `json:"line_descr" validate:"required,min=2,max=5"`
	Line_descr_eng string `json:"line_descr_eng" validate:"required,min=2,max=5"`
}

type LineDto

type LineDto struct {
	ID             int64
	Ml_Code        int64
	Sdc_Code       int64
	Line_Code      int64
	Line_Id        string
	Line_Descr     string `validate:"required,min=2,max=5`
	Line_Descr_Eng string
}

type OasaError

type OasaError struct {
	Error string `json:"error" `
}

type Sequence

type Sequence struct {
	SEQ_GEN   string `gorm:"primaryKey"`
	SEQ_COUNT int64
}

type StopDto

type StopDto struct {
	Stop_code       int64   `json:"StopCode"`
	Stop_id         string  `json:"StopID"`
	Stop_descr      string  `json:"StopDescr"`
	Stop_descr_eng  string  `json:"StopDescrEng"`
	Stop_street     string  `json:"StopStreet"`
	Stop_street_eng string  `json:"StopStreetEng"`
	Stop_heading    int32   `json:"StopHeading"`
	Stop_lat        float64 `json:"StopLat"`
	Stop_lng        float64 `json:"StopLng"`
	Senu            int16   `json:"StopOrder"`
	Stop_type       int8    `json:"StopType"`
	Stop_amea       int8    `json:"StopAmea"`
}

Jump to

Keyboard shortcuts

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