diff --git a/rpc/inventory/internal/logic/createproductlogic.go b/rpc/inventory/internal/logic/createproductlogic.go index 2242cf1..d300353 100644 --- a/rpc/inventory/internal/logic/createproductlogic.go +++ b/rpc/inventory/internal/logic/createproductlogic.go @@ -32,11 +32,13 @@ func NewCreateProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Cre } func (l *CreateProductLogic) CreateProduct(in *pb.CreateProductReq) (*pb.IdResp, error) { + tenantId := tenantctx.ExtractTenantId(l.ctx) productId := uid.Generate() salesPrice, _ := strconv.ParseFloat(in.SalesPrice, 64) product := &model.InvProduct{ ProductId: productId, + TenantId: tenantId, ProductName: in.ProductName, ImageUrl: in.ImageUrl, Spec: in.Spec, @@ -50,8 +52,6 @@ func (l *CreateProductLogic) CreateProduct(in *pb.CreateProductReq) (*pb.IdResp, if err != nil { return nil, status.Error(codes.Internal, err.Error()) } - - tenantId := tenantctx.ExtractTenantId(l.ctx) var totalLengthM float64 var totalBolts int diff --git a/rpc/purchase/pb/purchase.pb.go b/rpc/purchase/pb/purchase.pb.go index d819ed1..e7deee9 100644 --- a/rpc/purchase/pb/purchase.pb.go +++ b/rpc/purchase/pb/purchase.pb.go @@ -1,320 +1,3454 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc v7.34.1 // source: purchase.proto package pb -// SupplierInfo holds supplier data returned from RPC. +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + type SupplierInfo struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` - PurchaseCount int64 `protobuf:"varint,4,opt,name=purchase_count,json=purchaseCount,proto3" json:"purchase_count,omitempty"` - DeliveredQty string `protobuf:"bytes,5,opt,name=delivered_qty,json=deliveredQty,proto3" json:"delivered_qty,omitempty"` - PayableAmount string `protobuf:"bytes,6,opt,name=payable_amount,json=payableAmount,proto3" json:"payable_amount,omitempty"` - PaidAmount string `protobuf:"bytes,7,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` - Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` - Remark string `protobuf:"bytes,9,opt,name=remark,proto3" json:"remark,omitempty"` - CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` + PurchaseCount int64 `protobuf:"varint,4,opt,name=purchase_count,json=purchaseCount,proto3" json:"purchase_count,omitempty"` + DeliveredQty string `protobuf:"bytes,5,opt,name=delivered_qty,json=deliveredQty,proto3" json:"delivered_qty,omitempty"` + PayableAmount string `protobuf:"bytes,6,opt,name=payable_amount,json=payableAmount,proto3" json:"payable_amount,omitempty"` + PaidAmount string `protobuf:"bytes,7,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` + Status int64 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` + Remark string `protobuf:"bytes,9,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SupplierInfo) Reset() { + *x = SupplierInfo{} + mi := &file_purchase_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SupplierInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupplierInfo) ProtoMessage() {} + +func (x *SupplierInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SupplierInfo.ProtoReflect.Descriptor instead. +func (*SupplierInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{0} +} + +func (x *SupplierInfo) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *SupplierInfo) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *SupplierInfo) GetPhone() string { + if x != nil { + return x.Phone + } + return "" +} + +func (x *SupplierInfo) GetPurchaseCount() int64 { + if x != nil { + return x.PurchaseCount + } + return 0 +} + +func (x *SupplierInfo) GetDeliveredQty() string { + if x != nil { + return x.DeliveredQty + } + return "" +} + +func (x *SupplierInfo) GetPayableAmount() string { + if x != nil { + return x.PayableAmount + } + return "" +} + +func (x *SupplierInfo) GetPaidAmount() string { + if x != nil { + return x.PaidAmount + } + return "" +} + +func (x *SupplierInfo) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *SupplierInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *SupplierInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *SupplierInfo) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" } type CreateSupplierReq struct { - SupplierName string `protobuf:"bytes,1,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierName string `protobuf:"bytes,1,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` + Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateSupplierReq) Reset() { + *x = CreateSupplierReq{} + mi := &file_purchase_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateSupplierReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSupplierReq) ProtoMessage() {} + +func (x *CreateSupplierReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateSupplierReq.ProtoReflect.Descriptor instead. +func (*CreateSupplierReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateSupplierReq) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *CreateSupplierReq) GetPhone() string { + if x != nil { + return x.Phone + } + return "" +} + +func (x *CreateSupplierReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type UpdateSupplierReq struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateSupplierReq) Reset() { + *x = UpdateSupplierReq{} + mi := &file_purchase_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateSupplierReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateSupplierReq) ProtoMessage() {} + +func (x *UpdateSupplierReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateSupplierReq.ProtoReflect.Descriptor instead. +func (*UpdateSupplierReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateSupplierReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *UpdateSupplierReq) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *UpdateSupplierReq) GetPhone() string { + if x != nil { + return x.Phone + } + return "" +} + +func (x *UpdateSupplierReq) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *UpdateSupplierReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type DeleteSupplierReq struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteSupplierReq) Reset() { + *x = DeleteSupplierReq{} + mi := &file_purchase_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteSupplierReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSupplierReq) ProtoMessage() {} + +func (x *DeleteSupplierReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteSupplierReq.ProtoReflect.Descriptor instead. +func (*DeleteSupplierReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{3} +} + +func (x *DeleteSupplierReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" } type GetSupplierReq struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetSupplierReq) Reset() { + *x = GetSupplierReq{} + mi := &file_purchase_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetSupplierReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSupplierReq) ProtoMessage() {} + +func (x *GetSupplierReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetSupplierReq.ProtoReflect.Descriptor instead. +func (*GetSupplierReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{4} +} + +func (x *GetSupplierReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" } type ListSupplierReq struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - SupplierName string `protobuf:"bytes,3,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + SupplierName string `protobuf:"bytes,3,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSupplierReq) Reset() { + *x = ListSupplierReq{} + mi := &file_purchase_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSupplierReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplierReq) ProtoMessage() {} + +func (x *ListSupplierReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplierReq.ProtoReflect.Descriptor instead. +func (*ListSupplierReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{5} +} + +func (x *ListSupplierReq) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListSupplierReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListSupplierReq) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *ListSupplierReq) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 } type ListSupplierResp struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - List []*SupplierInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + List []*SupplierInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListSupplierResp) Reset() { + *x = ListSupplierResp{} + mi := &file_purchase_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListSupplierResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSupplierResp) ProtoMessage() {} + +func (x *ListSupplierResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSupplierResp.ProtoReflect.Descriptor instead. +func (*ListSupplierResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{6} +} + +func (x *ListSupplierResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ListSupplierResp) GetList() []*SupplierInfo { + if x != nil { + return x.List + } + return nil } -// PurchaseOrder type PurchaseOrderInfo struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - OrderNo string `protobuf:"bytes,2,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` - SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - SupplierName string `protobuf:"bytes,4,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - OrderDate string `protobuf:"bytes,5,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` - ContractAmount string `protobuf:"bytes,6,opt,name=contract_amount,json=contractAmount,proto3" json:"contract_amount,omitempty"` - ReceivedQty string `protobuf:"bytes,7,opt,name=received_qty,json=receivedQty,proto3" json:"received_qty,omitempty"` - PaidAmount string `protobuf:"bytes,8,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` - PaymentStatus int64 `protobuf:"varint,9,opt,name=payment_status,json=paymentStatus,proto3" json:"payment_status,omitempty"` - ReceiptStatus int64 `protobuf:"varint,10,opt,name=receipt_status,json=receiptStatus,proto3" json:"receipt_status,omitempty"` - PurchaseBy string `protobuf:"bytes,11,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` - Creator string `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"` - Operator string `protobuf:"bytes,13,opt,name=operator,proto3" json:"operator,omitempty"` - Status int64 `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"` - Remark string `protobuf:"bytes,15,opt,name=remark,proto3" json:"remark,omitempty"` - CreatedAt string `protobuf:"bytes,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt string `protobuf:"bytes,17,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + OrderNo string `protobuf:"bytes,2,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` + SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + SupplierName string `protobuf:"bytes,4,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + OrderDate string `protobuf:"bytes,5,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` + ContractAmount string `protobuf:"bytes,6,opt,name=contract_amount,json=contractAmount,proto3" json:"contract_amount,omitempty"` + ReceivedQty string `protobuf:"bytes,7,opt,name=received_qty,json=receivedQty,proto3" json:"received_qty,omitempty"` + PaidAmount string `protobuf:"bytes,8,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` + PaymentStatus int64 `protobuf:"varint,9,opt,name=payment_status,json=paymentStatus,proto3" json:"payment_status,omitempty"` + ReceiptStatus int64 `protobuf:"varint,10,opt,name=receipt_status,json=receiptStatus,proto3" json:"receipt_status,omitempty"` + PurchaseBy string `protobuf:"bytes,11,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` + Creator string `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"` + Operator string `protobuf:"bytes,13,opt,name=operator,proto3" json:"operator,omitempty"` + Status int64 `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"` + Remark string `protobuf:"bytes,15,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt string `protobuf:"bytes,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,17,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Details []*PurchaseOrderDetailInfo `protobuf:"bytes,18,rep,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseOrderInfo) Reset() { + *x = PurchaseOrderInfo{} + mi := &file_purchase_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseOrderInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseOrderInfo) ProtoMessage() {} + +func (x *PurchaseOrderInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseOrderInfo.ProtoReflect.Descriptor instead. +func (*PurchaseOrderInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{7} +} + +func (x *PurchaseOrderInfo) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *PurchaseOrderInfo) GetOrderNo() string { + if x != nil { + return x.OrderNo + } + return "" +} + +func (x *PurchaseOrderInfo) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *PurchaseOrderInfo) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *PurchaseOrderInfo) GetOrderDate() string { + if x != nil { + return x.OrderDate + } + return "" +} + +func (x *PurchaseOrderInfo) GetContractAmount() string { + if x != nil { + return x.ContractAmount + } + return "" +} + +func (x *PurchaseOrderInfo) GetReceivedQty() string { + if x != nil { + return x.ReceivedQty + } + return "" +} + +func (x *PurchaseOrderInfo) GetPaidAmount() string { + if x != nil { + return x.PaidAmount + } + return "" +} + +func (x *PurchaseOrderInfo) GetPaymentStatus() int64 { + if x != nil { + return x.PaymentStatus + } + return 0 +} + +func (x *PurchaseOrderInfo) GetReceiptStatus() int64 { + if x != nil { + return x.ReceiptStatus + } + return 0 +} + +func (x *PurchaseOrderInfo) GetPurchaseBy() string { + if x != nil { + return x.PurchaseBy + } + return "" +} + +func (x *PurchaseOrderInfo) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *PurchaseOrderInfo) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *PurchaseOrderInfo) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *PurchaseOrderInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *PurchaseOrderInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *PurchaseOrderInfo) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +func (x *PurchaseOrderInfo) GetDetails() []*PurchaseOrderDetailInfo { + if x != nil { + return x.Details + } + return nil } type PurchaseOrderDetailInfo struct { - DetailId string `protobuf:"bytes,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id,omitempty"` - OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ProductName string `protobuf:"bytes,4,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` - Spec string `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec,omitempty"` - Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"` - Quantity string `protobuf:"bytes,7,opt,name=quantity,proto3" json:"quantity,omitempty"` - UnitPrice string `protobuf:"bytes,8,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"` - Amount string `protobuf:"bytes,9,opt,name=amount,proto3" json:"amount,omitempty"` - ReceivedQty string `protobuf:"bytes,10,opt,name=received_qty,json=receivedQty,proto3" json:"received_qty,omitempty"` - Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DetailId string `protobuf:"bytes,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id,omitempty"` + OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ProductName string `protobuf:"bytes,4,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` + Spec string `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec,omitempty"` + Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"` + Quantity string `protobuf:"bytes,7,opt,name=quantity,proto3" json:"quantity,omitempty"` + UnitPrice string `protobuf:"bytes,8,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"` + Amount string `protobuf:"bytes,9,opt,name=amount,proto3" json:"amount,omitempty"` + ReceivedQty string `protobuf:"bytes,10,opt,name=received_qty,json=receivedQty,proto3" json:"received_qty,omitempty"` + Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseOrderDetailInfo) Reset() { + *x = PurchaseOrderDetailInfo{} + mi := &file_purchase_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseOrderDetailInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseOrderDetailInfo) ProtoMessage() {} + +func (x *PurchaseOrderDetailInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseOrderDetailInfo.ProtoReflect.Descriptor instead. +func (*PurchaseOrderDetailInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{8} +} + +func (x *PurchaseOrderDetailInfo) GetDetailId() string { + if x != nil { + return x.DetailId + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetProductName() string { + if x != nil { + return x.ProductName + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetSpec() string { + if x != nil { + return x.Spec + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetColor() string { + if x != nil { + return x.Color + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetQuantity() string { + if x != nil { + return x.Quantity + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetUnitPrice() string { + if x != nil { + return x.UnitPrice + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetReceivedQty() string { + if x != nil { + return x.ReceivedQty + } + return "" +} + +func (x *PurchaseOrderDetailInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type PurchaseOrderDetailReq struct { - ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ProductName string `protobuf:"bytes,2,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` - Spec string `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - Quantity string `protobuf:"bytes,5,opt,name=quantity,proto3" json:"quantity,omitempty"` - UnitPrice string `protobuf:"bytes,6,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ProductName string `protobuf:"bytes,2,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` + Spec string `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + Quantity string `protobuf:"bytes,5,opt,name=quantity,proto3" json:"quantity,omitempty"` + UnitPrice string `protobuf:"bytes,6,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"` + Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseOrderDetailReq) Reset() { + *x = PurchaseOrderDetailReq{} + mi := &file_purchase_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseOrderDetailReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseOrderDetailReq) ProtoMessage() {} + +func (x *PurchaseOrderDetailReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseOrderDetailReq.ProtoReflect.Descriptor instead. +func (*PurchaseOrderDetailReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{9} +} + +func (x *PurchaseOrderDetailReq) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetProductName() string { + if x != nil { + return x.ProductName + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetSpec() string { + if x != nil { + return x.Spec + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetColor() string { + if x != nil { + return x.Color + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetQuantity() string { + if x != nil { + return x.Quantity + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetUnitPrice() string { + if x != nil { + return x.UnitPrice + } + return "" +} + +func (x *PurchaseOrderDetailReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type CreatePurchaseOrderReq struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - OrderDate string `protobuf:"bytes,2,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` - PurchaseBy string `protobuf:"bytes,3,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` - Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` - Details []*PurchaseOrderDetailReq `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + OrderDate string `protobuf:"bytes,2,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` + PurchaseBy string `protobuf:"bytes,3,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` + Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` + Details []*PurchaseOrderDetailReq `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreatePurchaseOrderReq) Reset() { + *x = CreatePurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreatePurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePurchaseOrderReq) ProtoMessage() {} + +func (x *CreatePurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreatePurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*CreatePurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{10} +} + +func (x *CreatePurchaseOrderReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *CreatePurchaseOrderReq) GetOrderDate() string { + if x != nil { + return x.OrderDate + } + return "" +} + +func (x *CreatePurchaseOrderReq) GetPurchaseBy() string { + if x != nil { + return x.PurchaseBy + } + return "" +} + +func (x *CreatePurchaseOrderReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *CreatePurchaseOrderReq) GetDetails() []*PurchaseOrderDetailReq { + if x != nil { + return x.Details + } + return nil } type UpdatePurchaseOrderReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - SupplierId string `protobuf:"bytes,2,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - OrderDate string `protobuf:"bytes,3,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` - PurchaseBy string `protobuf:"bytes,4,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` - Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` - Details []*PurchaseOrderDetailReq `protobuf:"bytes,6,rep,name=details,proto3" json:"details,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + SupplierId string `protobuf:"bytes,2,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + OrderDate string `protobuf:"bytes,3,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` + PurchaseBy string `protobuf:"bytes,4,opt,name=purchase_by,json=purchaseBy,proto3" json:"purchase_by,omitempty"` + Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + Details []*PurchaseOrderDetailReq `protobuf:"bytes,6,rep,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdatePurchaseOrderReq) Reset() { + *x = UpdatePurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdatePurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePurchaseOrderReq) ProtoMessage() {} + +func (x *UpdatePurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdatePurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*UpdatePurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdatePurchaseOrderReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *UpdatePurchaseOrderReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *UpdatePurchaseOrderReq) GetOrderDate() string { + if x != nil { + return x.OrderDate + } + return "" +} + +func (x *UpdatePurchaseOrderReq) GetPurchaseBy() string { + if x != nil { + return x.PurchaseBy + } + return "" +} + +func (x *UpdatePurchaseOrderReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *UpdatePurchaseOrderReq) GetDetails() []*PurchaseOrderDetailReq { + if x != nil { + return x.Details + } + return nil } type ConfirmPurchaseOrderReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConfirmPurchaseOrderReq) Reset() { + *x = ConfirmPurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConfirmPurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfirmPurchaseOrderReq) ProtoMessage() {} + +func (x *ConfirmPurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConfirmPurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*ConfirmPurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{12} +} + +func (x *ConfirmPurchaseOrderReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" } type CancelPurchaseOrderReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CancelPurchaseOrderReq) Reset() { + *x = CancelPurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CancelPurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelPurchaseOrderReq) ProtoMessage() {} + +func (x *CancelPurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CancelPurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*CancelPurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{13} +} + +func (x *CancelPurchaseOrderReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" } type GetPurchaseOrderReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPurchaseOrderReq) Reset() { + *x = GetPurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPurchaseOrderReq) ProtoMessage() {} + +func (x *GetPurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*GetPurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{14} +} + +func (x *GetPurchaseOrderReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" } type ListPurchaseOrderReq struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchaseOrderReq) Reset() { + *x = ListPurchaseOrderReq{} + mi := &file_purchase_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchaseOrderReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchaseOrderReq) ProtoMessage() {} + +func (x *ListPurchaseOrderReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchaseOrderReq.ProtoReflect.Descriptor instead. +func (*ListPurchaseOrderReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{15} +} + +func (x *ListPurchaseOrderReq) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListPurchaseOrderReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListPurchaseOrderReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *ListPurchaseOrderReq) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *ListPurchaseOrderReq) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ListPurchaseOrderReq) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" } type ListPurchaseOrderResp struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - List []*PurchaseOrderInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + List []*PurchaseOrderInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchaseOrderResp) Reset() { + *x = ListPurchaseOrderResp{} + mi := &file_purchase_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchaseOrderResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchaseOrderResp) ProtoMessage() {} + +func (x *ListPurchaseOrderResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchaseOrderResp.ProtoReflect.Descriptor instead. +func (*ListPurchaseOrderResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{16} +} + +func (x *ListPurchaseOrderResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ListPurchaseOrderResp) GetList() []*PurchaseOrderInfo { + if x != nil { + return x.List + } + return nil } -// Receipt type PurchaseReceiptInfo struct { - ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` - ReceiptNo string `protobuf:"bytes,2,opt,name=receipt_no,json=receiptNo,proto3" json:"receipt_no,omitempty"` - OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - ReceiptDate string `protobuf:"bytes,4,opt,name=receipt_date,json=receiptDate,proto3" json:"receipt_date,omitempty"` - ReceivedBy string `protobuf:"bytes,5,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"` - Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Details []*PurchaseReceiptDetailInfo `protobuf:"bytes,9,rep,name=details,proto3" json:"details,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + ReceiptNo string `protobuf:"bytes,2,opt,name=receipt_no,json=receiptNo,proto3" json:"receipt_no,omitempty"` + OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + ReceiptDate string `protobuf:"bytes,4,opt,name=receipt_date,json=receiptDate,proto3" json:"receipt_date,omitempty"` + ReceivedBy string `protobuf:"bytes,5,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"` + Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` + Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Details []*PurchaseReceiptDetailInfo `protobuf:"bytes,9,rep,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseReceiptInfo) Reset() { + *x = PurchaseReceiptInfo{} + mi := &file_purchase_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseReceiptInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseReceiptInfo) ProtoMessage() {} + +func (x *PurchaseReceiptInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseReceiptInfo.ProtoReflect.Descriptor instead. +func (*PurchaseReceiptInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{17} +} + +func (x *PurchaseReceiptInfo) GetReceiptId() string { + if x != nil { + return x.ReceiptId + } + return "" +} + +func (x *PurchaseReceiptInfo) GetReceiptNo() string { + if x != nil { + return x.ReceiptNo + } + return "" +} + +func (x *PurchaseReceiptInfo) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *PurchaseReceiptInfo) GetReceiptDate() string { + if x != nil { + return x.ReceiptDate + } + return "" +} + +func (x *PurchaseReceiptInfo) GetReceivedBy() string { + if x != nil { + return x.ReceivedBy + } + return "" +} + +func (x *PurchaseReceiptInfo) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *PurchaseReceiptInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *PurchaseReceiptInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *PurchaseReceiptInfo) GetDetails() []*PurchaseReceiptDetailInfo { + if x != nil { + return x.Details + } + return nil } type PurchaseReceiptDetailInfo struct { - DetailId string `protobuf:"bytes,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id,omitempty"` - ReceiptId string `protobuf:"bytes,2,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` - OrderDetailId string `protobuf:"bytes,3,opt,name=order_detail_id,json=orderDetailId,proto3" json:"order_detail_id,omitempty"` - ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ActualQty string `protobuf:"bytes,5,opt,name=actual_qty,json=actualQty,proto3" json:"actual_qty,omitempty"` - UnitCost string `protobuf:"bytes,6,opt,name=unit_cost,json=unitCost,proto3" json:"unit_cost,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + DetailId string `protobuf:"bytes,1,opt,name=detail_id,json=detailId,proto3" json:"detail_id,omitempty"` + ReceiptId string `protobuf:"bytes,2,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + OrderDetailId string `protobuf:"bytes,3,opt,name=order_detail_id,json=orderDetailId,proto3" json:"order_detail_id,omitempty"` + ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ActualQty string `protobuf:"bytes,5,opt,name=actual_qty,json=actualQty,proto3" json:"actual_qty,omitempty"` + UnitCost string `protobuf:"bytes,6,opt,name=unit_cost,json=unitCost,proto3" json:"unit_cost,omitempty"` + Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseReceiptDetailInfo) Reset() { + *x = PurchaseReceiptDetailInfo{} + mi := &file_purchase_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseReceiptDetailInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseReceiptDetailInfo) ProtoMessage() {} + +func (x *PurchaseReceiptDetailInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseReceiptDetailInfo.ProtoReflect.Descriptor instead. +func (*PurchaseReceiptDetailInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{18} +} + +func (x *PurchaseReceiptDetailInfo) GetDetailId() string { + if x != nil { + return x.DetailId + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetReceiptId() string { + if x != nil { + return x.ReceiptId + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetOrderDetailId() string { + if x != nil { + return x.OrderDetailId + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetActualQty() string { + if x != nil { + return x.ActualQty + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetUnitCost() string { + if x != nil { + return x.UnitCost + } + return "" +} + +func (x *PurchaseReceiptDetailInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type PurchaseReceiptDetailReq struct { - OrderDetailId string `protobuf:"bytes,1,opt,name=order_detail_id,json=orderDetailId,proto3" json:"order_detail_id,omitempty"` - ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ActualQty string `protobuf:"bytes,3,opt,name=actual_qty,json=actualQty,proto3" json:"actual_qty,omitempty"` - UnitCost string `protobuf:"bytes,4,opt,name=unit_cost,json=unitCost,proto3" json:"unit_cost,omitempty"` - Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderDetailId string `protobuf:"bytes,1,opt,name=order_detail_id,json=orderDetailId,proto3" json:"order_detail_id,omitempty"` + ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ActualQty string `protobuf:"bytes,3,opt,name=actual_qty,json=actualQty,proto3" json:"actual_qty,omitempty"` + UnitCost string `protobuf:"bytes,4,opt,name=unit_cost,json=unitCost,proto3" json:"unit_cost,omitempty"` + Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseReceiptDetailReq) Reset() { + *x = PurchaseReceiptDetailReq{} + mi := &file_purchase_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseReceiptDetailReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseReceiptDetailReq) ProtoMessage() {} + +func (x *PurchaseReceiptDetailReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseReceiptDetailReq.ProtoReflect.Descriptor instead. +func (*PurchaseReceiptDetailReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{19} +} + +func (x *PurchaseReceiptDetailReq) GetOrderDetailId() string { + if x != nil { + return x.OrderDetailId + } + return "" +} + +func (x *PurchaseReceiptDetailReq) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *PurchaseReceiptDetailReq) GetActualQty() string { + if x != nil { + return x.ActualQty + } + return "" +} + +func (x *PurchaseReceiptDetailReq) GetUnitCost() string { + if x != nil { + return x.UnitCost + } + return "" +} + +func (x *PurchaseReceiptDetailReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type CreatePurchaseReceiptReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - ReceiptDate string `protobuf:"bytes,2,opt,name=receipt_date,json=receiptDate,proto3" json:"receipt_date,omitempty"` - ReceivedBy string `protobuf:"bytes,3,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"` - Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` - Details []*PurchaseReceiptDetailReq `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + ReceiptDate string `protobuf:"bytes,2,opt,name=receipt_date,json=receiptDate,proto3" json:"receipt_date,omitempty"` + ReceivedBy string `protobuf:"bytes,3,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"` + Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` + Details []*PurchaseReceiptDetailReq `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreatePurchaseReceiptReq) Reset() { + *x = CreatePurchaseReceiptReq{} + mi := &file_purchase_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreatePurchaseReceiptReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePurchaseReceiptReq) ProtoMessage() {} + +func (x *CreatePurchaseReceiptReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreatePurchaseReceiptReq.ProtoReflect.Descriptor instead. +func (*CreatePurchaseReceiptReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{20} +} + +func (x *CreatePurchaseReceiptReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *CreatePurchaseReceiptReq) GetReceiptDate() string { + if x != nil { + return x.ReceiptDate + } + return "" +} + +func (x *CreatePurchaseReceiptReq) GetReceivedBy() string { + if x != nil { + return x.ReceivedBy + } + return "" +} + +func (x *CreatePurchaseReceiptReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *CreatePurchaseReceiptReq) GetDetails() []*PurchaseReceiptDetailReq { + if x != nil { + return x.Details + } + return nil } type ConfirmPurchaseReceiptReq struct { - ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConfirmPurchaseReceiptReq) Reset() { + *x = ConfirmPurchaseReceiptReq{} + mi := &file_purchase_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConfirmPurchaseReceiptReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfirmPurchaseReceiptReq) ProtoMessage() {} + +func (x *ConfirmPurchaseReceiptReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConfirmPurchaseReceiptReq.ProtoReflect.Descriptor instead. +func (*ConfirmPurchaseReceiptReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{21} +} + +func (x *ConfirmPurchaseReceiptReq) GetReceiptId() string { + if x != nil { + return x.ReceiptId + } + return "" } type GetPurchaseReceiptReq struct { - ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ReceiptId string `protobuf:"bytes,1,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPurchaseReceiptReq) Reset() { + *x = GetPurchaseReceiptReq{} + mi := &file_purchase_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPurchaseReceiptReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPurchaseReceiptReq) ProtoMessage() {} + +func (x *GetPurchaseReceiptReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPurchaseReceiptReq.ProtoReflect.Descriptor instead. +func (*GetPurchaseReceiptReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{22} +} + +func (x *GetPurchaseReceiptReq) GetReceiptId() string { + if x != nil { + return x.ReceiptId + } + return "" } type ListPurchaseReceiptReq struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` + StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchaseReceiptReq) Reset() { + *x = ListPurchaseReceiptReq{} + mi := &file_purchase_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchaseReceiptReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchaseReceiptReq) ProtoMessage() {} + +func (x *ListPurchaseReceiptReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchaseReceiptReq.ProtoReflect.Descriptor instead. +func (*ListPurchaseReceiptReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{23} +} + +func (x *ListPurchaseReceiptReq) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListPurchaseReceiptReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListPurchaseReceiptReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *ListPurchaseReceiptReq) GetStatus() int64 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *ListPurchaseReceiptReq) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ListPurchaseReceiptReq) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" } type ListPurchaseReceiptResp struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - List []*PurchaseReceiptInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + List []*PurchaseReceiptInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchaseReceiptResp) Reset() { + *x = ListPurchaseReceiptResp{} + mi := &file_purchase_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchaseReceiptResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchaseReceiptResp) ProtoMessage() {} + +func (x *ListPurchaseReceiptResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchaseReceiptResp.ProtoReflect.Descriptor instead. +func (*ListPurchaseReceiptResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{24} +} + +func (x *ListPurchaseReceiptResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ListPurchaseReceiptResp) GetList() []*PurchaseReceiptInfo { + if x != nil { + return x.List + } + return nil } -// Payment type PurchasePaymentInfo struct { - PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` - OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - PaymentDate string `protobuf:"bytes,4,opt,name=payment_date,json=paymentDate,proto3" json:"payment_date,omitempty"` - Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` - PaymentMethod string `protobuf:"bytes,6,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` - Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` - Remark string `protobuf:"bytes,8,opt,name=remark,proto3" json:"remark,omitempty"` - CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` + OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + PaymentDate string `protobuf:"bytes,4,opt,name=payment_date,json=paymentDate,proto3" json:"payment_date,omitempty"` + Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` + PaymentMethod string `protobuf:"bytes,6,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` + Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` + Remark string `protobuf:"bytes,8,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchasePaymentInfo) Reset() { + *x = PurchasePaymentInfo{} + mi := &file_purchase_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchasePaymentInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchasePaymentInfo) ProtoMessage() {} + +func (x *PurchasePaymentInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchasePaymentInfo.ProtoReflect.Descriptor instead. +func (*PurchasePaymentInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{25} +} + +func (x *PurchasePaymentInfo) GetPaymentId() string { + if x != nil { + return x.PaymentId + } + return "" +} + +func (x *PurchasePaymentInfo) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *PurchasePaymentInfo) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *PurchasePaymentInfo) GetPaymentDate() string { + if x != nil { + return x.PaymentDate + } + return "" +} + +func (x *PurchasePaymentInfo) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *PurchasePaymentInfo) GetPaymentMethod() string { + if x != nil { + return x.PaymentMethod + } + return "" +} + +func (x *PurchasePaymentInfo) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *PurchasePaymentInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *PurchasePaymentInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" } type CreatePurchasePaymentReq struct { - OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - PaymentDate string `protobuf:"bytes,2,opt,name=payment_date,json=paymentDate,proto3" json:"payment_date,omitempty"` - Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` - PaymentMethod string `protobuf:"bytes,4,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` - Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + PaymentDate string `protobuf:"bytes,2,opt,name=payment_date,json=paymentDate,proto3" json:"payment_date,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + PaymentMethod string `protobuf:"bytes,4,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` + Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreatePurchasePaymentReq) Reset() { + *x = CreatePurchasePaymentReq{} + mi := &file_purchase_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreatePurchasePaymentReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePurchasePaymentReq) ProtoMessage() {} + +func (x *CreatePurchasePaymentReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreatePurchasePaymentReq.ProtoReflect.Descriptor instead. +func (*CreatePurchasePaymentReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{26} +} + +func (x *CreatePurchasePaymentReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *CreatePurchasePaymentReq) GetPaymentDate() string { + if x != nil { + return x.PaymentDate + } + return "" +} + +func (x *CreatePurchasePaymentReq) GetAmount() string { + if x != nil { + return x.Amount + } + return "" +} + +func (x *CreatePurchasePaymentReq) GetPaymentMethod() string { + if x != nil { + return x.PaymentMethod + } + return "" +} + +func (x *CreatePurchasePaymentReq) GetRemark() string { + if x != nil { + return x.Remark + } + return "" } type GetPurchasePaymentReq struct { - PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetPurchasePaymentReq) Reset() { + *x = GetPurchasePaymentReq{} + mi := &file_purchase_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetPurchasePaymentReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetPurchasePaymentReq) ProtoMessage() {} + +func (x *GetPurchasePaymentReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetPurchasePaymentReq.ProtoReflect.Descriptor instead. +func (*GetPurchasePaymentReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{27} +} + +func (x *GetPurchasePaymentReq) GetPaymentId() string { + if x != nil { + return x.PaymentId + } + return "" } type ListPurchasePaymentReq struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` - SupplierId string `protobuf:"bytes,4,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + OrderId string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` + SupplierId string `protobuf:"bytes,4,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchasePaymentReq) Reset() { + *x = ListPurchasePaymentReq{} + mi := &file_purchase_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchasePaymentReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchasePaymentReq) ProtoMessage() {} + +func (x *ListPurchasePaymentReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchasePaymentReq.ProtoReflect.Descriptor instead. +func (*ListPurchasePaymentReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{28} +} + +func (x *ListPurchasePaymentReq) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListPurchasePaymentReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListPurchasePaymentReq) GetOrderId() string { + if x != nil { + return x.OrderId + } + return "" +} + +func (x *ListPurchasePaymentReq) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *ListPurchasePaymentReq) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ListPurchasePaymentReq) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" } type ListPurchasePaymentResp struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - List []*PurchasePaymentInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + List []*PurchasePaymentInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPurchasePaymentResp) Reset() { + *x = ListPurchasePaymentResp{} + mi := &file_purchase_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPurchasePaymentResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPurchasePaymentResp) ProtoMessage() {} + +func (x *ListPurchasePaymentResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListPurchasePaymentResp.ProtoReflect.Descriptor instead. +func (*ListPurchasePaymentResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{29} +} + +func (x *ListPurchasePaymentResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ListPurchasePaymentResp) GetList() []*PurchasePaymentInfo { + if x != nil { + return x.List + } + return nil } -// InventoryLog type InventoryLogInfo struct { - LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` - ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ChangeQty string `protobuf:"bytes,3,opt,name=change_qty,json=changeQty,proto3" json:"change_qty,omitempty"` - BalanceAfter string `protobuf:"bytes,4,opt,name=balance_after,json=balanceAfter,proto3" json:"balance_after,omitempty"` - ChangeType int64 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"` - RefType string `protobuf:"bytes,6,opt,name=ref_type,json=refType,proto3" json:"ref_type,omitempty"` - RefId string `protobuf:"bytes,7,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"` - ContactId string `protobuf:"bytes,8,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` - LogDate string `protobuf:"bytes,9,opt,name=log_date,json=logDate,proto3" json:"log_date,omitempty"` - Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"` - Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"` - CreatedAt string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` + ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ChangeQty string `protobuf:"bytes,3,opt,name=change_qty,json=changeQty,proto3" json:"change_qty,omitempty"` + BalanceAfter string `protobuf:"bytes,4,opt,name=balance_after,json=balanceAfter,proto3" json:"balance_after,omitempty"` + ChangeType int64 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"` + RefType string `protobuf:"bytes,6,opt,name=ref_type,json=refType,proto3" json:"ref_type,omitempty"` + RefId string `protobuf:"bytes,7,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"` + ContactId string `protobuf:"bytes,8,opt,name=contact_id,json=contactId,proto3" json:"contact_id,omitempty"` + LogDate string `protobuf:"bytes,9,opt,name=log_date,json=logDate,proto3" json:"log_date,omitempty"` + Operator string `protobuf:"bytes,10,opt,name=operator,proto3" json:"operator,omitempty"` + Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InventoryLogInfo) Reset() { + *x = InventoryLogInfo{} + mi := &file_purchase_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InventoryLogInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InventoryLogInfo) ProtoMessage() {} + +func (x *InventoryLogInfo) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InventoryLogInfo.ProtoReflect.Descriptor instead. +func (*InventoryLogInfo) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{30} +} + +func (x *InventoryLogInfo) GetLogId() string { + if x != nil { + return x.LogId + } + return "" +} + +func (x *InventoryLogInfo) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *InventoryLogInfo) GetChangeQty() string { + if x != nil { + return x.ChangeQty + } + return "" +} + +func (x *InventoryLogInfo) GetBalanceAfter() string { + if x != nil { + return x.BalanceAfter + } + return "" +} + +func (x *InventoryLogInfo) GetChangeType() int64 { + if x != nil { + return x.ChangeType + } + return 0 +} + +func (x *InventoryLogInfo) GetRefType() string { + if x != nil { + return x.RefType + } + return "" +} + +func (x *InventoryLogInfo) GetRefId() string { + if x != nil { + return x.RefId + } + return "" +} + +func (x *InventoryLogInfo) GetContactId() string { + if x != nil { + return x.ContactId + } + return "" +} + +func (x *InventoryLogInfo) GetLogDate() string { + if x != nil { + return x.LogDate + } + return "" +} + +func (x *InventoryLogInfo) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *InventoryLogInfo) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *InventoryLogInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" } type ListInventoryLogReq struct { - Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - RefType string `protobuf:"bytes,4,opt,name=ref_type,json=refType,proto3" json:"ref_type,omitempty"` - ChangeType int64 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"` - StartDate string `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - EndDate string `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + RefType string `protobuf:"bytes,4,opt,name=ref_type,json=refType,proto3" json:"ref_type,omitempty"` + ChangeType int64 `protobuf:"varint,5,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"` + StartDate string `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInventoryLogReq) Reset() { + *x = ListInventoryLogReq{} + mi := &file_purchase_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInventoryLogReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInventoryLogReq) ProtoMessage() {} + +func (x *ListInventoryLogReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListInventoryLogReq.ProtoReflect.Descriptor instead. +func (*ListInventoryLogReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{31} +} + +func (x *ListInventoryLogReq) GetPage() int64 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListInventoryLogReq) GetPageSize() int64 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListInventoryLogReq) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *ListInventoryLogReq) GetRefType() string { + if x != nil { + return x.RefType + } + return "" +} + +func (x *ListInventoryLogReq) GetChangeType() int64 { + if x != nil { + return x.ChangeType + } + return 0 +} + +func (x *ListInventoryLogReq) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ListInventoryLogReq) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" } type ListInventoryLogResp struct { - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - List []*InventoryLogInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + List []*InventoryLogInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInventoryLogResp) Reset() { + *x = ListInventoryLogResp{} + mi := &file_purchase_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInventoryLogResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListInventoryLogResp) ProtoMessage() {} + +func (x *ListInventoryLogResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListInventoryLogResp.ProtoReflect.Descriptor instead. +func (*ListInventoryLogResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{32} +} + +func (x *ListInventoryLogResp) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *ListInventoryLogResp) GetList() []*InventoryLogInfo { + if x != nil { + return x.List + } + return nil } -// Stats type PurchaseStatsSummaryReq struct { - StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` - EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsSummaryReq) Reset() { + *x = PurchaseStatsSummaryReq{} + mi := &file_purchase_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsSummaryReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsSummaryReq) ProtoMessage() {} + +func (x *PurchaseStatsSummaryReq) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsSummaryReq.ProtoReflect.Descriptor instead. +func (*PurchaseStatsSummaryReq) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{33} +} + +func (x *PurchaseStatsSummaryReq) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *PurchaseStatsSummaryReq) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" } type PurchaseStatsSummaryResp struct { - TotalPurchaseAmount string `protobuf:"bytes,1,opt,name=total_purchase_amount,json=totalPurchaseAmount,proto3" json:"total_purchase_amount,omitempty"` - TotalPaidAmount string `protobuf:"bytes,2,opt,name=total_paid_amount,json=totalPaidAmount,proto3" json:"total_paid_amount,omitempty"` - TotalUnpaidAmount string `protobuf:"bytes,3,opt,name=total_unpaid_amount,json=totalUnpaidAmount,proto3" json:"total_unpaid_amount,omitempty"` - OrderCount int64 `protobuf:"varint,4,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"` - ReceiptCount int64 `protobuf:"varint,5,opt,name=receipt_count,json=receiptCount,proto3" json:"receipt_count,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TotalPurchaseAmount string `protobuf:"bytes,1,opt,name=total_purchase_amount,json=totalPurchaseAmount,proto3" json:"total_purchase_amount,omitempty"` + TotalPaidAmount string `protobuf:"bytes,2,opt,name=total_paid_amount,json=totalPaidAmount,proto3" json:"total_paid_amount,omitempty"` + TotalUnpaidAmount string `protobuf:"bytes,3,opt,name=total_unpaid_amount,json=totalUnpaidAmount,proto3" json:"total_unpaid_amount,omitempty"` + OrderCount int64 `protobuf:"varint,4,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"` + ReceiptCount int64 `protobuf:"varint,5,opt,name=receipt_count,json=receiptCount,proto3" json:"receipt_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsSummaryResp) Reset() { + *x = PurchaseStatsSummaryResp{} + mi := &file_purchase_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsSummaryResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsSummaryResp) ProtoMessage() {} + +func (x *PurchaseStatsSummaryResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsSummaryResp.ProtoReflect.Descriptor instead. +func (*PurchaseStatsSummaryResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{34} +} + +func (x *PurchaseStatsSummaryResp) GetTotalPurchaseAmount() string { + if x != nil { + return x.TotalPurchaseAmount + } + return "" +} + +func (x *PurchaseStatsSummaryResp) GetTotalPaidAmount() string { + if x != nil { + return x.TotalPaidAmount + } + return "" +} + +func (x *PurchaseStatsSummaryResp) GetTotalUnpaidAmount() string { + if x != nil { + return x.TotalUnpaidAmount + } + return "" +} + +func (x *PurchaseStatsSummaryResp) GetOrderCount() int64 { + if x != nil { + return x.OrderCount + } + return 0 +} + +func (x *PurchaseStatsSummaryResp) GetReceiptCount() int64 { + if x != nil { + return x.ReceiptCount + } + return 0 } type PurchaseStatsBySupplierItem struct { - SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` - SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` - PurchaseAmount string `protobuf:"bytes,3,opt,name=purchase_amount,json=purchaseAmount,proto3" json:"purchase_amount,omitempty"` - PaidAmount string `protobuf:"bytes,4,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` - OrderCount int64 `protobuf:"varint,5,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SupplierId string `protobuf:"bytes,1,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` + SupplierName string `protobuf:"bytes,2,opt,name=supplier_name,json=supplierName,proto3" json:"supplier_name,omitempty"` + PurchaseAmount string `protobuf:"bytes,3,opt,name=purchase_amount,json=purchaseAmount,proto3" json:"purchase_amount,omitempty"` + PaidAmount string `protobuf:"bytes,4,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"` + OrderCount int64 `protobuf:"varint,5,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsBySupplierItem) Reset() { + *x = PurchaseStatsBySupplierItem{} + mi := &file_purchase_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsBySupplierItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsBySupplierItem) ProtoMessage() {} + +func (x *PurchaseStatsBySupplierItem) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsBySupplierItem.ProtoReflect.Descriptor instead. +func (*PurchaseStatsBySupplierItem) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{35} +} + +func (x *PurchaseStatsBySupplierItem) GetSupplierId() string { + if x != nil { + return x.SupplierId + } + return "" +} + +func (x *PurchaseStatsBySupplierItem) GetSupplierName() string { + if x != nil { + return x.SupplierName + } + return "" +} + +func (x *PurchaseStatsBySupplierItem) GetPurchaseAmount() string { + if x != nil { + return x.PurchaseAmount + } + return "" +} + +func (x *PurchaseStatsBySupplierItem) GetPaidAmount() string { + if x != nil { + return x.PaidAmount + } + return "" +} + +func (x *PurchaseStatsBySupplierItem) GetOrderCount() int64 { + if x != nil { + return x.OrderCount + } + return 0 } type PurchaseStatsBySupplierResp struct { - List []*PurchaseStatsBySupplierItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + List []*PurchaseStatsBySupplierItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsBySupplierResp) Reset() { + *x = PurchaseStatsBySupplierResp{} + mi := &file_purchase_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsBySupplierResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsBySupplierResp) ProtoMessage() {} + +func (x *PurchaseStatsBySupplierResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsBySupplierResp.ProtoReflect.Descriptor instead. +func (*PurchaseStatsBySupplierResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{36} +} + +func (x *PurchaseStatsBySupplierResp) GetList() []*PurchaseStatsBySupplierItem { + if x != nil { + return x.List + } + return nil } type PurchaseStatsByProductItem struct { - ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - ProductName string `protobuf:"bytes,2,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` - Spec string `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` - TotalQty string `protobuf:"bytes,5,opt,name=total_qty,json=totalQty,proto3" json:"total_qty,omitempty"` - AvgUnitPrice string `protobuf:"bytes,6,opt,name=avg_unit_price,json=avgUnitPrice,proto3" json:"avg_unit_price,omitempty"` - TotalAmount string `protobuf:"bytes,7,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` + ProductName string `protobuf:"bytes,2,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` + Spec string `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + TotalQty string `protobuf:"bytes,5,opt,name=total_qty,json=totalQty,proto3" json:"total_qty,omitempty"` + AvgUnitPrice string `protobuf:"bytes,6,opt,name=avg_unit_price,json=avgUnitPrice,proto3" json:"avg_unit_price,omitempty"` + TotalAmount string `protobuf:"bytes,7,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsByProductItem) Reset() { + *x = PurchaseStatsByProductItem{} + mi := &file_purchase_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsByProductItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsByProductItem) ProtoMessage() {} + +func (x *PurchaseStatsByProductItem) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsByProductItem.ProtoReflect.Descriptor instead. +func (*PurchaseStatsByProductItem) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{37} +} + +func (x *PurchaseStatsByProductItem) GetProductId() string { + if x != nil { + return x.ProductId + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetProductName() string { + if x != nil { + return x.ProductName + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetSpec() string { + if x != nil { + return x.Spec + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetColor() string { + if x != nil { + return x.Color + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetTotalQty() string { + if x != nil { + return x.TotalQty + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetAvgUnitPrice() string { + if x != nil { + return x.AvgUnitPrice + } + return "" +} + +func (x *PurchaseStatsByProductItem) GetTotalAmount() string { + if x != nil { + return x.TotalAmount + } + return "" } type PurchaseStatsByProductResp struct { - List []*PurchaseStatsByProductItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + List []*PurchaseStatsByProductItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurchaseStatsByProductResp) Reset() { + *x = PurchaseStatsByProductResp{} + mi := &file_purchase_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurchaseStatsByProductResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PurchaseStatsByProductResp) ProtoMessage() {} + +func (x *PurchaseStatsByProductResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PurchaseStatsByProductResp.ProtoReflect.Descriptor instead. +func (*PurchaseStatsByProductResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{38} +} + +func (x *PurchaseStatsByProductResp) GetList() []*PurchaseStatsByProductItem { + if x != nil { + return x.List + } + return nil } -// Common type IdResp struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type Empty struct{} +func (x *IdResp) Reset() { + *x = IdResp{} + mi := &file_purchase_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IdResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IdResp) ProtoMessage() {} + +func (x *IdResp) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IdResp.ProtoReflect.Descriptor instead. +func (*IdResp) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{39} +} + +func (x *IdResp) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type Empty struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Empty) Reset() { + *x = Empty{} + mi := &file_purchase_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_purchase_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_purchase_proto_rawDescGZIP(), []int{40} +} + +var File_purchase_proto protoreflect.FileDescriptor + +const file_purchase_proto_rawDesc = "" + + "\n" + + "\x0epurchase.proto\x12\bpurchase\"\xec\x02\n" + + "\fSupplierInfo\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\x12#\n" + + "\rsupplier_name\x18\x02 \x01(\tR\fsupplierName\x12\x14\n" + + "\x05phone\x18\x03 \x01(\tR\x05phone\x12%\n" + + "\x0epurchase_count\x18\x04 \x01(\x03R\rpurchaseCount\x12#\n" + + "\rdelivered_qty\x18\x05 \x01(\tR\fdeliveredQty\x12%\n" + + "\x0epayable_amount\x18\x06 \x01(\tR\rpayableAmount\x12\x1f\n" + + "\vpaid_amount\x18\a \x01(\tR\n" + + "paidAmount\x12\x16\n" + + "\x06status\x18\b \x01(\x03R\x06status\x12\x16\n" + + "\x06remark\x18\t \x01(\tR\x06remark\x12\x1d\n" + + "\n" + + "created_at\x18\n" + + " \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\v \x01(\tR\tupdatedAt\"f\n" + + "\x11CreateSupplierReq\x12#\n" + + "\rsupplier_name\x18\x01 \x01(\tR\fsupplierName\x12\x14\n" + + "\x05phone\x18\x02 \x01(\tR\x05phone\x12\x16\n" + + "\x06remark\x18\x03 \x01(\tR\x06remark\"\x9f\x01\n" + + "\x11UpdateSupplierReq\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\x12#\n" + + "\rsupplier_name\x18\x02 \x01(\tR\fsupplierName\x12\x14\n" + + "\x05phone\x18\x03 \x01(\tR\x05phone\x12\x16\n" + + "\x06status\x18\x04 \x01(\x03R\x06status\x12\x16\n" + + "\x06remark\x18\x05 \x01(\tR\x06remark\"4\n" + + "\x11DeleteSupplierReq\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\"1\n" + + "\x0eGetSupplierReq\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\"\x7f\n" + + "\x0fListSupplierReq\x12\x12\n" + + "\x04page\x18\x01 \x01(\x03R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12#\n" + + "\rsupplier_name\x18\x03 \x01(\tR\fsupplierName\x12\x16\n" + + "\x06status\x18\x04 \x01(\x03R\x06status\"T\n" + + "\x10ListSupplierResp\x12\x14\n" + + "\x05total\x18\x01 \x01(\x03R\x05total\x12*\n" + + "\x04list\x18\x02 \x03(\v2\x16.purchase.SupplierInfoR\x04list\"\xeb\x04\n" + + "\x11PurchaseOrderInfo\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\x12\x19\n" + + "\border_no\x18\x02 \x01(\tR\aorderNo\x12\x1f\n" + + "\vsupplier_id\x18\x03 \x01(\tR\n" + + "supplierId\x12#\n" + + "\rsupplier_name\x18\x04 \x01(\tR\fsupplierName\x12\x1d\n" + + "\n" + + "order_date\x18\x05 \x01(\tR\torderDate\x12'\n" + + "\x0fcontract_amount\x18\x06 \x01(\tR\x0econtractAmount\x12!\n" + + "\freceived_qty\x18\a \x01(\tR\vreceivedQty\x12\x1f\n" + + "\vpaid_amount\x18\b \x01(\tR\n" + + "paidAmount\x12%\n" + + "\x0epayment_status\x18\t \x01(\x03R\rpaymentStatus\x12%\n" + + "\x0ereceipt_status\x18\n" + + " \x01(\x03R\rreceiptStatus\x12\x1f\n" + + "\vpurchase_by\x18\v \x01(\tR\n" + + "purchaseBy\x12\x18\n" + + "\acreator\x18\f \x01(\tR\acreator\x12\x1a\n" + + "\boperator\x18\r \x01(\tR\boperator\x12\x16\n" + + "\x06status\x18\x0e \x01(\x03R\x06status\x12\x16\n" + + "\x06remark\x18\x0f \x01(\tR\x06remark\x12\x1d\n" + + "\n" + + "created_at\x18\x10 \x01(\tR\tcreatedAt\x12\x1d\n" + + "\n" + + "updated_at\x18\x11 \x01(\tR\tupdatedAt\x12;\n" + + "\adetails\x18\x12 \x03(\v2!.purchase.PurchaseOrderDetailInfoR\adetails\"\xcb\x02\n" + + "\x17PurchaseOrderDetailInfo\x12\x1b\n" + + "\tdetail_id\x18\x01 \x01(\tR\bdetailId\x12\x19\n" + + "\border_id\x18\x02 \x01(\tR\aorderId\x12\x1d\n" + + "\n" + + "product_id\x18\x03 \x01(\tR\tproductId\x12!\n" + + "\fproduct_name\x18\x04 \x01(\tR\vproductName\x12\x12\n" + + "\x04spec\x18\x05 \x01(\tR\x04spec\x12\x14\n" + + "\x05color\x18\x06 \x01(\tR\x05color\x12\x1a\n" + + "\bquantity\x18\a \x01(\tR\bquantity\x12\x1d\n" + + "\n" + + "unit_price\x18\b \x01(\tR\tunitPrice\x12\x16\n" + + "\x06amount\x18\t \x01(\tR\x06amount\x12!\n" + + "\freceived_qty\x18\n" + + " \x01(\tR\vreceivedQty\x12\x16\n" + + "\x06remark\x18\v \x01(\tR\x06remark\"\xd7\x01\n" + + "\x16PurchaseOrderDetailReq\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\x12!\n" + + "\fproduct_name\x18\x02 \x01(\tR\vproductName\x12\x12\n" + + "\x04spec\x18\x03 \x01(\tR\x04spec\x12\x14\n" + + "\x05color\x18\x04 \x01(\tR\x05color\x12\x1a\n" + + "\bquantity\x18\x05 \x01(\tR\bquantity\x12\x1d\n" + + "\n" + + "unit_price\x18\x06 \x01(\tR\tunitPrice\x12\x16\n" + + "\x06remark\x18\a \x01(\tR\x06remark\"\xcd\x01\n" + + "\x16CreatePurchaseOrderReq\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\x12\x1d\n" + + "\n" + + "order_date\x18\x02 \x01(\tR\torderDate\x12\x1f\n" + + "\vpurchase_by\x18\x03 \x01(\tR\n" + + "purchaseBy\x12\x16\n" + + "\x06remark\x18\x04 \x01(\tR\x06remark\x12:\n" + + "\adetails\x18\x05 \x03(\v2 .purchase.PurchaseOrderDetailReqR\adetails\"\xe8\x01\n" + + "\x16UpdatePurchaseOrderReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\x12\x1f\n" + + "\vsupplier_id\x18\x02 \x01(\tR\n" + + "supplierId\x12\x1d\n" + + "\n" + + "order_date\x18\x03 \x01(\tR\torderDate\x12\x1f\n" + + "\vpurchase_by\x18\x04 \x01(\tR\n" + + "purchaseBy\x12\x16\n" + + "\x06remark\x18\x05 \x01(\tR\x06remark\x12:\n" + + "\adetails\x18\x06 \x03(\v2 .purchase.PurchaseOrderDetailReqR\adetails\"4\n" + + "\x17ConfirmPurchaseOrderReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\"3\n" + + "\x16CancelPurchaseOrderReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\"0\n" + + "\x13GetPurchaseOrderReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\"\xba\x01\n" + + "\x14ListPurchaseOrderReq\x12\x12\n" + + "\x04page\x18\x01 \x01(\x03R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12\x1f\n" + + "\vsupplier_id\x18\x03 \x01(\tR\n" + + "supplierId\x12\x16\n" + + "\x06status\x18\x04 \x01(\x03R\x06status\x12\x1d\n" + + "\n" + + "start_date\x18\x05 \x01(\tR\tstartDate\x12\x19\n" + + "\bend_date\x18\x06 \x01(\tR\aendDate\"^\n" + + "\x15ListPurchaseOrderResp\x12\x14\n" + + "\x05total\x18\x01 \x01(\x03R\x05total\x12/\n" + + "\x04list\x18\x02 \x03(\v2\x1b.purchase.PurchaseOrderInfoR\x04list\"\xc0\x02\n" + + "\x13PurchaseReceiptInfo\x12\x1d\n" + + "\n" + + "receipt_id\x18\x01 \x01(\tR\treceiptId\x12\x1d\n" + + "\n" + + "receipt_no\x18\x02 \x01(\tR\treceiptNo\x12\x19\n" + + "\border_id\x18\x03 \x01(\tR\aorderId\x12!\n" + + "\freceipt_date\x18\x04 \x01(\tR\vreceiptDate\x12\x1f\n" + + "\vreceived_by\x18\x05 \x01(\tR\n" + + "receivedBy\x12\x16\n" + + "\x06status\x18\x06 \x01(\x03R\x06status\x12\x16\n" + + "\x06remark\x18\a \x01(\tR\x06remark\x12\x1d\n" + + "\n" + + "created_at\x18\b \x01(\tR\tcreatedAt\x12=\n" + + "\adetails\x18\t \x03(\v2#.purchase.PurchaseReceiptDetailInfoR\adetails\"\xf2\x01\n" + + "\x19PurchaseReceiptDetailInfo\x12\x1b\n" + + "\tdetail_id\x18\x01 \x01(\tR\bdetailId\x12\x1d\n" + + "\n" + + "receipt_id\x18\x02 \x01(\tR\treceiptId\x12&\n" + + "\x0forder_detail_id\x18\x03 \x01(\tR\rorderDetailId\x12\x1d\n" + + "\n" + + "product_id\x18\x04 \x01(\tR\tproductId\x12\x1d\n" + + "\n" + + "actual_qty\x18\x05 \x01(\tR\tactualQty\x12\x1b\n" + + "\tunit_cost\x18\x06 \x01(\tR\bunitCost\x12\x16\n" + + "\x06remark\x18\a \x01(\tR\x06remark\"\xb5\x01\n" + + "\x18PurchaseReceiptDetailReq\x12&\n" + + "\x0forder_detail_id\x18\x01 \x01(\tR\rorderDetailId\x12\x1d\n" + + "\n" + + "product_id\x18\x02 \x01(\tR\tproductId\x12\x1d\n" + + "\n" + + "actual_qty\x18\x03 \x01(\tR\tactualQty\x12\x1b\n" + + "\tunit_cost\x18\x04 \x01(\tR\bunitCost\x12\x16\n" + + "\x06remark\x18\x05 \x01(\tR\x06remark\"\xcf\x01\n" + + "\x18CreatePurchaseReceiptReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\x12!\n" + + "\freceipt_date\x18\x02 \x01(\tR\vreceiptDate\x12\x1f\n" + + "\vreceived_by\x18\x03 \x01(\tR\n" + + "receivedBy\x12\x16\n" + + "\x06remark\x18\x04 \x01(\tR\x06remark\x12<\n" + + "\adetails\x18\x05 \x03(\v2\".purchase.PurchaseReceiptDetailReqR\adetails\":\n" + + "\x19ConfirmPurchaseReceiptReq\x12\x1d\n" + + "\n" + + "receipt_id\x18\x01 \x01(\tR\treceiptId\"6\n" + + "\x15GetPurchaseReceiptReq\x12\x1d\n" + + "\n" + + "receipt_id\x18\x01 \x01(\tR\treceiptId\"\xb6\x01\n" + + "\x16ListPurchaseReceiptReq\x12\x12\n" + + "\x04page\x18\x01 \x01(\x03R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12\x19\n" + + "\border_id\x18\x03 \x01(\tR\aorderId\x12\x16\n" + + "\x06status\x18\x04 \x01(\x03R\x06status\x12\x1d\n" + + "\n" + + "start_date\x18\x05 \x01(\tR\tstartDate\x12\x19\n" + + "\bend_date\x18\x06 \x01(\tR\aendDate\"b\n" + + "\x17ListPurchaseReceiptResp\x12\x14\n" + + "\x05total\x18\x01 \x01(\x03R\x05total\x121\n" + + "\x04list\x18\x02 \x03(\v2\x1d.purchase.PurchaseReceiptInfoR\x04list\"\xa5\x02\n" + + "\x13PurchasePaymentInfo\x12\x1d\n" + + "\n" + + "payment_id\x18\x01 \x01(\tR\tpaymentId\x12\x19\n" + + "\border_id\x18\x02 \x01(\tR\aorderId\x12\x1f\n" + + "\vsupplier_id\x18\x03 \x01(\tR\n" + + "supplierId\x12!\n" + + "\fpayment_date\x18\x04 \x01(\tR\vpaymentDate\x12\x16\n" + + "\x06amount\x18\x05 \x01(\tR\x06amount\x12%\n" + + "\x0epayment_method\x18\x06 \x01(\tR\rpaymentMethod\x12\x1a\n" + + "\boperator\x18\a \x01(\tR\boperator\x12\x16\n" + + "\x06remark\x18\b \x01(\tR\x06remark\x12\x1d\n" + + "\n" + + "created_at\x18\t \x01(\tR\tcreatedAt\"\xaf\x01\n" + + "\x18CreatePurchasePaymentReq\x12\x19\n" + + "\border_id\x18\x01 \x01(\tR\aorderId\x12!\n" + + "\fpayment_date\x18\x02 \x01(\tR\vpaymentDate\x12\x16\n" + + "\x06amount\x18\x03 \x01(\tR\x06amount\x12%\n" + + "\x0epayment_method\x18\x04 \x01(\tR\rpaymentMethod\x12\x16\n" + + "\x06remark\x18\x05 \x01(\tR\x06remark\"6\n" + + "\x15GetPurchasePaymentReq\x12\x1d\n" + + "\n" + + "payment_id\x18\x01 \x01(\tR\tpaymentId\"\xbf\x01\n" + + "\x16ListPurchasePaymentReq\x12\x12\n" + + "\x04page\x18\x01 \x01(\x03R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12\x19\n" + + "\border_id\x18\x03 \x01(\tR\aorderId\x12\x1f\n" + + "\vsupplier_id\x18\x04 \x01(\tR\n" + + "supplierId\x12\x1d\n" + + "\n" + + "start_date\x18\x05 \x01(\tR\tstartDate\x12\x19\n" + + "\bend_date\x18\x06 \x01(\tR\aendDate\"b\n" + + "\x17ListPurchasePaymentResp\x12\x14\n" + + "\x05total\x18\x01 \x01(\x03R\x05total\x121\n" + + "\x04list\x18\x02 \x03(\v2\x1d.purchase.PurchasePaymentInfoR\x04list\"\xec\x02\n" + + "\x10InventoryLogInfo\x12\x15\n" + + "\x06log_id\x18\x01 \x01(\tR\x05logId\x12\x1d\n" + + "\n" + + "product_id\x18\x02 \x01(\tR\tproductId\x12\x1d\n" + + "\n" + + "change_qty\x18\x03 \x01(\tR\tchangeQty\x12#\n" + + "\rbalance_after\x18\x04 \x01(\tR\fbalanceAfter\x12\x1f\n" + + "\vchange_type\x18\x05 \x01(\x03R\n" + + "changeType\x12\x19\n" + + "\bref_type\x18\x06 \x01(\tR\arefType\x12\x15\n" + + "\x06ref_id\x18\a \x01(\tR\x05refId\x12\x1d\n" + + "\n" + + "contact_id\x18\b \x01(\tR\tcontactId\x12\x19\n" + + "\blog_date\x18\t \x01(\tR\alogDate\x12\x1a\n" + + "\boperator\x18\n" + + " \x01(\tR\boperator\x12\x16\n" + + "\x06remark\x18\v \x01(\tR\x06remark\x12\x1d\n" + + "\n" + + "created_at\x18\f \x01(\tR\tcreatedAt\"\xdb\x01\n" + + "\x13ListInventoryLogReq\x12\x12\n" + + "\x04page\x18\x01 \x01(\x03R\x04page\x12\x1b\n" + + "\tpage_size\x18\x02 \x01(\x03R\bpageSize\x12\x1d\n" + + "\n" + + "product_id\x18\x03 \x01(\tR\tproductId\x12\x19\n" + + "\bref_type\x18\x04 \x01(\tR\arefType\x12\x1f\n" + + "\vchange_type\x18\x05 \x01(\x03R\n" + + "changeType\x12\x1d\n" + + "\n" + + "start_date\x18\x06 \x01(\tR\tstartDate\x12\x19\n" + + "\bend_date\x18\a \x01(\tR\aendDate\"\\\n" + + "\x14ListInventoryLogResp\x12\x14\n" + + "\x05total\x18\x01 \x01(\x03R\x05total\x12.\n" + + "\x04list\x18\x02 \x03(\v2\x1a.purchase.InventoryLogInfoR\x04list\"S\n" + + "\x17PurchaseStatsSummaryReq\x12\x1d\n" + + "\n" + + "start_date\x18\x01 \x01(\tR\tstartDate\x12\x19\n" + + "\bend_date\x18\x02 \x01(\tR\aendDate\"\xf0\x01\n" + + "\x18PurchaseStatsSummaryResp\x122\n" + + "\x15total_purchase_amount\x18\x01 \x01(\tR\x13totalPurchaseAmount\x12*\n" + + "\x11total_paid_amount\x18\x02 \x01(\tR\x0ftotalPaidAmount\x12.\n" + + "\x13total_unpaid_amount\x18\x03 \x01(\tR\x11totalUnpaidAmount\x12\x1f\n" + + "\vorder_count\x18\x04 \x01(\x03R\n" + + "orderCount\x12#\n" + + "\rreceipt_count\x18\x05 \x01(\x03R\freceiptCount\"\xce\x01\n" + + "\x1bPurchaseStatsBySupplierItem\x12\x1f\n" + + "\vsupplier_id\x18\x01 \x01(\tR\n" + + "supplierId\x12#\n" + + "\rsupplier_name\x18\x02 \x01(\tR\fsupplierName\x12'\n" + + "\x0fpurchase_amount\x18\x03 \x01(\tR\x0epurchaseAmount\x12\x1f\n" + + "\vpaid_amount\x18\x04 \x01(\tR\n" + + "paidAmount\x12\x1f\n" + + "\vorder_count\x18\x05 \x01(\x03R\n" + + "orderCount\"X\n" + + "\x1bPurchaseStatsBySupplierResp\x129\n" + + "\x04list\x18\x01 \x03(\v2%.purchase.PurchaseStatsBySupplierItemR\x04list\"\xee\x01\n" + + "\x1aPurchaseStatsByProductItem\x12\x1d\n" + + "\n" + + "product_id\x18\x01 \x01(\tR\tproductId\x12!\n" + + "\fproduct_name\x18\x02 \x01(\tR\vproductName\x12\x12\n" + + "\x04spec\x18\x03 \x01(\tR\x04spec\x12\x14\n" + + "\x05color\x18\x04 \x01(\tR\x05color\x12\x1b\n" + + "\ttotal_qty\x18\x05 \x01(\tR\btotalQty\x12$\n" + + "\x0eavg_unit_price\x18\x06 \x01(\tR\favgUnitPrice\x12!\n" + + "\ftotal_amount\x18\a \x01(\tR\vtotalAmount\"V\n" + + "\x1aPurchaseStatsByProductResp\x128\n" + + "\x04list\x18\x01 \x03(\v2$.purchase.PurchaseStatsByProductItemR\x04list\"\x18\n" + + "\x06IdResp\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\a\n" + + "\x05Empty2\xaa\r\n" + + "\x0fPurchaseService\x12?\n" + + "\x0eCreateSupplier\x12\x1b.purchase.CreateSupplierReq\x1a\x10.purchase.IdResp\x12>\n" + + "\x0eUpdateSupplier\x12\x1b.purchase.UpdateSupplierReq\x1a\x0f.purchase.Empty\x12>\n" + + "\x0eDeleteSupplier\x12\x1b.purchase.DeleteSupplierReq\x1a\x0f.purchase.Empty\x12?\n" + + "\vGetSupplier\x12\x18.purchase.GetSupplierReq\x1a\x16.purchase.SupplierInfo\x12E\n" + + "\fListSupplier\x12\x19.purchase.ListSupplierReq\x1a\x1a.purchase.ListSupplierResp\x12I\n" + + "\x13CreatePurchaseOrder\x12 .purchase.CreatePurchaseOrderReq\x1a\x10.purchase.IdResp\x12H\n" + + "\x13UpdatePurchaseOrder\x12 .purchase.UpdatePurchaseOrderReq\x1a\x0f.purchase.Empty\x12J\n" + + "\x14ConfirmPurchaseOrder\x12!.purchase.ConfirmPurchaseOrderReq\x1a\x0f.purchase.Empty\x12H\n" + + "\x13CancelPurchaseOrder\x12 .purchase.CancelPurchaseOrderReq\x1a\x0f.purchase.Empty\x12N\n" + + "\x10GetPurchaseOrder\x12\x1d.purchase.GetPurchaseOrderReq\x1a\x1b.purchase.PurchaseOrderInfo\x12T\n" + + "\x11ListPurchaseOrder\x12\x1e.purchase.ListPurchaseOrderReq\x1a\x1f.purchase.ListPurchaseOrderResp\x12M\n" + + "\x15CreatePurchaseReceipt\x12\".purchase.CreatePurchaseReceiptReq\x1a\x10.purchase.IdResp\x12N\n" + + "\x16ConfirmPurchaseReceipt\x12#.purchase.ConfirmPurchaseReceiptReq\x1a\x0f.purchase.Empty\x12T\n" + + "\x12GetPurchaseReceipt\x12\x1f.purchase.GetPurchaseReceiptReq\x1a\x1d.purchase.PurchaseReceiptInfo\x12Z\n" + + "\x13ListPurchaseReceipt\x12 .purchase.ListPurchaseReceiptReq\x1a!.purchase.ListPurchaseReceiptResp\x12M\n" + + "\x15CreatePurchasePayment\x12\".purchase.CreatePurchasePaymentReq\x1a\x10.purchase.IdResp\x12Z\n" + + "\x13ListPurchasePayment\x12 .purchase.ListPurchasePaymentReq\x1a!.purchase.ListPurchasePaymentResp\x12Q\n" + + "\x10ListInventoryLog\x12\x1d.purchase.ListInventoryLogReq\x1a\x1e.purchase.ListInventoryLogResp\x12`\n" + + "\x17GetPurchaseStatsSummary\x12!.purchase.PurchaseStatsSummaryReq\x1a\".purchase.PurchaseStatsSummaryResp\x12f\n" + + "\x1aGetPurchaseStatsBySupplier\x12!.purchase.PurchaseStatsSummaryReq\x1a%.purchase.PurchaseStatsBySupplierResp\x12d\n" + + "\x19GetPurchaseStatsByProduct\x12!.purchase.PurchaseStatsSummaryReq\x1a$.purchase.PurchaseStatsByProductRespB\x06Z\x04./pbb\x06proto3" + +var ( + file_purchase_proto_rawDescOnce sync.Once + file_purchase_proto_rawDescData []byte +) + +func file_purchase_proto_rawDescGZIP() []byte { + file_purchase_proto_rawDescOnce.Do(func() { + file_purchase_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_purchase_proto_rawDesc), len(file_purchase_proto_rawDesc))) + }) + return file_purchase_proto_rawDescData +} + +var file_purchase_proto_msgTypes = make([]protoimpl.MessageInfo, 41) +var file_purchase_proto_goTypes = []any{ + (*SupplierInfo)(nil), // 0: purchase.SupplierInfo + (*CreateSupplierReq)(nil), // 1: purchase.CreateSupplierReq + (*UpdateSupplierReq)(nil), // 2: purchase.UpdateSupplierReq + (*DeleteSupplierReq)(nil), // 3: purchase.DeleteSupplierReq + (*GetSupplierReq)(nil), // 4: purchase.GetSupplierReq + (*ListSupplierReq)(nil), // 5: purchase.ListSupplierReq + (*ListSupplierResp)(nil), // 6: purchase.ListSupplierResp + (*PurchaseOrderInfo)(nil), // 7: purchase.PurchaseOrderInfo + (*PurchaseOrderDetailInfo)(nil), // 8: purchase.PurchaseOrderDetailInfo + (*PurchaseOrderDetailReq)(nil), // 9: purchase.PurchaseOrderDetailReq + (*CreatePurchaseOrderReq)(nil), // 10: purchase.CreatePurchaseOrderReq + (*UpdatePurchaseOrderReq)(nil), // 11: purchase.UpdatePurchaseOrderReq + (*ConfirmPurchaseOrderReq)(nil), // 12: purchase.ConfirmPurchaseOrderReq + (*CancelPurchaseOrderReq)(nil), // 13: purchase.CancelPurchaseOrderReq + (*GetPurchaseOrderReq)(nil), // 14: purchase.GetPurchaseOrderReq + (*ListPurchaseOrderReq)(nil), // 15: purchase.ListPurchaseOrderReq + (*ListPurchaseOrderResp)(nil), // 16: purchase.ListPurchaseOrderResp + (*PurchaseReceiptInfo)(nil), // 17: purchase.PurchaseReceiptInfo + (*PurchaseReceiptDetailInfo)(nil), // 18: purchase.PurchaseReceiptDetailInfo + (*PurchaseReceiptDetailReq)(nil), // 19: purchase.PurchaseReceiptDetailReq + (*CreatePurchaseReceiptReq)(nil), // 20: purchase.CreatePurchaseReceiptReq + (*ConfirmPurchaseReceiptReq)(nil), // 21: purchase.ConfirmPurchaseReceiptReq + (*GetPurchaseReceiptReq)(nil), // 22: purchase.GetPurchaseReceiptReq + (*ListPurchaseReceiptReq)(nil), // 23: purchase.ListPurchaseReceiptReq + (*ListPurchaseReceiptResp)(nil), // 24: purchase.ListPurchaseReceiptResp + (*PurchasePaymentInfo)(nil), // 25: purchase.PurchasePaymentInfo + (*CreatePurchasePaymentReq)(nil), // 26: purchase.CreatePurchasePaymentReq + (*GetPurchasePaymentReq)(nil), // 27: purchase.GetPurchasePaymentReq + (*ListPurchasePaymentReq)(nil), // 28: purchase.ListPurchasePaymentReq + (*ListPurchasePaymentResp)(nil), // 29: purchase.ListPurchasePaymentResp + (*InventoryLogInfo)(nil), // 30: purchase.InventoryLogInfo + (*ListInventoryLogReq)(nil), // 31: purchase.ListInventoryLogReq + (*ListInventoryLogResp)(nil), // 32: purchase.ListInventoryLogResp + (*PurchaseStatsSummaryReq)(nil), // 33: purchase.PurchaseStatsSummaryReq + (*PurchaseStatsSummaryResp)(nil), // 34: purchase.PurchaseStatsSummaryResp + (*PurchaseStatsBySupplierItem)(nil), // 35: purchase.PurchaseStatsBySupplierItem + (*PurchaseStatsBySupplierResp)(nil), // 36: purchase.PurchaseStatsBySupplierResp + (*PurchaseStatsByProductItem)(nil), // 37: purchase.PurchaseStatsByProductItem + (*PurchaseStatsByProductResp)(nil), // 38: purchase.PurchaseStatsByProductResp + (*IdResp)(nil), // 39: purchase.IdResp + (*Empty)(nil), // 40: purchase.Empty +} +var file_purchase_proto_depIdxs = []int32{ + 0, // 0: purchase.ListSupplierResp.list:type_name -> purchase.SupplierInfo + 8, // 1: purchase.PurchaseOrderInfo.details:type_name -> purchase.PurchaseOrderDetailInfo + 9, // 2: purchase.CreatePurchaseOrderReq.details:type_name -> purchase.PurchaseOrderDetailReq + 9, // 3: purchase.UpdatePurchaseOrderReq.details:type_name -> purchase.PurchaseOrderDetailReq + 7, // 4: purchase.ListPurchaseOrderResp.list:type_name -> purchase.PurchaseOrderInfo + 18, // 5: purchase.PurchaseReceiptInfo.details:type_name -> purchase.PurchaseReceiptDetailInfo + 19, // 6: purchase.CreatePurchaseReceiptReq.details:type_name -> purchase.PurchaseReceiptDetailReq + 17, // 7: purchase.ListPurchaseReceiptResp.list:type_name -> purchase.PurchaseReceiptInfo + 25, // 8: purchase.ListPurchasePaymentResp.list:type_name -> purchase.PurchasePaymentInfo + 30, // 9: purchase.ListInventoryLogResp.list:type_name -> purchase.InventoryLogInfo + 35, // 10: purchase.PurchaseStatsBySupplierResp.list:type_name -> purchase.PurchaseStatsBySupplierItem + 37, // 11: purchase.PurchaseStatsByProductResp.list:type_name -> purchase.PurchaseStatsByProductItem + 1, // 12: purchase.PurchaseService.CreateSupplier:input_type -> purchase.CreateSupplierReq + 2, // 13: purchase.PurchaseService.UpdateSupplier:input_type -> purchase.UpdateSupplierReq + 3, // 14: purchase.PurchaseService.DeleteSupplier:input_type -> purchase.DeleteSupplierReq + 4, // 15: purchase.PurchaseService.GetSupplier:input_type -> purchase.GetSupplierReq + 5, // 16: purchase.PurchaseService.ListSupplier:input_type -> purchase.ListSupplierReq + 10, // 17: purchase.PurchaseService.CreatePurchaseOrder:input_type -> purchase.CreatePurchaseOrderReq + 11, // 18: purchase.PurchaseService.UpdatePurchaseOrder:input_type -> purchase.UpdatePurchaseOrderReq + 12, // 19: purchase.PurchaseService.ConfirmPurchaseOrder:input_type -> purchase.ConfirmPurchaseOrderReq + 13, // 20: purchase.PurchaseService.CancelPurchaseOrder:input_type -> purchase.CancelPurchaseOrderReq + 14, // 21: purchase.PurchaseService.GetPurchaseOrder:input_type -> purchase.GetPurchaseOrderReq + 15, // 22: purchase.PurchaseService.ListPurchaseOrder:input_type -> purchase.ListPurchaseOrderReq + 20, // 23: purchase.PurchaseService.CreatePurchaseReceipt:input_type -> purchase.CreatePurchaseReceiptReq + 21, // 24: purchase.PurchaseService.ConfirmPurchaseReceipt:input_type -> purchase.ConfirmPurchaseReceiptReq + 22, // 25: purchase.PurchaseService.GetPurchaseReceipt:input_type -> purchase.GetPurchaseReceiptReq + 23, // 26: purchase.PurchaseService.ListPurchaseReceipt:input_type -> purchase.ListPurchaseReceiptReq + 26, // 27: purchase.PurchaseService.CreatePurchasePayment:input_type -> purchase.CreatePurchasePaymentReq + 28, // 28: purchase.PurchaseService.ListPurchasePayment:input_type -> purchase.ListPurchasePaymentReq + 31, // 29: purchase.PurchaseService.ListInventoryLog:input_type -> purchase.ListInventoryLogReq + 33, // 30: purchase.PurchaseService.GetPurchaseStatsSummary:input_type -> purchase.PurchaseStatsSummaryReq + 33, // 31: purchase.PurchaseService.GetPurchaseStatsBySupplier:input_type -> purchase.PurchaseStatsSummaryReq + 33, // 32: purchase.PurchaseService.GetPurchaseStatsByProduct:input_type -> purchase.PurchaseStatsSummaryReq + 39, // 33: purchase.PurchaseService.CreateSupplier:output_type -> purchase.IdResp + 40, // 34: purchase.PurchaseService.UpdateSupplier:output_type -> purchase.Empty + 40, // 35: purchase.PurchaseService.DeleteSupplier:output_type -> purchase.Empty + 0, // 36: purchase.PurchaseService.GetSupplier:output_type -> purchase.SupplierInfo + 6, // 37: purchase.PurchaseService.ListSupplier:output_type -> purchase.ListSupplierResp + 39, // 38: purchase.PurchaseService.CreatePurchaseOrder:output_type -> purchase.IdResp + 40, // 39: purchase.PurchaseService.UpdatePurchaseOrder:output_type -> purchase.Empty + 40, // 40: purchase.PurchaseService.ConfirmPurchaseOrder:output_type -> purchase.Empty + 40, // 41: purchase.PurchaseService.CancelPurchaseOrder:output_type -> purchase.Empty + 7, // 42: purchase.PurchaseService.GetPurchaseOrder:output_type -> purchase.PurchaseOrderInfo + 16, // 43: purchase.PurchaseService.ListPurchaseOrder:output_type -> purchase.ListPurchaseOrderResp + 39, // 44: purchase.PurchaseService.CreatePurchaseReceipt:output_type -> purchase.IdResp + 40, // 45: purchase.PurchaseService.ConfirmPurchaseReceipt:output_type -> purchase.Empty + 17, // 46: purchase.PurchaseService.GetPurchaseReceipt:output_type -> purchase.PurchaseReceiptInfo + 24, // 47: purchase.PurchaseService.ListPurchaseReceipt:output_type -> purchase.ListPurchaseReceiptResp + 39, // 48: purchase.PurchaseService.CreatePurchasePayment:output_type -> purchase.IdResp + 29, // 49: purchase.PurchaseService.ListPurchasePayment:output_type -> purchase.ListPurchasePaymentResp + 32, // 50: purchase.PurchaseService.ListInventoryLog:output_type -> purchase.ListInventoryLogResp + 34, // 51: purchase.PurchaseService.GetPurchaseStatsSummary:output_type -> purchase.PurchaseStatsSummaryResp + 36, // 52: purchase.PurchaseService.GetPurchaseStatsBySupplier:output_type -> purchase.PurchaseStatsBySupplierResp + 38, // 53: purchase.PurchaseService.GetPurchaseStatsByProduct:output_type -> purchase.PurchaseStatsByProductResp + 33, // [33:54] is the sub-list for method output_type + 12, // [12:33] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_purchase_proto_init() } +func file_purchase_proto_init() { + if File_purchase_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_purchase_proto_rawDesc), len(file_purchase_proto_rawDesc)), + NumEnums: 0, + NumMessages: 41, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_purchase_proto_goTypes, + DependencyIndexes: file_purchase_proto_depIdxs, + MessageInfos: file_purchase_proto_msgTypes, + }.Build() + File_purchase_proto = out.File + file_purchase_proto_goTypes = nil + file_purchase_proto_depIdxs = nil +} diff --git a/rpc/purchase/pb/purchase_grpc.pb.go b/rpc/purchase/pb/purchase_grpc.pb.go index a1a860d..089bce7 100644 --- a/rpc/purchase/pb/purchase_grpc.pb.go +++ b/rpc/purchase/pb/purchase_grpc.pb.go @@ -1,36 +1,75 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v7.34.1 // source: purchase.proto package pb import ( - "context" + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + PurchaseService_CreateSupplier_FullMethodName = "/purchase.PurchaseService/CreateSupplier" + PurchaseService_UpdateSupplier_FullMethodName = "/purchase.PurchaseService/UpdateSupplier" + PurchaseService_DeleteSupplier_FullMethodName = "/purchase.PurchaseService/DeleteSupplier" + PurchaseService_GetSupplier_FullMethodName = "/purchase.PurchaseService/GetSupplier" + PurchaseService_ListSupplier_FullMethodName = "/purchase.PurchaseService/ListSupplier" + PurchaseService_CreatePurchaseOrder_FullMethodName = "/purchase.PurchaseService/CreatePurchaseOrder" + PurchaseService_UpdatePurchaseOrder_FullMethodName = "/purchase.PurchaseService/UpdatePurchaseOrder" + PurchaseService_ConfirmPurchaseOrder_FullMethodName = "/purchase.PurchaseService/ConfirmPurchaseOrder" + PurchaseService_CancelPurchaseOrder_FullMethodName = "/purchase.PurchaseService/CancelPurchaseOrder" + PurchaseService_GetPurchaseOrder_FullMethodName = "/purchase.PurchaseService/GetPurchaseOrder" + PurchaseService_ListPurchaseOrder_FullMethodName = "/purchase.PurchaseService/ListPurchaseOrder" + PurchaseService_CreatePurchaseReceipt_FullMethodName = "/purchase.PurchaseService/CreatePurchaseReceipt" + PurchaseService_ConfirmPurchaseReceipt_FullMethodName = "/purchase.PurchaseService/ConfirmPurchaseReceipt" + PurchaseService_GetPurchaseReceipt_FullMethodName = "/purchase.PurchaseService/GetPurchaseReceipt" + PurchaseService_ListPurchaseReceipt_FullMethodName = "/purchase.PurchaseService/ListPurchaseReceipt" + PurchaseService_CreatePurchasePayment_FullMethodName = "/purchase.PurchaseService/CreatePurchasePayment" + PurchaseService_ListPurchasePayment_FullMethodName = "/purchase.PurchaseService/ListPurchasePayment" + PurchaseService_ListInventoryLog_FullMethodName = "/purchase.PurchaseService/ListInventoryLog" + PurchaseService_GetPurchaseStatsSummary_FullMethodName = "/purchase.PurchaseService/GetPurchaseStatsSummary" + PurchaseService_GetPurchaseStatsBySupplier_FullMethodName = "/purchase.PurchaseService/GetPurchaseStatsBySupplier" + PurchaseService_GetPurchaseStatsByProduct_FullMethodName = "/purchase.PurchaseService/GetPurchaseStatsByProduct" ) // PurchaseServiceClient is the client API for PurchaseService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type PurchaseServiceClient interface { + // Supplier CRUD CreateSupplier(ctx context.Context, in *CreateSupplierReq, opts ...grpc.CallOption) (*IdResp, error) UpdateSupplier(ctx context.Context, in *UpdateSupplierReq, opts ...grpc.CallOption) (*Empty, error) DeleteSupplier(ctx context.Context, in *DeleteSupplierReq, opts ...grpc.CallOption) (*Empty, error) GetSupplier(ctx context.Context, in *GetSupplierReq, opts ...grpc.CallOption) (*SupplierInfo, error) ListSupplier(ctx context.Context, in *ListSupplierReq, opts ...grpc.CallOption) (*ListSupplierResp, error) + // PurchaseOrder CRUD + status CreatePurchaseOrder(ctx context.Context, in *CreatePurchaseOrderReq, opts ...grpc.CallOption) (*IdResp, error) UpdatePurchaseOrder(ctx context.Context, in *UpdatePurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) ConfirmPurchaseOrder(ctx context.Context, in *ConfirmPurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) CancelPurchaseOrder(ctx context.Context, in *CancelPurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) GetPurchaseOrder(ctx context.Context, in *GetPurchaseOrderReq, opts ...grpc.CallOption) (*PurchaseOrderInfo, error) ListPurchaseOrder(ctx context.Context, in *ListPurchaseOrderReq, opts ...grpc.CallOption) (*ListPurchaseOrderResp, error) + // Receipt CreatePurchaseReceipt(ctx context.Context, in *CreatePurchaseReceiptReq, opts ...grpc.CallOption) (*IdResp, error) ConfirmPurchaseReceipt(ctx context.Context, in *ConfirmPurchaseReceiptReq, opts ...grpc.CallOption) (*Empty, error) GetPurchaseReceipt(ctx context.Context, in *GetPurchaseReceiptReq, opts ...grpc.CallOption) (*PurchaseReceiptInfo, error) ListPurchaseReceipt(ctx context.Context, in *ListPurchaseReceiptReq, opts ...grpc.CallOption) (*ListPurchaseReceiptResp, error) + // Payment CreatePurchasePayment(ctx context.Context, in *CreatePurchasePaymentReq, opts ...grpc.CallOption) (*IdResp, error) ListPurchasePayment(ctx context.Context, in *ListPurchasePaymentReq, opts ...grpc.CallOption) (*ListPurchasePaymentResp, error) + // InventoryLog ListInventoryLog(ctx context.Context, in *ListInventoryLogReq, opts ...grpc.CallOption) (*ListInventoryLogResp, error) + // Stats GetPurchaseStatsSummary(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsSummaryResp, error) GetPurchaseStatsBySupplier(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsBySupplierResp, error) GetPurchaseStatsByProduct(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsByProductResp, error) @@ -45,157 +84,254 @@ func NewPurchaseServiceClient(cc grpc.ClientConnInterface) PurchaseServiceClient } func (c *purchaseServiceClient) CreateSupplier(ctx context.Context, in *CreateSupplierReq, opts ...grpc.CallOption) (*IdResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IdResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/CreateSupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_CreateSupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) UpdateSupplier(ctx context.Context, in *UpdateSupplierReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/UpdateSupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_UpdateSupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) DeleteSupplier(ctx context.Context, in *DeleteSupplierReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/DeleteSupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_DeleteSupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetSupplier(ctx context.Context, in *GetSupplierReq, opts ...grpc.CallOption) (*SupplierInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SupplierInfo) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetSupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetSupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ListSupplier(ctx context.Context, in *ListSupplierReq, opts ...grpc.CallOption) (*ListSupplierResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSupplierResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ListSupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ListSupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) CreatePurchaseOrder(ctx context.Context, in *CreatePurchaseOrderReq, opts ...grpc.CallOption) (*IdResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IdResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/CreatePurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_CreatePurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) UpdatePurchaseOrder(ctx context.Context, in *UpdatePurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/UpdatePurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_UpdatePurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ConfirmPurchaseOrder(ctx context.Context, in *ConfirmPurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ConfirmPurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ConfirmPurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) CancelPurchaseOrder(ctx context.Context, in *CancelPurchaseOrderReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/CancelPurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_CancelPurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetPurchaseOrder(ctx context.Context, in *GetPurchaseOrderReq, opts ...grpc.CallOption) (*PurchaseOrderInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseOrderInfo) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetPurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetPurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ListPurchaseOrder(ctx context.Context, in *ListPurchaseOrderReq, opts ...grpc.CallOption) (*ListPurchaseOrderResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPurchaseOrderResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ListPurchaseOrder", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ListPurchaseOrder_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) CreatePurchaseReceipt(ctx context.Context, in *CreatePurchaseReceiptReq, opts ...grpc.CallOption) (*IdResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IdResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/CreatePurchaseReceipt", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_CreatePurchaseReceipt_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ConfirmPurchaseReceipt(ctx context.Context, in *ConfirmPurchaseReceiptReq, opts ...grpc.CallOption) (*Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Empty) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ConfirmPurchaseReceipt", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ConfirmPurchaseReceipt_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetPurchaseReceipt(ctx context.Context, in *GetPurchaseReceiptReq, opts ...grpc.CallOption) (*PurchaseReceiptInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseReceiptInfo) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetPurchaseReceipt", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetPurchaseReceipt_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ListPurchaseReceipt(ctx context.Context, in *ListPurchaseReceiptReq, opts ...grpc.CallOption) (*ListPurchaseReceiptResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPurchaseReceiptResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ListPurchaseReceipt", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ListPurchaseReceipt_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) CreatePurchasePayment(ctx context.Context, in *CreatePurchasePaymentReq, opts ...grpc.CallOption) (*IdResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IdResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/CreatePurchasePayment", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_CreatePurchasePayment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ListPurchasePayment(ctx context.Context, in *ListPurchasePaymentReq, opts ...grpc.CallOption) (*ListPurchasePaymentResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPurchasePaymentResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ListPurchasePayment", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ListPurchasePayment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) ListInventoryLog(ctx context.Context, in *ListInventoryLogReq, opts ...grpc.CallOption) (*ListInventoryLogResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListInventoryLogResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/ListInventoryLog", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_ListInventoryLog_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetPurchaseStatsSummary(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsSummaryResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseStatsSummaryResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetPurchaseStatsSummary", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetPurchaseStatsSummary_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetPurchaseStatsBySupplier(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsBySupplierResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseStatsBySupplierResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetPurchaseStatsBySupplier", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetPurchaseStatsBySupplier_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } func (c *purchaseServiceClient) GetPurchaseStatsByProduct(ctx context.Context, in *PurchaseStatsSummaryReq, opts ...grpc.CallOption) (*PurchaseStatsByProductResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PurchaseStatsByProductResp) - err := c.cc.Invoke(ctx, "/purchase.PurchaseService/GetPurchaseStatsByProduct", in, out, opts...) - return out, err + err := c.cc.Invoke(ctx, PurchaseService_GetPurchaseStatsByProduct_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil } // PurchaseServiceServer is the server API for PurchaseService service. +// All implementations must embed UnimplementedPurchaseServiceServer +// for forward compatibility. type PurchaseServiceServer interface { + // Supplier CRUD CreateSupplier(context.Context, *CreateSupplierReq) (*IdResp, error) UpdateSupplier(context.Context, *UpdateSupplierReq) (*Empty, error) DeleteSupplier(context.Context, *DeleteSupplierReq) (*Empty, error) GetSupplier(context.Context, *GetSupplierReq) (*SupplierInfo, error) ListSupplier(context.Context, *ListSupplierReq) (*ListSupplierResp, error) + // PurchaseOrder CRUD + status CreatePurchaseOrder(context.Context, *CreatePurchaseOrderReq) (*IdResp, error) UpdatePurchaseOrder(context.Context, *UpdatePurchaseOrderReq) (*Empty, error) ConfirmPurchaseOrder(context.Context, *ConfirmPurchaseOrderReq) (*Empty, error) CancelPurchaseOrder(context.Context, *CancelPurchaseOrderReq) (*Empty, error) GetPurchaseOrder(context.Context, *GetPurchaseOrderReq) (*PurchaseOrderInfo, error) ListPurchaseOrder(context.Context, *ListPurchaseOrderReq) (*ListPurchaseOrderResp, error) + // Receipt CreatePurchaseReceipt(context.Context, *CreatePurchaseReceiptReq) (*IdResp, error) ConfirmPurchaseReceipt(context.Context, *ConfirmPurchaseReceiptReq) (*Empty, error) GetPurchaseReceipt(context.Context, *GetPurchaseReceiptReq) (*PurchaseReceiptInfo, error) ListPurchaseReceipt(context.Context, *ListPurchaseReceiptReq) (*ListPurchaseReceiptResp, error) + // Payment CreatePurchasePayment(context.Context, *CreatePurchasePaymentReq) (*IdResp, error) ListPurchasePayment(context.Context, *ListPurchasePaymentReq) (*ListPurchasePaymentResp, error) + // InventoryLog ListInventoryLog(context.Context, *ListInventoryLogReq) (*ListInventoryLogResp, error) + // Stats GetPurchaseStatsSummary(context.Context, *PurchaseStatsSummaryReq) (*PurchaseStatsSummaryResp, error) GetPurchaseStatsBySupplier(context.Context, *PurchaseStatsSummaryReq) (*PurchaseStatsBySupplierResp, error) GetPurchaseStatsByProduct(context.Context, *PurchaseStatsSummaryReq) (*PurchaseStatsByProductResp, error) mustEmbedUnimplementedPurchaseServiceServer() } +// UnimplementedPurchaseServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. type UnimplementedPurchaseServiceServer struct{} func (UnimplementedPurchaseServiceServer) CreateSupplier(context.Context, *CreateSupplierReq) (*IdResp, error) { @@ -262,45 +398,26 @@ func (UnimplementedPurchaseServiceServer) GetPurchaseStatsByProduct(context.Cont return nil, status.Errorf(codes.Unimplemented, "method GetPurchaseStatsByProduct not implemented") } func (UnimplementedPurchaseServiceServer) mustEmbedUnimplementedPurchaseServiceServer() {} +func (UnimplementedPurchaseServiceServer) testEmbeddedByValue() {} +// UnsafePurchaseServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PurchaseServiceServer will +// result in compilation errors. type UnsafePurchaseServiceServer interface { mustEmbedUnimplementedPurchaseServiceServer() } func RegisterPurchaseServiceServer(s grpc.ServiceRegistrar, srv PurchaseServiceServer) { + // If the following call pancis, it indicates UnimplementedPurchaseServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PurchaseService_ServiceDesc, srv) } -var PurchaseService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "purchase.PurchaseService", - HandlerType: (*PurchaseServiceServer)(nil), - Methods: []grpc.MethodDesc{ - {MethodName: "CreateSupplier", Handler: _PurchaseService_CreateSupplier_Handler}, - {MethodName: "UpdateSupplier", Handler: _PurchaseService_UpdateSupplier_Handler}, - {MethodName: "DeleteSupplier", Handler: _PurchaseService_DeleteSupplier_Handler}, - {MethodName: "GetSupplier", Handler: _PurchaseService_GetSupplier_Handler}, - {MethodName: "ListSupplier", Handler: _PurchaseService_ListSupplier_Handler}, - {MethodName: "CreatePurchaseOrder", Handler: _PurchaseService_CreatePurchaseOrder_Handler}, - {MethodName: "UpdatePurchaseOrder", Handler: _PurchaseService_UpdatePurchaseOrder_Handler}, - {MethodName: "ConfirmPurchaseOrder", Handler: _PurchaseService_ConfirmPurchaseOrder_Handler}, - {MethodName: "CancelPurchaseOrder", Handler: _PurchaseService_CancelPurchaseOrder_Handler}, - {MethodName: "GetPurchaseOrder", Handler: _PurchaseService_GetPurchaseOrder_Handler}, - {MethodName: "ListPurchaseOrder", Handler: _PurchaseService_ListPurchaseOrder_Handler}, - {MethodName: "CreatePurchaseReceipt", Handler: _PurchaseService_CreatePurchaseReceipt_Handler}, - {MethodName: "ConfirmPurchaseReceipt", Handler: _PurchaseService_ConfirmPurchaseReceipt_Handler}, - {MethodName: "GetPurchaseReceipt", Handler: _PurchaseService_GetPurchaseReceipt_Handler}, - {MethodName: "ListPurchaseReceipt", Handler: _PurchaseService_ListPurchaseReceipt_Handler}, - {MethodName: "CreatePurchasePayment", Handler: _PurchaseService_CreatePurchasePayment_Handler}, - {MethodName: "ListPurchasePayment", Handler: _PurchaseService_ListPurchasePayment_Handler}, - {MethodName: "ListInventoryLog", Handler: _PurchaseService_ListInventoryLog_Handler}, - {MethodName: "GetPurchaseStatsSummary", Handler: _PurchaseService_GetPurchaseStatsSummary_Handler}, - {MethodName: "GetPurchaseStatsBySupplier", Handler: _PurchaseService_GetPurchaseStatsBySupplier_Handler}, - {MethodName: "GetPurchaseStatsByProduct", Handler: _PurchaseService_GetPurchaseStatsByProduct_Handler}, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "purchase.proto", -} - func _PurchaseService_CreateSupplier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateSupplierReq) if err := dec(in); err != nil { @@ -309,7 +426,10 @@ func _PurchaseService_CreateSupplier_Handler(srv interface{}, ctx context.Contex if interceptor == nil { return srv.(PurchaseServiceServer).CreateSupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/CreateSupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_CreateSupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).CreateSupplier(ctx, req.(*CreateSupplierReq)) } @@ -324,7 +444,10 @@ func _PurchaseService_UpdateSupplier_Handler(srv interface{}, ctx context.Contex if interceptor == nil { return srv.(PurchaseServiceServer).UpdateSupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/UpdateSupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_UpdateSupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).UpdateSupplier(ctx, req.(*UpdateSupplierReq)) } @@ -339,7 +462,10 @@ func _PurchaseService_DeleteSupplier_Handler(srv interface{}, ctx context.Contex if interceptor == nil { return srv.(PurchaseServiceServer).DeleteSupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/DeleteSupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_DeleteSupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).DeleteSupplier(ctx, req.(*DeleteSupplierReq)) } @@ -354,7 +480,10 @@ func _PurchaseService_GetSupplier_Handler(srv interface{}, ctx context.Context, if interceptor == nil { return srv.(PurchaseServiceServer).GetSupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetSupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetSupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetSupplier(ctx, req.(*GetSupplierReq)) } @@ -369,7 +498,10 @@ func _PurchaseService_ListSupplier_Handler(srv interface{}, ctx context.Context, if interceptor == nil { return srv.(PurchaseServiceServer).ListSupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ListSupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ListSupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ListSupplier(ctx, req.(*ListSupplierReq)) } @@ -384,7 +516,10 @@ func _PurchaseService_CreatePurchaseOrder_Handler(srv interface{}, ctx context.C if interceptor == nil { return srv.(PurchaseServiceServer).CreatePurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/CreatePurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_CreatePurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).CreatePurchaseOrder(ctx, req.(*CreatePurchaseOrderReq)) } @@ -399,7 +534,10 @@ func _PurchaseService_UpdatePurchaseOrder_Handler(srv interface{}, ctx context.C if interceptor == nil { return srv.(PurchaseServiceServer).UpdatePurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/UpdatePurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_UpdatePurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).UpdatePurchaseOrder(ctx, req.(*UpdatePurchaseOrderReq)) } @@ -414,7 +552,10 @@ func _PurchaseService_ConfirmPurchaseOrder_Handler(srv interface{}, ctx context. if interceptor == nil { return srv.(PurchaseServiceServer).ConfirmPurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ConfirmPurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ConfirmPurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ConfirmPurchaseOrder(ctx, req.(*ConfirmPurchaseOrderReq)) } @@ -429,7 +570,10 @@ func _PurchaseService_CancelPurchaseOrder_Handler(srv interface{}, ctx context.C if interceptor == nil { return srv.(PurchaseServiceServer).CancelPurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/CancelPurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_CancelPurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).CancelPurchaseOrder(ctx, req.(*CancelPurchaseOrderReq)) } @@ -444,7 +588,10 @@ func _PurchaseService_GetPurchaseOrder_Handler(srv interface{}, ctx context.Cont if interceptor == nil { return srv.(PurchaseServiceServer).GetPurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetPurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetPurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetPurchaseOrder(ctx, req.(*GetPurchaseOrderReq)) } @@ -459,7 +606,10 @@ func _PurchaseService_ListPurchaseOrder_Handler(srv interface{}, ctx context.Con if interceptor == nil { return srv.(PurchaseServiceServer).ListPurchaseOrder(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ListPurchaseOrder"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ListPurchaseOrder_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ListPurchaseOrder(ctx, req.(*ListPurchaseOrderReq)) } @@ -474,7 +624,10 @@ func _PurchaseService_CreatePurchaseReceipt_Handler(srv interface{}, ctx context if interceptor == nil { return srv.(PurchaseServiceServer).CreatePurchaseReceipt(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/CreatePurchaseReceipt"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_CreatePurchaseReceipt_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).CreatePurchaseReceipt(ctx, req.(*CreatePurchaseReceiptReq)) } @@ -489,7 +642,10 @@ func _PurchaseService_ConfirmPurchaseReceipt_Handler(srv interface{}, ctx contex if interceptor == nil { return srv.(PurchaseServiceServer).ConfirmPurchaseReceipt(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ConfirmPurchaseReceipt"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ConfirmPurchaseReceipt_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ConfirmPurchaseReceipt(ctx, req.(*ConfirmPurchaseReceiptReq)) } @@ -504,7 +660,10 @@ func _PurchaseService_GetPurchaseReceipt_Handler(srv interface{}, ctx context.Co if interceptor == nil { return srv.(PurchaseServiceServer).GetPurchaseReceipt(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetPurchaseReceipt"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetPurchaseReceipt_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetPurchaseReceipt(ctx, req.(*GetPurchaseReceiptReq)) } @@ -519,7 +678,10 @@ func _PurchaseService_ListPurchaseReceipt_Handler(srv interface{}, ctx context.C if interceptor == nil { return srv.(PurchaseServiceServer).ListPurchaseReceipt(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ListPurchaseReceipt"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ListPurchaseReceipt_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ListPurchaseReceipt(ctx, req.(*ListPurchaseReceiptReq)) } @@ -534,7 +696,10 @@ func _PurchaseService_CreatePurchasePayment_Handler(srv interface{}, ctx context if interceptor == nil { return srv.(PurchaseServiceServer).CreatePurchasePayment(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/CreatePurchasePayment"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_CreatePurchasePayment_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).CreatePurchasePayment(ctx, req.(*CreatePurchasePaymentReq)) } @@ -549,7 +714,10 @@ func _PurchaseService_ListPurchasePayment_Handler(srv interface{}, ctx context.C if interceptor == nil { return srv.(PurchaseServiceServer).ListPurchasePayment(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ListPurchasePayment"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ListPurchasePayment_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ListPurchasePayment(ctx, req.(*ListPurchasePaymentReq)) } @@ -564,7 +732,10 @@ func _PurchaseService_ListInventoryLog_Handler(srv interface{}, ctx context.Cont if interceptor == nil { return srv.(PurchaseServiceServer).ListInventoryLog(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/ListInventoryLog"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_ListInventoryLog_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).ListInventoryLog(ctx, req.(*ListInventoryLogReq)) } @@ -579,7 +750,10 @@ func _PurchaseService_GetPurchaseStatsSummary_Handler(srv interface{}, ctx conte if interceptor == nil { return srv.(PurchaseServiceServer).GetPurchaseStatsSummary(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetPurchaseStatsSummary"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetPurchaseStatsSummary_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetPurchaseStatsSummary(ctx, req.(*PurchaseStatsSummaryReq)) } @@ -594,7 +768,10 @@ func _PurchaseService_GetPurchaseStatsBySupplier_Handler(srv interface{}, ctx co if interceptor == nil { return srv.(PurchaseServiceServer).GetPurchaseStatsBySupplier(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetPurchaseStatsBySupplier"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetPurchaseStatsBySupplier_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetPurchaseStatsBySupplier(ctx, req.(*PurchaseStatsSummaryReq)) } @@ -609,9 +786,108 @@ func _PurchaseService_GetPurchaseStatsByProduct_Handler(srv interface{}, ctx con if interceptor == nil { return srv.(PurchaseServiceServer).GetPurchaseStatsByProduct(ctx, in) } - info := &grpc.UnaryServerInfo{Server: srv, FullMethod: "/purchase.PurchaseService/GetPurchaseStatsByProduct"} + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PurchaseService_GetPurchaseStatsByProduct_FullMethodName, + } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurchaseServiceServer).GetPurchaseStatsByProduct(ctx, req.(*PurchaseStatsSummaryReq)) } return interceptor(ctx, in, info, handler) } + +// PurchaseService_ServiceDesc is the grpc.ServiceDesc for PurchaseService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PurchaseService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "purchase.PurchaseService", + HandlerType: (*PurchaseServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateSupplier", + Handler: _PurchaseService_CreateSupplier_Handler, + }, + { + MethodName: "UpdateSupplier", + Handler: _PurchaseService_UpdateSupplier_Handler, + }, + { + MethodName: "DeleteSupplier", + Handler: _PurchaseService_DeleteSupplier_Handler, + }, + { + MethodName: "GetSupplier", + Handler: _PurchaseService_GetSupplier_Handler, + }, + { + MethodName: "ListSupplier", + Handler: _PurchaseService_ListSupplier_Handler, + }, + { + MethodName: "CreatePurchaseOrder", + Handler: _PurchaseService_CreatePurchaseOrder_Handler, + }, + { + MethodName: "UpdatePurchaseOrder", + Handler: _PurchaseService_UpdatePurchaseOrder_Handler, + }, + { + MethodName: "ConfirmPurchaseOrder", + Handler: _PurchaseService_ConfirmPurchaseOrder_Handler, + }, + { + MethodName: "CancelPurchaseOrder", + Handler: _PurchaseService_CancelPurchaseOrder_Handler, + }, + { + MethodName: "GetPurchaseOrder", + Handler: _PurchaseService_GetPurchaseOrder_Handler, + }, + { + MethodName: "ListPurchaseOrder", + Handler: _PurchaseService_ListPurchaseOrder_Handler, + }, + { + MethodName: "CreatePurchaseReceipt", + Handler: _PurchaseService_CreatePurchaseReceipt_Handler, + }, + { + MethodName: "ConfirmPurchaseReceipt", + Handler: _PurchaseService_ConfirmPurchaseReceipt_Handler, + }, + { + MethodName: "GetPurchaseReceipt", + Handler: _PurchaseService_GetPurchaseReceipt_Handler, + }, + { + MethodName: "ListPurchaseReceipt", + Handler: _PurchaseService_ListPurchaseReceipt_Handler, + }, + { + MethodName: "CreatePurchasePayment", + Handler: _PurchaseService_CreatePurchasePayment_Handler, + }, + { + MethodName: "ListPurchasePayment", + Handler: _PurchaseService_ListPurchasePayment_Handler, + }, + { + MethodName: "ListInventoryLog", + Handler: _PurchaseService_ListInventoryLog_Handler, + }, + { + MethodName: "GetPurchaseStatsSummary", + Handler: _PurchaseService_GetPurchaseStatsSummary_Handler, + }, + { + MethodName: "GetPurchaseStatsBySupplier", + Handler: _PurchaseService_GetPurchaseStatsBySupplier_Handler, + }, + { + MethodName: "GetPurchaseStatsByProduct", + Handler: _PurchaseService_GetPurchaseStatsByProduct_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "purchase.proto", +}