123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-task/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 WxAppletPrepayRequest {
- string order = 1;
- string product = 2;
- string open_id = 3;
- int64 amount = 4;
- string input_ip = 5;
- string mch_id = 6;
- bool native = 7;
- }
- message WxAppletPrepayReply {
- string prepay = 1;
- string prepay_id = 2;
- string code_url = 3;
- }
- message WxAppletQueryRequest {
- string order = 1;
- }
- message WxAppletQueryReply {
- string trade_state = 1;
- string trade_state_desc = 2;
- string transaction_id = 3;
- int64 pay_time = 4;
- int64 amount = 5;
- }
- message WxPublicUnionIdRequest {
- string open_id = 1;
- }
- message WxPublicUnionIdReply {
- string union_id = 2;
- }
- 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 {
- }
- message WxPublicAddMiniRequest {
- string mini_url = 1;
- string mini_pagepath = 2;
- }
- message WxPublicAddMiniReply {
- }
- message TencentMsgSendRequest {
- repeated string datas = 1;
- int32 msg_type = 2;
- string phone = 3;
- }
- message TencentMsgSendReply {
- }
|