Documentation ¶
Index ¶
- Variables
- func RegisterVendorServiceServer(s grpc.ServiceRegistrar, srv VendorServiceServer)
- type GetVendorRequest
- type UnimplementedVendorServiceServer
- type UnsafeVendorServiceServer
- type Vendor
- func (*Vendor) Descriptor() ([]byte, []int)deprecated
- func (x *Vendor) GetCreateTime() *timestamp.Timestamp
- func (x *Vendor) GetDescription() string
- func (x *Vendor) GetName() string
- func (x *Vendor) GetTelephone() string
- func (x *Vendor) GetTitle() string
- func (x *Vendor) GetUpdateTime() *timestamp.Timestamp
- func (*Vendor) ProtoMessage()
- func (x *Vendor) ProtoReflect() protoreflect.Message
- func (x *Vendor) Reset()
- func (x *Vendor) String() string
- type VendorServiceClient
- type VendorServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_yuanting_yt_v1_vendor_proto protoreflect.FileDescriptor
var File_yuanting_yt_v1_vendor_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterVendorServiceServer ¶
func RegisterVendorServiceServer(s grpc.ServiceRegistrar, srv VendorServiceServer)
Types ¶
type GetVendorRequest ¶
type GetVendorRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetVendorRequest) Descriptor
deprecated
func (*GetVendorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVendorRequest.ProtoReflect.Descriptor instead.
func (*GetVendorRequest) GetName ¶
func (x *GetVendorRequest) GetName() string
func (*GetVendorRequest) ProtoMessage ¶
func (*GetVendorRequest) ProtoMessage()
func (*GetVendorRequest) ProtoReflect ¶
func (x *GetVendorRequest) ProtoReflect() protoreflect.Message
func (*GetVendorRequest) Reset ¶
func (x *GetVendorRequest) Reset()
func (*GetVendorRequest) String ¶
func (x *GetVendorRequest) String() string
type UnimplementedVendorServiceServer ¶
type UnimplementedVendorServiceServer struct { }
UnimplementedVendorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVendorServiceServer) GetVendor ¶
func (UnimplementedVendorServiceServer) GetVendor(context.Context, *GetVendorRequest) (*Vendor, error)
type UnsafeVendorServiceServer ¶
type UnsafeVendorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVendorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VendorServiceServer will result in compilation errors.
type Vendor ¶
type Vendor struct { // Resource name of the vendor. It must have the format of "vendors/*". // For example: "vendors/1". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Telephone string `protobuf:"bytes,4,opt,name=telephone,proto3" json:"telephone,omitempty"` // Address address = 5; // Contact contact = 6; // BankAccount bank_account = 7; CreateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime *timestamp.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Vendor) Descriptor
deprecated
func (*Vendor) GetCreateTime ¶
func (*Vendor) GetDescription ¶
func (*Vendor) GetTelephone ¶
func (*Vendor) GetUpdateTime ¶
func (*Vendor) ProtoMessage ¶
func (*Vendor) ProtoMessage()
func (*Vendor) ProtoReflect ¶
func (x *Vendor) ProtoReflect() protoreflect.Message
type VendorServiceClient ¶
type VendorServiceClient interface {
GetVendor(ctx context.Context, in *GetVendorRequest, opts ...grpc.CallOption) (*Vendor, error)
}
VendorServiceClient is the client API for VendorService 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 NewVendorServiceClient ¶
func NewVendorServiceClient(cc grpc.ClientConnInterface) VendorServiceClient
type VendorServiceServer ¶
type VendorServiceServer interface { GetVendor(context.Context, *GetVendorRequest) (*Vendor, error) // contains filtered or unexported methods }
VendorServiceServer is the server API for VendorService service. All implementations must embed UnimplementedVendorServiceServer for forward compatibility