64 lines
1.4 KiB
Protocol Buffer
64 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package mixservice.financev1;
|
|
import "validate/validate.proto";
|
|
option go_package = "./mix/financev1;financev1";
|
|
|
|
// 对账单服务
|
|
service Reconciliation {
|
|
// 生成对账单
|
|
rpc CreateReconciliation (CreateReconciliationReq) returns (CreateReconciliationResp) {}
|
|
// 对账单列表
|
|
rpc GetReconciliationList (GetReconciliationListReq) returns (GetReconciliationListResp) {}
|
|
// 对账单下载
|
|
rpc DownReconciliation (DownReconciliationReq) returns (DownReconciliationResp) {}
|
|
}
|
|
|
|
// 生成对账单请求
|
|
message CreateReconciliationReq {
|
|
// 供应商ID
|
|
repeated int32 reseller_ids = 1;
|
|
// 时间段
|
|
repeated string time = 2 [(validate.rules).repeated.min_items = 1];
|
|
}
|
|
|
|
// 生成对账单返回
|
|
message CreateReconciliationResp {
|
|
|
|
}
|
|
|
|
message GetReconciliationListReq {
|
|
//分销商id
|
|
int32 reseller_id = 1;
|
|
// 时间段
|
|
repeated int32 time = 2;
|
|
// 页码
|
|
int32 page = 3;
|
|
// 每页条数
|
|
int32 limit = 4;
|
|
}
|
|
|
|
message GetReconciliationListResp {
|
|
int32 count = 1;
|
|
repeated ReconciliationItem list = 2;
|
|
}
|
|
|
|
message ReconciliationItem {
|
|
int32 id = 1;
|
|
int32 create_time = 2;
|
|
int32 end_time = 3;
|
|
int32 start_time = 4;
|
|
int32 generate_status = 5;
|
|
Reseller reseller = 6;
|
|
}
|
|
|
|
message Reseller {
|
|
string name = 1;
|
|
}
|
|
|
|
message DownReconciliationReq {
|
|
repeated int32 ids = 1;
|
|
}
|
|
|
|
message DownReconciliationResp {
|
|
string file = 1;
|
|
} |