123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-household-gateway/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 WxAppletPrepayRequest {
- string order = 1;
- string product = 2;
- string open_id = 3;
- int64 amount = 4;
- string input_ip = 5;
- string mch_id = 6;
- }
- message WxAppletPrepayReply {
- string prepay = 1;
- string prepay_id = 2;
- }
- message OpenImTokenRequest {
- int32 platform = 1;
- string openim_id = 2;
- }
- message OpenImTokenReply {
- string token = 1;
- int64 expire_at = 2;
- }
- message OpenImUserInfoRequest {
- repeated string openim_ids = 1;
- int32 platform_id = 2;
- }
- message OpenImUserData {
- string nick_name = 1;
- string face_url = 2;
- int32 gender = 3;
- string openim_id = 4;
- }
- message OpenImUserInfoReply {
- repeated OpenImUserData list = 1;
- }
|