Documentation ¶
Index ¶
- Variables
- func RegisterPurchaseReturnServiceServer(s grpc.ServiceRegistrar, srv PurchaseReturnServiceServer)
- func RegisterPurchaseServiceServer(s grpc.ServiceRegistrar, srv PurchaseServiceServer)
- func RegisterSupplierServiceServer(s grpc.ServiceRegistrar, srv SupplierServiceServer)
- type Id
- type ListPurchaseRequest
- func (*ListPurchaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPurchaseRequest) GetBranchId() string
- func (x *ListPurchaseRequest) GetPagination() *Pagination
- func (x *ListPurchaseRequest) GetSupplierId() string
- func (*ListPurchaseRequest) ProtoMessage()
- func (x *ListPurchaseRequest) ProtoReflect() protoreflect.Message
- func (x *ListPurchaseRequest) Reset()
- func (x *ListPurchaseRequest) String() string
- type ListPurchaseResponse
- func (*ListPurchaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPurchaseResponse) GetPagination() *PurchasePaginationResponse
- func (x *ListPurchaseResponse) GetPurchase() *Purchase
- func (*ListPurchaseResponse) ProtoMessage()
- func (x *ListPurchaseResponse) ProtoReflect() protoreflect.Message
- func (x *ListPurchaseResponse) Reset()
- func (x *ListPurchaseResponse) String() string
- type ListPurchaseReturnRequest
- func (*ListPurchaseReturnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPurchaseReturnRequest) GetBranchId() string
- func (x *ListPurchaseReturnRequest) GetPagination() *Pagination
- func (x *ListPurchaseReturnRequest) GetPurchaseId() string
- func (*ListPurchaseReturnRequest) ProtoMessage()
- func (x *ListPurchaseReturnRequest) ProtoReflect() protoreflect.Message
- func (x *ListPurchaseReturnRequest) Reset()
- func (x *ListPurchaseReturnRequest) String() string
- type ListPurchaseReturnResponse
- func (*ListPurchaseReturnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPurchaseReturnResponse) GetPagination() *PurchaseReturnPaginationResponse
- func (x *ListPurchaseReturnResponse) GetPurchaseReturn() *PurchaseReturn
- func (*ListPurchaseReturnResponse) ProtoMessage()
- func (x *ListPurchaseReturnResponse) ProtoReflect() protoreflect.Message
- func (x *ListPurchaseReturnResponse) Reset()
- func (x *ListPurchaseReturnResponse) String() string
- type ListSupplierRequest
- func (*ListSupplierRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSupplierRequest) GetPagination() *Pagination
- func (*ListSupplierRequest) ProtoMessage()
- func (x *ListSupplierRequest) ProtoReflect() protoreflect.Message
- func (x *ListSupplierRequest) Reset()
- func (x *ListSupplierRequest) String() string
- type ListSupplierResponse
- func (*ListSupplierResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSupplierResponse) GetPagination() *SupplierPaginationResponse
- func (x *ListSupplierResponse) GetSupplier() *Supplier
- func (*ListSupplierResponse) ProtoMessage()
- func (x *ListSupplierResponse) ProtoReflect() protoreflect.Message
- func (x *ListSupplierResponse) Reset()
- func (x *ListSupplierResponse) String() string
- type Message
- type MyBoolean
- type MyEmpty
- type MyString
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetLimit() uint32
- func (x *Pagination) GetOffset() uint32
- func (x *Pagination) GetOrderBy() string
- func (x *Pagination) GetPage() uint32
- func (x *Pagination) GetSearch() string
- func (x *Pagination) GetSort() Pagination_Sort
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type PaginationResponse
- func (*PaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationResponse) GetCount() uint32
- func (x *PaginationResponse) GetPagination() *Pagination
- func (*PaginationResponse) ProtoMessage()
- func (x *PaginationResponse) ProtoReflect() protoreflect.Message
- func (x *PaginationResponse) Reset()
- func (x *PaginationResponse) String() string
- type Pagination_Sort
- func (Pagination_Sort) Descriptor() protoreflect.EnumDescriptor
- func (x Pagination_Sort) Enum() *Pagination_Sort
- func (Pagination_Sort) EnumDescriptor() ([]byte, []int)deprecated
- func (x Pagination_Sort) Number() protoreflect.EnumNumber
- func (x Pagination_Sort) String() string
- func (Pagination_Sort) Type() protoreflect.EnumType
- type Purchase
- func (*Purchase) Descriptor() ([]byte, []int)deprecated
- func (x *Purchase) GetAdditionalDiscAmount() float64
- func (x *Purchase) GetAdditionalDiscPercentage() float32
- func (x *Purchase) GetBranchId() string
- func (x *Purchase) GetBranchName() string
- func (x *Purchase) GetCode() string
- func (x *Purchase) GetCreatedAt() string
- func (x *Purchase) GetCreatedBy() string
- func (x *Purchase) GetDetails() []*PurchaseDetail
- func (x *Purchase) GetId() string
- func (x *Purchase) GetPrice() float64
- func (x *Purchase) GetPurchaseDate() string
- func (x *Purchase) GetRemark() string
- func (x *Purchase) GetSupplier() *Supplier
- func (x *Purchase) GetTotalPrice() float64
- func (x *Purchase) GetUpdatedAt() string
- func (x *Purchase) GetUpdatedBy() string
- func (*Purchase) ProtoMessage()
- func (x *Purchase) ProtoReflect() protoreflect.Message
- func (x *Purchase) Reset()
- func (x *Purchase) String() string
- type PurchaseDetail
- func (*PurchaseDetail) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseDetail) GetDiscAmount() float64
- func (x *PurchaseDetail) GetDiscPercentage() float32
- func (x *PurchaseDetail) GetId() string
- func (x *PurchaseDetail) GetPrice() float64
- func (x *PurchaseDetail) GetProductCode() string
- func (x *PurchaseDetail) GetProductId() string
- func (x *PurchaseDetail) GetProductName() string
- func (x *PurchaseDetail) GetPurchaseId() string
- func (x *PurchaseDetail) GetQuantity() int32
- func (x *PurchaseDetail) GetTotalPrice() float64
- func (*PurchaseDetail) ProtoMessage()
- func (x *PurchaseDetail) ProtoReflect() protoreflect.Message
- func (x *PurchaseDetail) Reset()
- func (x *PurchaseDetail) String() string
- type PurchasePaginationResponse
- func (*PurchasePaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PurchasePaginationResponse) GetBranchId() string
- func (x *PurchasePaginationResponse) GetCount() uint32
- func (x *PurchasePaginationResponse) GetPagination() *Pagination
- func (x *PurchasePaginationResponse) GetSupplierId() string
- func (*PurchasePaginationResponse) ProtoMessage()
- func (x *PurchasePaginationResponse) ProtoReflect() protoreflect.Message
- func (x *PurchasePaginationResponse) Reset()
- func (x *PurchasePaginationResponse) String() string
- type PurchaseReturn
- func (*PurchaseReturn) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseReturn) GetAdditionalDiscAmount() float64
- func (x *PurchaseReturn) GetAdditionalDiscPercentage() float32
- func (x *PurchaseReturn) GetBranchId() string
- func (x *PurchaseReturn) GetBranchName() string
- func (x *PurchaseReturn) GetCode() string
- func (x *PurchaseReturn) GetCreatedAt() string
- func (x *PurchaseReturn) GetCreatedBy() string
- func (x *PurchaseReturn) GetDetails() []*PurchaseReturnDetail
- func (x *PurchaseReturn) GetId() string
- func (x *PurchaseReturn) GetPrice() float64
- func (x *PurchaseReturn) GetPurchase() *Purchase
- func (x *PurchaseReturn) GetRemark() string
- func (x *PurchaseReturn) GetReturnDate() string
- func (x *PurchaseReturn) GetTotalPrice() float64
- func (x *PurchaseReturn) GetUpdatedAt() string
- func (x *PurchaseReturn) GetUpdatedBy() string
- func (*PurchaseReturn) ProtoMessage()
- func (x *PurchaseReturn) ProtoReflect() protoreflect.Message
- func (x *PurchaseReturn) Reset()
- func (x *PurchaseReturn) String() string
- type PurchaseReturnDetail
- func (*PurchaseReturnDetail) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseReturnDetail) GetDiscAmount() float64
- func (x *PurchaseReturnDetail) GetDiscPercentage() float32
- func (x *PurchaseReturnDetail) GetId() string
- func (x *PurchaseReturnDetail) GetPrice() float64
- func (x *PurchaseReturnDetail) GetProductCode() string
- func (x *PurchaseReturnDetail) GetProductId() string
- func (x *PurchaseReturnDetail) GetProductName() string
- func (x *PurchaseReturnDetail) GetPurchaseReturnId() string
- func (x *PurchaseReturnDetail) GetQuantity() int32
- func (x *PurchaseReturnDetail) GetTotalPrice() float64
- func (*PurchaseReturnDetail) ProtoMessage()
- func (x *PurchaseReturnDetail) ProtoReflect() protoreflect.Message
- func (x *PurchaseReturnDetail) Reset()
- func (x *PurchaseReturnDetail) String() string
- type PurchaseReturnPaginationResponse
- func (*PurchaseReturnPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseReturnPaginationResponse) GetBranchId() string
- func (x *PurchaseReturnPaginationResponse) GetCount() uint32
- func (x *PurchaseReturnPaginationResponse) GetPagination() *Pagination
- func (x *PurchaseReturnPaginationResponse) GetPurchaseId() string
- func (*PurchaseReturnPaginationResponse) ProtoMessage()
- func (x *PurchaseReturnPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *PurchaseReturnPaginationResponse) Reset()
- func (x *PurchaseReturnPaginationResponse) String() string
- type PurchaseReturnServiceClient
- type PurchaseReturnServiceServer
- type PurchaseReturnService_PurchaseReturnListClient
- type PurchaseReturnService_PurchaseReturnListServer
- type PurchaseServiceClient
- type PurchaseServiceServer
- type PurchaseService_PurchaseListClient
- type PurchaseService_PurchaseListServer
- type Supplier
- func (*Supplier) Descriptor() ([]byte, []int)deprecated
- func (x *Supplier) GetAddress() string
- func (x *Supplier) GetCode() string
- func (x *Supplier) GetCreatedAt() string
- func (x *Supplier) GetCreatedBy() string
- func (x *Supplier) GetId() string
- func (x *Supplier) GetName() string
- func (x *Supplier) GetPhone() string
- func (x *Supplier) GetUpdatedAt() string
- func (x *Supplier) GetUpdatedBy() string
- func (*Supplier) ProtoMessage()
- func (x *Supplier) ProtoReflect() protoreflect.Message
- func (x *Supplier) Reset()
- func (x *Supplier) String() string
- type SupplierPaginationResponse
- func (*SupplierPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SupplierPaginationResponse) GetCount() uint32
- func (x *SupplierPaginationResponse) GetPagination() *Pagination
- func (*SupplierPaginationResponse) ProtoMessage()
- func (x *SupplierPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *SupplierPaginationResponse) Reset()
- func (x *SupplierPaginationResponse) String() string
- type SupplierServiceClient
- type SupplierServiceServer
- type SupplierService_SupplierListClient
- type SupplierService_SupplierListServer
- type UnimplementedPurchaseReturnServiceServer
- func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnCreate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
- func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnList(*ListPurchaseReturnRequest, PurchaseReturnService_PurchaseReturnListServer) error
- func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnUpdate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
- func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnView(context.Context, *Id) (*PurchaseReturn, error)
- type UnimplementedPurchaseServiceServer
- func (UnimplementedPurchaseServiceServer) PurchaseCreate(context.Context, *Purchase) (*Purchase, error)
- func (UnimplementedPurchaseServiceServer) PurchaseList(*ListPurchaseRequest, PurchaseService_PurchaseListServer) error
- func (UnimplementedPurchaseServiceServer) PurchaseUpdate(context.Context, *Purchase) (*Purchase, error)
- func (UnimplementedPurchaseServiceServer) PurchaseView(context.Context, *Id) (*Purchase, error)
- type UnimplementedSupplierServiceServer
- func (UnimplementedSupplierServiceServer) SupplierCreate(context.Context, *Supplier) (*Supplier, error)
- func (UnimplementedSupplierServiceServer) SupplierList(*ListSupplierRequest, SupplierService_SupplierListServer) error
- func (UnimplementedSupplierServiceServer) SupplierUpdate(context.Context, *Supplier) (*Supplier, error)
- func (UnimplementedSupplierServiceServer) SupplierView(context.Context, *Id) (*Supplier, error)
- type UnsafePurchaseReturnServiceServer
- type UnsafePurchaseServiceServer
- type UnsafeSupplierServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Pagination_Sort_name = map[int32]string{ 0: "ASC", 1: "DESC", } Pagination_Sort_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for Pagination_Sort.
var File_pkg_api_v1_purchases_generic_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_purchase_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_purchase_return_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_purchase_return_service_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_purchase_service_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_supplier_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_purchases_supplier_service_proto protoreflect.FileDescriptor
var PurchaseReturnService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.purchases.PurchaseReturnService", HandlerType: (*PurchaseReturnServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PurchaseReturnCreate", Handler: _PurchaseReturnService_PurchaseReturnCreate_Handler, }, { MethodName: "PurchaseReturnUpdate", Handler: _PurchaseReturnService_PurchaseReturnUpdate_Handler, }, { MethodName: "PurchaseReturnView", Handler: _PurchaseReturnService_PurchaseReturnView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "PurchaseReturnList", Handler: _PurchaseReturnService_PurchaseReturnList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/purchases/purchase_return_service.proto", }
PurchaseReturnService_ServiceDesc is the grpc.ServiceDesc for PurchaseReturnService 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: "v1.purchases.PurchaseService", HandlerType: (*PurchaseServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PurchaseCreate", Handler: _PurchaseService_PurchaseCreate_Handler, }, { MethodName: "PurchaseUpdate", Handler: _PurchaseService_PurchaseUpdate_Handler, }, { MethodName: "PurchaseView", Handler: _PurchaseService_PurchaseView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "PurchaseList", Handler: _PurchaseService_PurchaseList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/purchases/purchase_service.proto", }
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 SupplierService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.purchases.SupplierService", HandlerType: (*SupplierServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SupplierCreate", Handler: _SupplierService_SupplierCreate_Handler, }, { MethodName: "SupplierUpdate", Handler: _SupplierService_SupplierUpdate_Handler, }, { MethodName: "SupplierView", Handler: _SupplierService_SupplierView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SupplierList", Handler: _SupplierService_SupplierList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/purchases/supplier_service.proto", }
SupplierService_ServiceDesc is the grpc.ServiceDesc for SupplierService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPurchaseReturnServiceServer ¶
func RegisterPurchaseReturnServiceServer(s grpc.ServiceRegistrar, srv PurchaseReturnServiceServer)
func RegisterPurchaseServiceServer ¶
func RegisterPurchaseServiceServer(s grpc.ServiceRegistrar, srv PurchaseServiceServer)
func RegisterSupplierServiceServer ¶
func RegisterSupplierServiceServer(s grpc.ServiceRegistrar, srv SupplierServiceServer)
Types ¶
type Id ¶
type Id struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Id) Descriptor
deprecated
func (*Id) ProtoMessage ¶
func (*Id) ProtoMessage()
func (*Id) ProtoReflect ¶
func (x *Id) ProtoReflect() protoreflect.Message
type ListPurchaseRequest ¶
type ListPurchaseRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` // contains filtered or unexported fields }
func (*ListPurchaseRequest) Descriptor
deprecated
func (*ListPurchaseRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPurchaseRequest.ProtoReflect.Descriptor instead.
func (*ListPurchaseRequest) GetBranchId ¶
func (x *ListPurchaseRequest) GetBranchId() string
func (*ListPurchaseRequest) GetPagination ¶
func (x *ListPurchaseRequest) GetPagination() *Pagination
func (*ListPurchaseRequest) GetSupplierId ¶
func (x *ListPurchaseRequest) GetSupplierId() string
func (*ListPurchaseRequest) ProtoMessage ¶
func (*ListPurchaseRequest) ProtoMessage()
func (*ListPurchaseRequest) ProtoReflect ¶
func (x *ListPurchaseRequest) ProtoReflect() protoreflect.Message
func (*ListPurchaseRequest) Reset ¶
func (x *ListPurchaseRequest) Reset()
func (*ListPurchaseRequest) String ¶
func (x *ListPurchaseRequest) String() string
type ListPurchaseResponse ¶
type ListPurchaseResponse struct { Pagination *PurchasePaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Purchase *Purchase `protobuf:"bytes,2,opt,name=purchase,proto3" json:"purchase,omitempty"` // contains filtered or unexported fields }
func (*ListPurchaseResponse) Descriptor
deprecated
func (*ListPurchaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPurchaseResponse.ProtoReflect.Descriptor instead.
func (*ListPurchaseResponse) GetPagination ¶
func (x *ListPurchaseResponse) GetPagination() *PurchasePaginationResponse
func (*ListPurchaseResponse) GetPurchase ¶
func (x *ListPurchaseResponse) GetPurchase() *Purchase
func (*ListPurchaseResponse) ProtoMessage ¶
func (*ListPurchaseResponse) ProtoMessage()
func (*ListPurchaseResponse) ProtoReflect ¶
func (x *ListPurchaseResponse) ProtoReflect() protoreflect.Message
func (*ListPurchaseResponse) Reset ¶
func (x *ListPurchaseResponse) Reset()
func (*ListPurchaseResponse) String ¶
func (x *ListPurchaseResponse) String() string
type ListPurchaseReturnRequest ¶
type ListPurchaseReturnRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` PurchaseId string `protobuf:"bytes,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"` // contains filtered or unexported fields }
func (*ListPurchaseReturnRequest) Descriptor
deprecated
func (*ListPurchaseReturnRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPurchaseReturnRequest.ProtoReflect.Descriptor instead.
func (*ListPurchaseReturnRequest) GetBranchId ¶
func (x *ListPurchaseReturnRequest) GetBranchId() string
func (*ListPurchaseReturnRequest) GetPagination ¶
func (x *ListPurchaseReturnRequest) GetPagination() *Pagination
func (*ListPurchaseReturnRequest) GetPurchaseId ¶
func (x *ListPurchaseReturnRequest) GetPurchaseId() string
func (*ListPurchaseReturnRequest) ProtoMessage ¶
func (*ListPurchaseReturnRequest) ProtoMessage()
func (*ListPurchaseReturnRequest) ProtoReflect ¶
func (x *ListPurchaseReturnRequest) ProtoReflect() protoreflect.Message
func (*ListPurchaseReturnRequest) Reset ¶
func (x *ListPurchaseReturnRequest) Reset()
func (*ListPurchaseReturnRequest) String ¶
func (x *ListPurchaseReturnRequest) String() string
type ListPurchaseReturnResponse ¶
type ListPurchaseReturnResponse struct { Pagination *PurchaseReturnPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` PurchaseReturn *PurchaseReturn `protobuf:"bytes,2,opt,name=PurchaseReturn,proto3" json:"PurchaseReturn,omitempty"` // contains filtered or unexported fields }
func (*ListPurchaseReturnResponse) Descriptor
deprecated
func (*ListPurchaseReturnResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPurchaseReturnResponse.ProtoReflect.Descriptor instead.
func (*ListPurchaseReturnResponse) GetPagination ¶
func (x *ListPurchaseReturnResponse) GetPagination() *PurchaseReturnPaginationResponse
func (*ListPurchaseReturnResponse) GetPurchaseReturn ¶
func (x *ListPurchaseReturnResponse) GetPurchaseReturn() *PurchaseReturn
func (*ListPurchaseReturnResponse) ProtoMessage ¶
func (*ListPurchaseReturnResponse) ProtoMessage()
func (*ListPurchaseReturnResponse) ProtoReflect ¶
func (x *ListPurchaseReturnResponse) ProtoReflect() protoreflect.Message
func (*ListPurchaseReturnResponse) Reset ¶
func (x *ListPurchaseReturnResponse) Reset()
func (*ListPurchaseReturnResponse) String ¶
func (x *ListPurchaseReturnResponse) String() string
type ListSupplierRequest ¶
type ListSupplierRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListSupplierRequest) Descriptor
deprecated
func (*ListSupplierRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSupplierRequest.ProtoReflect.Descriptor instead.
func (*ListSupplierRequest) GetPagination ¶
func (x *ListSupplierRequest) GetPagination() *Pagination
func (*ListSupplierRequest) ProtoMessage ¶
func (*ListSupplierRequest) ProtoMessage()
func (*ListSupplierRequest) ProtoReflect ¶
func (x *ListSupplierRequest) ProtoReflect() protoreflect.Message
func (*ListSupplierRequest) Reset ¶
func (x *ListSupplierRequest) Reset()
func (*ListSupplierRequest) String ¶
func (x *ListSupplierRequest) String() string
type ListSupplierResponse ¶
type ListSupplierResponse struct { Pagination *SupplierPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Supplier *Supplier `protobuf:"bytes,2,opt,name=supplier,proto3" json:"supplier,omitempty"` // contains filtered or unexported fields }
func (*ListSupplierResponse) Descriptor
deprecated
func (*ListSupplierResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSupplierResponse.ProtoReflect.Descriptor instead.
func (*ListSupplierResponse) GetPagination ¶
func (x *ListSupplierResponse) GetPagination() *SupplierPaginationResponse
func (*ListSupplierResponse) GetSupplier ¶
func (x *ListSupplierResponse) GetSupplier() *Supplier
func (*ListSupplierResponse) ProtoMessage ¶
func (*ListSupplierResponse) ProtoMessage()
func (*ListSupplierResponse) ProtoReflect ¶
func (x *ListSupplierResponse) ProtoReflect() protoreflect.Message
func (*ListSupplierResponse) Reset ¶
func (x *ListSupplierResponse) Reset()
func (*ListSupplierResponse) String ¶
func (x *ListSupplierResponse) String() string
type Message ¶
type Message struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MyBoolean ¶
type MyBoolean struct { Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3" json:"boolean,omitempty"` // contains filtered or unexported fields }
func (*MyBoolean) Descriptor
deprecated
func (*MyBoolean) GetBoolean ¶
func (*MyBoolean) ProtoMessage ¶
func (*MyBoolean) ProtoMessage()
func (*MyBoolean) ProtoReflect ¶
func (x *MyBoolean) ProtoReflect() protoreflect.Message
type MyEmpty ¶
type MyEmpty struct {
// contains filtered or unexported fields
}
func (*MyEmpty) Descriptor
deprecated
func (*MyEmpty) ProtoMessage ¶
func (*MyEmpty) ProtoMessage()
func (*MyEmpty) ProtoReflect ¶
func (x *MyEmpty) ProtoReflect() protoreflect.Message
type MyString ¶
type MyString struct { String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"` // contains filtered or unexported fields }
func (*MyString) Descriptor
deprecated
func (*MyString) GetString_ ¶
func (*MyString) ProtoMessage ¶
func (*MyString) ProtoMessage()
func (*MyString) ProtoReflect ¶
func (x *MyString) ProtoReflect() protoreflect.Message
type Pagination ¶
type Pagination struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` Sort Pagination_Sort `protobuf:"varint,6,opt,name=sort,proto3,enum=v1.purchases.Pagination_Sort" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetLimit ¶
func (x *Pagination) GetLimit() uint32
func (*Pagination) GetOffset ¶
func (x *Pagination) GetOffset() uint32
func (*Pagination) GetOrderBy ¶
func (x *Pagination) GetOrderBy() string
func (*Pagination) GetPage ¶
func (x *Pagination) GetPage() uint32
func (*Pagination) GetSearch ¶
func (x *Pagination) GetSearch() string
func (*Pagination) GetSort ¶
func (x *Pagination) GetSort() Pagination_Sort
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type PaginationResponse ¶
type PaginationResponse struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*PaginationResponse) Descriptor
deprecated
func (*PaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.
func (*PaginationResponse) GetCount ¶
func (x *PaginationResponse) GetCount() uint32
func (*PaginationResponse) GetPagination ¶
func (x *PaginationResponse) GetPagination() *Pagination
func (*PaginationResponse) ProtoMessage ¶
func (*PaginationResponse) ProtoMessage()
func (*PaginationResponse) ProtoReflect ¶
func (x *PaginationResponse) ProtoReflect() protoreflect.Message
func (*PaginationResponse) Reset ¶
func (x *PaginationResponse) Reset()
func (*PaginationResponse) String ¶
func (x *PaginationResponse) String() string
type Pagination_Sort ¶
type Pagination_Sort int32
const ( Pagination_ASC Pagination_Sort = 0 Pagination_DESC Pagination_Sort = 1 )
func (Pagination_Sort) Descriptor ¶
func (Pagination_Sort) Descriptor() protoreflect.EnumDescriptor
func (Pagination_Sort) Enum ¶
func (x Pagination_Sort) Enum() *Pagination_Sort
func (Pagination_Sort) EnumDescriptor
deprecated
func (Pagination_Sort) EnumDescriptor() ([]byte, []int)
Deprecated: Use Pagination_Sort.Descriptor instead.
func (Pagination_Sort) Number ¶
func (x Pagination_Sort) Number() protoreflect.EnumNumber
func (Pagination_Sort) String ¶
func (x Pagination_Sort) String() string
func (Pagination_Sort) Type ¶
func (Pagination_Sort) Type() protoreflect.EnumType
type Purchase ¶
type Purchase struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` Supplier *Supplier `protobuf:"bytes,4,opt,name=supplier,proto3" json:"supplier,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` PurchaseDate string `protobuf:"bytes,6,opt,name=purchase_date,json=purchaseDate,proto3" json:"purchase_date,omitempty"` Price float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"` AdditionalDiscAmount float64 `protobuf:"fixed64,8,opt,name=additional_disc_amount,json=additionalDiscAmount,proto3" json:"additional_disc_amount,omitempty"` AdditionalDiscPercentage float32 `` /* 137-byte string literal not displayed */ TotalPrice float64 `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,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"` CreatedBy string `protobuf:"bytes,13,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedAt string `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,15,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` Details []*PurchaseDetail `protobuf:"bytes,16,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*Purchase) Descriptor
deprecated
func (*Purchase) GetAdditionalDiscAmount ¶
func (*Purchase) GetAdditionalDiscPercentage ¶
func (*Purchase) GetBranchId ¶
func (*Purchase) GetBranchName ¶
func (*Purchase) GetCreatedAt ¶
func (*Purchase) GetCreatedBy ¶
func (*Purchase) GetDetails ¶
func (x *Purchase) GetDetails() []*PurchaseDetail
func (*Purchase) GetPurchaseDate ¶
func (*Purchase) GetSupplier ¶
func (*Purchase) GetTotalPrice ¶
func (*Purchase) GetUpdatedAt ¶
func (*Purchase) GetUpdatedBy ¶
func (*Purchase) ProtoMessage ¶
func (*Purchase) ProtoMessage()
func (*Purchase) ProtoReflect ¶
func (x *Purchase) ProtoReflect() protoreflect.Message
type PurchaseDetail ¶
type PurchaseDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PurchaseId string `protobuf:"bytes,2,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"` ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ProductCode string `protobuf:"bytes,4,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"` ProductName string `protobuf:"bytes,5,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` Quantity int32 `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"` Price float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"` DiscAmount float64 `protobuf:"fixed64,8,opt,name=disc_amount,json=discAmount,proto3" json:"disc_amount,omitempty"` DiscPercentage float32 `protobuf:"fixed32,9,opt,name=disc_percentage,json=discPercentage,proto3" json:"disc_percentage,omitempty"` TotalPrice float64 `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*PurchaseDetail) Descriptor
deprecated
func (*PurchaseDetail) Descriptor() ([]byte, []int)
Deprecated: Use PurchaseDetail.ProtoReflect.Descriptor instead.
func (*PurchaseDetail) GetDiscAmount ¶
func (x *PurchaseDetail) GetDiscAmount() float64
func (*PurchaseDetail) GetDiscPercentage ¶
func (x *PurchaseDetail) GetDiscPercentage() float32
func (*PurchaseDetail) GetId ¶
func (x *PurchaseDetail) GetId() string
func (*PurchaseDetail) GetPrice ¶
func (x *PurchaseDetail) GetPrice() float64
func (*PurchaseDetail) GetProductCode ¶
func (x *PurchaseDetail) GetProductCode() string
func (*PurchaseDetail) GetProductId ¶
func (x *PurchaseDetail) GetProductId() string
func (*PurchaseDetail) GetProductName ¶
func (x *PurchaseDetail) GetProductName() string
func (*PurchaseDetail) GetPurchaseId ¶
func (x *PurchaseDetail) GetPurchaseId() string
func (*PurchaseDetail) GetQuantity ¶
func (x *PurchaseDetail) GetQuantity() int32
func (*PurchaseDetail) GetTotalPrice ¶
func (x *PurchaseDetail) GetTotalPrice() float64
func (*PurchaseDetail) ProtoMessage ¶
func (*PurchaseDetail) ProtoMessage()
func (*PurchaseDetail) ProtoReflect ¶
func (x *PurchaseDetail) ProtoReflect() protoreflect.Message
func (*PurchaseDetail) Reset ¶
func (x *PurchaseDetail) Reset()
func (*PurchaseDetail) String ¶
func (x *PurchaseDetail) String() string
type PurchasePaginationResponse ¶
type PurchasePaginationResponse struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` SupplierId string `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"` Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*PurchasePaginationResponse) Descriptor
deprecated
func (*PurchasePaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PurchasePaginationResponse.ProtoReflect.Descriptor instead.
func (*PurchasePaginationResponse) GetBranchId ¶
func (x *PurchasePaginationResponse) GetBranchId() string
func (*PurchasePaginationResponse) GetCount ¶
func (x *PurchasePaginationResponse) GetCount() uint32
func (*PurchasePaginationResponse) GetPagination ¶
func (x *PurchasePaginationResponse) GetPagination() *Pagination
func (*PurchasePaginationResponse) GetSupplierId ¶
func (x *PurchasePaginationResponse) GetSupplierId() string
func (*PurchasePaginationResponse) ProtoMessage ¶
func (*PurchasePaginationResponse) ProtoMessage()
func (*PurchasePaginationResponse) ProtoReflect ¶
func (x *PurchasePaginationResponse) ProtoReflect() protoreflect.Message
func (*PurchasePaginationResponse) Reset ¶
func (x *PurchasePaginationResponse) Reset()
func (*PurchasePaginationResponse) String ¶
func (x *PurchasePaginationResponse) String() string
type PurchaseReturn ¶
type PurchaseReturn struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` Purchase *Purchase `protobuf:"bytes,4,opt,name=Purchase,proto3" json:"Purchase,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` ReturnDate string `protobuf:"bytes,6,opt,name=return_date,json=returnDate,proto3" json:"return_date,omitempty"` Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` Price float64 `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"` AdditionalDiscAmount float64 `protobuf:"fixed64,9,opt,name=additional_disc_amount,json=additionalDiscAmount,proto3" json:"additional_disc_amount,omitempty"` AdditionalDiscPercentage float32 `` /* 138-byte string literal not displayed */ TotalPrice float64 `protobuf:"fixed64,11,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` CreatedAt string `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatedBy string `protobuf:"bytes,13,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedAt string `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,15,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` Details []*PurchaseReturnDetail `protobuf:"bytes,16,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*PurchaseReturn) Descriptor
deprecated
func (*PurchaseReturn) Descriptor() ([]byte, []int)
Deprecated: Use PurchaseReturn.ProtoReflect.Descriptor instead.
func (*PurchaseReturn) GetAdditionalDiscAmount ¶
func (x *PurchaseReturn) GetAdditionalDiscAmount() float64
func (*PurchaseReturn) GetAdditionalDiscPercentage ¶
func (x *PurchaseReturn) GetAdditionalDiscPercentage() float32
func (*PurchaseReturn) GetBranchId ¶
func (x *PurchaseReturn) GetBranchId() string
func (*PurchaseReturn) GetBranchName ¶
func (x *PurchaseReturn) GetBranchName() string
func (*PurchaseReturn) GetCode ¶
func (x *PurchaseReturn) GetCode() string
func (*PurchaseReturn) GetCreatedAt ¶
func (x *PurchaseReturn) GetCreatedAt() string
func (*PurchaseReturn) GetCreatedBy ¶
func (x *PurchaseReturn) GetCreatedBy() string
func (*PurchaseReturn) GetDetails ¶
func (x *PurchaseReturn) GetDetails() []*PurchaseReturnDetail
func (*PurchaseReturn) GetId ¶
func (x *PurchaseReturn) GetId() string
func (*PurchaseReturn) GetPrice ¶
func (x *PurchaseReturn) GetPrice() float64
func (*PurchaseReturn) GetPurchase ¶
func (x *PurchaseReturn) GetPurchase() *Purchase
func (*PurchaseReturn) GetRemark ¶
func (x *PurchaseReturn) GetRemark() string
func (*PurchaseReturn) GetReturnDate ¶
func (x *PurchaseReturn) GetReturnDate() string
func (*PurchaseReturn) GetTotalPrice ¶
func (x *PurchaseReturn) GetTotalPrice() float64
func (*PurchaseReturn) GetUpdatedAt ¶
func (x *PurchaseReturn) GetUpdatedAt() string
func (*PurchaseReturn) GetUpdatedBy ¶
func (x *PurchaseReturn) GetUpdatedBy() string
func (*PurchaseReturn) ProtoMessage ¶
func (*PurchaseReturn) ProtoMessage()
func (*PurchaseReturn) ProtoReflect ¶
func (x *PurchaseReturn) ProtoReflect() protoreflect.Message
func (*PurchaseReturn) Reset ¶
func (x *PurchaseReturn) Reset()
func (*PurchaseReturn) String ¶
func (x *PurchaseReturn) String() string
type PurchaseReturnDetail ¶
type PurchaseReturnDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PurchaseReturnId string `protobuf:"bytes,2,opt,name=purchase_return_id,json=purchaseReturnId,proto3" json:"purchase_return_id,omitempty"` ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ProductCode string `protobuf:"bytes,4,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"` ProductName string `protobuf:"bytes,5,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` Quantity int32 `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"` Price float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"` DiscAmount float64 `protobuf:"fixed64,8,opt,name=disc_amount,json=discAmount,proto3" json:"disc_amount,omitempty"` DiscPercentage float32 `protobuf:"fixed32,9,opt,name=disc_percentage,json=discPercentage,proto3" json:"disc_percentage,omitempty"` TotalPrice float64 `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*PurchaseReturnDetail) Descriptor
deprecated
func (*PurchaseReturnDetail) Descriptor() ([]byte, []int)
Deprecated: Use PurchaseReturnDetail.ProtoReflect.Descriptor instead.
func (*PurchaseReturnDetail) GetDiscAmount ¶
func (x *PurchaseReturnDetail) GetDiscAmount() float64
func (*PurchaseReturnDetail) GetDiscPercentage ¶
func (x *PurchaseReturnDetail) GetDiscPercentage() float32
func (*PurchaseReturnDetail) GetId ¶
func (x *PurchaseReturnDetail) GetId() string
func (*PurchaseReturnDetail) GetPrice ¶
func (x *PurchaseReturnDetail) GetPrice() float64
func (*PurchaseReturnDetail) GetProductCode ¶
func (x *PurchaseReturnDetail) GetProductCode() string
func (*PurchaseReturnDetail) GetProductId ¶
func (x *PurchaseReturnDetail) GetProductId() string
func (*PurchaseReturnDetail) GetProductName ¶
func (x *PurchaseReturnDetail) GetProductName() string
func (*PurchaseReturnDetail) GetPurchaseReturnId ¶
func (x *PurchaseReturnDetail) GetPurchaseReturnId() string
func (*PurchaseReturnDetail) GetQuantity ¶
func (x *PurchaseReturnDetail) GetQuantity() int32
func (*PurchaseReturnDetail) GetTotalPrice ¶
func (x *PurchaseReturnDetail) GetTotalPrice() float64
func (*PurchaseReturnDetail) ProtoMessage ¶
func (*PurchaseReturnDetail) ProtoMessage()
func (*PurchaseReturnDetail) ProtoReflect ¶
func (x *PurchaseReturnDetail) ProtoReflect() protoreflect.Message
func (*PurchaseReturnDetail) Reset ¶
func (x *PurchaseReturnDetail) Reset()
func (*PurchaseReturnDetail) String ¶
func (x *PurchaseReturnDetail) String() string
type PurchaseReturnPaginationResponse ¶
type PurchaseReturnPaginationResponse struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` PurchaseId string `protobuf:"bytes,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"` Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*PurchaseReturnPaginationResponse) Descriptor
deprecated
func (*PurchaseReturnPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PurchaseReturnPaginationResponse.ProtoReflect.Descriptor instead.
func (*PurchaseReturnPaginationResponse) GetBranchId ¶
func (x *PurchaseReturnPaginationResponse) GetBranchId() string
func (*PurchaseReturnPaginationResponse) GetCount ¶
func (x *PurchaseReturnPaginationResponse) GetCount() uint32
func (*PurchaseReturnPaginationResponse) GetPagination ¶
func (x *PurchaseReturnPaginationResponse) GetPagination() *Pagination
func (*PurchaseReturnPaginationResponse) GetPurchaseId ¶
func (x *PurchaseReturnPaginationResponse) GetPurchaseId() string
func (*PurchaseReturnPaginationResponse) ProtoMessage ¶
func (*PurchaseReturnPaginationResponse) ProtoMessage()
func (*PurchaseReturnPaginationResponse) ProtoReflect ¶
func (x *PurchaseReturnPaginationResponse) ProtoReflect() protoreflect.Message
func (*PurchaseReturnPaginationResponse) Reset ¶
func (x *PurchaseReturnPaginationResponse) Reset()
func (*PurchaseReturnPaginationResponse) String ¶
func (x *PurchaseReturnPaginationResponse) String() string
type PurchaseReturnServiceClient ¶
type PurchaseReturnServiceClient interface { PurchaseReturnCreate(ctx context.Context, in *PurchaseReturn, opts ...grpc.CallOption) (*PurchaseReturn, error) PurchaseReturnUpdate(ctx context.Context, in *PurchaseReturn, opts ...grpc.CallOption) (*PurchaseReturn, error) PurchaseReturnView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PurchaseReturn, error) PurchaseReturnList(ctx context.Context, in *ListPurchaseReturnRequest, opts ...grpc.CallOption) (PurchaseReturnService_PurchaseReturnListClient, error) }
PurchaseReturnServiceClient is the client API for PurchaseReturnService 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.
func NewPurchaseReturnServiceClient ¶
func NewPurchaseReturnServiceClient(cc grpc.ClientConnInterface) PurchaseReturnServiceClient
type PurchaseReturnServiceServer ¶
type PurchaseReturnServiceServer interface { PurchaseReturnCreate(context.Context, *PurchaseReturn) (*PurchaseReturn, error) PurchaseReturnUpdate(context.Context, *PurchaseReturn) (*PurchaseReturn, error) PurchaseReturnView(context.Context, *Id) (*PurchaseReturn, error) PurchaseReturnList(*ListPurchaseReturnRequest, PurchaseReturnService_PurchaseReturnListServer) error // contains filtered or unexported methods }
PurchaseReturnServiceServer is the server API for PurchaseReturnService service. All implementations must embed UnimplementedPurchaseReturnServiceServer for forward compatibility
type PurchaseReturnService_PurchaseReturnListClient ¶
type PurchaseReturnService_PurchaseReturnListClient interface { Recv() (*ListPurchaseReturnResponse, error) grpc.ClientStream }
type PurchaseReturnService_PurchaseReturnListServer ¶
type PurchaseReturnService_PurchaseReturnListServer interface { Send(*ListPurchaseReturnResponse) error grpc.ServerStream }
type PurchaseServiceClient ¶
type PurchaseServiceClient interface { PurchaseCreate(ctx context.Context, in *Purchase, opts ...grpc.CallOption) (*Purchase, error) PurchaseUpdate(ctx context.Context, in *Purchase, opts ...grpc.CallOption) (*Purchase, error) PurchaseView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Purchase, error) PurchaseList(ctx context.Context, in *ListPurchaseRequest, opts ...grpc.CallOption) (PurchaseService_PurchaseListClient, error) }
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.
func NewPurchaseServiceClient ¶
func NewPurchaseServiceClient(cc grpc.ClientConnInterface) PurchaseServiceClient
type PurchaseServiceServer ¶
type PurchaseServiceServer interface { PurchaseCreate(context.Context, *Purchase) (*Purchase, error) PurchaseUpdate(context.Context, *Purchase) (*Purchase, error) PurchaseView(context.Context, *Id) (*Purchase, error) PurchaseList(*ListPurchaseRequest, PurchaseService_PurchaseListServer) error // contains filtered or unexported methods }
PurchaseServiceServer is the server API for PurchaseService service. All implementations must embed UnimplementedPurchaseServiceServer for forward compatibility
type PurchaseService_PurchaseListClient ¶
type PurchaseService_PurchaseListClient interface { Recv() (*ListPurchaseResponse, error) grpc.ClientStream }
type PurchaseService_PurchaseListServer ¶
type PurchaseService_PurchaseListServer interface { Send(*ListPurchaseResponse) error grpc.ServerStream }
type Supplier ¶
type Supplier struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // contains filtered or unexported fields }
func (*Supplier) Descriptor
deprecated
func (*Supplier) GetAddress ¶
func (*Supplier) GetCreatedAt ¶
func (*Supplier) GetCreatedBy ¶
func (*Supplier) GetUpdatedAt ¶
func (*Supplier) GetUpdatedBy ¶
func (*Supplier) ProtoMessage ¶
func (*Supplier) ProtoMessage()
func (*Supplier) ProtoReflect ¶
func (x *Supplier) ProtoReflect() protoreflect.Message
type SupplierPaginationResponse ¶
type SupplierPaginationResponse struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*SupplierPaginationResponse) Descriptor
deprecated
func (*SupplierPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SupplierPaginationResponse.ProtoReflect.Descriptor instead.
func (*SupplierPaginationResponse) GetCount ¶
func (x *SupplierPaginationResponse) GetCount() uint32
func (*SupplierPaginationResponse) GetPagination ¶
func (x *SupplierPaginationResponse) GetPagination() *Pagination
func (*SupplierPaginationResponse) ProtoMessage ¶
func (*SupplierPaginationResponse) ProtoMessage()
func (*SupplierPaginationResponse) ProtoReflect ¶
func (x *SupplierPaginationResponse) ProtoReflect() protoreflect.Message
func (*SupplierPaginationResponse) Reset ¶
func (x *SupplierPaginationResponse) Reset()
func (*SupplierPaginationResponse) String ¶
func (x *SupplierPaginationResponse) String() string
type SupplierServiceClient ¶
type SupplierServiceClient interface { SupplierCreate(ctx context.Context, in *Supplier, opts ...grpc.CallOption) (*Supplier, error) SupplierUpdate(ctx context.Context, in *Supplier, opts ...grpc.CallOption) (*Supplier, error) SupplierView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Supplier, error) SupplierList(ctx context.Context, in *ListSupplierRequest, opts ...grpc.CallOption) (SupplierService_SupplierListClient, error) }
SupplierServiceClient is the client API for SupplierService 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.
func NewSupplierServiceClient ¶
func NewSupplierServiceClient(cc grpc.ClientConnInterface) SupplierServiceClient
type SupplierServiceServer ¶
type SupplierServiceServer interface { SupplierCreate(context.Context, *Supplier) (*Supplier, error) SupplierUpdate(context.Context, *Supplier) (*Supplier, error) SupplierView(context.Context, *Id) (*Supplier, error) SupplierList(*ListSupplierRequest, SupplierService_SupplierListServer) error // contains filtered or unexported methods }
SupplierServiceServer is the server API for SupplierService service. All implementations must embed UnimplementedSupplierServiceServer for forward compatibility
type SupplierService_SupplierListClient ¶
type SupplierService_SupplierListClient interface { Recv() (*ListSupplierResponse, error) grpc.ClientStream }
type SupplierService_SupplierListServer ¶
type SupplierService_SupplierListServer interface { Send(*ListSupplierResponse) error grpc.ServerStream }
type UnimplementedPurchaseReturnServiceServer ¶
type UnimplementedPurchaseReturnServiceServer struct { }
UnimplementedPurchaseReturnServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnCreate ¶
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnCreate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnList ¶
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnList(*ListPurchaseReturnRequest, PurchaseReturnService_PurchaseReturnListServer) error
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnUpdate ¶
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnUpdate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnView ¶
func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnView(context.Context, *Id) (*PurchaseReturn, error)
type UnimplementedPurchaseServiceServer ¶
type UnimplementedPurchaseServiceServer struct { }
UnimplementedPurchaseServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPurchaseServiceServer) PurchaseCreate ¶
func (UnimplementedPurchaseServiceServer) PurchaseList ¶
func (UnimplementedPurchaseServiceServer) PurchaseList(*ListPurchaseRequest, PurchaseService_PurchaseListServer) error
func (UnimplementedPurchaseServiceServer) PurchaseUpdate ¶
func (UnimplementedPurchaseServiceServer) PurchaseView ¶
type UnimplementedSupplierServiceServer ¶
type UnimplementedSupplierServiceServer struct { }
UnimplementedSupplierServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSupplierServiceServer) SupplierCreate ¶
func (UnimplementedSupplierServiceServer) SupplierList ¶
func (UnimplementedSupplierServiceServer) SupplierList(*ListSupplierRequest, SupplierService_SupplierListServer) error
func (UnimplementedSupplierServiceServer) SupplierUpdate ¶
func (UnimplementedSupplierServiceServer) SupplierView ¶
type UnsafePurchaseReturnServiceServer ¶
type UnsafePurchaseReturnServiceServer interface {
// contains filtered or unexported methods
}
UnsafePurchaseReturnServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PurchaseReturnServiceServer will result in compilation errors.
type UnsafePurchaseServiceServer ¶
type UnsafePurchaseServiceServer interface {
// contains filtered or unexported methods
}
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 UnsafeSupplierServiceServer ¶
type UnsafeSupplierServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSupplierServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SupplierServiceServer will result in compilation errors.