149 lines
4.4 KiB
Go
149 lines
4.4 KiB
Go
|
package model
|
||
|
|
||
|
import "qnc-server/model/request"
|
||
|
|
||
|
type CarInsurance struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarInsurance) TableName() string {
|
||
|
return "car_insurance"
|
||
|
}
|
||
|
|
||
|
type CarInsuranceVerify struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarInsuranceVerify) TableName() string {
|
||
|
return "car_insurance_verify"
|
||
|
}
|
||
|
|
||
|
type CarInsurancePayload struct {
|
||
|
request.CarInsuranceReq
|
||
|
ProdID string
|
||
|
}
|
||
|
|
||
|
type CarMaintenance struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
LicenseImage string `gorm:"column:license_image;type:varchar(255);not null"`
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
YuShanOrderID string `gorm:"column:yu_shan_order_id;type:varchar(255);not null"`
|
||
|
NotifySN string `gorm:"column:notify_sn;type:varchar(255);not null"`
|
||
|
Resp string `gorm:"column:resp;type:text"`
|
||
|
Status string `gorm:"column:status;type:varchar(50);not null"`
|
||
|
}
|
||
|
|
||
|
const (
|
||
|
StatusPending = "查询中"
|
||
|
StatusSuccess = "查询成功"
|
||
|
StatusFailed = "查询失败"
|
||
|
)
|
||
|
|
||
|
func (CarMaintenance) TableName() string {
|
||
|
return "car_maintenance"
|
||
|
}
|
||
|
|
||
|
// 人车核验 CAR012
|
||
|
type CarPersonCarVerify struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Name string `gorm:"column:name;type:varchar(255);not null"` //人名
|
||
|
CarType string `gorm:"column:car_type;not null"`
|
||
|
CarNumber string `gorm:"column:car_number;type:varchar(255);not null"` // 车牌
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarPersonCarVerify) TableName() string {
|
||
|
return "car_person_car_verify"
|
||
|
}
|
||
|
|
||
|
// CAR061名下车辆
|
||
|
type CarUnderName struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarUnderName) TableName() string {
|
||
|
return "car_under_name"
|
||
|
}
|
||
|
|
||
|
// CAR070车辆上险信息 CAR095车五项 合并
|
||
|
type CarInsuranceInfo struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
FiveResp string `gorm:"column:five_resp;type:text;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarInsuranceInfo) TableName() string {
|
||
|
return "car_insurance_info"
|
||
|
}
|
||
|
|
||
|
// 新能源动力电池报告
|
||
|
type CarNewEnergyPower struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
YuShanOrderID string `gorm:"column:yu_shan_order_id;type:varchar(255);not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarNewEnergyPower) TableName() string {
|
||
|
return "car_new_energy_power"
|
||
|
}
|
||
|
|
||
|
// vin查车辆信息
|
||
|
type CarVinCheckInfo struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarVinCheckInfo) TableName() string {
|
||
|
return "car_vin_check_info"
|
||
|
}
|
||
|
|
||
|
// 车辆过户次数 Car066
|
||
|
type CarVehicleTransfer struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarVehicleTransfer) TableName() string {
|
||
|
return "car_vehicle_transfer"
|
||
|
}
|
||
|
|
||
|
// 车辆估值 CAR100
|
||
|
type CarVehicleValuation struct {
|
||
|
BaseModel
|
||
|
UserID uint `gorm:"column:userid;not null"`
|
||
|
Vin string `gorm:"column:vin;type:varchar(255);not null"` //车架号
|
||
|
CarNumber string `gorm:"column:car_number;type:varchar(255);not null"` // 车牌
|
||
|
OrderID uint `gorm:"column:order_id;not null"`
|
||
|
Resp string `gorm:"column:resp;type:text;not null"`
|
||
|
}
|
||
|
|
||
|
func (CarVehicleValuation) TableName() string {
|
||
|
return "car_vehicle_valuation"
|
||
|
}
|