sales

package
v0.0.0-...-def015a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
var File_pkg_api_v1_sales_customer_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_customer_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_generic_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_sales_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_sales_return_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_sales_return_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_sales_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_salesman_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_sales_salesman_service_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetAddress

func (x *Customer) GetAddress() string

func (*Customer) GetCode

func (x *Customer) GetCode() string

func (*Customer) GetCreatedAt

func (x *Customer) GetCreatedAt() string

func (*Customer) GetCreatedBy

func (x *Customer) GetCreatedBy() string

func (*Customer) GetId

func (x *Customer) GetId() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) GetPhone

func (x *Customer) GetPhone() string

func (*Customer) GetUpdatedAt

func (x *Customer) GetUpdatedAt() string

func (*Customer) GetUpdatedBy

func (x *Customer) GetUpdatedBy() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

func (x *Customer) ProtoReflect() protoreflect.Message

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

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 (*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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) GetId

func (x *Id) GetId() string

func (*Id) ProtoMessage

func (*Id) ProtoMessage()

func (*Id) ProtoReflect

func (x *Id) ProtoReflect() protoreflect.Message

func (*Id) Reset

func (x *Id) Reset()

func (*Id) String

func (x *Id) String() string

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 (*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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use MyBoolean.ProtoReflect.Descriptor instead.

func (*MyBoolean) GetBoolean

func (x *MyBoolean) GetBoolean() bool

func (*MyBoolean) ProtoMessage

func (*MyBoolean) ProtoMessage()

func (*MyBoolean) ProtoReflect

func (x *MyBoolean) ProtoReflect() protoreflect.Message

func (*MyBoolean) Reset

func (x *MyBoolean) Reset()

func (*MyBoolean) String

func (x *MyBoolean) String() string

type MyEmpty

type MyEmpty struct {
	// contains filtered or unexported fields
}

func (*MyEmpty) Descriptor deprecated

func (*MyEmpty) Descriptor() ([]byte, []int)

Deprecated: Use MyEmpty.ProtoReflect.Descriptor instead.

func (*MyEmpty) ProtoMessage

func (*MyEmpty) ProtoMessage()

func (*MyEmpty) ProtoReflect

func (x *MyEmpty) ProtoReflect() protoreflect.Message

func (*MyEmpty) Reset

func (x *MyEmpty) Reset()

func (*MyEmpty) String

func (x *MyEmpty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use MyString.ProtoReflect.Descriptor instead.

func (*MyString) GetString_

func (x *MyString) GetString_() string

func (*MyString) ProtoMessage

func (*MyString) ProtoMessage()

func (*MyString) ProtoReflect

func (x *MyString) ProtoReflect() protoreflect.Message

func (*MyString) Reset

func (x *MyString) Reset()

func (*MyString) String

func (x *MyString) String() string

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) 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 (Pagination_Sort) String

func (x Pagination_Sort) String() string

func (Pagination_Sort) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Sales.ProtoReflect.Descriptor instead.

func (*Sales) GetAdditionalDiscAmount

func (x *Sales) GetAdditionalDiscAmount() float64

func (*Sales) GetAdditionalDiscPercentage

func (x *Sales) GetAdditionalDiscPercentage() float32

func (*Sales) GetBranchId

func (x *Sales) GetBranchId() string

func (*Sales) GetBranchName

func (x *Sales) GetBranchName() string

func (*Sales) GetCode

func (x *Sales) GetCode() string

func (*Sales) GetCreatedAt

func (x *Sales) GetCreatedAt() string

func (*Sales) GetCreatedBy

func (x *Sales) GetCreatedBy() string

func (*Sales) GetCustomer

func (x *Sales) GetCustomer() *Customer

func (*Sales) GetDetails

func (x *Sales) GetDetails() []*SalesDetail

func (*Sales) GetId

func (x *Sales) GetId() string

func (*Sales) GetPrice

func (x *Sales) GetPrice() float64

func (*Sales) GetRemark

func (x *Sales) GetRemark() string

func (*Sales) GetSalesDate

func (x *Sales) GetSalesDate() string

func (*Sales) GetSalesman

func (x *Sales) GetSalesman() *Salesman

func (*Sales) GetTotalPrice

func (x *Sales) GetTotalPrice() float64

func (*Sales) GetUpdatedAt

func (x *Sales) GetUpdatedAt() string

func (*Sales) GetUpdatedBy

func (x *Sales) GetUpdatedBy() string

func (*Sales) ProtoMessage

func (*Sales) ProtoMessage()

func (*Sales) ProtoReflect

func (x *Sales) ProtoReflect() protoreflect.Message

func (*Sales) Reset

func (x *Sales) Reset()

func (*Sales) String

func (x *Sales) String() string

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 (*SalesReturnPaginationResponse) Reset

func (x *SalesReturnPaginationResponse) Reset()

func (*SalesReturnPaginationResponse) 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.

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Salesman.ProtoReflect.Descriptor instead.

func (*Salesman) GetAddress

func (x *Salesman) GetAddress() string

func (*Salesman) GetCode

func (x *Salesman) GetCode() string

func (*Salesman) GetCreatedAt

func (x *Salesman) GetCreatedAt() string

func (*Salesman) GetCreatedBy

func (x *Salesman) GetCreatedBy() string

func (*Salesman) GetEmail

func (x *Salesman) GetEmail() string

func (*Salesman) GetId

func (x *Salesman) GetId() string

func (*Salesman) GetName

func (x *Salesman) GetName() string

func (*Salesman) GetPhone

func (x *Salesman) GetPhone() string

func (*Salesman) GetUpdatedAt

func (x *Salesman) GetUpdatedAt() string

func (*Salesman) GetUpdatedBy

func (x *Salesman) GetUpdatedBy() string

func (*Salesman) ProtoMessage

func (*Salesman) ProtoMessage()

func (*Salesman) ProtoReflect

func (x *Salesman) ProtoReflect() protoreflect.Message

func (*Salesman) Reset

func (x *Salesman) Reset()

func (*Salesman) String

func (x *Salesman) String() string

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 (*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.

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) CustomerUpdate

func (UnimplementedCustomerServiceServer) CustomerView

type UnimplementedSalesReturnServiceServer

type UnimplementedSalesReturnServiceServer struct {
}

UnimplementedSalesReturnServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSalesReturnServiceServer) SalesReturnCreate

func (UnimplementedSalesReturnServiceServer) SalesReturnUpdate

func (UnimplementedSalesReturnServiceServer) SalesReturnView

type UnimplementedSalesServiceServer

type UnimplementedSalesServiceServer struct {
}

UnimplementedSalesServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSalesServiceServer) SalesCreate

func (UnimplementedSalesServiceServer) SalesList

func (UnimplementedSalesServiceServer) SalesUpdate

func (UnimplementedSalesServiceServer) SalesView

type UnimplementedSalesmanServiceServer

type UnimplementedSalesmanServiceServer struct {
}

UnimplementedSalesmanServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSalesmanServiceServer) SalesmanCreate

func (UnimplementedSalesmanServiceServer) SalesmanList

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL