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