P04.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. package query
  2. import (
  3. "context"
  4. "gd_adm_data/apis"
  5. "gd_adm_data/errors"
  6. "gd_adm_data/model"
  7. jsoniter "github.com/json-iterator/go"
  8. "git.getensh.com/common/gopkgsv2/database"
  9. )
  10. type Aircondition struct {
  11. AirconditionControlType string `json:"aircondition_control_type"`
  12. CarAirPurifier string `json:"car_air_purifier"`
  13. FragranceSystem string `json:"fragrance_system"`
  14. NegativeIonGenerator string `json:"negative_ion_generator"`
  15. Pm25Device string `json:"pm25_device"`
  16. RearIndependentAirConditioner string `json:"rear_independent_air_conditioner"`
  17. RearSeatAirOutlet string `json:"rear_seat_air_outlet"`
  18. Refrigerator string `json:"refrigerator"`
  19. TemperatureZoneControl string `json:"temperature_zone_control"`
  20. }
  21. type Basic struct {
  22. Alternator string `json:"alternator"`
  23. BrakingDistanceMeasure string `json:"braking_distance_measure"`
  24. BrandName string `json:"brand_name"`
  25. EmissionStandard string `json:"emission_standard"`
  26. Engine string `json:"engine"`
  27. FastChargeAmount string `json:"fast_charge_amount"`
  28. FastChargingTime string `json:"fast_charging_time"`
  29. FuelTypeDetail string `json:"fuel_type_detail"`
  30. GearboxDesc string `json:"gearbox_desc"`
  31. HundredAccelerate string `json:"hundred_accelerate"`
  32. HundredAccelerateMeasure string `json:"hundred_accelerate_measure"`
  33. Level string `json:"level"`
  34. Lwh string `json:"lwh"`
  35. Maker string `json:"maker"`
  36. MaximumPower string `json:"maximum_power"`
  37. MaximumSimulationMilage string `json:"maximum_simulation_milage"`
  38. MaximumSimulationMilageMeasure string `json:"maximum_simulation_milage_measure"`
  39. MaximumSpeed string `json:"maximum_speed"`
  40. MaximumTorque string `json:"maximum_torque"`
  41. ModelYear string `json:"model_year"`
  42. OilWearComrehensive string `json:"oil_wear_comrehensive"`
  43. OilWearMeasure string `json:"oil_wear_measure"`
  44. Price string `json:"price"`
  45. PriceYuan string `json:"price_yuan"`
  46. SeriesId string `json:"series_id"`
  47. SeriesImg string `json:"series_img"`
  48. SeriesName string `json:"series_name"`
  49. SlowChargingTime string `json:"slow_charging_time"`
  50. StyleId string `json:"style_id"`
  51. StyleName string `json:"style_name"`
  52. SubLevel string `json:"sub_level"`
  53. VehicleStructure string `json:"vehicle_structure"`
  54. VehicleWarranty string `json:"vehicle_warranty"`
  55. BrandId string `json:"brand_id"`
  56. }
  57. type Body struct {
  58. BackWheelDistance string `json:"back_wheel_distance"`
  59. DoorNumber string `json:"door_number"`
  60. FrontWheelDistance string `json:"front_wheel_distance"`
  61. High string `json:"high"`
  62. Long string `json:"long"`
  63. MinimumGroundClearance string `json:"minimum_ground_clearance"`
  64. OilboxVolume string `json:"oilbox_volume"`
  65. SeatNumber string `json:"seat_number"`
  66. TrunkVolume string `json:"trunk_volume"`
  67. UnladenMass string `json:"unladen_mass"`
  68. Wheelbase string `json:"wheelbase"`
  69. Wide string `json:"wide"`
  70. }
  71. type Chassis struct {
  72. AssistType string `json:"assist_type"`
  73. BackSuspentionType string `json:"back_suspention_type"`
  74. BodyStructure string `json:"body_structure"`
  75. DriveType string `json:"drive_type"`
  76. FrontSuspentionType string `json:"front_suspention_type"`
  77. }
  78. type Control struct {
  79. AirSuspension string `json:"air_suspension"`
  80. AscentAssist string `json:"ascent_assist"`
  81. AutoHold string `json:"auto_hold"`
  82. AutomaticDrivingAssistance string `json:"automatic_driving_assistance"`
  83. AutomaticParking string `json:"automatic_parking"`
  84. BackParkingRador string `json:"back_parking_rador"`
  85. CentralDiffLock string `json:"central_diff_lock"`
  86. CruiseSystem string `json:"cruise_system"`
  87. DrivingModeSelection string `json:"driving_mode_selection"`
  88. EInductionSuspension string `json:"e_induction_suspension"`
  89. Edl string `json:"edl"`
  90. EngineStartStopTechnology string `json:"engine_start_stop_technology"`
  91. FrontParkingRador string `json:"front_parking_rador"`
  92. Hdc string `json:"hdc"`
  93. OverallActiveSteeringSystem string `json:"overall_active_steering_system"`
  94. ReverseVehicleSideWarningSystem string `json:"reverse_vehicle_side_warning_system"`
  95. VariableSteeringRatio string `json:"variable_steering_ratio"`
  96. VariableSuspension string `json:"variable_suspension"`
  97. WadeSensingSystem string `json:"wade_sensing_system"`
  98. }
  99. type Electric struct {
  100. BackElectricMaximumPower string `json:"back_electric_maximum_power"`
  101. BackElectricTorque string `json:"back_electric_torque"`
  102. BatteryEnergy string `json:"battery_energy"`
  103. BatteryPackWarranty string `json:"battery_pack_warranty"`
  104. BatteryType string `json:"battery_type"`
  105. FrontElectricMaximumPower string `json:"front_electric_maximum_power"`
  106. FrontElectricTorque string `json:"front_electric_torque"`
  107. HundredElectricityConsumption string `json:"hundred_electricity_consumption"`
  108. MaximumSimulationMilage string `json:"maximum_simulation_milage"`
  109. MotorLayout string `json:"motor_layout"`
  110. MotorNumber string `json:"motor_number"`
  111. MotorType string `json:"motor_type"`
  112. SystemIntegratedPower string `json:"system_integrated_power"`
  113. SystemIntegratedTorque string `json:"system_integrated_torque"`
  114. TotalMotorPower string `json:"total_motor_power"`
  115. TotalMotorTorque string `json:"total_motor_torque"`
  116. }
  117. type Internal struct {
  118. ActiveNoiseReduction string `json:"active_noise_reduction"`
  119. CarDrivingRecorder string `json:"car_driving_recorder"`
  120. DrivingComputerDisplay string `json:"driving_computer_display"`
  121. ElectricallyAdjustablePedal string `json:"electrically_adjustable_pedal"`
  122. FullLcdDashboard string `json:"full_lcd_dashboard"`
  123. FullLcdDashboardSize string `json:"full_lcd_dashboard_size"`
  124. HudRisingNumberDisplay string `json:"hud_rising_number_display"`
  125. MobilePhoneWirelessCharging string `json:"mobile_phone_wireless_charging"`
  126. MultiFunctionalSteeringWheel string `json:"multi_functional_steering_wheel"`
  127. SteeringWheelAdjustment string `json:"steering_wheel_adjustment"`
  128. SteeringWheelHeating string `json:"steering_wheel_heating"`
  129. SteeringWheelMaterial string `json:"steering_wheel_material"`
  130. SteeringWheelRemember string `json:"steering_wheel_remember"`
  131. SteeringWheelShift string `json:"steering_wheel_shift"`
  132. }
  133. type Engine struct {
  134. AirIntakForm string `json:"air_intak_form"`
  135. CylinderArrangement string `json:"cylinder_arrangement"`
  136. CylinderDiameter string `json:"cylinder_diameter"`
  137. CylinderHeadMaterial string `json:"cylinder_head_material"`
  138. CylinderMaterial string `json:"cylinder_material"`
  139. CylinderNumber string `json:"cylinder_number"`
  140. CylinderValveNumber string `json:"cylinder_valve_number"`
  141. Displacement string `json:"displacement"`
  142. DisplacementL string `json:"displacement_l"`
  143. EngineTechnology string `json:"engine_technology"`
  144. EngineType string `json:"engine_type"`
  145. FuelLable string `json:"fuel_lable"`
  146. FuelTypeDetail string `json:"fuel_type_detail"`
  147. MaximumHorsepower string `json:"maximum_horsepower"`
  148. MaximumPowerRpm string `json:"maximum_power_rpm"`
  149. OilSupplyMode string `json:"oil_supply_mode"`
  150. PistonStroke string `json:"piston_stroke"`
  151. ReductionRatio string `json:"reduction_ratio"`
  152. Rpm string `json:"rpm"`
  153. ValveMechanism string `json:"valve_mechanism"`
  154. }
  155. type External struct {
  156. ActiveIntakeGrille string `json:"active_intake_grille"`
  157. BatteryPreHeating string `json:"battery_pre_heating"`
  158. CentralControlLock string `json:"central_control_lock"`
  159. ElectricTrunk string `json:"electric_trunk"`
  160. ElectronicAntiTheft string `json:"electronic_anti_theft"`
  161. Eosd string `json:"eosd"`
  162. FramelessDesignDoor string `json:"frameless_design_door"`
  163. HideElectricDoorHandle string `json:"hide_electric_door_handle"`
  164. InductiveTrunk string `json:"inductive_trunk"`
  165. KeyType string `json:"key_type"`
  166. KeylessEntrySystem string `json:"keyless_entry_system"`
  167. KeylessStartSystem string `json:"keyless_start_system"`
  168. OutsidePedal string `json:"outside_pedal"`
  169. RearCompartmentPositionMemory string `json:"rear_compartment_position_memory"`
  170. RemoteStart string `json:"remote_start"`
  171. RimMaterial string `json:"rim_material"`
  172. RoofLuggageRack string `json:"roof_luggage_rack"`
  173. SideSlidingDoor string `json:"side_sliding_door"`
  174. SkylightType string `json:"skylight_type"`
  175. SportsAppearanceKit string `json:"sports_appearance_kit"`
  176. Tail string `json:"tail"`
  177. TheTailgateGlassOpensIndependently string `json:"the_tailgate_glass_opens_independently"`
  178. }
  179. type Gearbox struct {
  180. GearNumber string `json:"gear_number"`
  181. GearboxDesc string `json:"gearbox_desc"`
  182. GearboxType string `json:"gearbox_type"`
  183. }
  184. type Intelligent struct {
  185. AuxiliaryDrivingChip string `json:"auxiliary_driving_chip"`
  186. ChipComputingPower string `json:"chip_computing_power"`
  187. NumberOfCameras string `json:"number_of_cameras"`
  188. NumberOfLidars string `json:"number_of_lidars"`
  189. NumberOfMillimeterWaveRadars string `json:"number_of_millimeter_wave_radars"`
  190. NumberOfUltrasonicRadars string `json:"number_of_ultrasonic_radars"`
  191. }
  192. type Light struct {
  193. AdaptiveFarNear string `json:"adaptive_far_near"`
  194. Atmosphere string `json:"atmosphere"`
  195. AutoHead string `json:"auto_head"`
  196. Clean string `json:"clean"`
  197. Daytime string `json:"daytime"`
  198. Far string `json:"far"`
  199. Fog string `json:"fog"`
  200. HeadlampDelayOff string `json:"headlamp_delay_off"`
  201. HeadlampRainFogMode string `json:"headlamp_rain_fog_mode"`
  202. HeightAdjustable string `json:"height_adjustable"`
  203. LightingFeatures string `json:"lighting_features"`
  204. Near string `json:"near"`
  205. SideTurn string `json:"side_turn"`
  206. SteeringAssistLamp string `json:"steering_assist_lamp"`
  207. TouchReadingLamp string `json:"touch_reading_lamp"`
  208. }
  209. type Media struct {
  210. BackLcd string `json:"back_lcd"`
  211. CarInternet string `json:"car_internet"`
  212. CarPhone string `json:"car_phone"`
  213. CarTv string `json:"car_tv"`
  214. CdDvd string `json:"cd_dvd"`
  215. CenterConsoleLargeScreenSize string `json:"center_console_large_screen_size"`
  216. CentralColourScreen string `json:"central_colour_screen"`
  217. CentralLcdSplitScreen string `json:"central_lcd_split_screen"`
  218. ChargingInterface string `json:"charging_interface"`
  219. FaceRecognition string `json:"face_recognition"`
  220. GestureControl string `json:"gesture_control"`
  221. Gps string `json:"gps"`
  222. InterfaceOf12V string `json:"interface_of12v"`
  223. MobileInternet string `json:"mobile_internet"`
  224. NavigationTrafficInformationDisplay string `json:"navigation_traffic_information_display"`
  225. NumberOfInterfaces string `json:"number_of_interfaces"`
  226. Ota string `json:"ota"`
  227. PowerOf220V string `json:"power_of220v"`
  228. RearControlMultimedia string `json:"rear_control_multimedia"`
  229. RoadRescueCall string `json:"road_rescue_call"`
  230. SpeakerBrand string `json:"speaker_brand"`
  231. SpeakerNumber string `json:"speaker_number"`
  232. VoiceControl string `json:"voice_control"`
  233. }
  234. type Optional struct {
  235. BodyColour string `json:"body_colour"`
  236. InteriorColor string `json:"interior_color"`
  237. }
  238. type Rearview struct {
  239. AntiPinchHand string `json:"anti_pinch_hand"`
  240. BackElectricWindow string `json:"back_electric_window"`
  241. BackSidePrivacy string `json:"back_side_privacy"`
  242. BackSideSunshade string `json:"back_side_sunshade"`
  243. BackSunshade string `json:"back_sunshade"`
  244. BackWiper string `json:"back_wiper"`
  245. Cosmetic string `json:"cosmetic"`
  246. ExteriorRearviewMirrorFunction string `json:"exterior_rearview_mirror_function"`
  247. FrontElectricWindow string `json:"front_electric_window"`
  248. FrontWiper string `json:"front_wiper"`
  249. HeatableSprayNozzle string `json:"heatable_spray_nozzle"`
  250. InteriorRearviewMirrorFunction string `json:"interior_rearview_mirror_function"`
  251. MultilayerSoundInsulationGlass string `json:"multilayer_sound_insulation_glass"`
  252. WindowOneKey string `json:"window_one_key"`
  253. }
  254. type Safety struct {
  255. Abs string `json:"abs"`
  256. ActiveBrake string `json:"active_brake"`
  257. AsrTcsTrc string `json:"asr_tcs_trc"`
  258. AuxiliarySeatAirbag string `json:"auxiliary_seat_airbag"`
  259. BackBeltAirbag string `json:"back_belt_airbag"`
  260. BackHeadAirbag string `json:"back_head_airbag"`
  261. BackSideAirbag string `json:"back_side_airbag"`
  262. EbaBasBa string `json:"eba_bas_ba"`
  263. EbdCbc string `json:"ebd_cbc"`
  264. Esp string `json:"esp"`
  265. FatigueDrivingWarning string `json:"fatigue_driving_warning"`
  266. FontHeadAirbag string `json:"font_head_airbag"`
  267. FrontMiddleAirbag string `json:"front_middle_airbag"`
  268. FrontSideAirbag string `json:"front_side_airbag"`
  269. IsoFix string `json:"iso_fix"`
  270. KneeAirbag string `json:"knee_airbag"`
  271. LaneDepartureWarningSystem string `json:"lane_departure_warning_system"`
  272. LaneKeeping string `json:"lane_keeping"`
  273. MainSeatAirbag string `json:"main_seat_airbag"`
  274. NightVision string `json:"night_vision"`
  275. ParallelAuxiliary string `json:"parallel_auxiliary"`
  276. PassengerSeatCushionAirbag string `json:"passenger_seat_cushion_airbag"`
  277. PassivePedestrianProtection string `json:"passive_pedestrian_protection"`
  278. RearCentralAirbag string `json:"rear_central_airbag"`
  279. RearSeatAntiSlideAirbag string `json:"rear_seat_anti_slide_airbag"`
  280. RoadTrafficSignRecognition string `json:"road_traffic_sign_recognition"`
  281. RunFlatTire string `json:"run_flat_tire"`
  282. SeatBeltWarning string `json:"seat_belt_warning"`
  283. TirePresureMonitor string `json:"tire_presure_monitor"`
  284. }
  285. type Seat struct {
  286. AuxiliaryAdjustableButton string `json:"auxiliary_adjustable_button"`
  287. AuxiliaryElectricAdust string `json:"auxiliary_electric_adust"`
  288. AuxiliarySeatAdjustmentMode string `json:"auxiliary_seat_adjustment_mode"`
  289. BackCupHolder string `json:"back_cup_holder"`
  290. BackDownType string `json:"back_down_type"`
  291. BackFoldTable string `json:"back_fold_table"`
  292. BackHandrail string `json:"back_handrail"`
  293. ElectricSeatRemeber string `json:"electric_seat_remeber"`
  294. FrontHandrail string `json:"front_handrail"`
  295. FrontSeatFunction string `json:"front_seat_function"`
  296. HeatingCoolingCupHolder string `json:"heating_cooling_cup_holder"`
  297. MainElectricAdust string `json:"main_electric_adust"`
  298. MainSeatAdjustmentMode string `json:"main_seat_adjustment_mode"`
  299. RearSeatElectricAdjustment string `json:"rear_seat_electric_adjustment"`
  300. RearSeatFunction string `json:"rear_seat_function"`
  301. RearSeatPowerDown string `json:"rear_seat_power_down"`
  302. SeatLayoutForm string `json:"seat_layout_form"`
  303. SeatMaterial string `json:"seat_material"`
  304. SecondIndependent string `json:"second_independent"`
  305. SecondRowSeatAdjustment string `json:"second_row_seat_adjustment"`
  306. SportSeat string `json:"sport_seat"`
  307. }
  308. type Wheelbrake struct {
  309. BackBrakeType string `json:"back_brake_type"`
  310. BackWheelSpecification string `json:"back_wheel_specification"`
  311. FrontBrakeType string `json:"front_brake_type"`
  312. FrontWheelSpecification string `json:"front_wheel_specification"`
  313. ParkingBrakeType string `json:"parking_brake_type"`
  314. SpareWheelSpecification string `json:"spare_wheel_specification"`
  315. }
  316. type p04Response struct {
  317. Aircondition Aircondition `json:"aircondition"`
  318. Basic Basic `json:"basic"`
  319. Body Body `json:"body"`
  320. Chassis Chassis `json:"chassis"`
  321. Control Control `json:"control"`
  322. Electric Electric `json:"electric"`
  323. Engine Engine `json:"engine"`
  324. External External `json:"external"`
  325. Gearbox Gearbox `json:"gearbox"`
  326. Intelligent Intelligent `json:"intelligent"`
  327. Internal Internal `json:"internal"`
  328. Light Light `json:"light"`
  329. Media Media `json:"media"`
  330. Optional Optional `json:"optional"`
  331. Rearview Rearview `json:"rearview"`
  332. Safety Safety `json:"safety"`
  333. Seat Seat `json:"seat"`
  334. Wheelbrake Wheelbrake `json:"wheelbrake"`
  335. }
  336. type p04Request struct {
  337. StyleId string `json:"style_id"`
  338. }
  339. func P04(ctx context.Context, params string) (reply *apis.QueryResponse, err error) {
  340. reply = &apis.QueryResponse{}
  341. var req p04Request
  342. err = jsoniter.UnmarshalFromString(params, &req)
  343. if err != nil || req.StyleId == "" {
  344. return nil, errors.ParamsError
  345. }
  346. info, err := model.NewDws22Model().Get(database.DB().Where("style_id = ?", req.StyleId))
  347. if err != nil {
  348. return reply, errors.DataNotExistError
  349. }
  350. res := p04Response{}
  351. res.Aircondition = Aircondition{
  352. AirconditionControlType: info.AirconditionControlType,
  353. CarAirPurifier: info.CarAirPurifier,
  354. FragranceSystem: info.FragranceSystem,
  355. NegativeIonGenerator: info.NegativeIonGenerator,
  356. Pm25Device: info.Pm25Device,
  357. RearIndependentAirConditioner: info.RearIndependentAirConditioner,
  358. RearSeatAirOutlet: info.RearSeatAirOutlet,
  359. Refrigerator: info.Refrigerator,
  360. TemperatureZoneControl: info.TemperatureZoneControl,
  361. }
  362. res.Basic = Basic{
  363. BrandId: info.BrandId,
  364. Alternator: info.Alternator,
  365. BrakingDistanceMeasure: info.BrakingDistanceMeasure,
  366. BrandName: info.BrandName,
  367. EmissionStandard: info.EmissionStandard,
  368. Engine: info.Engine,
  369. FastChargeAmount: info.FastChargeAmount,
  370. FastChargingTime: info.FastChargingTime,
  371. FuelTypeDetail: info.FuelTypeDetail,
  372. GearboxDesc: info.GearboxDesc,
  373. HundredAccelerate: info.HundredAccelerate,
  374. HundredAccelerateMeasure: info.HundredAccelerateMeasure,
  375. Level: info.Level,
  376. Lwh: info.Lwh,
  377. Maker: info.Maker,
  378. MaximumPower: info.MaximumPower,
  379. MaximumSimulationMilage: info.MaximumSimulationMilage,
  380. MaximumSimulationMilageMeasure: info.MaximumSimulationMilageMeasure,
  381. MaximumSpeed: info.MaximumSpeed,
  382. MaximumTorque: info.MaximumTorque,
  383. ModelYear: info.ModelYear,
  384. OilWearComrehensive: info.OilWearComrehensive,
  385. OilWearMeasure: info.OilWearMeasure,
  386. Price: info.Price,
  387. PriceYuan: info.PriceYuan,
  388. SeriesId: info.SeriesId,
  389. // SeriesImg: parser.Conf.Oss.SeriesImage + info.SeriesId + ".png",
  390. SeriesName: info.SeriesName,
  391. SlowChargingTime: info.SlowChargingTime,
  392. StyleId: info.StyleId,
  393. StyleName: info.StyleName,
  394. SubLevel: info.SubLevel,
  395. VehicleStructure: info.VehicleStructure,
  396. VehicleWarranty: info.VehicleWarranty,
  397. }
  398. res.Body = Body{
  399. BackWheelDistance: info.BackWheelDistance,
  400. DoorNumber: info.DoorNumber,
  401. FrontWheelDistance: info.FrontWheelDistance,
  402. High: info.High,
  403. Long: info.Long,
  404. MinimumGroundClearance: info.MinimumGroundClearance,
  405. OilboxVolume: info.OilboxVolume,
  406. SeatNumber: info.SeatNumber,
  407. TrunkVolume: info.TrunkVolume,
  408. UnladenMass: info.UnladenMass,
  409. Wheelbase: info.Wheelbase,
  410. Wide: info.Wide,
  411. }
  412. res.Chassis = Chassis{
  413. AssistType: info.AssistType,
  414. BackSuspentionType: info.BackSuspentionType,
  415. BodyStructure: info.BodyStructure,
  416. DriveType: info.DriveType,
  417. FrontSuspentionType: info.FrontSuspentionType,
  418. }
  419. res.Control = Control{
  420. AirSuspension: info.AirSuspension,
  421. AscentAssist: info.AscentAssist,
  422. AutoHold: info.AutoHold,
  423. AutomaticDrivingAssistance: info.AutomaticDrivingAssistance,
  424. AutomaticParking: info.AutomaticParking,
  425. BackParkingRador: info.BackParkingRador,
  426. CentralDiffLock: info.CentralDiffLock,
  427. CruiseSystem: info.CruiseSystem,
  428. DrivingModeSelection: info.DrivingModeSelection,
  429. EInductionSuspension: info.EInductionSuspension,
  430. Edl: info.Edl,
  431. EngineStartStopTechnology: info.EngineStartStopTechnology,
  432. FrontParkingRador: info.FrontParkingRador,
  433. Hdc: info.Hdc,
  434. OverallActiveSteeringSystem: info.OverallActiveSteeringSystem,
  435. ReverseVehicleSideWarningSystem: info.ReverseVehicleSideWarningSystem,
  436. VariableSteeringRatio: info.VariableSteeringRatio,
  437. VariableSuspension: info.VariableSuspension,
  438. WadeSensingSystem: info.WadeSensingSystem,
  439. }
  440. res.Electric = Electric{
  441. BackElectricMaximumPower: info.BackElectricMaximumPower,
  442. BackElectricTorque: info.BackElectricTorque,
  443. BatteryEnergy: info.BatteryEnergy,
  444. BatteryPackWarranty: info.BatteryPackWarranty,
  445. BatteryType: info.BatteryType,
  446. FrontElectricMaximumPower: info.FrontElectricMaximumPower,
  447. FrontElectricTorque: info.FrontElectricTorque,
  448. HundredElectricityConsumption: info.HundredElectricityConsumption,
  449. MaximumSimulationMilage: info.MaximumSimulationMilage,
  450. MotorLayout: info.MotorLayout,
  451. MotorNumber: info.MotorNumber,
  452. MotorType: info.MotorType,
  453. SystemIntegratedPower: info.SystemIntegratedPower,
  454. SystemIntegratedTorque: info.SystemIntegratedTorque,
  455. TotalMotorPower: info.TotalMotorPower,
  456. TotalMotorTorque: info.TotalMotorTorque,
  457. }
  458. res.Engine = Engine{
  459. AirIntakForm: info.AirIntakForm,
  460. CylinderArrangement: info.CylinderArrangement,
  461. CylinderDiameter: info.CylinderDiameter,
  462. CylinderHeadMaterial: info.CylinderHeadMaterial,
  463. CylinderMaterial: info.CylinderMaterial,
  464. CylinderNumber: info.CylinderNumber,
  465. CylinderValveNumber: info.CylinderValveNumber,
  466. Displacement: info.Displacement,
  467. DisplacementL: info.DisplacementL,
  468. EngineTechnology: info.EngineTechnology,
  469. EngineType: info.EngineType,
  470. FuelLable: info.FuelLable,
  471. FuelTypeDetail: info.FuelTypeDetail,
  472. MaximumHorsepower: info.MaximumHorsepower,
  473. MaximumPowerRpm: info.MaximumPowerRpm,
  474. OilSupplyMode: info.OilSupplyMode,
  475. PistonStroke: info.PistonStroke,
  476. ReductionRatio: info.ReductionRatio,
  477. Rpm: info.Rpm,
  478. ValveMechanism: info.ValveMechanism,
  479. }
  480. res.External = External{
  481. ActiveIntakeGrille: info.ActiveIntakeGrille,
  482. BatteryPreHeating: info.BatteryPreHeating,
  483. CentralControlLock: info.CentralControlLock,
  484. ElectricTrunk: info.ElectricTrunk,
  485. ElectronicAntiTheft: info.ElectronicAntiTheft,
  486. Eosd: info.Eosd,
  487. FramelessDesignDoor: info.FramelessDesignDoor,
  488. HideElectricDoorHandle: info.HideElectricDoorHandle,
  489. InductiveTrunk: info.InductiveTrunk,
  490. KeyType: info.KeyType,
  491. KeylessEntrySystem: info.KeylessEntrySystem,
  492. KeylessStartSystem: info.KeylessStartSystem,
  493. OutsidePedal: info.OutsidePedal,
  494. RearCompartmentPositionMemory: info.RearCompartmentPositionMemory,
  495. RemoteStart: info.RemoteStart,
  496. RimMaterial: info.RimMaterial,
  497. RoofLuggageRack: info.RoofLuggageRack,
  498. SideSlidingDoor: info.SideSlidingDoor,
  499. SkylightType: info.SkylightType,
  500. SportsAppearanceKit: info.SportsAppearanceKit,
  501. Tail: info.Tail,
  502. TheTailgateGlassOpensIndependently: info.TheTailgateGlassOpensIndependently,
  503. }
  504. res.Gearbox = Gearbox{
  505. GearNumber: info.GearNumber,
  506. GearboxDesc: info.GearboxDesc,
  507. GearboxType: info.GearboxType,
  508. }
  509. res.Internal = Internal{
  510. ActiveNoiseReduction: info.ActiveNoiseReduction,
  511. CarDrivingRecorder: info.CarDrivingRecorder,
  512. DrivingComputerDisplay: info.DrivingComputerDisplay,
  513. ElectricallyAdjustablePedal: info.ElectricallyAdjustablePedal,
  514. FullLcdDashboard: info.FullLcdDashboard,
  515. FullLcdDashboardSize: info.FullLcdDashboardSize,
  516. HudRisingNumberDisplay: info.HudRisingNumberDisplay,
  517. MobilePhoneWirelessCharging: info.MobilePhoneWirelessCharging,
  518. MultiFunctionalSteeringWheel: info.MultiFunctionalSteeringWheel,
  519. SteeringWheelAdjustment: info.SteeringWheelAdjustment,
  520. SteeringWheelHeating: info.SteeringWheelHeating,
  521. SteeringWheelMaterial: info.SteeringWheelMaterial,
  522. SteeringWheelRemember: info.SteeringWheelRemember,
  523. SteeringWheelShift: info.SteeringWheelShift,
  524. }
  525. res.Light = Light{
  526. AdaptiveFarNear: info.AdaptiveFarNear,
  527. Atmosphere: info.Atmosphere,
  528. AutoHead: info.AutoHead,
  529. Clean: info.Clean,
  530. Daytime: info.Daytime,
  531. Far: info.Far,
  532. Fog: info.Fog,
  533. HeadlampDelayOff: info.HeadlampDelayOff,
  534. HeadlampRainFogMode: info.HeadlampRainFogMode,
  535. HeightAdjustable: info.HeightAdjustable,
  536. LightingFeatures: info.LightingFeatures,
  537. Near: info.Near,
  538. SideTurn: info.SideTurn,
  539. SteeringAssistLamp: info.SteeringAssistLamp,
  540. TouchReadingLamp: info.TouchReadingLamp,
  541. }
  542. res.Media = Media{
  543. BackLcd: info.BackLcd,
  544. CarInternet: info.CarInternet,
  545. CarPhone: info.CarPhone,
  546. CarTv: info.CarTv,
  547. CdDvd: info.CdDvd,
  548. CenterConsoleLargeScreenSize: info.CenterConsoleLargeScreenSize,
  549. CentralColourScreen: info.CentralColourScreen,
  550. CentralLcdSplitScreen: info.CentralLcdSplitScreen,
  551. ChargingInterface: info.ChargingInterface,
  552. FaceRecognition: info.FaceRecognition,
  553. GestureControl: info.GestureControl,
  554. Gps: info.Gps,
  555. InterfaceOf12V: info.InterfaceOf12v,
  556. MobileInternet: info.MobileInternet,
  557. NavigationTrafficInformationDisplay: info.NavigationTrafficInformationDisplay,
  558. NumberOfInterfaces: info.NumberOfInterfaces,
  559. Ota: info.Ota,
  560. PowerOf220V: info.PowerOf220v,
  561. RearControlMultimedia: info.RearControlMultimedia,
  562. RoadRescueCall: info.RoadRescueCall,
  563. SpeakerBrand: info.SpeakerBrand,
  564. SpeakerNumber: info.SpeakerNumber,
  565. VoiceControl: info.VoiceControl,
  566. }
  567. res.Optional = Optional{
  568. BodyColour: info.BodyColour,
  569. InteriorColor: info.InteriorColor,
  570. }
  571. res.Rearview = Rearview{
  572. AntiPinchHand: info.AntiPinchHand,
  573. BackElectricWindow: info.BackElectricWindow,
  574. BackSidePrivacy: info.BackSidePrivacy,
  575. BackSideSunshade: info.BackSideSunshade,
  576. BackSunshade: info.BackSunshade,
  577. BackWiper: info.BackWiper,
  578. Cosmetic: info.Cosmetic,
  579. ExteriorRearviewMirrorFunction: info.ExteriorRearviewMirrorFunction,
  580. FrontElectricWindow: info.FrontElectricWindow,
  581. FrontWiper: info.FrontWiper,
  582. HeatableSprayNozzle: info.HeatableSprayNozzle,
  583. InteriorRearviewMirrorFunction: info.InteriorRearviewMirrorFunction,
  584. MultilayerSoundInsulationGlass: info.MultilayerSoundInsulationGlass,
  585. WindowOneKey: info.WindowOneKey,
  586. }
  587. res.Safety = Safety{
  588. Abs: info.Abs,
  589. ActiveBrake: info.ActiveBrake,
  590. AsrTcsTrc: info.AsrTcsTrc,
  591. AuxiliarySeatAirbag: info.AuxiliarySeatAirbag,
  592. BackBeltAirbag: info.BackBeltAirbag,
  593. BackHeadAirbag: info.BackHeadAirbag,
  594. BackSideAirbag: info.BackSideAirbag,
  595. EbaBasBa: info.EbaBasBa,
  596. EbdCbc: info.EbdCbc,
  597. Esp: info.Esp,
  598. FatigueDrivingWarning: info.FatigueDrivingWarning,
  599. FontHeadAirbag: info.FontHeadAirbag,
  600. FrontMiddleAirbag: info.FrontMiddleAirbag,
  601. FrontSideAirbag: info.FrontSideAirbag,
  602. IsoFix: info.IsoFix,
  603. KneeAirbag: info.KneeAirbag,
  604. LaneDepartureWarningSystem: info.LaneDepartureWarningSystem,
  605. LaneKeeping: info.LaneKeeping,
  606. MainSeatAirbag: info.MainSeatAirbag,
  607. NightVision: info.NightVision,
  608. ParallelAuxiliary: info.ParallelAuxiliary,
  609. PassengerSeatCushionAirbag: info.PassengerSeatCushionAirbag,
  610. PassivePedestrianProtection: info.PassivePedestrianProtection,
  611. RearCentralAirbag: info.RearCentralAirbag,
  612. RearSeatAntiSlideAirbag: info.RearSeatAntiSlideAirbag,
  613. RoadTrafficSignRecognition: info.RoadTrafficSignRecognition,
  614. RunFlatTire: info.RunFlatTire,
  615. SeatBeltWarning: info.SeatBeltWarning,
  616. TirePresureMonitor: info.TirePresureMonitor,
  617. }
  618. res.Seat = Seat{
  619. AuxiliaryAdjustableButton: info.AuxiliaryAdjustableButton,
  620. AuxiliaryElectricAdust: info.AuxiliaryElectricAdust,
  621. AuxiliarySeatAdjustmentMode: info.AuxiliarySeatAdjustmentMode,
  622. BackCupHolder: info.BackCupHolder,
  623. BackDownType: info.BackDownType,
  624. BackFoldTable: info.BackFoldTable,
  625. BackHandrail: info.BackHandrail,
  626. ElectricSeatRemeber: info.ElectricSeatRemeber,
  627. FrontHandrail: info.FrontHandrail,
  628. FrontSeatFunction: info.FrontSeatFunction,
  629. HeatingCoolingCupHolder: info.HeatingCoolingCupHolder,
  630. MainElectricAdust: info.MainElectricAdust,
  631. MainSeatAdjustmentMode: info.MainSeatAdjustmentMode,
  632. RearSeatElectricAdjustment: info.RearSeatElectricAdjustment,
  633. RearSeatFunction: info.RearSeatFunction,
  634. RearSeatPowerDown: info.RearSeatPowerDown,
  635. SeatLayoutForm: info.SeatLayoutForm,
  636. SeatMaterial: info.SeatMaterial,
  637. SecondIndependent: info.SecondIndependent,
  638. SecondRowSeatAdjustment: info.SecondRowSeatAdjustment,
  639. SportSeat: info.SportSeat,
  640. }
  641. res.Wheelbrake = Wheelbrake{
  642. BackBrakeType: info.BackBrakeType,
  643. BackWheelSpecification: info.BackWheelSpecification,
  644. FrontBrakeType: info.FrontBrakeType,
  645. FrontWheelSpecification: info.FrontWheelSpecification,
  646. ParkingBrakeType: info.ParkingBrakeType,
  647. SpareWheelSpecification: info.SpareWheelSpecification,
  648. }
  649. reply.Data, _ = jsoniter.MarshalToString(res)
  650. return reply, nil
  651. }