MarketingSystemDataExportTool/grpc/trade/aftersalesv1/platform.proto

213 lines
5.3 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package tradeservice.aftersalesv1;
option go_package = "./trade/aftersalesv1;aftersalesv1";
// 上游售后服务
service Platform {
// 上游售后列表
rpc ListPlatformAfterSales(ListPlatformAfterSalesReq) returns (ListPlatformAfterSalesResp) {}
// 创建上游售后
rpc CreatePlatformAfterSales(CreatePlatformAfterSalesReq) returns (CreatePlatformAfterSalesResp) {}
// 更新售后
rpc UpdatePlatformAfterSales(UpdatePlatformAfterSalesReq) returns (UpdatePlatformAfterSalesResp) {}
// 上游售后详情
rpc GetPlatformAfterSales(GetPlatformAfterSalesReq) returns (GetPlatformAfterSalesResp) {}
// 创建批量上游售后
rpc CreateBatchPlatformAfterSales(CreateBatchPlatformAfterSalesReq) returns (CreateBatchPlatformAfterSalesResp) {}
// 获取待审核的充值流水号
rpc GetExaminingSerialNumbers(GetExaminingSerialNumbersReq) returns (GetExaminingSerialNumbersResp) {}
}
// 获取待审核的充值流水号请求
message GetExaminingSerialNumbersReq {
repeated string serial_numbers = 1;
}
// 获取待审核的充值流水号响应
message GetExaminingSerialNumbersResp {
repeated string serial_numbers = 1;
}
// 创建批量上游售后请求
message CreateBatchPlatformAfterSalesReq {
// 售后发起人
int32 handler_id = 1;
// 售后方式 1加款2扣款
int32 sale_type = 2;
// 售后原因
string reason = 3;
// 签约公司
int32 sign_company = 4;
// 售后凭证
string voucher = 5;
// 平台ID
int32 platform_id = 6;
// 上游平台名称
string platform_name = 7;
message BatchExt {
// 订单流水号
string serial_number = 1;
// 售后金额
double sale_price = 2;
// 上游商品ID
int32 platform_product_id = 3;
// 上游商品名称
string platform_product_name = 4;
// 上游价格
double platform_price = 5;
// 充值账号
string terminal_account = 6;
// 充值处理时间
int32 execute_time = 7;
}
// 批量上游售后扩展数据
repeated BatchExt list = 8;
}
// 创建批量上游售后响应
message CreateBatchPlatformAfterSalesResp {
repeated int32 ids = 1;
}
// 上游售后详情请求
message GetPlatformAfterSalesReq {
int32 id = 1;
bool with_batch = 2;
}
// 上游售后详情响应
message GetPlatformAfterSalesResp {
PlatformAfterSalesInfo info = 1;
message BatchExt {
repeated int32 ids = 1;
double total_sale_price = 2;
}
BatchExt batch_ext = 2;
}
// 上游售后列表请求
message ListPlatformAfterSalesReq {
// 创建时间
repeated int32 create_time = 1;
// 审核状态 1待审核2已驳回3已通过
int32 status = 2;
// 售后方式 售后方式 1加款2扣款
int32 sale_type = 3;
// 上游供应商
int32 platform_id = 4;
// 上游商品
repeated int32 platform_product_ids = 5;
// 订单流水号
string serial_number = 6;
// 页码
int32 page = 7;
// 条数
int32 limit = 8;
// 售后发起人
int32 handler_id = 9;
}
// 上游售后列表响应
message ListPlatformAfterSalesResp {
int32 total = 1;
repeated PlatformAfterSalesInfo list = 2;
}
// 上游售后信息
message PlatformAfterSalesInfo {
// id
int32 id = 1;
// 订单流水号
string serial_number = 2;
// 售后发起人
int32 handler_id = 3;
// 售后方式 1加款2扣款
int32 sale_type = 4;
// 售后金额
double sale_price = 5;
// 平台ID
int32 platform_id = 6;
// 上游平台名称
string platform_name = 7;
// 上游商品ID
int32 platform_product_id = 8;
// 上游商品名称
string platform_product_name = 9;
// 上游价格
double platform_price = 10;
// 状态 1待审核2已驳回3已通过
int32 status = 11;
// 审核时间
int32 examine_time = 12;
// 售后原因
string reason = 13;
// 钉钉流水号
string dingtalk_sn = 14;
// 钉钉流程实例ID
string process_instance_id = 15;
// 创建时间
int32 create_time = 16;
// 签约公司
int32 sign_company = 17;
// 充值账号
string terminal_account = 18;
// 售后类型 1--普通售后 2--批量售后
int32 after_type = 19;
// 售后凭证
string voucher = 20;
// 充值处理时间
int32 execute_time = 21;
}
// 创建上游售后请求
message CreatePlatformAfterSalesReq {
// 订单流水号
string serial_number = 1;
// 售后发起人
int32 handler_id = 2;
// 售后方式 1加款2扣款
int32 sale_type = 3;
// 售后金额
double sale_price = 4;
// 平台ID
int32 platform_id = 5;
// 上游平台名称
string platform_name = 6;
// 上游商品ID
int32 platform_product_id = 7;
// 上游商品名称
string platform_product_name = 8;
// 上游价格
double platform_price = 9;
// 售后原因
string reason = 10;
// 签约公司
int32 sign_company = 11;
// 充值账号
string terminal_account = 12;
// 售后凭证
string voucher = 13;
// 充值处理时间
int32 execute_time = 14;
}
// 创建上游售后响应
message CreatePlatformAfterSalesResp {
int32 id = 1;
}
// 更新上游售后请求
message UpdatePlatformAfterSalesReq {
int32 id = 1;
optional int32 status = 2;
optional int32 examine_time = 3;
optional string process_instance_id = 4;
optional string dingtalk_sn = 5;
repeated int32 ids = 6;
}
// 更新上游售后响应
message UpdatePlatformAfterSalesResp {
int32 cnt = 1;
}