Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- func RegisterSalesReturnServiceServer(s grpc.ServiceRegistrar, srv SalesReturnServiceServer)
- func RegisterSalesServiceServer(s grpc.ServiceRegistrar, srv SalesServiceServer)
- func RegisterSalesmanServiceServer(s grpc.ServiceRegistrar, srv SalesmanServiceServer)
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetAddress() string
- func (x *Customer) GetCode() string
- func (x *Customer) GetCreatedAt() string
- func (x *Customer) GetCreatedBy() string
- func (x *Customer) GetId() string
- func (x *Customer) GetName() string
- func (x *Customer) GetPhone() string
- func (x *Customer) GetUpdatedAt() string
- func (x *Customer) GetUpdatedBy() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type CustomerPaginationResponse
- func (*CustomerPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerPaginationResponse) GetCount() uint32
- func (x *CustomerPaginationResponse) GetPagination() *Pagination
- func (*CustomerPaginationResponse) ProtoMessage()
- func (x *CustomerPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *CustomerPaginationResponse) Reset()
- func (x *CustomerPaginationResponse) String() string
- type CustomerServiceClient
- type CustomerServiceServer
- type CustomerService_CustomerListClient
- type CustomerService_CustomerListServer
- type Id
- type ListCustomerRequest
- func (*ListCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCustomerRequest) GetPagination() *Pagination
- func (*ListCustomerRequest) ProtoMessage()
- func (x *ListCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *ListCustomerRequest) Reset()
- func (x *ListCustomerRequest) String() string
- type ListCustomerResponse
- func (*ListCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCustomerResponse) GetCustomer() *Customer
- func (x *ListCustomerResponse) GetPagination() *CustomerPaginationResponse
- func (*ListCustomerResponse) ProtoMessage()
- func (x *ListCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *ListCustomerResponse) Reset()
- func (x *ListCustomerResponse) String() string
- type ListSalesRequest
- func (*ListSalesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesRequest) GetBranchId() string
- func (x *ListSalesRequest) GetCustomerId() string
- func (x *ListSalesRequest) GetPagination() *Pagination
- func (x *ListSalesRequest) GetSalesmanId() string
- func (*ListSalesRequest) ProtoMessage()
- func (x *ListSalesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSalesRequest) Reset()
- func (x *ListSalesRequest) String() string
- type ListSalesResponse
- func (*ListSalesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesResponse) GetPagination() *SalesPaginationResponse
- func (x *ListSalesResponse) GetSales() *Sales
- func (*ListSalesResponse) ProtoMessage()
- func (x *ListSalesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSalesResponse) Reset()
- func (x *ListSalesResponse) String() string
- type ListSalesReturnRequest
- func (*ListSalesReturnRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesReturnRequest) GetBranchId() string
- func (x *ListSalesReturnRequest) GetPagination() *Pagination
- func (x *ListSalesReturnRequest) GetSalesId() string
- func (*ListSalesReturnRequest) ProtoMessage()
- func (x *ListSalesReturnRequest) ProtoReflect() protoreflect.Message
- func (x *ListSalesReturnRequest) Reset()
- func (x *ListSalesReturnRequest) String() string
- type ListSalesReturnResponse
- func (*ListSalesReturnResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesReturnResponse) GetPagination() *SalesReturnPaginationResponse
- func (x *ListSalesReturnResponse) GetSalesReturn() *SalesReturn
- func (*ListSalesReturnResponse) ProtoMessage()
- func (x *ListSalesReturnResponse) ProtoReflect() protoreflect.Message
- func (x *ListSalesReturnResponse) Reset()
- func (x *ListSalesReturnResponse) String() string
- type ListSalesmanRequest
- func (*ListSalesmanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesmanRequest) GetPagination() *Pagination
- func (*ListSalesmanRequest) ProtoMessage()
- func (x *ListSalesmanRequest) ProtoReflect() protoreflect.Message
- func (x *ListSalesmanRequest) Reset()
- func (x *ListSalesmanRequest) String() string
- type ListSalesmanResponse
- func (*ListSalesmanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSalesmanResponse) GetPagination() *SalesmanPaginationResponse
- func (x *ListSalesmanResponse) GetSalesman() *Salesman
- func (*ListSalesmanResponse) ProtoMessage()
- func (x *ListSalesmanResponse) ProtoReflect() protoreflect.Message
- func (x *ListSalesmanResponse) Reset()
- func (x *ListSalesmanResponse) 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 Sales
- func (*Sales) Descriptor() ([]byte, []int)deprecated
- func (x *Sales) GetAdditionalDiscAmount() float64
- func (x *Sales) GetAdditionalDiscPercentage() float32
- func (x *Sales) GetBranchId() string
- func (x *Sales) GetBranchName() string
- func (x *Sales) GetCode() string
- func (x *Sales) GetCreatedAt() string
- func (x *Sales) GetCreatedBy() string
- func (x *Sales) GetCustomer() *Customer
- func (x *Sales) GetDetails() []*SalesDetail
- func (x *Sales) GetId() string
- func (x *Sales) GetPrice() float64
- func (x *Sales) GetRemark() string
- func (x *Sales) GetSalesDate() string
- func (x *Sales) GetSalesman() *Salesman
- func (x *Sales) GetTotalPrice() float64
- func (x *Sales) GetUpdatedAt() string
- func (x *Sales) GetUpdatedBy() string
- func (*Sales) ProtoMessage()
- func (x *Sales) ProtoReflect() protoreflect.Message
- func (x *Sales) Reset()
- func (x *Sales) String() string
- type SalesDetail
- func (*SalesDetail) Descriptor() ([]byte, []int)deprecated
- func (x *SalesDetail) GetDiscAmount() float64
- func (x *SalesDetail) GetDiscPercentage() float32
- func (x *SalesDetail) GetId() string
- func (x *SalesDetail) GetPrice() float64
- func (x *SalesDetail) GetProductCode() string
- func (x *SalesDetail) GetProductId() string
- func (x *SalesDetail) GetProductName() string
- func (x *SalesDetail) GetQuantity() int32
- func (x *SalesDetail) GetSalesId() string
- func (x *SalesDetail) GetTotalPrice() float64
- func (*SalesDetail) ProtoMessage()
- func (x *SalesDetail) ProtoReflect() protoreflect.Message
- func (x *SalesDetail) Reset()
- func (x *SalesDetail) String() string
- type SalesPaginationResponse
- func (*SalesPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SalesPaginationResponse) GetBranchId() string
- func (x *SalesPaginationResponse) GetCount() uint32
- func (x *SalesPaginationResponse) GetCustomerId() string
- func (x *SalesPaginationResponse) GetPagination() *Pagination
- func (x *SalesPaginationResponse) GetSalesmanId() string
- func (*SalesPaginationResponse) ProtoMessage()
- func (x *SalesPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *SalesPaginationResponse) Reset()
- func (x *SalesPaginationResponse) String() string
- type SalesReturn
- func (*SalesReturn) Descriptor() ([]byte, []int)deprecated
- func (x *SalesReturn) GetAdditionalDiscAmount() float64
- func (x *SalesReturn) GetAdditionalDiscPercentage() float32
- func (x *SalesReturn) GetBranchId() string
- func (x *SalesReturn) GetBranchName() string
- func (x *SalesReturn) GetCode() string
- func (x *SalesReturn) GetCreatedAt() string
- func (x *SalesReturn) GetCreatedBy() string
- func (x *SalesReturn) GetDetails() []*SalesReturnDetail
- func (x *SalesReturn) GetId() string
- func (x *SalesReturn) GetPrice() float64
- func (x *SalesReturn) GetRemark() string
- func (x *SalesReturn) GetReturnDate() string
- func (x *SalesReturn) GetSales() *Sales
- func (x *SalesReturn) GetTotalPrice() float64
- func (x *SalesReturn) GetUpdatedAt() string
- func (x *SalesReturn) GetUpdatedBy() string
- func (*SalesReturn) ProtoMessage()
- func (x *SalesReturn) ProtoReflect() protoreflect.Message
- func (x *SalesReturn) Reset()
- func (x *SalesReturn) String() string
- type SalesReturnDetail
- func (*SalesReturnDetail) Descriptor() ([]byte, []int)deprecated
- func (x *SalesReturnDetail) GetDiscAmount() float64
- func (x *SalesReturnDetail) GetDiscPercentage() float32
- func (x *SalesReturnDetail) GetId() string
- func (x *SalesReturnDetail) GetPrice() float64
- func (x *SalesReturnDetail) GetProductCode() string
- func (x *SalesReturnDetail) GetProductId() string
- func (x *SalesReturnDetail) GetProductName() string
- func (x *SalesReturnDetail) GetQuantity() int32
- func (x *SalesReturnDetail) GetSalesReturnId() string
- func (x *SalesReturnDetail) GetTotalPrice() float64
- func (*SalesReturnDetail) ProtoMessage()
- func (x *SalesReturnDetail) ProtoReflect() protoreflect.Message
- func (x *SalesReturnDetail) Reset()
- func (x *SalesReturnDetail) String() string
- type SalesReturnPaginationResponse
- func (*SalesReturnPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SalesReturnPaginationResponse) GetBranchId() string
- func (x *SalesReturnPaginationResponse) GetCount() uint32
- func (x *SalesReturnPaginationResponse) GetPagination() *Pagination
- func (x *SalesReturnPaginationResponse) GetSalesId() string
- func (*SalesReturnPaginationResponse) ProtoMessage()
- func (x *SalesReturnPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *SalesReturnPaginationResponse) Reset()
- func (x *SalesReturnPaginationResponse) String() string
- type SalesReturnServiceClient
- type SalesReturnServiceServer
- type SalesReturnService_SalesReturnListClient
- type SalesReturnService_SalesReturnListServer
- type SalesServiceClient
- type SalesServiceServer
- type SalesService_SalesListClient
- type SalesService_SalesListServer
- type Salesman
- func (*Salesman) Descriptor() ([]byte, []int)deprecated
- func (x *Salesman) GetAddress() string
- func (x *Salesman) GetCode() string
- func (x *Salesman) GetCreatedAt() string
- func (x *Salesman) GetCreatedBy() string
- func (x *Salesman) GetEmail() string
- func (x *Salesman) GetId() string
- func (x *Salesman) GetName() string
- func (x *Salesman) GetPhone() string
- func (x *Salesman) GetUpdatedAt() string
- func (x *Salesman) GetUpdatedBy() string
- func (*Salesman) ProtoMessage()
- func (x *Salesman) ProtoReflect() protoreflect.Message
- func (x *Salesman) Reset()
- func (x *Salesman) String() string
- type SalesmanPaginationResponse
- func (*SalesmanPaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SalesmanPaginationResponse) GetCount() uint32
- func (x *SalesmanPaginationResponse) GetPagination() *Pagination
- func (*SalesmanPaginationResponse) ProtoMessage()
- func (x *SalesmanPaginationResponse) ProtoReflect() protoreflect.Message
- func (x *SalesmanPaginationResponse) Reset()
- func (x *SalesmanPaginationResponse) String() string
- type SalesmanServiceClient
- type SalesmanServiceServer
- type SalesmanService_SalesmanListClient
- type SalesmanService_SalesmanListServer
- type UnimplementedCustomerServiceServer
- func (UnimplementedCustomerServiceServer) CustomerCreate(context.Context, *Customer) (*Customer, error)
- func (UnimplementedCustomerServiceServer) CustomerList(*ListCustomerRequest, CustomerService_CustomerListServer) error
- func (UnimplementedCustomerServiceServer) CustomerUpdate(context.Context, *Customer) (*Customer, error)
- func (UnimplementedCustomerServiceServer) CustomerView(context.Context, *Id) (*Customer, error)
- type UnimplementedSalesReturnServiceServer
- func (UnimplementedSalesReturnServiceServer) SalesReturnCreate(context.Context, *SalesReturn) (*SalesReturn, error)
- func (UnimplementedSalesReturnServiceServer) SalesReturnList(*ListSalesReturnRequest, SalesReturnService_SalesReturnListServer) error
- func (UnimplementedSalesReturnServiceServer) SalesReturnUpdate(context.Context, *SalesReturn) (*SalesReturn, error)
- func (UnimplementedSalesReturnServiceServer) SalesReturnView(context.Context, *Id) (*SalesReturn, error)
- type UnimplementedSalesServiceServer
- func (UnimplementedSalesServiceServer) SalesCreate(context.Context, *Sales) (*Sales, error)
- func (UnimplementedSalesServiceServer) SalesList(*ListSalesRequest, SalesService_SalesListServer) error
- func (UnimplementedSalesServiceServer) SalesUpdate(context.Context, *Sales) (*Sales, error)
- func (UnimplementedSalesServiceServer) SalesView(context.Context, *Id) (*Sales, error)
- type UnimplementedSalesmanServiceServer
- func (UnimplementedSalesmanServiceServer) SalesmanCreate(context.Context, *Salesman) (*Salesman, error)
- func (UnimplementedSalesmanServiceServer) SalesmanList(*ListSalesmanRequest, SalesmanService_SalesmanListServer) error
- func (UnimplementedSalesmanServiceServer) SalesmanUpdate(context.Context, *Salesman) (*Salesman, error)
- func (UnimplementedSalesmanServiceServer) SalesmanView(context.Context, *Id) (*Salesman, error)
- type UnsafeCustomerServiceServer
- type UnsafeSalesReturnServiceServer
- type UnsafeSalesServiceServer
- type UnsafeSalesmanServiceServer
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 CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.sales.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CustomerCreate", Handler: _CustomerService_CustomerCreate_Handler, }, { MethodName: "CustomerUpdate", Handler: _CustomerService_CustomerUpdate_Handler, }, { MethodName: "CustomerView", Handler: _CustomerService_CustomerView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "CustomerList", Handler: _CustomerService_CustomerList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/sales/customer_service.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_api_v1_sales_customer_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_customer_service_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_generic_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_sales_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_sales_return_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_sales_return_service_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_sales_service_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_salesman_message_proto protoreflect.FileDescriptor
var File_pkg_api_v1_sales_salesman_service_proto protoreflect.FileDescriptor
var SalesReturnService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.sales.SalesReturnService", HandlerType: (*SalesReturnServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SalesReturnCreate", Handler: _SalesReturnService_SalesReturnCreate_Handler, }, { MethodName: "SalesReturnUpdate", Handler: _SalesReturnService_SalesReturnUpdate_Handler, }, { MethodName: "SalesReturnView", Handler: _SalesReturnService_SalesReturnView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SalesReturnList", Handler: _SalesReturnService_SalesReturnList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/sales/sales_return_service.proto", }
SalesReturnService_ServiceDesc is the grpc.ServiceDesc for SalesReturnService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SalesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.sales.SalesService", HandlerType: (*SalesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SalesCreate", Handler: _SalesService_SalesCreate_Handler, }, { MethodName: "SalesUpdate", Handler: _SalesService_SalesUpdate_Handler, }, { MethodName: "SalesView", Handler: _SalesService_SalesView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SalesList", Handler: _SalesService_SalesList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/sales/sales_service.proto", }
SalesService_ServiceDesc is the grpc.ServiceDesc for SalesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SalesmanService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.sales.SalesmanService", HandlerType: (*SalesmanServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SalesmanCreate", Handler: _SalesmanService_SalesmanCreate_Handler, }, { MethodName: "SalesmanUpdate", Handler: _SalesmanService_SalesmanUpdate_Handler, }, { MethodName: "SalesmanView", Handler: _SalesmanService_SalesmanView_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SalesmanList", Handler: _SalesmanService_SalesmanList_Handler, ServerStreams: true, }, }, Metadata: "pkg/api/v1/sales/salesman_service.proto", }
SalesmanService_ServiceDesc is the grpc.ServiceDesc for SalesmanService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
func RegisterSalesReturnServiceServer ¶
func RegisterSalesReturnServiceServer(s grpc.ServiceRegistrar, srv SalesReturnServiceServer)
func RegisterSalesServiceServer ¶
func RegisterSalesServiceServer(s grpc.ServiceRegistrar, srv SalesServiceServer)
func RegisterSalesmanServiceServer ¶
func RegisterSalesmanServiceServer(s grpc.ServiceRegistrar, srv SalesmanServiceServer)
Types ¶
type Customer ¶
type Customer 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 (*Customer) Descriptor
deprecated
func (*Customer) GetAddress ¶
func (*Customer) GetCreatedAt ¶
func (*Customer) GetCreatedBy ¶
func (*Customer) GetUpdatedAt ¶
func (*Customer) GetUpdatedBy ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerPaginationResponse ¶
type CustomerPaginationResponse 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 (*CustomerPaginationResponse) Descriptor
deprecated
func (*CustomerPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerPaginationResponse.ProtoReflect.Descriptor instead.
func (*CustomerPaginationResponse) GetCount ¶
func (x *CustomerPaginationResponse) GetCount() uint32
func (*CustomerPaginationResponse) GetPagination ¶
func (x *CustomerPaginationResponse) GetPagination() *Pagination
func (*CustomerPaginationResponse) ProtoMessage ¶
func (*CustomerPaginationResponse) ProtoMessage()
func (*CustomerPaginationResponse) ProtoReflect ¶
func (x *CustomerPaginationResponse) ProtoReflect() protoreflect.Message
func (*CustomerPaginationResponse) Reset ¶
func (x *CustomerPaginationResponse) Reset()
func (*CustomerPaginationResponse) String ¶
func (x *CustomerPaginationResponse) String() string
type CustomerServiceClient ¶
type CustomerServiceClient interface { CustomerCreate(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*Customer, error) CustomerUpdate(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*Customer, error) CustomerView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Customer, error) CustomerList(ctx context.Context, in *ListCustomerRequest, opts ...grpc.CallOption) (CustomerService_CustomerListClient, error) }
CustomerServiceClient is the client API for CustomerService 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 NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { CustomerCreate(context.Context, *Customer) (*Customer, error) CustomerUpdate(context.Context, *Customer) (*Customer, error) CustomerView(context.Context, *Id) (*Customer, error) CustomerList(*ListCustomerRequest, CustomerService_CustomerListServer) error // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type CustomerService_CustomerListClient ¶
type CustomerService_CustomerListClient interface { Recv() (*ListCustomerResponse, error) grpc.ClientStream }
type CustomerService_CustomerListServer ¶
type CustomerService_CustomerListServer interface { Send(*ListCustomerResponse) error grpc.ServerStream }
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 ListCustomerRequest ¶
type ListCustomerRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListCustomerRequest) Descriptor
deprecated
func (*ListCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCustomerRequest.ProtoReflect.Descriptor instead.
func (*ListCustomerRequest) GetPagination ¶
func (x *ListCustomerRequest) GetPagination() *Pagination
func (*ListCustomerRequest) ProtoMessage ¶
func (*ListCustomerRequest) ProtoMessage()
func (*ListCustomerRequest) ProtoReflect ¶
func (x *ListCustomerRequest) ProtoReflect() protoreflect.Message
func (*ListCustomerRequest) Reset ¶
func (x *ListCustomerRequest) Reset()
func (*ListCustomerRequest) String ¶
func (x *ListCustomerRequest) String() string
type ListCustomerResponse ¶
type ListCustomerResponse struct { Pagination *CustomerPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Customer *Customer `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*ListCustomerResponse) Descriptor
deprecated
func (*ListCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCustomerResponse.ProtoReflect.Descriptor instead.
func (*ListCustomerResponse) GetCustomer ¶
func (x *ListCustomerResponse) GetCustomer() *Customer
func (*ListCustomerResponse) GetPagination ¶
func (x *ListCustomerResponse) GetPagination() *CustomerPaginationResponse
func (*ListCustomerResponse) ProtoMessage ¶
func (*ListCustomerResponse) ProtoMessage()
func (*ListCustomerResponse) ProtoReflect ¶
func (x *ListCustomerResponse) ProtoReflect() protoreflect.Message
func (*ListCustomerResponse) Reset ¶
func (x *ListCustomerResponse) Reset()
func (*ListCustomerResponse) String ¶
func (x *ListCustomerResponse) String() string
type ListSalesRequest ¶
type ListSalesRequest 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"` CustomerId string `protobuf:"bytes,3,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` SalesmanId string `protobuf:"bytes,4,opt,name=salesman_id,json=salesmanId,proto3" json:"salesman_id,omitempty"` // contains filtered or unexported fields }
func (*ListSalesRequest) Descriptor
deprecated
func (*ListSalesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesRequest.ProtoReflect.Descriptor instead.
func (*ListSalesRequest) GetBranchId ¶
func (x *ListSalesRequest) GetBranchId() string
func (*ListSalesRequest) GetCustomerId ¶
func (x *ListSalesRequest) GetCustomerId() string
func (*ListSalesRequest) GetPagination ¶
func (x *ListSalesRequest) GetPagination() *Pagination
func (*ListSalesRequest) GetSalesmanId ¶
func (x *ListSalesRequest) GetSalesmanId() string
func (*ListSalesRequest) ProtoMessage ¶
func (*ListSalesRequest) ProtoMessage()
func (*ListSalesRequest) ProtoReflect ¶
func (x *ListSalesRequest) ProtoReflect() protoreflect.Message
func (*ListSalesRequest) Reset ¶
func (x *ListSalesRequest) Reset()
func (*ListSalesRequest) String ¶
func (x *ListSalesRequest) String() string
type ListSalesResponse ¶
type ListSalesResponse struct { Pagination *SalesPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sales *Sales `protobuf:"bytes,2,opt,name=sales,proto3" json:"sales,omitempty"` // contains filtered or unexported fields }
func (*ListSalesResponse) Descriptor
deprecated
func (*ListSalesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesResponse.ProtoReflect.Descriptor instead.
func (*ListSalesResponse) GetPagination ¶
func (x *ListSalesResponse) GetPagination() *SalesPaginationResponse
func (*ListSalesResponse) GetSales ¶
func (x *ListSalesResponse) GetSales() *Sales
func (*ListSalesResponse) ProtoMessage ¶
func (*ListSalesResponse) ProtoMessage()
func (*ListSalesResponse) ProtoReflect ¶
func (x *ListSalesResponse) ProtoReflect() protoreflect.Message
func (*ListSalesResponse) Reset ¶
func (x *ListSalesResponse) Reset()
func (*ListSalesResponse) String ¶
func (x *ListSalesResponse) String() string
type ListSalesReturnRequest ¶
type ListSalesReturnRequest 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"` SalesId string `protobuf:"bytes,3,opt,name=sales_id,json=salesId,proto3" json:"sales_id,omitempty"` // contains filtered or unexported fields }
func (*ListSalesReturnRequest) Descriptor
deprecated
func (*ListSalesReturnRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesReturnRequest.ProtoReflect.Descriptor instead.
func (*ListSalesReturnRequest) GetBranchId ¶
func (x *ListSalesReturnRequest) GetBranchId() string
func (*ListSalesReturnRequest) GetPagination ¶
func (x *ListSalesReturnRequest) GetPagination() *Pagination
func (*ListSalesReturnRequest) GetSalesId ¶
func (x *ListSalesReturnRequest) GetSalesId() string
func (*ListSalesReturnRequest) ProtoMessage ¶
func (*ListSalesReturnRequest) ProtoMessage()
func (*ListSalesReturnRequest) ProtoReflect ¶
func (x *ListSalesReturnRequest) ProtoReflect() protoreflect.Message
func (*ListSalesReturnRequest) Reset ¶
func (x *ListSalesReturnRequest) Reset()
func (*ListSalesReturnRequest) String ¶
func (x *ListSalesReturnRequest) String() string
type ListSalesReturnResponse ¶
type ListSalesReturnResponse struct { Pagination *SalesReturnPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` SalesReturn *SalesReturn `protobuf:"bytes,2,opt,name=SalesReturn,proto3" json:"SalesReturn,omitempty"` // contains filtered or unexported fields }
func (*ListSalesReturnResponse) Descriptor
deprecated
func (*ListSalesReturnResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesReturnResponse.ProtoReflect.Descriptor instead.
func (*ListSalesReturnResponse) GetPagination ¶
func (x *ListSalesReturnResponse) GetPagination() *SalesReturnPaginationResponse
func (*ListSalesReturnResponse) GetSalesReturn ¶
func (x *ListSalesReturnResponse) GetSalesReturn() *SalesReturn
func (*ListSalesReturnResponse) ProtoMessage ¶
func (*ListSalesReturnResponse) ProtoMessage()
func (*ListSalesReturnResponse) ProtoReflect ¶
func (x *ListSalesReturnResponse) ProtoReflect() protoreflect.Message
func (*ListSalesReturnResponse) Reset ¶
func (x *ListSalesReturnResponse) Reset()
func (*ListSalesReturnResponse) String ¶
func (x *ListSalesReturnResponse) String() string
type ListSalesmanRequest ¶
type ListSalesmanRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListSalesmanRequest) Descriptor
deprecated
func (*ListSalesmanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesmanRequest.ProtoReflect.Descriptor instead.
func (*ListSalesmanRequest) GetPagination ¶
func (x *ListSalesmanRequest) GetPagination() *Pagination
func (*ListSalesmanRequest) ProtoMessage ¶
func (*ListSalesmanRequest) ProtoMessage()
func (*ListSalesmanRequest) ProtoReflect ¶
func (x *ListSalesmanRequest) ProtoReflect() protoreflect.Message
func (*ListSalesmanRequest) Reset ¶
func (x *ListSalesmanRequest) Reset()
func (*ListSalesmanRequest) String ¶
func (x *ListSalesmanRequest) String() string
type ListSalesmanResponse ¶
type ListSalesmanResponse struct { Pagination *SalesmanPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Salesman *Salesman `protobuf:"bytes,2,opt,name=salesman,proto3" json:"salesman,omitempty"` // contains filtered or unexported fields }
func (*ListSalesmanResponse) Descriptor
deprecated
func (*ListSalesmanResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSalesmanResponse.ProtoReflect.Descriptor instead.
func (*ListSalesmanResponse) GetPagination ¶
func (x *ListSalesmanResponse) GetPagination() *SalesmanPaginationResponse
func (*ListSalesmanResponse) GetSalesman ¶
func (x *ListSalesmanResponse) GetSalesman() *Salesman
func (*ListSalesmanResponse) ProtoMessage ¶
func (*ListSalesmanResponse) ProtoMessage()
func (*ListSalesmanResponse) ProtoReflect ¶
func (x *ListSalesmanResponse) ProtoReflect() protoreflect.Message
func (*ListSalesmanResponse) Reset ¶
func (x *ListSalesmanResponse) Reset()
func (*ListSalesmanResponse) String ¶
func (x *ListSalesmanResponse) 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.sales.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 Sales ¶
type Sales 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"` Customer *Customer `protobuf:"bytes,4,opt,name=customer,proto3" json:"customer,omitempty"` Salesman *Salesman `protobuf:"bytes,5,opt,name=salesman,proto3" json:"salesman,omitempty"` Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"` SalesDate string `protobuf:"bytes,7,opt,name=sales_date,json=salesDate,proto3" json:"sales_date,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"` Remark string `protobuf:"bytes,12,opt,name=remark,proto3" json:"remark,omitempty"` CreatedAt string `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatedBy string `protobuf:"bytes,14,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedAt string `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,16,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` Details []*SalesDetail `protobuf:"bytes,17,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*Sales) Descriptor
deprecated
func (*Sales) GetAdditionalDiscAmount ¶
func (*Sales) GetAdditionalDiscPercentage ¶
func (*Sales) GetBranchId ¶
func (*Sales) GetBranchName ¶
func (*Sales) GetCreatedAt ¶
func (*Sales) GetCreatedBy ¶
func (*Sales) GetCustomer ¶
func (*Sales) GetDetails ¶
func (x *Sales) GetDetails() []*SalesDetail
func (*Sales) GetSalesDate ¶
func (*Sales) GetSalesman ¶
func (*Sales) GetTotalPrice ¶
func (*Sales) GetUpdatedAt ¶
func (*Sales) GetUpdatedBy ¶
func (*Sales) ProtoMessage ¶
func (*Sales) ProtoMessage()
func (*Sales) ProtoReflect ¶
func (x *Sales) ProtoReflect() protoreflect.Message
type SalesDetail ¶
type SalesDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SalesId string `protobuf:"bytes,2,opt,name=sales_id,json=salesId,proto3" json:"sales_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 (*SalesDetail) Descriptor
deprecated
func (*SalesDetail) Descriptor() ([]byte, []int)
Deprecated: Use SalesDetail.ProtoReflect.Descriptor instead.
func (*SalesDetail) GetDiscAmount ¶
func (x *SalesDetail) GetDiscAmount() float64
func (*SalesDetail) GetDiscPercentage ¶
func (x *SalesDetail) GetDiscPercentage() float32
func (*SalesDetail) GetId ¶
func (x *SalesDetail) GetId() string
func (*SalesDetail) GetPrice ¶
func (x *SalesDetail) GetPrice() float64
func (*SalesDetail) GetProductCode ¶
func (x *SalesDetail) GetProductCode() string
func (*SalesDetail) GetProductId ¶
func (x *SalesDetail) GetProductId() string
func (*SalesDetail) GetProductName ¶
func (x *SalesDetail) GetProductName() string
func (*SalesDetail) GetQuantity ¶
func (x *SalesDetail) GetQuantity() int32
func (*SalesDetail) GetSalesId ¶
func (x *SalesDetail) GetSalesId() string
func (*SalesDetail) GetTotalPrice ¶
func (x *SalesDetail) GetTotalPrice() float64
func (*SalesDetail) ProtoMessage ¶
func (*SalesDetail) ProtoMessage()
func (*SalesDetail) ProtoReflect ¶
func (x *SalesDetail) ProtoReflect() protoreflect.Message
func (*SalesDetail) Reset ¶
func (x *SalesDetail) Reset()
func (*SalesDetail) String ¶
func (x *SalesDetail) String() string
type SalesPaginationResponse ¶
type SalesPaginationResponse 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"` CustomerId string `protobuf:"bytes,3,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` SalesmanId string `protobuf:"bytes,4,opt,name=salesman_id,json=salesmanId,proto3" json:"salesman_id,omitempty"` Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*SalesPaginationResponse) Descriptor
deprecated
func (*SalesPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SalesPaginationResponse.ProtoReflect.Descriptor instead.
func (*SalesPaginationResponse) GetBranchId ¶
func (x *SalesPaginationResponse) GetBranchId() string
func (*SalesPaginationResponse) GetCount ¶
func (x *SalesPaginationResponse) GetCount() uint32
func (*SalesPaginationResponse) GetCustomerId ¶
func (x *SalesPaginationResponse) GetCustomerId() string
func (*SalesPaginationResponse) GetPagination ¶
func (x *SalesPaginationResponse) GetPagination() *Pagination
func (*SalesPaginationResponse) GetSalesmanId ¶
func (x *SalesPaginationResponse) GetSalesmanId() string
func (*SalesPaginationResponse) ProtoMessage ¶
func (*SalesPaginationResponse) ProtoMessage()
func (*SalesPaginationResponse) ProtoReflect ¶
func (x *SalesPaginationResponse) ProtoReflect() protoreflect.Message
func (*SalesPaginationResponse) Reset ¶
func (x *SalesPaginationResponse) Reset()
func (*SalesPaginationResponse) String ¶
func (x *SalesPaginationResponse) String() string
type SalesReturn ¶
type SalesReturn 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"` Sales *Sales `protobuf:"bytes,4,opt,name=Sales,proto3" json:"Sales,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 []*SalesReturnDetail `protobuf:"bytes,16,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*SalesReturn) Descriptor
deprecated
func (*SalesReturn) Descriptor() ([]byte, []int)
Deprecated: Use SalesReturn.ProtoReflect.Descriptor instead.
func (*SalesReturn) GetAdditionalDiscAmount ¶
func (x *SalesReturn) GetAdditionalDiscAmount() float64
func (*SalesReturn) GetAdditionalDiscPercentage ¶
func (x *SalesReturn) GetAdditionalDiscPercentage() float32
func (*SalesReturn) GetBranchId ¶
func (x *SalesReturn) GetBranchId() string
func (*SalesReturn) GetBranchName ¶
func (x *SalesReturn) GetBranchName() string
func (*SalesReturn) GetCode ¶
func (x *SalesReturn) GetCode() string
func (*SalesReturn) GetCreatedAt ¶
func (x *SalesReturn) GetCreatedAt() string
func (*SalesReturn) GetCreatedBy ¶
func (x *SalesReturn) GetCreatedBy() string
func (*SalesReturn) GetDetails ¶
func (x *SalesReturn) GetDetails() []*SalesReturnDetail
func (*SalesReturn) GetId ¶
func (x *SalesReturn) GetId() string
func (*SalesReturn) GetPrice ¶
func (x *SalesReturn) GetPrice() float64
func (*SalesReturn) GetRemark ¶
func (x *SalesReturn) GetRemark() string
func (*SalesReturn) GetReturnDate ¶
func (x *SalesReturn) GetReturnDate() string
func (*SalesReturn) GetSales ¶
func (x *SalesReturn) GetSales() *Sales
func (*SalesReturn) GetTotalPrice ¶
func (x *SalesReturn) GetTotalPrice() float64
func (*SalesReturn) GetUpdatedAt ¶
func (x *SalesReturn) GetUpdatedAt() string
func (*SalesReturn) GetUpdatedBy ¶
func (x *SalesReturn) GetUpdatedBy() string
func (*SalesReturn) ProtoMessage ¶
func (*SalesReturn) ProtoMessage()
func (*SalesReturn) ProtoReflect ¶
func (x *SalesReturn) ProtoReflect() protoreflect.Message
func (*SalesReturn) Reset ¶
func (x *SalesReturn) Reset()
func (*SalesReturn) String ¶
func (x *SalesReturn) String() string
type SalesReturnDetail ¶
type SalesReturnDetail struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SalesReturnId string `protobuf:"bytes,2,opt,name=sales_return_id,json=salesReturnId,proto3" json:"sales_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 (*SalesReturnDetail) Descriptor
deprecated
func (*SalesReturnDetail) Descriptor() ([]byte, []int)
Deprecated: Use SalesReturnDetail.ProtoReflect.Descriptor instead.
func (*SalesReturnDetail) GetDiscAmount ¶
func (x *SalesReturnDetail) GetDiscAmount() float64
func (*SalesReturnDetail) GetDiscPercentage ¶
func (x *SalesReturnDetail) GetDiscPercentage() float32
func (*SalesReturnDetail) GetId ¶
func (x *SalesReturnDetail) GetId() string
func (*SalesReturnDetail) GetPrice ¶
func (x *SalesReturnDetail) GetPrice() float64
func (*SalesReturnDetail) GetProductCode ¶
func (x *SalesReturnDetail) GetProductCode() string
func (*SalesReturnDetail) GetProductId ¶
func (x *SalesReturnDetail) GetProductId() string
func (*SalesReturnDetail) GetProductName ¶
func (x *SalesReturnDetail) GetProductName() string
func (*SalesReturnDetail) GetQuantity ¶
func (x *SalesReturnDetail) GetQuantity() int32
func (*SalesReturnDetail) GetSalesReturnId ¶
func (x *SalesReturnDetail) GetSalesReturnId() string
func (*SalesReturnDetail) GetTotalPrice ¶
func (x *SalesReturnDetail) GetTotalPrice() float64
func (*SalesReturnDetail) ProtoMessage ¶
func (*SalesReturnDetail) ProtoMessage()
func (*SalesReturnDetail) ProtoReflect ¶
func (x *SalesReturnDetail) ProtoReflect() protoreflect.Message
func (*SalesReturnDetail) Reset ¶
func (x *SalesReturnDetail) Reset()
func (*SalesReturnDetail) String ¶
func (x *SalesReturnDetail) String() string
type SalesReturnPaginationResponse ¶
type SalesReturnPaginationResponse 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"` SalesId string `protobuf:"bytes,3,opt,name=sales_id,json=salesId,proto3" json:"sales_id,omitempty"` Count uint32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*SalesReturnPaginationResponse) Descriptor
deprecated
func (*SalesReturnPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SalesReturnPaginationResponse.ProtoReflect.Descriptor instead.
func (*SalesReturnPaginationResponse) GetBranchId ¶
func (x *SalesReturnPaginationResponse) GetBranchId() string
func (*SalesReturnPaginationResponse) GetCount ¶
func (x *SalesReturnPaginationResponse) GetCount() uint32
func (*SalesReturnPaginationResponse) GetPagination ¶
func (x *SalesReturnPaginationResponse) GetPagination() *Pagination
func (*SalesReturnPaginationResponse) GetSalesId ¶
func (x *SalesReturnPaginationResponse) GetSalesId() string
func (*SalesReturnPaginationResponse) ProtoMessage ¶
func (*SalesReturnPaginationResponse) ProtoMessage()
func (*SalesReturnPaginationResponse) ProtoReflect ¶
func (x *SalesReturnPaginationResponse) ProtoReflect() protoreflect.Message
func (*SalesReturnPaginationResponse) Reset ¶
func (x *SalesReturnPaginationResponse) Reset()
func (*SalesReturnPaginationResponse) String ¶
func (x *SalesReturnPaginationResponse) String() string
type SalesReturnServiceClient ¶
type SalesReturnServiceClient interface { SalesReturnCreate(ctx context.Context, in *SalesReturn, opts ...grpc.CallOption) (*SalesReturn, error) SalesReturnUpdate(ctx context.Context, in *SalesReturn, opts ...grpc.CallOption) (*SalesReturn, error) SalesReturnView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*SalesReturn, error) SalesReturnList(ctx context.Context, in *ListSalesReturnRequest, opts ...grpc.CallOption) (SalesReturnService_SalesReturnListClient, error) }
SalesReturnServiceClient is the client API for SalesReturnService 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 NewSalesReturnServiceClient ¶
func NewSalesReturnServiceClient(cc grpc.ClientConnInterface) SalesReturnServiceClient
type SalesReturnServiceServer ¶
type SalesReturnServiceServer interface { SalesReturnCreate(context.Context, *SalesReturn) (*SalesReturn, error) SalesReturnUpdate(context.Context, *SalesReturn) (*SalesReturn, error) SalesReturnView(context.Context, *Id) (*SalesReturn, error) SalesReturnList(*ListSalesReturnRequest, SalesReturnService_SalesReturnListServer) error // contains filtered or unexported methods }
SalesReturnServiceServer is the server API for SalesReturnService service. All implementations must embed UnimplementedSalesReturnServiceServer for forward compatibility
type SalesReturnService_SalesReturnListClient ¶
type SalesReturnService_SalesReturnListClient interface { Recv() (*ListSalesReturnResponse, error) grpc.ClientStream }
type SalesReturnService_SalesReturnListServer ¶
type SalesReturnService_SalesReturnListServer interface { Send(*ListSalesReturnResponse) error grpc.ServerStream }
type SalesServiceClient ¶
type SalesServiceClient interface { SalesCreate(ctx context.Context, in *Sales, opts ...grpc.CallOption) (*Sales, error) SalesUpdate(ctx context.Context, in *Sales, opts ...grpc.CallOption) (*Sales, error) SalesView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Sales, error) SalesList(ctx context.Context, in *ListSalesRequest, opts ...grpc.CallOption) (SalesService_SalesListClient, error) }
SalesServiceClient is the client API for SalesService 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 NewSalesServiceClient ¶
func NewSalesServiceClient(cc grpc.ClientConnInterface) SalesServiceClient
type SalesServiceServer ¶
type SalesServiceServer interface { SalesCreate(context.Context, *Sales) (*Sales, error) SalesUpdate(context.Context, *Sales) (*Sales, error) SalesView(context.Context, *Id) (*Sales, error) SalesList(*ListSalesRequest, SalesService_SalesListServer) error // contains filtered or unexported methods }
SalesServiceServer is the server API for SalesService service. All implementations must embed UnimplementedSalesServiceServer for forward compatibility
type SalesService_SalesListClient ¶
type SalesService_SalesListClient interface { Recv() (*ListSalesResponse, error) grpc.ClientStream }
type SalesService_SalesListServer ¶
type SalesService_SalesListServer interface { Send(*ListSalesResponse) error grpc.ServerStream }
type Salesman ¶
type Salesman 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"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` CreatedBy string `protobuf:"bytes,8,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,10,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // contains filtered or unexported fields }
func (*Salesman) Descriptor
deprecated
func (*Salesman) GetAddress ¶
func (*Salesman) GetCreatedAt ¶
func (*Salesman) GetCreatedBy ¶
func (*Salesman) GetUpdatedAt ¶
func (*Salesman) GetUpdatedBy ¶
func (*Salesman) ProtoMessage ¶
func (*Salesman) ProtoMessage()
func (*Salesman) ProtoReflect ¶
func (x *Salesman) ProtoReflect() protoreflect.Message
type SalesmanPaginationResponse ¶
type SalesmanPaginationResponse 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 (*SalesmanPaginationResponse) Descriptor
deprecated
func (*SalesmanPaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use SalesmanPaginationResponse.ProtoReflect.Descriptor instead.
func (*SalesmanPaginationResponse) GetCount ¶
func (x *SalesmanPaginationResponse) GetCount() uint32
func (*SalesmanPaginationResponse) GetPagination ¶
func (x *SalesmanPaginationResponse) GetPagination() *Pagination
func (*SalesmanPaginationResponse) ProtoMessage ¶
func (*SalesmanPaginationResponse) ProtoMessage()
func (*SalesmanPaginationResponse) ProtoReflect ¶
func (x *SalesmanPaginationResponse) ProtoReflect() protoreflect.Message
func (*SalesmanPaginationResponse) Reset ¶
func (x *SalesmanPaginationResponse) Reset()
func (*SalesmanPaginationResponse) String ¶
func (x *SalesmanPaginationResponse) String() string
type SalesmanServiceClient ¶
type SalesmanServiceClient interface { SalesmanCreate(ctx context.Context, in *Salesman, opts ...grpc.CallOption) (*Salesman, error) SalesmanUpdate(ctx context.Context, in *Salesman, opts ...grpc.CallOption) (*Salesman, error) SalesmanView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Salesman, error) SalesmanList(ctx context.Context, in *ListSalesmanRequest, opts ...grpc.CallOption) (SalesmanService_SalesmanListClient, error) }
SalesmanServiceClient is the client API for SalesmanService 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 NewSalesmanServiceClient ¶
func NewSalesmanServiceClient(cc grpc.ClientConnInterface) SalesmanServiceClient
type SalesmanServiceServer ¶
type SalesmanServiceServer interface { SalesmanCreate(context.Context, *Salesman) (*Salesman, error) SalesmanUpdate(context.Context, *Salesman) (*Salesman, error) SalesmanView(context.Context, *Id) (*Salesman, error) SalesmanList(*ListSalesmanRequest, SalesmanService_SalesmanListServer) error // contains filtered or unexported methods }
SalesmanServiceServer is the server API for SalesmanService service. All implementations must embed UnimplementedSalesmanServiceServer for forward compatibility
type SalesmanService_SalesmanListClient ¶
type SalesmanService_SalesmanListClient interface { Recv() (*ListSalesmanResponse, error) grpc.ClientStream }
type SalesmanService_SalesmanListServer ¶
type SalesmanService_SalesmanListServer interface { Send(*ListSalesmanResponse) error grpc.ServerStream }
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) CustomerCreate ¶
func (UnimplementedCustomerServiceServer) CustomerList ¶
func (UnimplementedCustomerServiceServer) CustomerList(*ListCustomerRequest, CustomerService_CustomerListServer) error
func (UnimplementedCustomerServiceServer) CustomerUpdate ¶
func (UnimplementedCustomerServiceServer) CustomerView ¶
type UnimplementedSalesReturnServiceServer ¶
type UnimplementedSalesReturnServiceServer struct { }
UnimplementedSalesReturnServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSalesReturnServiceServer) SalesReturnCreate ¶
func (UnimplementedSalesReturnServiceServer) SalesReturnCreate(context.Context, *SalesReturn) (*SalesReturn, error)
func (UnimplementedSalesReturnServiceServer) SalesReturnList ¶
func (UnimplementedSalesReturnServiceServer) SalesReturnList(*ListSalesReturnRequest, SalesReturnService_SalesReturnListServer) error
func (UnimplementedSalesReturnServiceServer) SalesReturnUpdate ¶
func (UnimplementedSalesReturnServiceServer) SalesReturnUpdate(context.Context, *SalesReturn) (*SalesReturn, error)
func (UnimplementedSalesReturnServiceServer) SalesReturnView ¶
func (UnimplementedSalesReturnServiceServer) SalesReturnView(context.Context, *Id) (*SalesReturn, error)
type UnimplementedSalesServiceServer ¶
type UnimplementedSalesServiceServer struct { }
UnimplementedSalesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSalesServiceServer) SalesCreate ¶
func (UnimplementedSalesServiceServer) SalesList ¶
func (UnimplementedSalesServiceServer) SalesList(*ListSalesRequest, SalesService_SalesListServer) error
func (UnimplementedSalesServiceServer) SalesUpdate ¶
type UnimplementedSalesmanServiceServer ¶
type UnimplementedSalesmanServiceServer struct { }
UnimplementedSalesmanServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSalesmanServiceServer) SalesmanCreate ¶
func (UnimplementedSalesmanServiceServer) SalesmanList ¶
func (UnimplementedSalesmanServiceServer) SalesmanList(*ListSalesmanRequest, SalesmanService_SalesmanListServer) error
func (UnimplementedSalesmanServiceServer) SalesmanUpdate ¶
func (UnimplementedSalesmanServiceServer) SalesmanView ¶
type UnsafeCustomerServiceServer ¶
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.
type UnsafeSalesReturnServiceServer ¶
type UnsafeSalesReturnServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSalesReturnServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SalesReturnServiceServer will result in compilation errors.
type UnsafeSalesServiceServer ¶
type UnsafeSalesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSalesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SalesServiceServer will result in compilation errors.
type UnsafeSalesmanServiceServer ¶
type UnsafeSalesmanServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSalesmanServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SalesmanServiceServer will result in compilation errors.
Source Files ¶
- customer_message.pb.go
- customer_service.pb.go
- customer_service_grpc.pb.go
- generic_message.pb.go
- sales_message.pb.go
- sales_return_message.pb.go
- sales_return_service.pb.go
- sales_return_service_grpc.pb.go
- sales_service.pb.go
- sales_service_grpc.pb.go
- salesman_message.pb.go
- salesman_service.pb.go
- salesman_service_grpc.pb.go