157 lines
3.8 KiB
Protocol Buffer
157 lines
3.8 KiB
Protocol Buffer
syntax = "proto3";
|
||
package mixservice.couponv1;
|
||
option go_package = "./mix/couponv1;couponv1";
|
||
|
||
//卡券管理-活动管理
|
||
service Activity {
|
||
//列表
|
||
rpc GetSearchList (GetActivitySearchListReq) returns (GetActivitySearchListResp){}
|
||
//编辑
|
||
rpc Update (UpdateActivityReq) returns (UpdateActivityResp){}
|
||
//创建
|
||
rpc Create (CreateActivityReq) returns (CreateActivityResp){}
|
||
rpc Detail (DetailActivityReq) returns (ActivityList){}
|
||
}
|
||
|
||
message GetActivitySearchListReq {
|
||
//卡券名称
|
||
string keyword = 1;
|
||
//页码
|
||
int32 page = 2;
|
||
//每页数据条数
|
||
int32 limit = 3;
|
||
}
|
||
|
||
message GetActivitySearchListResp {
|
||
int32 dataCount = 1;
|
||
repeated ActivityList list = 2;
|
||
}
|
||
|
||
message ActivityList {
|
||
//数据id
|
||
int32 id = 1;
|
||
//优惠活动名称
|
||
string title = 2;
|
||
//我们的商品分类
|
||
int32 ours_product_category_id = 3;
|
||
//我们的商品id
|
||
repeated int32 ours_product_ids = 4;
|
||
//折扣
|
||
double discount = 5;
|
||
//有效期开始时间
|
||
int32 start_time = 6;
|
||
//有效期截止时间
|
||
int32 end_time = 7;
|
||
//优惠码数量
|
||
int32 card_quantity = 8;
|
||
//已使用数量
|
||
int32 card_used = 9;
|
||
//是否激活。默认1激活, 2关闭
|
||
int32 status = 10;
|
||
//活动描述信息
|
||
string describe = 11;
|
||
//绑定商家
|
||
int32 reseller_id = 12;
|
||
//优惠创建时间
|
||
int32 create_time = 13;
|
||
//活动页面地址
|
||
string url = 14;
|
||
//劵码混合类型,1表示8位纯数字,2表示8位大写字母加数字,3表示16纯数字,4表示16位大小写字母加数字
|
||
int32 code_mixed_type = 15;
|
||
}
|
||
|
||
message UpdateActivityReq {
|
||
//数据id
|
||
int32 id = 1;
|
||
//优惠活动名称
|
||
string title = 2;
|
||
//我们的商品分类
|
||
int32 ours_product_category_id = 3;
|
||
//我们的商品id
|
||
repeated int32 ours_product_ids = 4;
|
||
//折扣
|
||
double discount = 5;
|
||
//有效期开始时间
|
||
int32 start_time = 6;
|
||
//有效期截止时间
|
||
int32 end_time = 7;
|
||
//优惠码数量
|
||
int32 card_quantity = 8;
|
||
//是否激活。默认1激活, 2关闭
|
||
int32 status = 9;
|
||
//活动描述信息
|
||
string describe = 10;
|
||
//绑定商家
|
||
int32 reseller_id = 11;
|
||
//活动页面地址
|
||
string url = 12;
|
||
}
|
||
|
||
message UpdateActivityResp {
|
||
int32 effect_rows = 1;
|
||
}
|
||
|
||
message CreateActivityReq {
|
||
//优惠活动名称
|
||
string title = 2;
|
||
//我们的商品分类
|
||
int32 ours_product_category_id = 3;
|
||
//我们的商品id
|
||
repeated int32 ours_product_ids = 4;
|
||
//折扣
|
||
double discount = 5;
|
||
//有效期开始时间
|
||
int32 start_time = 6;
|
||
//有效期截止时间
|
||
int32 end_time = 7;
|
||
//优惠码数量
|
||
int32 card_quantity = 8;
|
||
//是否激活。默认1激活, 2关闭
|
||
int32 status = 10;
|
||
//活动描述信息
|
||
string describe = 11;
|
||
//绑定商家
|
||
int32 reseller_id = 12;
|
||
//活动页面地址
|
||
string url = 14;
|
||
//劵码混合类型,1表示8位纯数字,2表示8位大写字母加数字,3表示16纯数字,4表示16位大小写字母加数字
|
||
int32 code_mixed_type = 15;
|
||
}
|
||
|
||
message CreateActivityResp {
|
||
//数据id
|
||
int32 id = 1;
|
||
//优惠活动名称
|
||
string title = 2;
|
||
//我们的商品分类
|
||
int32 ours_product_category_id = 3;
|
||
//我们的商品id
|
||
repeated int32 ours_product_ids = 4;
|
||
//折扣
|
||
double discount = 5;
|
||
//有效期开始时间
|
||
int32 start_time = 6;
|
||
//有效期截止时间
|
||
int32 end_time = 7;
|
||
//优惠码数量
|
||
int32 card_quantity = 8;
|
||
//已使用数量
|
||
int32 card_used = 9;
|
||
//是否激活。默认1激活, 2关闭
|
||
int32 status = 10;
|
||
//活动描述信息
|
||
string describe = 11;
|
||
//绑定商家
|
||
int32 reseller_id = 12;
|
||
//优惠创建时间
|
||
int32 create_time = 13;
|
||
//活动页面地址
|
||
string url = 14;
|
||
//劵码混合类型,1表示8位纯数字,2表示8位大写字母加数字,3表示16纯数字,4表示16位大小写字母加数字
|
||
int32 code_mixed_type = 15;
|
||
}
|
||
|
||
message DetailActivityReq {
|
||
//数据id
|
||
int32 id = 1;
|
||
} |