syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package v1; // 用于生成指定语言go的包名称 option go_package = "adm-vehicle-style/pb/v1"; message BrandListRequest { // 品牌名 string brand_name = 1; // 首字母 string initial = 2; // 是否有图片 -1 1 int32 has_img = 3; // 状态 -1 1 int32 status = 4; // 分页 int32 page_size = 5; int32 page = 6; string brand_id = 7; string old_brand_name = 8; } message BrandList { int64 id = 1; string initial = 2; string brand_name = 3; string brand_id = 4; int64 weight = 5; int64 has_img = 6; int64 status = 7; string image = 8; string old_brand_name = 9; } message BrandListReply { int64 current_page = 1; int64 per_page = 2; int64 total = 3; int64 first_page = 4; int64 last_page = 5; int64 prev_page = 6; int64 next_page = 7; repeated BrandList list = 8; } message SearchRequest { // 1 品牌 int32 type = 1; string search = 2; string brand_id = 3; string maker_id = 4; string series_id = 5; } message SearchList { string id = 1; string name = 2; } message SearchReply { repeated SearchList list = 1; } message UpdateSYBrandRequest { int64 id = 1; string brand_name = 2; string initial = 3; int64 weight = 4; int64 status = 5; int64 has_img = 6; string old_brand_name = 7; } message GetMakerRequest { string brand_id = 1; } message MakerList { string brand_id = 1; string maker_id = 2; string maker = 3; } message GetMakerReply { repeated MakerList list = 1; } message UpdateMakerRequest { string maker_id = 2; string maker = 3; } message EmptyReply {} message SeriesListRequest { // 品牌名 string brand_name = 1; // 车系名 string series_name = 2; // 是否有图片 -1 1 int32 has_img = 3; // 状态 -1 1 int32 status = 4; // 分页 int32 page_size = 5; int32 page = 6; string brand_id = 7; string series_id = 8; string old_series_name = 9; } message SeriesList { int64 id = 1; string brand_name = 2; string series_id = 3; string maker = 4; string series_name = 5; int64 status = 6; string image = 7; string brand_id = 8; string old_series_name = 9; } message SeriesListReply { int64 current_page = 1; int64 per_page = 2; int64 total = 3; int64 first_page = 4; int64 last_page = 5; int64 prev_page = 6; int64 next_page = 7; repeated SeriesList list = 8; } message UpdateSeriesRequest { int64 id = 1; string series_name = 2; string maker = 3; int64 status = 4; int64 has_img = 5; string old_series_name = 6; } message StyleListRequest { // 品牌名 string brand_name = 1; // 车系名 string series_name = 2; // 是否有图片 -1 1 int32 has_manual = 3; // 状态 -1 1 int32 status = 4; // 分页 int32 page_size = 5; int32 page = 6; // 厂商 string maker = 7; // 年份 int64 model_year = 8; string style_name = 9; string brand_id = 10; string series_id = 11; string style_id = 12; } message StyleList { int64 id = 1; string style_id = 2; string brand_name = 3; string maker = 4; string series_name = 5; string style_name = 6; int64 status = 7; int64 maintain_id = 8; string series_id = 9; string brand_id = 10; } message StyleListReply { int64 current_page = 1; int64 per_page = 2; int64 total = 3; int64 first_page = 4; int64 last_page = 5; int64 prev_page = 6; int64 next_page = 7; repeated StyleList list = 8; } message UpdateStyleRequest { int64 id = 1; string style_name = 2; int32 status = 3; } message StyleInfoRequest { int64 id = 1; } message StyleInfoReply { message Aircondition { string aircondition_control_type = 1; string car_air_purifier = 2; string fragrance_system = 3; string negative_ion_generator = 4; string pm25_device = 5; string rear_independent_air_conditioner = 6; string rear_seat_air_outlet = 7; string refrigerator = 8; string temperature_zone_control = 9; } message Basic { string alternator = 1; string braking_distance_measure = 2; string brand_name = 3; string emission_standard = 4; string engine = 5; string fast_charge_amount = 6; string fast_charging_time = 7; string fuel_type_detail = 8; string gearbox_desc = 9; string hundred_accelerate = 10; string hundred_accelerate_measure = 11; string level = 12; string lwh = 13; string maker = 14; string maximum_power = 15; string maximum_simulation_milage = 16; string maximum_simulation_milage_measure = 17; string maximum_speed = 18; string maximum_torque = 19; string model_year = 20; string oil_wear_comrehensive = 21; string oil_wear_measure = 22; string price = 23; string price_yuan = 24; string series_id = 25; string series_img = 26; string series_name = 27; string slow_charging_time = 28; string style_id = 29; string style_name = 30; string sub_level = 31; string vehicle_structure = 32; string vehicle_warranty = 33; string brand_id = 34; } message Body { string back_wheel_distance = 1; string door_number = 2; string front_wheel_distance = 3; string high = 4; string long = 5; string minimum_ground_clearance = 6; string oilbox_volume = 7; string seat_number = 8; string trunk_volume = 9; string unladen_mass = 10; string wheelbase = 11; string wide = 12; } message Chassis { string assist_type = 1; string back_suspention_type = 2; string body_structure = 3; string drive_type = 4; string front_suspention_type = 5; } message Control { string air_suspension = 1; string ascent_assist = 2; string auto_hold = 3; string automatic_driving_assistance = 4; string automatic_parking = 5; string back_parking_rador = 6; string central_diff_lock = 7; string cruise_system = 8; string driving_mode_selection = 9; string e_induction_suspension = 10; string edl = 11; string engine_start_stop_technology = 12; string front_parking_rador = 13; string hdc = 14; string overall_active_steering_system = 15; string reverse_vehicle_side_warning_system = 16; string variable_steering_ratio = 17; string variable_suspension = 18; string wade_sensing_system = 19; } message Electric { string back_electric_maximum_power = 1; string back_electric_torque = 2; string battery_energy = 3; string battery_pack_warranty = 4; string battery_type = 5; string front_electric_maximum_power = 6; string front_electric_torque = 7; string hundred_electricity_consumption = 8; string maximum_simulation_milage = 9; string motor_layout = 10; string motor_number = 11; string motor_type = 12; string system_integrated_power = 13; string system_integrated_torque = 14; string total_motor_power = 15; string total_motor_torque = 16; } message Engine { string air_intak_form = 1; string cylinder_arrangement = 2; string cylinder_diameter = 3; string cylinder_head_material = 4; string cylinder_material = 5; string cylinder_number = 6; string cylinder_valve_number = 7; string displacement = 8; string displacement_l = 9; string engine_technology = 10; string engine_type = 11; string fuel_lable = 12; string fuel_type_detail = 13; string maximum_horsepower = 14; string maximum_power_rpm = 15; string oil_supply_mode = 16; string piston_stroke = 17; string reduction_ratio = 18; string rpm = 19; string valve_mechanism = 20; } message External { string active_intake_grille = 1; string battery_pre_heating = 2; string central_control_lock = 3; string electric_trunk = 4; string electronic_anti_theft = 5; string eosd = 6; string frameless_design_door = 7; string hide_electric_door_handle = 8; string inductive_trunk = 9; string key_type = 10; string keyless_entry_system = 11; string keyless_start_system = 12; string outside_pedal = 13; string rear_compartment_position_memory = 14; string remote_start = 15; string rim_material = 16; string roof_luggage_rack = 17; string side_sliding_door = 18; string skylight_type = 19; string sports_appearance_kit = 20; string tail = 21; string the_tailgate_glass_opens_independently = 22; } message Gearbox { string gear_number = 1; string gearbox_desc = 2; string gearbox_type = 3; } message Intelligent { string auxiliary_driving_chip = 1; string chip_computing_power = 2; string number_of_cameras = 3; string number_of_lidars = 4; string number_of_millimeter_wave_radars = 5; string number_of_ultrasonic_radars = 6; } message Internal { string active_noise_reduction = 1; string car_driving_recorder = 2; string driving_computer_display = 3; string electrically_adjustable_pedal = 4; string full_lcd_dashboard = 5; string full_lcd_dashboard_size = 6; string hud_rising_number_display = 7; string mobile_phone_wireless_charging = 8; string multi_functional_steering_wheel = 9; string steering_wheel_adjustment = 10; string steering_wheel_heating = 11; string steering_wheel_material = 12; string steering_wheel_remember = 13; string steering_wheel_shift = 14; } message Light { string adaptive_far_near = 1; string atmosphere = 2; string auto_head = 3; string clean = 4; string daytime = 5; string far = 6; string fog = 7; string headlamp_delay_off = 8; string headlamp_rain_fog_mode = 9; string height_adjustable = 10; string lighting_features = 11; string near = 12; string side_turn = 13; string steering_assist_lamp = 14; string touch_reading_lamp = 15; } message Media { string back_lcd = 1; string car_internet = 2; string car_phone = 3; string car_tv = 4; string cd_dvd = 5; string center_console_large_screen_size = 6; string central_colour_screen = 7; string central_lcd_split_screen = 8; string charging_interface = 9; string face_recognition = 10; string gesture_control = 11; string gps = 12; string interface_of12v = 13; string mobile_internet = 14; string navigation_traffic_information_display = 15; string number_of_interfaces = 16; string ota = 17; string power_of220v = 18; string rear_control_multimedia = 19; string road_rescue_call = 20; string speaker_brand = 21; string speaker_number = 22; string voice_control = 23; } message Optional { string body_colour = 1; string interior_color = 2; } message Rearview { string anti_pinch_hand = 1; string back_electric_window = 2; string back_side_privacy = 3; string back_side_sunshade = 4; string back_sunshade = 5; string back_wiper = 6; string cosmetic = 7; string exterior_rearview_mirror_function = 8; string front_electric_window = 9; string front_wiper = 10; string heatable_spray_nozzle = 11; string interior_rearview_mirror_function = 12; string multilayer_sound_insulation_glass = 13; string window_one_key = 14; } message Safety { string abs = 1; string active_brake = 2; string asr_tcs_trc = 3; string auxiliary_seat_airbag = 4; string back_belt_airbag = 5; string back_head_airbag = 6; string back_side_airbag = 7; string eba_bas_ba = 8; string ebd_cbc = 9; string esp = 10; string fatigue_driving_warning = 11; string font_head_airbag = 12; string front_middle_airbag = 13; string front_side_airbag = 14; string iso_fix = 15; string knee_airbag = 16; string lane_departure_warning_system = 17; string lane_keeping = 18; string main_seat_airbag = 19; string night_vision = 20; string parallel_auxiliary = 21; string passenger_seat_cushion_airbag = 22; string passive_pedestrian_protection = 23; string rear_central_airbag = 24; string rear_seat_anti_slide_airbag = 25; string road_traffic_sign_recognition = 26; string run_flat_tire = 27; string seat_belt_warning = 28; string tire_presure_monitor = 29; } message Seat { string auxiliary_adjustable_button = 1; string auxiliary_electric_adust = 2; string auxiliary_seat_adjustment_mode = 3; string back_cup_holder = 4; string back_down_type = 5; string back_fold_table = 6; string back_handrail = 7; string electric_seat_remeber = 8; string front_handrail = 9; string front_seat_function = 10; string heating_cooling_cup_holder = 11; string main_electric_adust = 12; string main_seat_adjustment_mode = 13; string rear_seat_electric_adjustment = 14; string rear_seat_function = 15; string rear_seat_power_down = 16; string seat_layout_form = 17; string seat_material = 18; string second_independent = 19; string second_row_seat_adjustment = 20; string sport_seat = 21; } message Wheelbrake { string back_brake_type = 1; string back_wheel_specification = 2; string front_brake_type = 3; string front_wheel_specification = 4; string parking_brake_type = 5; string spare_wheel_specification = 6; } Aircondition aircondition = 1; Basic basic = 2; Body body = 3; Chassis chassis = 4; Control control = 5; Electric electric = 6; Engine engine = 7; External external = 8; Gearbox gearbox = 9; Intelligent intelligent = 10; Internal internal = 11; Light light = 12; Media media = 13; Optional optional = 14; Rearview rearview = 15; Safety safety = 16; Seat seat = 17; Wheelbrake wheelbrake = 18; } message UpdateStyleInfoRequest{ int64 id = 1; string data = 2; } message MaintainManualRequest { string style_id = 1; } message MaintainItem { int64 id = 1; string item = 2; int64 start_mile = 3; int64 start_date = 4; int64 mile_cycle = 5; int64 date_cycle = 6; string style_id = 7; int64 item_id = 8; } message MaintainManualReply { // 保养 repeated MaintainItem maintainance = 1; // 维修 repeated MaintainItem repair = 2; // 清洗 repeated MaintainItem wash = 3; } message ItemListRequest { int64 item_type = 1; string style_id = 2; } message ItemListReply { message Item { int64 item_id = 1; string item_name = 2; } repeated Item list = 1; } message UpdateMaintainManualRequest { int64 id = 1; int64 item_id = 2; int64 start_mile = 3; int64 start_date = 4; int64 mile_cycle = 5; int64 date_cycle = 6; string style_id = 7; string name = 8; int64 tid = 9; } message MaintainManualInfoRequest { string style_id = 1; } message MaintainManualInfoReply { message Wash { uint32 cycle = 1; string item_name = 2; uint32 item_id = 3; int64 start_mile = 4; int64 start_date = 5; int64 mile_cycle = 6; int64 date_cycle = 7; string style_id = 8; } message Repair { uint32 cycle = 1; string item_name = 2; uint32 item_id = 3; int64 start_mile = 4; int64 start_date = 5; int64 mile_cycle = 6; int64 date_cycle = 7; string style_id = 8; } message MaintainItem { string item_name = 1; uint32 item_id = 2; int64 start_mile = 3; int64 start_date = 4; int64 mile_cycle = 5; int64 date_cycle = 6; string style_id = 7; } message Items { uint32 level = 1; string item_name = 2; uint32 item_id = 3; } message Maintain { uint32 age = 1; uint32 mile = 2; repeated Items items = 3; } message Cycle { int64 start_mile = 1; int64 start_date = 2; int64 mile_cycle = 3; int64 date_cycle = 4; } repeated Wash wash = 1; repeated Repair repair = 2; repeated MaintainItem maintain_item = 3; repeated Maintain maintain = 4; Cycle cycle = 5; } message StyleItem { int64 id = 1; string c2_name = 2; int64 c2_id = 3; string useage = 4; string detail = 5; string attribute_rule = 6; string style_id = 7; } message StyleItemReply { repeated StyleItem list = 1; } message C2ListRequest { string style_id = 1; } message C2ListReply { message Info { int64 id = 1; string name = 2; } repeated Info list = 1; } message UpdateStyleItemRequest { repeated StyleItem list = 1; } message DeleteMaintainaceRequest { int64 id = 1; } message ExportStyleRequest { string task_name = 1; string fields = 2; } message ExportStyleReply { int64 export_id = 1; } message ExportStyleTaskList { int64 id = 1; string task_name = 2; string path = 3; string created_at = 4; } message ExportStyleTaskListReply { repeated ExportStyleTaskList list = 1; } message DeleteExportStyleTaskRequest { int64 id = 1; } message DeleteStyleItemRequest { int64 id = 1; } message TemplateListRequest{ string name = 1; } message Template{ int64 id = 1; string name = 2; } message TemplateListReply { repeated Template list = 1; } message TemplateDetailListRequest { int64 tid = 1; // 分页 int32 page_size = 2; int32 page = 3; } message TemplateDetail { int64 id = 1; string name = 2; int64 start_mile = 3; int64 start_date = 4; int64 maintain_mile_min_cycle = 5; int64 maintain_date_min_cycle = 6; int64 tid = 7; } message TemplateDetailListReply { repeated TemplateDetail list = 1; int64 total = 2; } message TemplateDetailRequest { int64 tid = 1; } message TemplateDetailReply { // 保养 repeated MaintainItem maintainance = 1; // 维修 repeated MaintainItem repair = 2; // 清洗 repeated MaintainItem wash = 3; string name = 4; } message AddTemplateDetailRequest { int64 tid = 1; int64 item_id = 2; int64 start_mile = 3; int64 start_date = 4; int64 mile_cycle = 5; int64 date_cycle = 6; string style_id = 7; string name = 8; } message AddTemplateDetailReply { int64 tid = 1; } message ChooseTemplateDetailRequest { int64 tid = 1; string style_id = 2; } message TemplateItemListRequest { int64 item_type = 1; int64 tid = 2; }