rescheduleTicket

package
v0.0.0-...-01c5a3f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	common.Model
	PlatformType         *int64            `gorm:"column:platform_type;comment:平台类型;" json:"platformType" form:"platformType"`                            //  平台类型
	PlatformAccountId    *int64            `gorm:"column:platform_account_id;comment:平台账户id;" json:"platformAccountId" form:"platformAccountId"`          //  平台账户id
	AgencyId             *int64            `gorm:"column:agency_id;comment:代售点id;" json:"agencyId" form:"agencyId"`                                       //  代售点id
	UserId               *int64            `gorm:"column:user_id;comment:用户id;" json:"userId" form:"userId"`                                              //  用户id
	OrderNum             string            `gorm:"column:order_num;comment:订单号;" json:"orderNum" form:"orderNum"`                                         //  订单号
	PlatformRescheduleId string            `gorm:"column:platform_reschedule_id;comment:平台改签Id;" json:"platformRescheduleId" form:"platformRescheduleId"` //  平台改签Id
	ExpireTime           common.CustomTime `gorm:"column:expire_time;comment:过期时间;" json:"expireTime" form:"expireTime"`                                  //  过期时间
	Remark               string            `gorm:"column:remark;comment:备注;" json:"remark" form:"remark"`                                                 //  备注
	AcceptSeatTypeName   string            `gorm:"column:accept_seat_type_name;comment:可接受的坐席类型名;" json:"acceptSeatTypeName" form:"acceptSeatTypeName"`   //  可接受的坐席类型名
	RescheduleStatus     *int64            `gorm:"column:reshedule_status;comment:改签状态;" json:"resheduleStatus" form:"resheduleStatus"`                   //  改签状态
	NoTicketRemark       string            `gorm:"column:no_ticket_remark;comment:无票备注;" json:"noTicketRemark" form:"noTicketRemark"`                     //  无票备注
	SerialNum            string            `gorm:"column:serial_num;comment:流水号;" json:"serialNum" form:"serialNum"`                                      //  流水号
	TakenNum             string            `gorm:"column:taken_num;comment:取票号;" json:"takenNum" form:"takenNum"`                                         //  取票号
	IsPaid               *bool             `gorm:"column:is_paid;comment:是否支付;" json:"isPaid" form:"isPaid"`                                              //  是否支付
	ContactNum           string            `gorm:"column:contact_num;comment:联系电话;" json:"contactNum" form:"contactNum"`                                  //  联系电话
	HandleTime           common.CustomTime `gorm:"column:handle_time;comment:处理时间;" json:"handleTime" form:"handleTime"`                                  //  处理时间
	DepartTime           common.CustomTime `gorm:"column:depart_time;comment:出发时间;" json:"departTime" form:"departTime"`                                  //  出发时间
	ArriveTime           common.CustomTime `gorm:"column:arrive_time;comment:到达时间;" json:"arriveTime" form:"arriveTime"`                                  //  到达时间
	DepartStation        string            `gorm:"column:depart_station;comment:出发站;" json:"departStation" form:"departStation"`                          //  出发站
	ArriveStation        string            `gorm:"column:arrive_station;comment:到达站;" json:"arriveStation" form:"arriveStation"`                          //  到达站
	TrainNum             string            `gorm:"column:train_num;comment:车次;" json:"trainNum" form:"trainNum"`                                          //  车次
	TicketPrice          float64           `gorm:"column:ticket_price;comment:票价;" json:"ticketPrice" form:"ticketPrice"`                                 //  票价
	SeatTypeName         string            `gorm:"column:seat_type_name;comment:坐席类型名;" json:"seatTypeName" form:"seatTypeName"`                          //  坐席类型名
	RealDepartTime       common.CustomTime `gorm:"column:real_depart_time;comment:实际出发时间;" json:"realDepartTime" form:"realDepartTime"`                   //  实际出发时间
	RealArriveTime       common.CustomTime `gorm:"column:real_arrive_time;comment:实际到达时间;" json:"realArriveTime" form:"realArriveTime"`                   //  实际到达时间
	RealDepartStation    string            `gorm:"column:real_depart_station;comment:实际出发站;" json:"realDepartStation" form:"realDepartStation"`           //  实际出发站
	RealArriveStation    string            `gorm:"column:real_arrive_station;comment:实际到达站;" json:"realArriveStation" form:"realArriveStation"`           //  实际到达站
	RealTrainNum         string            `gorm:"column:real_train_num;comment:实际车次;" json:"realTrainNum" form:"realTrainNum"`                           //  实际车次
	RescheduleType       *int64            `gorm:"column:reschedule_type;comment:改签类型;" json:"rescheduleType" form:"rescheduleType"`                      //  改签类型

	PlatformAccount platform.PlatformAccount `` //  平台账户
	/* 128-byte string literal not displayed */
	Agency  agency.Agency `gorm:"foreignKey:AgencyId;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" json:"agency" form:"agency"` //  代售点
	User    agency.User   `gorm:"foreignKey:UserId;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" json:"user" form:"user"`       //  用户
	Tickets []Ticket      `gorm:"foreignKey:OrderId;" json:"tickets" form:"tickets"`                                              //车票列表
}

订单

func (Order) TableName

func (Order) TableName() string

type OrderRequest

type OrderRequest struct {
	request.PageInfo
	Order
	CreateTimeRange []string `json:"createTimeRange" form:"createTimeRange"` //进单时间范围,格式:yyyy-MM-dd HH:mm:ss
	HandleTimeRange []string `json:"handleTimeRange" form:"handleTimeRange"` //处理时间范围,格式:yyyy-MM-dd HH:mm:ss
	DepartTimeRange []string `json:"departTimeRange" form:"departTimeRange"` //发车时间范围,格式:yyyy-MM-dd HH:mm:ss
	PassengerName   string   `json:"passengerName" form:"passengerName"`     //乘客姓名
	CertificateNum  string   `json:"certificateNum" form:"certificateNum"`   //证件号
}

订单请求

type Ticket

type Ticket struct {
	common.Model
	OrderId             *int64  `gorm:"column:order_id;comment:订单id;" json:"orderId" form:"orderId"`                                        //  订单id
	CertificateTypeName string  `gorm:"column:certificate_type_name;comment:证件类型名;" json:"certificateTypeName" form:"certificateTypeName"`  //  证件类型名
	CertificateNum      string  `gorm:"column:certificate_num;comment:证件号;" json:"certificateNum" form:"certificateNum"`                    //  证件号
	PlatformPassengerId string  `gorm:"column:platform_passenger_id;comment:平台乘客id;" json:"platformPassengerId" form:"platformPassengerId"` //  平台乘客id
	PassengerTypeName   string  `gorm:"column:passenger_type_name;comment:乘客类型名;" json:"passengerTypeName" form:"passengerTypeName"`        //  乘客类型名
	PassengerName       string  `gorm:"column:passenger_name;comment:乘客姓名;" json:"passengerName" form:"passengerName"`                      //  乘客姓名
	SeatTypeName        string  `gorm:"column:seat_type_name;comment:坐席类型名;" json:"seatTypeName" form:"seatTypeName"`                       //  坐席类型名
	CarriageNum         string  `gorm:"column:carriage_num;comment:车厢号;" json:"carriageNum" form:"carriageNum"`                             //  车厢号
	SeatNum             string  `gorm:"column:seat_num;comment:座位号;" json:"seatNum" form:"seatNum"`                                         //  座位号
	TicketPrice         float64 `gorm:"column:ticket_price;comment:票价;" json:"ticketPrice" form:"ticketPrice"`                              //  票价
	RealSeatTypeName    string  `gorm:"column:real_seat_type_name;comment:实际坐席类型名;" json:"realSeatTypeName" form:"realSeatTypeName"`        //  实际坐席类型名
	RealCarriageNum     string  `gorm:"column:real_carriage_num;comment:实际车厢号;" json:"realCarriageNum" form:"realCarriageNum"`              //  实际车厢号
	RealSeatNum         string  `gorm:"column:real_seat_num;comment:实际座位号;" json:"realSeatNum" form:"realSeatNum"`                          //  实际座位号
	RealTicketPrice     float64 `gorm:"column:real_ticket_price;comment:实际票价;" json:"realTicketPrice" form:"realTicketPrice"`               //  实际票价
}

车票

func (Ticket) TableName

func (Ticket) TableName() string

Jump to

Keyboard shortcuts

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