syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-applete-gateway/pb/v1"; message AnnouncementAddRequest { int64 garden_id = 1; string title = 2; string content = 3; } message AnnouncementAddReply { int64 id = 1; } message AnnouncementUpdateRequest { int64 garden_id = 1; string title = 2; string content = 3; int64 id = 4; } message AnnouncementUpdateReply { AnnouncementUpdateRequest origin = 1; } message AnnouncementDelRequest { int64 garden_id = 1; int64 id = 2; } message AnnouncementDelReply { AnnouncementUpdateRequest origin = 1; } message AnnouncementListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; } message AnnouncementItem { int64 id = 1; string title = 2; string content = 3; } message AnnouncementListReply { int64 page = 1; int64 total = 2; repeated AnnouncementItem list = 3; }