Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmOrderRequest ¶
type ConfirmOrderRequest struct { OrderId int64 `json:"orderId" form:"orderId"` //订单Id SerialNum string `json:"serialNum" form:"serialNum"` // 流水号 TakenNum string `json:"takenNum" form:"takenNum"` // 取票号 TicketList []ConfirmOrderRequestTicketInfo `json:"ticketList" form:"ticketList"` //车票列表 UserId int64 `json:"userId" form:"userId"` //用户Id }
确认订单请求
type ConfirmOrderRequestTicketInfo ¶
type ConfirmOrderRequestTicketInfo struct { OrderId int64 `json:"orderId" form:"orderId"` //订单Id TicketId int64 `json:"ticketId" form:"ticketId"` //车票Id CarriageNum string `json:"carriageNum" form:"carriageNum"` // 车厢号 SeatNum string `json:"seatNum" form:"seatNum"` // 座位号 RealPassengerName string `json:"realPassengerName" form:"realPassengerName"` // 实际乘客姓名 RealSeatType *int64 `json:"realSeatType" form:"realSeatType"` // 实际坐席类型 RealSeatTypeName string `json:"realSeatTypeName" form:"realSeatTypeName"` // 实际坐席类型名 RealTicketPrice float64 `json:"realTicketPrice" form:"realTicketPrice"` // 实际票价 }
确认订单请求中的车票信息
type MatchSerialNumRequest ¶
type MatchSerialNumRequest struct { OrderId int64 `json:"orderId" form:"orderId"` //订单Id Price float64 `json:"price" form:"price"` //票价 UserId int64 `json:"userId" form:"userId"` //用户Id }
匹配流水请求
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"` // 订单号 ExpireTime common.CustomTime `gorm:"column:expire_time;comment:过期时间;" json:"expireTime" form:"expireTime"` // 过期时间 OrderStatus *int64 `gorm:"column:order_status;comment:订单状态;" json:"orderStatus" form:"orderStatus"` // 订单状态 NoTicketRemark string `gorm:"column:no_ticket_remark;comment:无票备注;" json:"noTicketRemark" form:"noTicketRemark"` // 无票备注 NoTicketType *int64 `gorm:"column:no_ticket_type;comment:无票类型;" json:"noTicketType" form:"noTicketType"` // 无票类型 SerialNum string `gorm:"column:serial_num;comment:流水号;" json:"serialNum" form:"serialNum"` // 流水号 TakenNum string `gorm:"column:taken_num;comment:取票号;" json:"takenNum" form:"takenNum"` // 取票号 OrderPrice float64 `gorm:"column:order_price;comment:订单价;" json:"orderPrice" form:"orderPrice"` // 订单价 IsPaid *bool `gorm:"column:is_paid;comment:是否支付;" json:"isPaid" form:"isPaid"` // 是否支付 IsMultiTrip *bool `gorm:"column:is_multi_trip;comment:是否联程;" json:"isMultiTrip" form:"isMultiTrip"` // 是否联程 ContactNum string `gorm:"column:contact_num;comment:联系电话;" json:"contactNum" form:"contactNum"` // 联系电话 ExtraSerialNum string `gorm:"column:extra_serial_num;comment:额外流水号;" json:"extraSerialNum" form:"extraSerialNum"` // 额外流水号 ExtraTakenNum string `gorm:"column:extra_taken_num;comment:额外取票号;" json:"extraTakenNum" form:"extraTakenNum"` // 额外取票号 HandleTime common.CustomTime `gorm:"column:handle_time;comment:处理时间;" json:"handleTime" form:"handleTime"` // 处理时间 IsLaterProcess *bool `gorm:"column:is_later_process;comment:是否稍后处理;" json:"isLaterProcess" form:"isLaterProcess"` // 是否稍后处理 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"` //车票列表 }
订单
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 DepartStation string `json:"departStation" form:"departStation"` //出发站 ArriveStation string `json:"arriveStation" form:"arriveStation"` //到达站 TrainNum string `json:"trainNum" form:"trainNum"` //车次 PassengerName string `json:"passengerName" form:"passengerName"` //乘客姓名 CertificateNum string `json:"certificateNum" form:"certificateNum"` //证件号 }
订单请求
type RefuseOrderRequest ¶
type RefuseOrderRequest struct { OrderId int64 `json:"orderId" form:"orderId"` //订单Id NoTicketRemark string `json:"noTicketRemark" form:"noTicketRemark"` // 无票备注 NoTicketType *int64 `json:"noTicketType" form:"noTicketType"` // 无票类型 UserId int64 `json:"userId" form:"userId"` //用户Id }
拒绝订单请求
type Ticket ¶
type Ticket struct { common.Model OrderId *int64 `gorm:"column:order_id;comment:订单id;" json:"orderId" form:"orderId"` // 订单id TicketNum string `gorm:"column:ticket_num;comment:车票号;" json:"ticketNum" form:"ticketNum"` // 车票号 Remark string `gorm:"column:remark;comment:备注;" json:"remark" form:"remark"` // 备注 AcceptSeatTypeName string `gorm:"column:accept_seat_type_name;comment:可接受的坐席类型名;" json:"acceptSeatTypeName" form:"acceptSeatTypeName"` // 可接受的坐席类型名 TripNum *int64 `gorm:"column:trip_num;comment:行程数;" json:"tripNum" form:"tripNum"` // 行程数 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"` // 到达站 DepartStationCode string `gorm:"column:depart_station_code;comment:出发站电报码;" json:"departStationCode" form:"departStationCode"` // 出发站电报码 ArriveStationCode string `gorm:"column:arrive_station_code;comment:到达站电报码;" json:"arriveStationCode" form:"arriveStationCode"` // 到达站电报码 TrainNum string `gorm:"column:train_num;comment:车次;" json:"trainNum" form:"trainNum"` // 车次 NationalityCode string `gorm:"column:nationality_code;comment:国籍代码;" json:"nationalityCode" form:"nationalityCode"` // 国籍代码 Nationality string `gorm:"column:nationality;comment:国籍;" json:"nationality" form:"nationality"` // 国籍 CertificateExpireDate string `gorm:"column:certificate_expire_date;comment:证件到期日期;" json:"certificateExpireDate" form:"certificateExpireDate"` // 证件到期日期 CertificateType *int64 `gorm:"column:certificate_type;comment:证件类型;" json:"certificateType" form:"certificateType"` // 证件类型 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 PassengerBirthday string `gorm:"column:passenger_birthday;comment:乘客出生日期;" json:"passengerBirthday" form:"passengerBirthday"` // 乘客出生日期 PassengerType *int64 `gorm:"column:passenger_type;comment:乘客类型;" json:"passengerType" form:"passengerType"` // 乘客类型 PassengerName string `gorm:"column:passenger_name;comment:乘客姓名;" json:"passengerName" form:"passengerName"` // 乘客姓名 SeatType *int64 `gorm:"column:seat_type;comment:坐席类型;" json:"seatType" form:"seatType"` // 坐席类型 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"` // 票价 RealPassengerName string `gorm:"column:real_passenger_name;comment:实际乘客姓名;" json:"realPassengerName" form:"realPassengerName"` // 实际乘客姓名 RealSeatType *int64 `gorm:"column:real_seat_type;comment:实际坐席类型;" json:"realSeatType" form:"realSeatType"` // 实际坐席类型 RealSeatTypeName string `gorm:"column:real_seat_type_name;comment:实际坐席类型名;" json:"realSeatTypeName" form:"realSeatTypeName"` // 实际坐席类型名 RealTicketPrice float64 `gorm:"column:real_ticket_price;comment:实际票价;" json:"realTicketPrice" form:"realTicketPrice"` // 实际票价 }
车票
Click to show internal directories.
Click to hide internal directories.