syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household-gateway/pb/v1"; message AnnouncementListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int64 uid = 4; } message AnnouncementItem { int64 id = 1; string title = 2; string content = 3; string created_at = 4; int64 read_count = 5; bool read = 6; } message AnnouncementListReply { int64 page = 1; int64 total = 2; repeated AnnouncementItem list = 3; } message AnnouncementReadAddRequest { int64 id = 1; int64 garden_id = 2; int64 uid = 3; } message AnnouncementReadAddReply { }