yuyoung_srv_sk_user_srv

package
v0.0.0-...-14907fc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package yuyoung_srv_sk_user_srv is a generated protocol buffer package.

It is generated from these files:

proto/user/user.proto

It has these top-level messages:

BasicUserInfo
UserInfo
GeneralRequest
GeneralResponse
RegisterUserRequest
GetUserInfoRequest
GetUserInfoResponse

Index

Constants

This section is empty.

Variables

View Source
var File_proto_user_user_proto protoreflect.FileDescriptor

Functions

func RegisterUserServiceHandler

func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error

Types

type BasicUserInfo

type BasicUserInfo struct {
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*BasicUserInfo) Descriptor deprecated

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

Deprecated: Use BasicUserInfo.ProtoReflect.Descriptor instead.

func (*BasicUserInfo) GetEmail

func (x *BasicUserInfo) GetEmail() string

func (*BasicUserInfo) GetPassword

func (x *BasicUserInfo) GetPassword() string

func (*BasicUserInfo) ProtoMessage

func (*BasicUserInfo) ProtoMessage()

func (*BasicUserInfo) ProtoReflect

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

func (*BasicUserInfo) Reset

func (x *BasicUserInfo) Reset()

func (*BasicUserInfo) String

func (x *BasicUserInfo) String() string

type GeneralRequest

type GeneralRequest struct {
	User *BasicUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

只需要基本信息时的请求与通用回复

func (*GeneralRequest) Descriptor deprecated

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

Deprecated: Use GeneralRequest.ProtoReflect.Descriptor instead.

func (*GeneralRequest) GetUser

func (x *GeneralRequest) GetUser() *BasicUserInfo

func (*GeneralRequest) ProtoMessage

func (*GeneralRequest) ProtoMessage()

func (*GeneralRequest) ProtoReflect

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

func (*GeneralRequest) Reset

func (x *GeneralRequest) Reset()

func (*GeneralRequest) String

func (x *GeneralRequest) String() string

type GeneralResponse

type GeneralResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneralResponse) Descriptor deprecated

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

Deprecated: Use GeneralResponse.ProtoReflect.Descriptor instead.

func (*GeneralResponse) GetCode

func (x *GeneralResponse) GetCode() string

func (*GeneralResponse) GetMsg

func (x *GeneralResponse) GetMsg() string

func (*GeneralResponse) ProtoMessage

func (*GeneralResponse) ProtoMessage()

func (*GeneralResponse) ProtoReflect

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

func (*GeneralResponse) Reset

func (x *GeneralResponse) Reset()

func (*GeneralResponse) String

func (x *GeneralResponse) String() string

type GetUserInfoRequest

type GetUserInfoRequest struct {
	Start  int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoRequest) Descriptor deprecated

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

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

func (*GetUserInfoRequest) GetAmount

func (x *GetUserInfoRequest) GetAmount() int32

func (*GetUserInfoRequest) GetStart

func (x *GetUserInfoRequest) GetStart() int32

func (*GetUserInfoRequest) ProtoMessage

func (*GetUserInfoRequest) ProtoMessage()

func (*GetUserInfoRequest) ProtoReflect

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

func (*GetUserInfoRequest) Reset

func (x *GetUserInfoRequest) Reset()

func (*GetUserInfoRequest) String

func (x *GetUserInfoRequest) String() string

type GetUserInfoResponse

type GetUserInfoResponse struct {
	General *GeneralResponse `protobuf:"bytes,1,opt,name=general,proto3" json:"general,omitempty"`
	User    []*UserInfo      `protobuf:"bytes,2,rep,name=user,proto3" json:"user,omitempty"`
	Total   int32            `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoResponse) Descriptor deprecated

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

Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.

func (*GetUserInfoResponse) GetGeneral

func (x *GetUserInfoResponse) GetGeneral() *GeneralResponse

func (*GetUserInfoResponse) GetTotal

func (x *GetUserInfoResponse) GetTotal() int32

func (*GetUserInfoResponse) GetUser

func (x *GetUserInfoResponse) GetUser() []*UserInfo

func (*GetUserInfoResponse) ProtoMessage

func (*GetUserInfoResponse) ProtoMessage()

func (*GetUserInfoResponse) ProtoReflect

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

func (*GetUserInfoResponse) Reset

func (x *GetUserInfoResponse) Reset()

func (*GetUserInfoResponse) String

func (x *GetUserInfoResponse) String() string

type RegisterUserRequest

type RegisterUserRequest struct {
	User *UserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Code string    `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterUserRequest) Descriptor deprecated

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

Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.

func (*RegisterUserRequest) GetCode

func (x *RegisterUserRequest) GetCode() string

func (*RegisterUserRequest) GetUser

func (x *RegisterUserRequest) GetUser() *UserInfo

func (*RegisterUserRequest) ProtoMessage

func (*RegisterUserRequest) ProtoMessage()

func (*RegisterUserRequest) ProtoReflect

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

func (*RegisterUserRequest) Reset

func (x *RegisterUserRequest) Reset()

func (*RegisterUserRequest) String

func (x *RegisterUserRequest) String() string

type UserInfo

type UserInfo struct {
	BasicInfo   *BasicUserInfo `protobuf:"bytes,1,opt,name=basicInfo,proto3" json:"basicInfo,omitempty"`
	Username    string         `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Description string         `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Status      string         `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	CreateTime  string         `protobuf:"bytes,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetBasicInfo

func (x *UserInfo) GetBasicInfo() *BasicUserInfo

func (*UserInfo) GetCreateTime

func (x *UserInfo) GetCreateTime() string

func (*UserInfo) GetDescription

func (x *UserInfo) GetDescription() string

func (*UserInfo) GetStatus

func (x *UserInfo) GetStatus() string

func (*UserInfo) GetUsername

func (x *UserInfo) GetUsername() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type UserService

type UserService interface {
	Register(ctx context.Context, in *RegisterUserRequest, opts ...client.CallOption) (*GeneralResponse, error)
	Login(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GeneralResponse, error)
	AdminLogin(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GeneralResponse, error)
	SendEmail(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GeneralResponse, error)
	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...client.CallOption) (*GetUserInfoResponse, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

Jump to

Keyboard shortcuts

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