syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package v1; // 用于生成指定语言go的包名称 option go_package = "smart-enterprise-management/pb/v1"; message ProjectAddRequest { int64 company_id = 1; string name = 2; string location = 3; string safety_record_no = 4; string project_leader = 5; string phone = 6; string project_no = 7; repeated string project_plan = 8; string project_function = 9; string project_type = 10; double price = 11; string desc = 12; double covered_area = 13; int32 total_level = 14; string building_storey = 15; string construction = 16; string development = 17; string oversee = 18; string design = 19; string exploration = 20; double lon = 21; double lat = 22; repeated string project_effect_pic = 23; int64 start_day = 24; int64 end_day = 25; } message ProjectAddReply { int64 id = 1; } message ProjectUpdateRequest { int64 id = 1; string name = 2; string location = 3; string safety_record_no = 4; string project_leader = 5; string phone = 6; string project_no = 7; repeated string project_plan = 8; string project_function = 9; string project_type = 10; double price = 11; string desc = 12; double covered_area = 13; int32 total_level = 14; string building_storey = 15; string construction = 16; string development = 17; string oversee = 18; string design = 19; string exploration = 20; double lon = 21; double lat = 22; repeated string project_effect_pic = 23; int64 start_day = 24; int64 end_day = 25; } message ProjectUpdateReply { } message ProjectItem { string name = 1; string safety_record_no = 2; string project_leader = 3; string phone = 4; string location = 5; int64 id = 6; string project_no = 7; string project_plan = 8; string project_function = 9; string project_type = 10; double price = 11; string desc = 12; double covered_area = 13; int32 total_level = 14; string building_storey = 15; string construction = 16; string development = 17; string oversee = 18; string design = 19; string exploration = 20; double lon = 21; double lat = 22; bool is_finish = 23; string create_time = 24; string start_day = 25; string end_day = 26; string project_effect_pic = 27; } message ProjectListRequest { int32 page = 1; string filter = 2; repeated int32 filter_status = 3; int64 cid = 4; int32 page_size = 5; } message ProjectListReply { int64 total = 1; int32 page = 2; int32 page_size = 3; repeated ProjectItem list = 4; } message ProjectUserListRequest { string filter = 1; int64 cid = 2; int32 page = 3; } message ProjectUserItem { int64 id = 1; string username = 2; string passwd = 3; string project_name = 4; string safety_record_no = 5; bool enable = 6; int32 user_type = 7; } message ProjectUserListReply { int64 total = 1; int32 page = 2; int32 page_size = 3; repeated ProjectUserItem list = 4; } message EnableProjectUserRequest { int64 id = 1; bool enable = 2; } message EnableProjectUserReply { int64 project_id = 1; } message ProjectUserPasswordResetRequest { int64 id = 2; string password = 1; } message ProjectUserPasswordResetReply { } message ProjectDistrictRequest { } message ProjectDistrictZone { int64 id = 1; string addr = 2; } message ProjectDistrictCity { int64 id = 1; string addr = 2; repeated ProjectDistrictZone list = 4; } message ProjectDistrictProvince { int64 id = 1; string addr = 2; repeated ProjectDistrictCity list = 3; } message ProjectDistrictReply { repeated ProjectDistrictProvince list = 1; } message ProjectInfoRequest { int64 id = 1; } message ProjectInfoReply { ProjectItem info = 1; } message ProjectDelRequest { int64 id = 1; } message ProjectDelReply { string origin = 1; } message ProjectFinishRequest { int64 id = 1; } message ProjectFinishReply { }