syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-garden/pb/v1"; message ServicePhoneClassAddRequest { int64 garden_id = 1; string class_name = 2; bool enable = 3; } message ServicePhoneClassAddReply { int64 id = 1; } message ServicePhoneClassUpdateRequest { int64 garden_id = 1; string class_name = 2; bool enable = 3; int64 id = 4; } message ServicePhoneClassUpdateReply { } message ServicePhoneClassDelRequest { int64 garden_id = 1; int64 id = 2; } message ServicePhoneClassDelReply { } message ServicePhoneClassListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int32 enable = 4; } message ServicePhoneClassItem { int64 id = 1; string class_name = 2; bool enable = 3; } message ServicePhoneClassListReply { int64 page = 1; int64 total = 2; repeated ServicePhoneClassItem list = 3; } message ServicePhoneAddRequest { int64 garden_id = 1; int64 class_id = 2; bool enable = 3; string name = 4; string phone = 5; } message ServicePhoneAddReply { int64 id = 1; } message ServicePhoneUpdateRequest { int64 garden_id = 1; int64 id = 2; bool enable = 3; string name = 4; string phone = 5; } message ServicePhoneUpdateReply { } message ServicePhoneDelRequest { int64 garden_id = 1; int64 id = 2; } message ServicePhoneDelReply { } message ServicePhoneListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int32 enable = 4; string class_name = 5; int64 class_id = 6; } message ServicePhoneItem { int64 id = 1; int64 class_id = 2; bool enable = 3; string name = 4; string phone = 5; string class_name = 6; } message ServicePhoneListReply { int64 page = 1; int64 total = 2; repeated ServicePhoneItem list = 3; }