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