123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- syntax = "proto3";
- package ugcpay.service.v1;
- option go_package = "v1";
- import "github.com/gogo/protobuf/gogoproto/gogo.proto";
- message EmptyStruct{}
- message AssetRegisterReq {
- int64 mid = 1 ;
-
- int64 oid = 2 ;
-
- string otype = 3 ;
-
- string currency = 4 ;
-
- int64 price = 5 ;
- }
- message AssetQueryReq {
-
- int64 oid = 1 ;
-
- string otype = 2 ;
-
- string currency = 3 ;
- }
- message AssetQueryResp {
-
- int64 price = 1 ;
-
- map<string,int64> platform_price = 2 ;
- }
- message AssetRelationReq {
- int64 mid = 1 ;
-
- int64 oid = 2 ;
-
- string otype = 3 ;
- }
- message AssetRelationResp {
-
- string state = 1 ;
- }
- message AssetRelationDetailReq {
- int64 mid = 1 ;
-
- int64 oid = 2 ;
-
- string otype = 3 ;
-
- string currency = 4 ;
- }
- message AssetRelationDetailResp {
-
- string relation_state = 1 ;
-
- int64 asset_price = 2 ;
-
- map<string,int64> asset_platform_price = 3 ;
- }
- message TradeCreateReq {
-
- string platform = 1 ;
- int64 mid = 2 ;
-
- int64 oid = 3 ;
-
- string otype = 4 ;
-
- string currency = 5 ;
- }
- message TradeCreateResp {
-
- string order_id = 1 ;
-
- string pay_data = 2 ;
- }
- message TradeOrderReq {
-
- string id = 1 ;
- }
- message TradeOrderResp {
-
- string order_id = 1 ;
- int64 mid = 2 ;
-
- string biz = 3 ;
-
- string platform = 4 ;
- int64 oid = 5 ;
- string otype = 6 ;
-
- int64 fee = 7 ;
-
- string currency = 8 ;
-
- string pay_id = 9 ;
-
- string state = 10 ;
- string reason = 11 ;
- }
- message IncomeUserAssetOverviewReq {
- int64 mid = 1 ;
- }
- message IncomeUserAssetOverviewResp {
-
- int64 total = 1 ;
-
- int64 total_buy_times = 2 ;
-
- int64 month_new = 3 ;
-
- int64 day_new = 4 ;
- }
- message IncomeUserAssetListReq {
- int64 mid = 1 ;
-
- int64 ver = 2 ;
- int64 ps = 3 ;
- int64 pn = 4;
- }
- message IncomeUserAssetListResp {
-
- repeated IncomeUserAsset list = 1 ;
- Page page = 2 ;
- }
- message IncomeUserAsset {
- int64 oid = 1 ;
- string otype = 2 ;
- string currency = 3 ;
- int64 price = 4 ;
- int64 total_buy_times = 5 ;
- int64 new_buy_times = 6 ;
- int64 total_err_times = 7;
- int64 new_err_times = 8 ;
- }
- message Page {
- int64 Num = 1 ;
- int64 Size = 2 ;
- int64 Total = 3 ;
- }
- service UGCPay {
-
- rpc AssetRegister(AssetRegisterReq) returns(EmptyStruct);
-
- rpc AssetQuery(AssetQueryReq) returns(AssetQueryResp);
-
- rpc AssetRelation(AssetRelationReq) returns(AssetRelationResp);
-
- rpc AssetRelationDetail(AssetRelationDetailReq) returns(AssetRelationDetailResp);
-
- rpc TradeCreate(TradeCreateReq) returns(TradeCreateResp);
-
- rpc TradeQuery(TradeOrderReq) returns(TradeOrderResp);
-
- rpc TradeCancel(TradeOrderReq) returns(EmptyStruct);
-
- rpc TradeConfirm(TradeOrderReq) returns(TradeOrderResp);
-
- rpc TradeRefund(TradeOrderReq) returns(EmptyStruct);
-
- rpc IncomeUserAssetOverview(IncomeUserAssetOverviewReq) returns(IncomeUserAssetOverviewResp);
-
- rpc IncomeUserAssetList(IncomeUserAssetListReq) returns(IncomeUserAssetListResp);
- }
|