Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apply ¶
type Apply 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 PushId *int64 `gorm:"column:push_id;comment:推送id;" json:"pushId" form:"pushId"` // 推送id PlatformReserveApplyId string `` // 平台预留票申请id /* 132-byte string literal not displayed */ ApplyCount *int64 `gorm:"column:apply_count;comment:申请数;" json:"applyCount" form:"applyCount"` // 申请数 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"` // 用户 Push Push `gorm:"foreignKey:PushId;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" json:"push" form:"push"` // 推送 }
申请
type ApplyRequest ¶
type ApplyRequest struct { request.PageInfo Apply CreateTimeRange []string `json:"createTimeRange" form:"createTimeRange"` //进单时间范围,格式: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"` //车次 }
申请请求
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"` // 订单号 PlatformReserveApplyId string `` // 平台预留票申请Id /* 132-byte string literal not displayed */ 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 Push ¶
type Push 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 PlatformReservePushId string `` // 平台预留票推送id /* 129-byte string literal not displayed */ OpenSaleTime common.CustomTime `gorm:"column:open_sale_time;comment:开售时间;" json:"openSaleTime" form:"openSaleTime"` // 开售时间 DepartCity string `gorm:"column:depart_city;comment:出发城市;" json:"departCity" form:"departCity"` // 出发城市 ArriveCity string `gorm:"column:arrive_city;comment:到达城市;" json:"arriveCity" form:"arriveCity"` // 到达城市 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"` // 车次 SeatTypeName string `gorm:"column:seat_type_name;comment:坐席类型名;" json:"seatTypeName" form:"seatTypeName"` // 坐席类型名 ReserveType *int64 `gorm:"column:reserve_type;comment:预留票类型;" json:"reserveType" form:"reserveType"` // 预留票类型 RequireCount *int64 `gorm:"column:require_count;comment:需求数;" json:"requireCount" form:"requireCount"` // 需求数 MinRequireCount *int64 `gorm:"column:min_require_count;comment:最小需求数;" json:"minRequireCount" form:"minRequireCount"` // 最小需求数 DealingCount *int64 `gorm:"column:dealing_count;comment:处理中数量;" json:"dealingCount" form:"dealingCount"` // 处理中数量 ApplyCount *int64 `gorm:"column:apply_count;comment:申请数;" json:"applyCount" form:"applyCount"` // 申请数 PlatformAccountIds string `gorm:"column:platform_account_ids;comment:平台账户id列表;" json:"platformAccountIds" form:"platformAccountIds"` // 平台账户id列表 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"` // 用户 }
推送
type PushRequest ¶
type PushRequest struct { request.PageInfo Push CreateTimeRange []string `json:"createTimeRange" form:"createTimeRange"` //进单时间范围,格式:yyyy-MM-dd HH:mm:ss OpenSaleTimeRange []string `json:"openSaleTimeRange" form:"openSaleTimeRange"` //开售时间范围,格式:yyyy-MM-dd HH:mm:ss DepartTimeRange []string `json:"departTimeRange" form:"departTimeRange"` //发车时间范围,格式:yyyy-MM-dd HH:mm:ss }
推送请求
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"` // 到达站 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"` // 证件类型 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"` // 坐席类型 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"` // 实际坐席类型 RealTicketPrice float64 `gorm:"column:real_ticket_price;comment:实际票价;" json:"realTicketPrice" form:"realTicketPrice"` // 实际票价 }
车票
Click to show internal directories.
Click to hide internal directories.