refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
syntax = "proto3";
|
||||
package wallet;
|
||||
option go_package = ".;wallet";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/finance/wallet/pb;wallet";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
service Payment {
|
||||
rpc Hello(Empty) returns (PaymentReply) {}
|
||||
rpc Hello(blocks.Empty) returns (PaymentReply) {}
|
||||
|
||||
//获取平台支持的支付网关
|
||||
rpc Way(WayRequest) returns (WayReply) {}
|
||||
|
||||
//获取支付的详情
|
||||
rpc Get(IdentRequest) returns (PaymentItem){}
|
||||
|
||||
rpc Get(blocks.IdentRequest) returns (PaymentItem){}
|
||||
|
||||
//支付-电商订单
|
||||
rpc ByOrder (OrderRequest) returns (PaymentReply) {};
|
||||
|
||||
//支付-充值
|
||||
rpc ByCharge (ChargeRequest) returns (PaymentReply) {};
|
||||
rpc ByCharge (ChargeRequest) returns (PaymentReply) {};
|
||||
|
||||
//回调更新支付的结果和状态
|
||||
rpc Callback (CallbackRequest) returns (StatusReply) {};
|
||||
rpc Callback (CallbackRequest) returns (blocks.StatusReply) {};
|
||||
}
|
||||
|
||||
message WayRequest {
|
||||
@@ -52,7 +52,7 @@ message ChargeRequest {
|
||||
string remark = 2; //备注
|
||||
int32 pay_channel = 3; //支付模型:WECHAT,ALIPAY
|
||||
string pay_type = 4; //支付类型 JSAPI:微信浏览器内支付 APP:app支付 MWEB:H5支付 NATIVE:Native支付,pc端生成二维码供用户扫码支付,QUICK_MSECURITY_PAY:app支付 QUICK_WAP_WAY:手机网站支付 FAST_INSTANT_TRADE_PAY:pc网站支付
|
||||
|
||||
|
||||
string desc=5; //支付描述
|
||||
string open_id=6; //微信用户的OpenID
|
||||
}
|
||||
@@ -75,6 +75,6 @@ message CallbackRequest {
|
||||
}
|
||||
|
||||
message PaymentReply {
|
||||
int64 code =1;
|
||||
int64 code =1;
|
||||
map<string,string> result =2; //预支付返回
|
||||
}
|
||||
Reference in New Issue
Block a user