user

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) GetApp

func (x *Address) GetApp() *AppReq

func (*Address) GetMobile

func (x *Address) GetMobile() string

func (*Address) GetReply

func (x *Address) GetReply() *SkipUrlsReply

func (*Address) GetResp

func (x *Address) GetResp() []*AppReply

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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

Deprecated: Use AppReply.ProtoReflect.Descriptor instead.

func (*AppReply) GetAppkey

func (x *AppReply) GetAppkey() string

func (*AppReply) GetAppsecret

func (x *AppReply) GetAppsecret() string

func (*AppReply) ProtoMessage

func (*AppReply) ProtoMessage()

func (*AppReply) ProtoReflect

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

func (*AppReply) Reset

func (x *AppReply) Reset()

func (*AppReply) String

func (x *AppReply) String() string

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

Deprecated: Use AppReq.ProtoReflect.Descriptor instead.

func (*AppReq) GetSappkey

func (x *AppReq) GetSappkey() string

func (*AppReq) ProtoMessage

func (*AppReq) ProtoMessage()

func (*AppReq) ProtoReflect

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

func (*AppReq) Reset

func (x *AppReq) Reset()

func (*AppReq) String

func (x *AppReq) String() string

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

func (*UnimplementedUserServer) GetAppSkipUrls

func (*UnimplementedUserServer) GetStaffInfo

func (*UnimplementedUserServer) TestValidator

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

Jump to

Keyboard shortcuts

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