seller

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_seller_seller_proto protoreflect.FileDescriptor
View Source
var SellerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seller.SellerService",
	HandlerType: (*SellerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _SellerService_Register_Handler,
		},
		{
			MethodName: "ListByTradingPoint",
			Handler:    _SellerService_ListByTradingPoint_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seller/seller.proto",
}

SellerService_ServiceDesc is the grpc.ServiceDesc for SellerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSellerServiceServer

func RegisterSellerServiceServer(s grpc.ServiceRegistrar, srv SellerServiceServer)

Types

type ListByTradingPointRequest

type ListByTradingPointRequest struct {
	TradingPointId   int32                         `protobuf:"varint,1,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListByTradingPointRequest) Descriptor deprecated

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

Deprecated: Use ListByTradingPointRequest.ProtoReflect.Descriptor instead.

func (*ListByTradingPointRequest) GetTradingPointId

func (x *ListByTradingPointRequest) GetTradingPointId() int32

func (*ListByTradingPointRequest) GetTradingPointType

func (x *ListByTradingPointRequest) GetTradingPointType() tradingpoint.TradingPointType

func (*ListByTradingPointRequest) ProtoMessage

func (*ListByTradingPointRequest) ProtoMessage()

func (*ListByTradingPointRequest) ProtoReflect

func (*ListByTradingPointRequest) Reset

func (x *ListByTradingPointRequest) Reset()

func (*ListByTradingPointRequest) String

func (x *ListByTradingPointRequest) String() string

type ListByTradingPointResponse

type ListByTradingPointResponse struct {
	Seller []*Seller `protobuf:"bytes,1,rep,name=seller,proto3" json:"seller,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByTradingPointResponse) Descriptor deprecated

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

Deprecated: Use ListByTradingPointResponse.ProtoReflect.Descriptor instead.

func (*ListByTradingPointResponse) GetSeller

func (x *ListByTradingPointResponse) GetSeller() []*Seller

func (*ListByTradingPointResponse) ProtoMessage

func (*ListByTradingPointResponse) ProtoMessage()

func (*ListByTradingPointResponse) ProtoReflect

func (*ListByTradingPointResponse) Reset

func (x *ListByTradingPointResponse) Reset()

func (*ListByTradingPointResponse) String

func (x *ListByTradingPointResponse) String() string

type RegisterRequest

type RegisterRequest struct {
	FirstName        string                        `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName         string                        `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	MiddleName       string                        `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	BirthDate        *core.Date                    `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	Salary           *core.Money                   `protobuf:"bytes,5,opt,name=salary,proto3" json:"salary,omitempty"`
	PhoneNumber      string                        `protobuf:"bytes,6,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	PlaceOfWorkId    int32                         `protobuf:"varint,7,opt,name=place_of_work_id,json=placeOfWorkId,proto3" json:"place_of_work_id,omitempty"`
	PlaceOfWorkType  tradingpoint.PlaceOfWorkType  `` /* 145-byte string literal not displayed */
	TradingPointId   int32                         `protobuf:"varint,9,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetBirthDate

func (x *RegisterRequest) GetBirthDate() *core.Date

func (*RegisterRequest) GetFirstName

func (x *RegisterRequest) GetFirstName() string

func (*RegisterRequest) GetLastName

func (x *RegisterRequest) GetLastName() string

func (*RegisterRequest) GetMiddleName

func (x *RegisterRequest) GetMiddleName() string

func (*RegisterRequest) GetPhoneNumber

func (x *RegisterRequest) GetPhoneNumber() string

func (*RegisterRequest) GetPlaceOfWorkId

func (x *RegisterRequest) GetPlaceOfWorkId() int32

func (*RegisterRequest) GetPlaceOfWorkType

func (x *RegisterRequest) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType

func (*RegisterRequest) GetSalary

func (x *RegisterRequest) GetSalary() *core.Money

func (*RegisterRequest) GetTradingPointId

func (x *RegisterRequest) GetTradingPointId() int32

func (*RegisterRequest) GetTradingPointType

func (x *RegisterRequest) GetTradingPointType() tradingpoint.TradingPointType

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetId

func (x *RegisterResponse) GetId() int32

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type Seller

type Seller struct {
	Id               int32                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName        string                        `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName         string                        `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	MiddleName       string                        `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	BirthDate        *core.Date                    `protobuf:"bytes,5,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	Salary           *core.Money                   `protobuf:"bytes,6,opt,name=salary,proto3" json:"salary,omitempty"`
	PhoneNumber      string                        `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	PlaceOfWorkId    int32                         `protobuf:"varint,8,opt,name=place_of_work_id,json=placeOfWorkId,proto3" json:"place_of_work_id,omitempty"`
	PlaceOfWorkType  tradingpoint.PlaceOfWorkType  `` /* 145-byte string literal not displayed */
	TradingPointId   int32                         `protobuf:"varint,10,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Seller) Descriptor deprecated

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

Deprecated: Use Seller.ProtoReflect.Descriptor instead.

func (*Seller) GetBirthDate

func (x *Seller) GetBirthDate() *core.Date

func (*Seller) GetFirstName

func (x *Seller) GetFirstName() string

func (*Seller) GetId

func (x *Seller) GetId() int32

func (*Seller) GetLastName

func (x *Seller) GetLastName() string

func (*Seller) GetMiddleName

func (x *Seller) GetMiddleName() string

func (*Seller) GetPhoneNumber

func (x *Seller) GetPhoneNumber() string

func (*Seller) GetPlaceOfWorkId

func (x *Seller) GetPlaceOfWorkId() int32

func (*Seller) GetPlaceOfWorkType

func (x *Seller) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType

func (*Seller) GetSalary

func (x *Seller) GetSalary() *core.Money

func (*Seller) GetTradingPointId

func (x *Seller) GetTradingPointId() int32

func (*Seller) GetTradingPointType

func (x *Seller) GetTradingPointType() tradingpoint.TradingPointType

func (*Seller) ProtoMessage

func (*Seller) ProtoMessage()

func (*Seller) ProtoReflect

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

func (*Seller) Reset

func (x *Seller) Reset()

func (*Seller) String

func (x *Seller) String() string

type SellerServiceClient

type SellerServiceClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	ListByTradingPoint(ctx context.Context, in *ListByTradingPointRequest, opts ...grpc.CallOption) (*ListByTradingPointResponse, error)
}

SellerServiceClient is the client API for SellerService 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 SellerServiceServer

type SellerServiceServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	ListByTradingPoint(context.Context, *ListByTradingPointRequest) (*ListByTradingPointResponse, error)
	// contains filtered or unexported methods
}

SellerServiceServer is the server API for SellerService service. All implementations must embed UnimplementedSellerServiceServer for forward compatibility

type UnimplementedSellerServiceServer

type UnimplementedSellerServiceServer struct {
}

UnimplementedSellerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSellerServiceServer) ListByTradingPoint

func (UnimplementedSellerServiceServer) Register

type UnsafeSellerServiceServer

type UnsafeSellerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSellerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SellerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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