feat: update service
This commit is contained in:
parent
748d0c0725
commit
4806eea021
|
@ -8,7 +8,6 @@ option go_package="./product";
|
||||||
message OKResp {}
|
message OKResp {}
|
||||||
// NoneReq
|
// NoneReq
|
||||||
message NoneReq {}
|
message NoneReq {}
|
||||||
|
|
||||||
// ====================== Category ======================
|
// ====================== Category ======================
|
||||||
message CreateCategoryReq {
|
message CreateCategoryReq {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
|
@ -53,11 +52,7 @@ service Category_Service {
|
||||||
// List 建立 product 分類
|
// List 建立 product 分類
|
||||||
rpc List(ListCategoryReq) returns(ListCategoryResp);
|
rpc List(ListCategoryReq) returns(ListCategoryResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ====================== Tags Param ======================
|
// ====================== Tags Param ======================
|
||||||
|
|
||||||
message CreateTagsReq{
|
message CreateTagsReq{
|
||||||
string types=1;
|
string types=1;
|
||||||
string name=2;
|
string name=2;
|
||||||
|
@ -113,7 +108,6 @@ service Tag_Service {
|
||||||
// ListTags 建立 tags
|
// ListTags 建立 tags
|
||||||
rpc List(ListTagsReq) returns(ListTagsResp);
|
rpc List(ListTagsReq) returns(ListTagsResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ====================== KYC Param ======================
|
// ====================== KYC Param ======================
|
||||||
message Kyc {
|
message Kyc {
|
||||||
string id = 1; // MongoDB ObjectID 字串格式
|
string id = 1; // MongoDB ObjectID 字串格式
|
||||||
|
@ -217,7 +211,6 @@ service Kyc_Service{
|
||||||
rpc Update (UpdateKycInfoReq) returns (OKResp);
|
rpc Update (UpdateKycInfoReq) returns (OKResp);
|
||||||
}
|
}
|
||||||
// ====================== Product Item Param ======================
|
// ====================== Product Item Param ======================
|
||||||
|
|
||||||
message ProductItem {
|
message ProductItem {
|
||||||
optional string id = 1;
|
optional string id = 1;
|
||||||
string reference_id = 2;
|
string reference_id = 2;
|
||||||
|
@ -284,6 +277,7 @@ message IncDecSalesCountRequest {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
uint64 count = 2;
|
uint64 count = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateProductItemRequest {
|
message UpdateProductItemRequest {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
optional string name = 2;
|
optional string name = 2;
|
||||||
|
@ -306,7 +300,6 @@ message UpdateStatusRequest {
|
||||||
string status = 2;
|
string status = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
service Product_Item_Service {
|
service Product_Item_Service {
|
||||||
// Create 建立 ProductItem
|
// Create 建立 ProductItem
|
||||||
rpc Create(CreateProductItemRequest) returns (OKResp);
|
rpc Create(CreateProductItemRequest) returns (OKResp);
|
||||||
|
@ -327,3 +320,4 @@ service Product_Item_Service {
|
||||||
// UpdateStatus 更新 Item status
|
// UpdateStatus 更新 Item status
|
||||||
rpc UpdateStatus(UpdateStatusRequest) returns (OKResp);
|
rpc UpdateStatus(UpdateStatusRequest) returns (OKResp);
|
||||||
}
|
}
|
||||||
|
// ====================== Product Param ======================
|
Loading…
Reference in New Issue