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