55 lines
1.6 KiB
Protocol Buffer
55 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package dataanalytics.dataanalyticsv1;
|
|
|
|
option go_package = "./dataanalytics/dataanalyticsv1;dataanalyticsv1";
|
|
|
|
//下游订单汇总
|
|
service StatisResellerService {
|
|
rpc GetStatisResellerSum(GetStatisResellerSumRequest) returns (GetStatisResellerSumResponse);
|
|
}
|
|
|
|
message GetStatisResellerSumRequest {
|
|
repeated string ct = 1;
|
|
int32 reseller_id = 2;
|
|
int32 ours_product_id = 4;
|
|
int32 page = 5;
|
|
int32 limit = 6;
|
|
bool ours_product_detail = 7;
|
|
int32 aftermarket = 8;
|
|
}
|
|
|
|
message GetStatisResellerSumResponse {
|
|
repeated StatisResellerSumResponse list = 1;
|
|
int32 data_count = 2;
|
|
}
|
|
|
|
/**
|
|
`reseller_id` int(11) unsigned DEFAULT NULL,
|
|
`ours_product_id` int(11) unsigned DEFAULT NULL,
|
|
`platform_product_id` int(11) unsigned DEFAULT NULL,
|
|
`tnt` bigint(20) DEFAULT NULL COMMENT '交易总数量',
|
|
`nst` int(11) DEFAULT NULL COMMENT '交易成功数量',
|
|
`sta` decimal(12,4) DEFAULT NULL COMMENT '交易成功金额',
|
|
`profit` decimal(12,4) DEFAULT NULL COMMENT '利润',
|
|
`nft` int(11) DEFAULT NULL COMMENT '交易失败数量',
|
|
`tfa` decimal(12,4) DEFAULT NULL COMMENT '交易失败金额'
|
|
`reseller_name` varchar(64) DEFAULT NULL,
|
|
|
|
`ours_product_name` varchar(64) DEFAULT NULL,
|
|
`platform_product_name` varchar(64) DEFAULT NULL
|
|
*/
|
|
message StatisResellerSumResponse {
|
|
string reseller_id = 1;
|
|
int32 ours_product_id = 2;
|
|
int32 platform_product_id = 3;
|
|
int32 tnt = 4;
|
|
int32 nst = 5;
|
|
double sta = 6;
|
|
double profit = 7;
|
|
int32 nft = 8;
|
|
double tfa = 9;
|
|
string reseller_name = 10;
|
|
string ours_product_name = 11;
|
|
string platform_product_name = 12;
|
|
} |