Documentation
¶
Index ¶
- Variables
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetAddress() string
- func (x *Address) GetApp() *AppReq
- func (x *Address) GetMobile() string
- func (x *Address) GetReply() *SkipUrlsReply
- func (x *Address) GetResp() []*AppReply
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type AppReply
- type AppReq
- type SkipUrlsReply
- type StaffInfoReply
- func (*StaffInfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *StaffInfoReply) GetBirthday() string
- func (x *StaffInfoReply) GetGender() string
- func (x *StaffInfoReply) GetId() int64
- func (x *StaffInfoReply) GetMobile() string
- func (x *StaffInfoReply) GetNickName() string
- func (x *StaffInfoReply) GetStaffName() string
- func (*StaffInfoReply) ProtoMessage()
- func (x *StaffInfoReply) ProtoReflect() protoreflect.Message
- func (x *StaffInfoReply) Reset()
- func (x *StaffInfoReply) String() string
- type StaffInfoReq
- func (*StaffInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *StaffInfoReq) GetId() int64
- func (x *StaffInfoReq) GetShopId() int64
- func (*StaffInfoReq) ProtoMessage()
- func (x *StaffInfoReq) ProtoReflect() protoreflect.Message
- func (x *StaffInfoReq) Reset()
- func (x *StaffInfoReq) String() string
- type UnimplementedUserServer
- func (*UnimplementedUserServer) DelStaff(context.Context, *StaffInfoReq) (*emptypb.Empty, error)
- func (*UnimplementedUserServer) GetAppSecret(context.Context, *AppReq) (*AppReply, error)
- func (*UnimplementedUserServer) GetAppSkipUrls(context.Context, *AppReq) (*SkipUrlsReply, error)
- func (*UnimplementedUserServer) GetStaffInfo(context.Context, *StaffInfoReq) (*StaffInfoReply, error)
- func (*UnimplementedUserServer) TestValidator(context.Context, *ValidateReq) (*emptypb.Empty, error)
- type UserClient
- type UserServer
- type ValidateReq
- func (*ValidateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateReq) GetAddr() []*Address
- func (x *ValidateReq) GetAge() int32
- func (x *ValidateReq) GetEmail() string
- func (x *ValidateReq) GetName() string
- func (x *ValidateReq) GetPassword() string
- func (x *ValidateReq) GetSex() int32
- func (*ValidateReq) ProtoMessage()
- func (x *ValidateReq) ProtoReflect() protoreflect.Message
- func (x *ValidateReq) Reset()
- func (x *ValidateReq) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type Address ¶
type Address struct {
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
App *AppReq `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
Reply *SkipUrlsReply `protobuf:"bytes,4,opt,name=reply,proto3" json:"reply,omitempty"`
Resp []*AppReply `protobuf:"bytes,5,rep,name=resp,proto3" json:"resp,omitempty"`
// contains filtered or unexported fields
}
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) GetReply ¶
func (x *Address) GetReply() *SkipUrlsReply
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type AppReply ¶
type AppReply struct {
Appkey string `protobuf:"bytes,1,opt,name=appkey,proto3" json:"appkey,omitempty"`
Appsecret string `protobuf:"bytes,2,opt,name=appsecret,proto3" json:"appsecret,omitempty"`
// contains filtered or unexported fields
}
func (*AppReply) Descriptor
deprecated
func (*AppReply) GetAppsecret ¶
func (*AppReply) ProtoMessage ¶
func (*AppReply) ProtoMessage()
func (*AppReply) ProtoReflect ¶
func (x *AppReply) ProtoReflect() protoreflect.Message
type AppReq ¶
type AppReq struct {
Sappkey string `protobuf:"bytes,1,opt,name=sappkey,proto3" json:"sappkey,omitempty"`
// contains filtered or unexported fields
}
func (*AppReq) Descriptor
deprecated
func (*AppReq) GetSappkey ¶
func (*AppReq) ProtoMessage ¶
func (*AppReq) ProtoMessage()
func (*AppReq) ProtoReflect ¶
func (x *AppReq) ProtoReflect() protoreflect.Message
type SkipUrlsReply ¶
type SkipUrlsReply struct {
Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
// contains filtered or unexported fields
}
func (*SkipUrlsReply) Descriptor
deprecated
func (*SkipUrlsReply) Descriptor() ([]byte, []int)
Deprecated: Use SkipUrlsReply.ProtoReflect.Descriptor instead.
func (*SkipUrlsReply) GetUrls ¶
func (x *SkipUrlsReply) GetUrls() []string
func (*SkipUrlsReply) ProtoMessage ¶
func (*SkipUrlsReply) ProtoMessage()
func (*SkipUrlsReply) ProtoReflect ¶
func (x *SkipUrlsReply) ProtoReflect() protoreflect.Message
func (*SkipUrlsReply) Reset ¶
func (x *SkipUrlsReply) Reset()
func (*SkipUrlsReply) String ¶
func (x *SkipUrlsReply) String() string
type StaffInfoReply ¶
type StaffInfoReply struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
StaffName string `protobuf:"bytes,2,opt,name=staff_name,json=staffName,proto3" json:"staff_name,omitempty"`
NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"`
Gender string `protobuf:"bytes,6,opt,name=gender,proto3" json:"gender,omitempty"`
// contains filtered or unexported fields
}
func (*StaffInfoReply) Descriptor
deprecated
func (*StaffInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use StaffInfoReply.ProtoReflect.Descriptor instead.
func (*StaffInfoReply) GetBirthday ¶
func (x *StaffInfoReply) GetBirthday() string
func (*StaffInfoReply) GetGender ¶
func (x *StaffInfoReply) GetGender() string
func (*StaffInfoReply) GetId ¶
func (x *StaffInfoReply) GetId() int64
func (*StaffInfoReply) GetMobile ¶
func (x *StaffInfoReply) GetMobile() string
func (*StaffInfoReply) GetNickName ¶
func (x *StaffInfoReply) GetNickName() string
func (*StaffInfoReply) GetStaffName ¶
func (x *StaffInfoReply) GetStaffName() string
func (*StaffInfoReply) ProtoMessage ¶
func (*StaffInfoReply) ProtoMessage()
func (*StaffInfoReply) ProtoReflect ¶
func (x *StaffInfoReply) ProtoReflect() protoreflect.Message
func (*StaffInfoReply) Reset ¶
func (x *StaffInfoReply) Reset()
func (*StaffInfoReply) String ¶
func (x *StaffInfoReply) String() string
type StaffInfoReq ¶
type StaffInfoReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ShopId int64 `protobuf:"varint,2,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"`
// contains filtered or unexported fields
}
func (*StaffInfoReq) Descriptor
deprecated
func (*StaffInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use StaffInfoReq.ProtoReflect.Descriptor instead.
func (*StaffInfoReq) GetId ¶
func (x *StaffInfoReq) GetId() int64
func (*StaffInfoReq) GetShopId ¶
func (x *StaffInfoReq) GetShopId() int64
func (*StaffInfoReq) ProtoMessage ¶
func (*StaffInfoReq) ProtoMessage()
func (*StaffInfoReq) ProtoReflect ¶
func (x *StaffInfoReq) ProtoReflect() protoreflect.Message
func (*StaffInfoReq) Reset ¶
func (x *StaffInfoReq) Reset()
func (*StaffInfoReq) String ¶
func (x *StaffInfoReq) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct {
}
UnimplementedUserServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServer) DelStaff ¶
func (*UnimplementedUserServer) DelStaff(context.Context, *StaffInfoReq) (*emptypb.Empty, error)
func (*UnimplementedUserServer) GetAppSecret ¶
func (*UnimplementedUserServer) GetAppSkipUrls ¶
func (*UnimplementedUserServer) GetAppSkipUrls(context.Context, *AppReq) (*SkipUrlsReply, error)
func (*UnimplementedUserServer) GetStaffInfo ¶
func (*UnimplementedUserServer) GetStaffInfo(context.Context, *StaffInfoReq) (*StaffInfoReply, error)
func (*UnimplementedUserServer) TestValidator ¶
func (*UnimplementedUserServer) TestValidator(context.Context, *ValidateReq) (*emptypb.Empty, error)
type UserClient ¶
type UserClient interface {
GetStaffInfo(ctx context.Context, in *StaffInfoReq, opts ...grpc.CallOption) (*StaffInfoReply, error)
DelStaff(ctx context.Context, in *StaffInfoReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetAppSecret(ctx context.Context, in *AppReq, opts ...grpc.CallOption) (*AppReply, error)
GetAppSkipUrls(ctx context.Context, in *AppReq, opts ...grpc.CallOption) (*SkipUrlsReply, error)
TestValidator(ctx context.Context, in *ValidateReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserServer ¶
type UserServer interface {
GetStaffInfo(context.Context, *StaffInfoReq) (*StaffInfoReply, error)
DelStaff(context.Context, *StaffInfoReq) (*emptypb.Empty, error)
GetAppSecret(context.Context, *AppReq) (*AppReply, error)
GetAppSkipUrls(context.Context, *AppReq) (*SkipUrlsReply, error)
TestValidator(context.Context, *ValidateReq) (*emptypb.Empty, error)
}
UserServer is the server API for User service.
type ValidateReq ¶
type ValidateReq struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Sex int32 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"`
Age int32 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"`
Addr []*Address `protobuf:"bytes,6,rep,name=addr,proto3" json:"addr,omitempty"`
// contains filtered or unexported fields
}
func (*ValidateReq) Descriptor
deprecated
func (*ValidateReq) Descriptor() ([]byte, []int)
Deprecated: Use ValidateReq.ProtoReflect.Descriptor instead.
func (*ValidateReq) GetAddr ¶
func (x *ValidateReq) GetAddr() []*Address
func (*ValidateReq) GetAge ¶
func (x *ValidateReq) GetAge() int32
func (*ValidateReq) GetEmail ¶
func (x *ValidateReq) GetEmail() string
func (*ValidateReq) GetName ¶
func (x *ValidateReq) GetName() string
func (*ValidateReq) GetPassword ¶
func (x *ValidateReq) GetPassword() string
func (*ValidateReq) GetSex ¶
func (x *ValidateReq) GetSex() int32
func (*ValidateReq) ProtoMessage ¶
func (*ValidateReq) ProtoMessage()
func (*ValidateReq) ProtoReflect ¶
func (x *ValidateReq) ProtoReflect() protoreflect.Message
func (*ValidateReq) Reset ¶
func (x *ValidateReq) Reset()
func (*ValidateReq) String ¶
func (x *ValidateReq) String() string
Click to show internal directories.
Click to hide internal directories.