feat: test product
This commit is contained in:
@@ -42,6 +42,56 @@ service Product {
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 审核列表: status: 1: 一审, 2: 二审
|
||||
rpc Verify(VerifyReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/product/verify"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 一审通过/驳回
|
||||
rpc VerifyFirst(VerifyStatusReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product/verify/first"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 二审通过/驳回
|
||||
rpc VerifySecond(VerifyStatusReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product/verify/second"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 编辑申请(解锁编辑权限)
|
||||
rpc EditApply(EditApplyReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/product/edit/apply"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 编辑基础信息
|
||||
rpc EditBase(EditBaseReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product/base"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
// 编辑敏感信息(进入一审)
|
||||
rpc EditSusceptible(EditSusceptibleReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product/susceptible"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: 临时接口,企微编辑申请审批对接后删除
|
||||
rpc EditApplyPass(EditApplyPassReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
put: "/admin/v3/product/edit/apply/pass"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message Response {
|
||||
@@ -102,11 +152,93 @@ message SortReq {
|
||||
uint32 sort = 2;
|
||||
}
|
||||
|
||||
// status: 1: 一审列表, 2: 二审列表
|
||||
message VerifyReq {
|
||||
uint32 status = 1;
|
||||
uint32 page = 2;
|
||||
uint32 page_size = 3;
|
||||
}
|
||||
|
||||
// id 为 verify 表主键;status: 1: 通过, 2: 驳回
|
||||
message VerifyStatusReq {
|
||||
int64 id = 1;
|
||||
uint32 status = 2;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
message EditApplyReq {
|
||||
int64 id = 1;
|
||||
string reason = 2;
|
||||
}
|
||||
|
||||
// TODO: 临时,企微对接后删除
|
||||
message EditApplyPassReq {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message EditBaseReq {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string subhead = 3;
|
||||
string content = 4;
|
||||
string waybill = 5;
|
||||
double weight = 6;
|
||||
string cubage = 7;
|
||||
string images = 8;
|
||||
int32 period_validity = 9;
|
||||
string publish_time = 10;
|
||||
string label = 11;
|
||||
uint32 is_buy = 12;
|
||||
uint32 is_index = 13;
|
||||
string index_image = 14;
|
||||
}
|
||||
|
||||
message EditSusceptibleReq {
|
||||
int64 id = 1;
|
||||
string model_code = 2;
|
||||
double price = 3;
|
||||
double store_price = 4;
|
||||
double sale_price = 5;
|
||||
double share_price = 6;
|
||||
double agent_price = 7;
|
||||
string sale_reward = 8;
|
||||
uint32 norms_number = 9;
|
||||
double box_number = 10;
|
||||
uint32 type = 11;
|
||||
}
|
||||
|
||||
message ItemsData {
|
||||
int64 count = 1;
|
||||
repeated Item items = 2;
|
||||
}
|
||||
|
||||
message VerifyItemsData {
|
||||
int64 count = 1;
|
||||
repeated VerifyItem items = 2;
|
||||
}
|
||||
|
||||
message VerifyParams {
|
||||
int64 id = 1;
|
||||
string model_code = 2;
|
||||
double price = 3;
|
||||
double store_price = 4;
|
||||
double sale_price = 5;
|
||||
double share_price = 6;
|
||||
double agent_price = 7;
|
||||
string sale_reward = 8;
|
||||
uint32 type = 9;
|
||||
uint32 norms_number = 10;
|
||||
double box_number = 11;
|
||||
int64 verify_id = 12;
|
||||
}
|
||||
|
||||
message VerifyItem {
|
||||
string name = 1;
|
||||
uint32 sales_model = 2;
|
||||
VerifyParams new = 3;
|
||||
VerifyParams old = 4;
|
||||
}
|
||||
|
||||
message NameItem {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
|
||||
Reference in New Issue
Block a user