liujiandao
2024-03-30 952854aaaefaca423c0b87144203551809cb8bdc
proto/product_inventory.proto
@@ -2,14 +2,13 @@
option go_package = "./product_inventory";
import "common.proto";
service productInventoryService {
  rpc CreateOperation(CreateOperationRequest) returns(CreateOperationResponse) {}
  rpc GetInventoryProductInfo(GetInventoryProductInfoRequest) returns (GetInventoryProductInfoResponse) {}
  rpc UpdateSalesDetailStatus(UpdateSalesDetailStatusRequest) returns (UpdateSalesDetailStatusResponse) {}
  rpc GetOrderInputAndOutputInfo(GetOrderInputAndOutputInfoRequest) returns (GetOrderInputAndOutputInfoResponse) {}
  rpc OrderProductOutput(OrderProductOutputRequest) returns (OrderProductOutputResponse) {}
  rpc GetOutputOperationInfo(GetOutputOperationInfoRequest) returns (GetOutputOperationInfoResponse) {}
}
message CreateOperationRequest{
@@ -23,6 +22,16 @@
  string ClientName = 8;
  repeated InventoryProduct ProductList = 9;
  OperationSource OperationSource = 10;
}
enum OperationSource {
  OperationSourceEmpty               = 0; //空
  OperationSourcePurchase            = 1; //采购入库
  OperationSourceProduction          = 2; //生产入库
  OperationSourceOutsourcing         = 3; //委外入库
  OperationSourceProductionApply     = 4; //生产领料
  OperationSourceOutsourcingApply    = 5; //委外领料
  OperationSourceSaleDelivery        = 6; //销售发货
}
message InventoryProduct{
@@ -100,7 +109,7 @@
  int64 WareHouseID = 16;
}
message GetOrderInputAndOutputInfoRequest {
   string Number = 1;//明细单编码
  string Number = 1;//明细单编码
}
message GetOrderInputAndOutputInfoResponse {
@@ -124,4 +133,14 @@
message OrderProductOutputResponse {
  int32   Code = 1;
  string  Msg = 2;
}
//------------------------------------------------------------------------------------------------
message GetOutputOperationInfoRequest{
  string Number = 1;//明细单编码
}
message GetOutputOperationInfoResponse{
  repeated OutputProduct Products= 1;//发货明细
}