syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household-gateway/pb/v1"; message EventListRequest { int64 garden_id = 1; int64 page = 2; int64 page_size = 3; int64 household_uid = 5; } message EventItem { int64 id = 1; // 标题 string title = 2; // 内容 string content = 3; // 活动开始时间 int64 start = 4; // 活动结束时间 int64 end = 5; // 报名截止时间 int64 sign_up_end = 6; // 人数限制 int64 people_limit = 7; // 报名费用 int64 fee = 8; // 活动地址 string addr = 9; // 已报名人数 int64 people_count = 10; // 1 报名进行中 2 报名已截止 int32 status = 11; string created_at = 12; // 图片 repeated string pic = 13; // 物业端不管该字段,小程序查询时该字段有效 是否报名 bool sign = 14; } message EventListReply { int64 page = 1; int64 total = 2; repeated EventItem list = 3; } message EventSignAddRequest { int64 garden_id = 1; int64 event_id = 2; string phone = 3; string name = 4; int64 count = 5; string comment = 6; int64 household_uid = 7; } message EventSignAddReply { }