123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-enterprise-management-gateway/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 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 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 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 {
- }
|