MarketingSystemDataExportTool/grpc/mix/couponv1/derivative_card_stock.proto

85 lines
2.0 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 mixservice.couponv1;
option go_package = "./mix/couponv1;couponv1";
service DerivativeCardStock {
//列表
rpc GetSearchList(DerivativeCardStockGetSearchListReq) returns (DerivativeCardStockGetSearchListResp) {}
//详情
rpc Detail(DerivativeCardStockDetailReq) returns (DerivativeCardStockInfo) {}
// 创建
rpc Create(DerivativeCardStockInfo) returns (DerivativeCardStockInfo) {}
// 修改
rpc Update(DerivativeCardStockInfo) returns (DerivativeCardStockUpdateResp) {}
}
message DerivativeCardStockInfo {
//数据id
int32 id = 1;
//优惠活动名称
string title = 2;
//我们的商品分类
int32 ours_product_category_id = 3;
//我们的商品id进行分割
string ours_product_ids = 4;
//折扣
double discount = 5;
//有效期开始时间
int32 start_time = 7;
//有效期截止时间
int32 end_time = 8;
//领取后有效时长
int32 duration = 9;
//优惠码数量
int32 card_quantity = 10;
//已使用数量
int32 card_used = 11;
//批次是否激活。默认1激活 2关闭
int32 status = 12;
//活动描述信息
string describe = 13;
//绑定商家
int32 reseller_id = 14;
//优惠创建时间
int32 create_time = 15;
//活动页面地址
string url = 16;
//劵码混合类型1表示16数字字母
int32 code_mixed_type = 17;
//微信立减金批次号
int32 weixin_stock = 18;
//微信立减金兑换域名
string domain_prefix = 19;
//产品面额
double coupon_price = 20;
//产品使用门槛
double transaction_minimum = 21;
//使用说明
string body = 22;
}
message DerivativeCardStockGetSearchListReq {
//卡券名称
string keyword = 1;
//页码
int32 page = 2;
//每页数据条数
int32 limit = 3;
}
message DerivativeCardStockGetSearchListResp {
int32 dataCount = 1;
repeated DerivativeCardStockInfo list = 2;
}
message DerivativeCardStockDetailReq {
//数据id
int32 id = 1;
optional int32 status = 2;
}
message DerivativeCardStockUpdateResp {
int32 effect_rows = 1;
}