seller

package
v0.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SellerStatus_name = map[int32]string{
		0: "SELLER_STATUS_WORKING",
		1: "SELLER_STATUS_NOT_WORKING",
	}
	SellerStatus_value = map[string]int32{
		"SELLER_STATUS_WORKING":     0,
		"SELLER_STATUS_NOT_WORKING": 1,
	}
)

Enum value maps for SellerStatus.

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 {
	Sellers []*Seller `protobuf:"bytes,1,rep,name=sellers,proto3" json:"sellers,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByTradingPointResponse) Descriptor deprecated

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

Deprecated: Use ListByTradingPointResponse.ProtoReflect.Descriptor instead.

func (*ListByTradingPointResponse) GetSellers added in v0.0.15

func (x *ListByTradingPointResponse) GetSellers() []*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 PlaceOfWork added in v0.0.17

type PlaceOfWork struct {
	PlaceOfWorkId    int32                         `protobuf:"varint,1,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,3,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 (*PlaceOfWork) Descriptor deprecated added in v0.0.17

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

Deprecated: Use PlaceOfWork.ProtoReflect.Descriptor instead.

func (*PlaceOfWork) GetPlaceOfWorkId added in v0.0.17

func (x *PlaceOfWork) GetPlaceOfWorkId() int32

func (*PlaceOfWork) GetPlaceOfWorkType added in v0.0.17

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

func (*PlaceOfWork) GetTradingPointId added in v0.0.17

func (x *PlaceOfWork) GetTradingPointId() int32

func (*PlaceOfWork) GetTradingPointType added in v0.0.17

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

func (*PlaceOfWork) ProtoMessage added in v0.0.17

func (*PlaceOfWork) ProtoMessage()

func (*PlaceOfWork) ProtoReflect added in v0.0.17

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

func (*PlaceOfWork) Reset added in v0.0.17

func (x *PlaceOfWork) Reset()

func (*PlaceOfWork) String added in v0.0.17

func (x *PlaceOfWork) 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"`
	// 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) GetSalary

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

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"`
	Status      SellerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=seller.SellerStatus" json:"status,omitempty"`
	FirstName   string       `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName    string       `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	MiddleName  string       `protobuf:"bytes,5,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	BirthDate   *core.Date   `protobuf:"bytes,6,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	Salary      *core.Money  `protobuf:"bytes,7,opt,name=salary,proto3" json:"salary,omitempty"`
	PhoneNumber string       `protobuf:"bytes,8,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	PlaceOfWork *PlaceOfWork `protobuf:"bytes,9,opt,name=place_of_work,json=placeOfWork,proto3,oneof" json:"place_of_work,omitempty"`
	// 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) GetPlaceOfWork added in v0.0.17

func (x *Seller) GetPlaceOfWork() *PlaceOfWork

func (*Seller) GetSalary

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

func (*Seller) GetStatus added in v0.0.17

func (x *Seller) GetStatus() SellerStatus

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 SellerStatus added in v0.0.17

type SellerStatus int32
const (
	SellerStatus_SELLER_STATUS_WORKING     SellerStatus = 0
	SellerStatus_SELLER_STATUS_NOT_WORKING SellerStatus = 1
)

func (SellerStatus) Descriptor added in v0.0.17

func (SellerStatus) Enum added in v0.0.17

func (x SellerStatus) Enum() *SellerStatus

func (SellerStatus) EnumDescriptor deprecated added in v0.0.17

func (SellerStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use SellerStatus.Descriptor instead.

func (SellerStatus) Number added in v0.0.17

func (SellerStatus) String added in v0.0.17

func (x SellerStatus) String() string

func (SellerStatus) Type added in v0.0.17

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