syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household/pb/v1"; message GetVcodeRequest{ string phone_number = 1; // 电话号码 } message GetVcodeReply{ uint32 vcode = 1; // 验证码 } message CheckVcodeRequest{ string phone_number = 1; // 电话号码 uint32 vcode = 2; // 验证码 } message CheckVcodeReply{ } message WxAppletLoginAuthRequest { string code = 1; } message WxAppletLoginAuthReply { string open_id = 1; string union_id = 2; string session_key = 3; } message WxPublicUnionIdRequest { string open_id = 1; } message WxPublicUnionIdReply { string union_id = 2; } message OpenImRegisterRequest { string user_id = 1; int32 platform = 2; string nick_name = 3; string face_url = 4; int32 gender = 5; } message OpenImRegisterReply { } message WxPublicMsgKeyValue { string key = 1; string value = 2; } message WxPublicMsgSendRequest { string template_id = 1; string public_open_id = 2; repeated WxPublicMsgKeyValue content = 3; } message WxPublicMsgSendReply { }