user

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserSex_name = map[int32]string{
		0: "Male",
		1: "Female",
	}
	UserSex_value = map[string]int32{
		"Male":   0,
		"Female": 1,
	}
)

Enum value maps for UserSex.

View Source
var (
	Week_name = map[int32]string{
		0: "Sunday",
		1: "Monday",
		2: "Tuesday",
		3: "Wednesday",
		4: "Thursday",
		5: "Friday",
		6: "Saturday",
	}
	Week_value = map[string]int32{
		"Sunday":    0,
		"Monday":    1,
		"Tuesday":   2,
		"Wednesday": 3,
		"Thursday":  4,
		"Friday":    5,
		"Saturday":  6,
	}
)

Enum value maps for Week.

View Source
var (
	UserListSort_name = map[int32]string{
		0: "ASC",
		1: "Desc",
	}
	UserListSort_value = map[string]int32{
		"ASC":  0,
		"Desc": 1,
	}
)

Enum value maps for UserListSort.

View Source
var (
	UploadImgType_name = map[int32]string{
		0: "PNG",
		1: "JPG",
	}
	UploadImgType_value = map[string]int32{
		"PNG": 0,
		"JPG": 1,
	}
)

Enum value maps for UploadImgType.

View Source
var (
	UploadStatusCode_name = map[int32]string{
		0: "Unknown",
		1: "Ok",
		2: "Failed",
	}
	UploadStatusCode_value = map[string]int32{
		"Unknown": 0,
		"Ok":      1,
		"Failed":  2,
	}
)

Enum value maps for UploadStatusCode.

View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterUser",
			Handler:    _User_RegisterUser_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _User_Login_Handler,
		},
		{
			MethodName: "Cancellation",
			Handler:    _User_Cancellation_Handler,
		},
		{
			MethodName: "UploadImg",
			Handler:    _User_UploadImg_Handler,
		},
		{
			MethodName: "GetUserList",
			Handler:    _User_GetUserList_Handler,
		},
		{
			MethodName: "UserInfo",
			Handler:    _User_UserInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type Article added in v0.1.5

type Article struct {
	Url   string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Title string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Tags  []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetTags added in v0.1.5

func (x *Article) GetTags() []string

func (*Article) GetTitle added in v0.1.5

func (x *Article) GetTitle() string

func (*Article) GetUrl added in v0.1.5

func (x *Article) GetUrl() string

func (*Article) ProtoMessage added in v0.1.5

func (*Article) ProtoMessage()

func (*Article) ProtoReflect added in v0.1.5

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

func (*Article) Reset added in v0.1.5

func (x *Article) Reset()

func (*Article) String added in v0.1.5

func (x *Article) String() string

type CancellationReq

type CancellationReq struct {
	Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	// contains filtered or unexported fields
}

func (*CancellationReq) Descriptor deprecated

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

Deprecated: Use CancellationReq.ProtoReflect.Descriptor instead.

func (*CancellationReq) GetToken

func (x *CancellationReq) GetToken() string

func (*CancellationReq) ProtoMessage

func (*CancellationReq) ProtoMessage()

func (*CancellationReq) ProtoReflect

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

func (*CancellationReq) Reset

func (x *CancellationReq) Reset()

func (*CancellationReq) String

func (x *CancellationReq) String() string

type CancellationResp

type CancellationResp struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CancellationResp) Descriptor deprecated

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

Deprecated: Use CancellationResp.ProtoReflect.Descriptor instead.

func (*CancellationResp) GetMessage

func (x *CancellationResp) GetMessage() string

func (*CancellationResp) ProtoMessage

func (*CancellationResp) ProtoMessage()

func (*CancellationResp) ProtoReflect

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

func (*CancellationResp) Reset

func (x *CancellationResp) Reset()

func (*CancellationResp) String

func (x *CancellationResp) String() string

type Class added in v0.1.5

type Class struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Class) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Class.ProtoReflect.Descriptor instead.

func (*Class) GetId added in v0.1.5

func (x *Class) GetId() string

func (*Class) GetName added in v0.1.5

func (x *Class) GetName() string

func (*Class) ProtoMessage added in v0.1.5

func (*Class) ProtoMessage()

func (*Class) ProtoReflect added in v0.1.5

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

func (*Class) Reset added in v0.1.5

func (x *Class) Reset()

func (*Class) String added in v0.1.5

func (x *Class) String() string

type GetUserListReq

type GetUserListReq struct {
	Page uint32       `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"`
	Size uint32       `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
	Sort UserListSort `protobuf:"varint,3,opt,name=Sort,proto3,enum=user.UserListSort" json:"Sort,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListReq) Descriptor deprecated

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

Deprecated: Use GetUserListReq.ProtoReflect.Descriptor instead.

func (*GetUserListReq) GetPage

func (x *GetUserListReq) GetPage() uint32

func (*GetUserListReq) GetSize

func (x *GetUserListReq) GetSize() uint32

func (*GetUserListReq) GetSort

func (x *GetUserListReq) GetSort() UserListSort

func (*GetUserListReq) ProtoMessage

func (*GetUserListReq) ProtoMessage()

func (*GetUserListReq) ProtoReflect

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

func (*GetUserListReq) Reset

func (x *GetUserListReq) Reset()

func (*GetUserListReq) String

func (x *GetUserListReq) String() string

type GetUserListResp

type GetUserListResp struct {
	UserInfo []*UserInfo `protobuf:"bytes,1,rep,name=UserInfo,proto3" json:"UserInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListResp) Descriptor deprecated

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

Deprecated: Use GetUserListResp.ProtoReflect.Descriptor instead.

func (*GetUserListResp) GetUserInfo

func (x *GetUserListResp) GetUserInfo() []*UserInfo

func (*GetUserListResp) ProtoMessage

func (*GetUserListResp) ProtoMessage()

func (*GetUserListResp) ProtoReflect

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

func (*GetUserListResp) Reset

func (x *GetUserListResp) Reset()

func (*GetUserListResp) String

func (x *GetUserListResp) String() string

type Info added in v0.1.5

type Info struct {
	Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*Info) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetData added in v0.1.5

func (x *Info) GetData() string

func (*Info) GetName added in v0.1.5

func (x *Info) GetName() string

func (*Info) ProtoMessage added in v0.1.5

func (*Info) ProtoMessage()

func (*Info) ProtoReflect added in v0.1.5

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

func (*Info) Reset added in v0.1.5

func (x *Info) Reset()

func (*Info) String added in v0.1.5

func (x *Info) String() string

type LoginReq

type LoginReq struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	P        string `protobuf:"bytes,2,opt,name=P,proto3" json:"P,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReq) Descriptor deprecated

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetP added in v0.1.2

func (x *LoginReq) GetP() string

func (*LoginReq) GetUserName

func (x *LoginReq) GetUserName() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

type LoginResp

type LoginResp struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	ID       uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	Token    string `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

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

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) GetID

func (x *LoginResp) GetID() uint32

func (*LoginResp) GetToken

func (x *LoginResp) GetToken() string

func (*LoginResp) GetUserName

func (x *LoginResp) GetUserName() string

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

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

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) String

func (x *LoginResp) String() string

type Msg added in v0.1.5

type Msg struct {
	Arrays []int32 `protobuf:"varint,1,rep,packed,name=arrays,proto3" json:"arrays,omitempty"`
	// contains filtered or unexported fields
}

func (*Msg) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetArrays added in v0.1.5

func (x *Msg) GetArrays() []int32

func (*Msg) ProtoMessage added in v0.1.5

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect added in v0.1.5

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

func (*Msg) Reset added in v0.1.5

func (x *Msg) Reset()

func (*Msg) String added in v0.1.5

func (x *Msg) String() string

type RegisterUserReq

type RegisterUserReq struct {
	UserName string   `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	Pwd      string   `protobuf:"bytes,2,opt,name=Pwd,proto3" json:"Pwd,omitempty"`
	Sex      UserSex  `protobuf:"varint,4,opt,name=Sex,proto3,enum=user.UserSex" json:"Sex,omitempty"`
	Info     *Info    `protobuf:"bytes,5,opt,name=Info,proto3" json:"Info,omitempty"`
	Class    *Class   `protobuf:"bytes,6,opt,name=class,proto3" json:"class,omitempty"`
	Week     Week     `protobuf:"varint,7,opt,name=week,proto3,enum=user.Week" json:"week,omitempty"`
	Msg      *Msg     `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg,omitempty"`
	Article  *Article `protobuf:"bytes,9,opt,name=article,proto3" json:"article,omitempty"`
	Student  *Student `protobuf:"bytes,10,opt,name=student,proto3" json:"student,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterUserReq) Descriptor deprecated

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

Deprecated: Use RegisterUserReq.ProtoReflect.Descriptor instead.

func (*RegisterUserReq) GetArticle added in v0.1.5

func (x *RegisterUserReq) GetArticle() *Article

func (*RegisterUserReq) GetClass added in v0.1.5

func (x *RegisterUserReq) GetClass() *Class

func (*RegisterUserReq) GetInfo added in v0.1.5

func (x *RegisterUserReq) GetInfo() *Info

func (*RegisterUserReq) GetMsg added in v0.1.5

func (x *RegisterUserReq) GetMsg() *Msg

func (*RegisterUserReq) GetPwd added in v0.1.5

func (x *RegisterUserReq) GetPwd() string

func (*RegisterUserReq) GetSex

func (x *RegisterUserReq) GetSex() UserSex

func (*RegisterUserReq) GetStudent added in v0.1.5

func (x *RegisterUserReq) GetStudent() *Student

func (*RegisterUserReq) GetUserName

func (x *RegisterUserReq) GetUserName() string

func (*RegisterUserReq) GetWeek added in v0.1.5

func (x *RegisterUserReq) GetWeek() Week

func (*RegisterUserReq) ProtoMessage

func (*RegisterUserReq) ProtoMessage()

func (*RegisterUserReq) ProtoReflect

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

func (*RegisterUserReq) Reset

func (x *RegisterUserReq) Reset()

func (*RegisterUserReq) String

func (x *RegisterUserReq) String() string

type RegisterUserResp

type RegisterUserResp struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	ID       uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterUserResp) Descriptor deprecated

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

Deprecated: Use RegisterUserResp.ProtoReflect.Descriptor instead.

func (*RegisterUserResp) GetID

func (x *RegisterUserResp) GetID() uint32

func (*RegisterUserResp) GetUserName

func (x *RegisterUserResp) GetUserName() string

func (*RegisterUserResp) ProtoMessage

func (*RegisterUserResp) ProtoMessage()

func (*RegisterUserResp) ProtoReflect

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

func (*RegisterUserResp) Reset

func (x *RegisterUserResp) Reset()

func (*RegisterUserResp) String

func (x *RegisterUserResp) String() string

type Student added in v0.1.5

type Student struct {
	Id    int64            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`    //id
	Name  string           `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //学生姓名
	Score map[string]int32 ``                                                              //学科 分数的map
	/* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Student) Descriptor deprecated added in v0.1.5

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

Deprecated: Use Student.ProtoReflect.Descriptor instead.

func (*Student) GetId added in v0.1.5

func (x *Student) GetId() int64

func (*Student) GetName added in v0.1.5

func (x *Student) GetName() string

func (*Student) GetScore added in v0.1.5

func (x *Student) GetScore() map[string]int32

func (*Student) ProtoMessage added in v0.1.5

func (*Student) ProtoMessage()

func (*Student) ProtoReflect added in v0.1.5

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

func (*Student) Reset added in v0.1.5

func (x *Student) Reset()

func (*Student) String added in v0.1.5

func (x *Student) String() string

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) Cancellation

func (UnimplementedUserServer) GetUserList

func (UnimplementedUserServer) Login

func (UnimplementedUserServer) RegisterUser

func (UnimplementedUserServer) UploadImg

func (UnimplementedUserServer) UserInfo

type UnsafeUserServer

type UnsafeUserServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.

type UploadImgReq

type UploadImgReq struct {
	FileType UploadImgType `protobuf:"varint,1,opt,name=FileType,proto3,enum=user.UploadImgType" json:"FileType,omitempty"`
	Img      []byte        `protobuf:"bytes,2,opt,name=img,proto3" json:"img,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadImgReq) Descriptor deprecated

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

Deprecated: Use UploadImgReq.ProtoReflect.Descriptor instead.

func (*UploadImgReq) GetFileType

func (x *UploadImgReq) GetFileType() UploadImgType

func (*UploadImgReq) GetImg

func (x *UploadImgReq) GetImg() []byte

func (*UploadImgReq) ProtoMessage

func (*UploadImgReq) ProtoMessage()

func (*UploadImgReq) ProtoReflect

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

func (*UploadImgReq) Reset

func (x *UploadImgReq) Reset()

func (*UploadImgReq) String

func (x *UploadImgReq) String() string

type UploadImgResp

type UploadImgResp struct {
	Message string           `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	Code    UploadStatusCode `protobuf:"varint,2,opt,name=Code,proto3,enum=user.UploadStatusCode" json:"Code,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadImgResp) Descriptor deprecated

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

Deprecated: Use UploadImgResp.ProtoReflect.Descriptor instead.

func (*UploadImgResp) GetCode

func (x *UploadImgResp) GetCode() UploadStatusCode

func (*UploadImgResp) GetMessage

func (x *UploadImgResp) GetMessage() string

func (*UploadImgResp) ProtoMessage

func (*UploadImgResp) ProtoMessage()

func (*UploadImgResp) ProtoReflect

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

func (*UploadImgResp) Reset

func (x *UploadImgResp) Reset()

func (*UploadImgResp) String

func (x *UploadImgResp) String() string

type UploadImgType

type UploadImgType int32
const (
	UploadImgType_PNG UploadImgType = 0
	UploadImgType_JPG UploadImgType = 1
)

func (UploadImgType) Descriptor

func (UploadImgType) Enum

func (x UploadImgType) Enum() *UploadImgType

func (UploadImgType) EnumDescriptor deprecated

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

Deprecated: Use UploadImgType.Descriptor instead.

func (UploadImgType) Number

func (UploadImgType) String

func (x UploadImgType) String() string

func (UploadImgType) Type

type UploadStatusCode

type UploadStatusCode int32
const (
	UploadStatusCode_Unknown UploadStatusCode = 0
	UploadStatusCode_Ok      UploadStatusCode = 1
	UploadStatusCode_Failed  UploadStatusCode = 2
)

func (UploadStatusCode) Descriptor

func (UploadStatusCode) Enum

func (UploadStatusCode) EnumDescriptor deprecated

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

Deprecated: Use UploadStatusCode.Descriptor instead.

func (UploadStatusCode) Number

func (UploadStatusCode) String

func (x UploadStatusCode) String() string

func (UploadStatusCode) Type

type UserClient

type UserClient interface {
	RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error)
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
	Cancellation(ctx context.Context, in *CancellationReq, opts ...grpc.CallOption) (*CancellationResp, error)
	UploadImg(ctx context.Context, in *UploadImgReq, opts ...grpc.CallOption) (*UploadImgResp, error)
	GetUserList(ctx context.Context, in *GetUserListReq, opts ...grpc.CallOption) (*GetUserListResp, error)
	UserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserInfo

type UserInfo struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	ID       uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	W        uint32 `protobuf:"varint,4,opt,name=W,proto3" json:"W,omitempty"`
	A        uint32 `protobuf:"varint,5,opt,name=A,proto3" json:"A,omitempty"`
	G        uint32 `protobuf:"varint,6,opt,name=G,proto3" json:"G,omitempty"`
	T        uint32 `protobuf:"varint,7,opt,name=T,proto3" json:"T,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetA

func (x *UserInfo) GetA() uint32

func (*UserInfo) GetG

func (x *UserInfo) GetG() uint32

func (*UserInfo) GetID

func (x *UserInfo) GetID() uint32

func (*UserInfo) GetT

func (x *UserInfo) GetT() uint32

func (*UserInfo) GetUserName

func (x *UserInfo) GetUserName() string

func (*UserInfo) GetW

func (x *UserInfo) GetW() uint32

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 UserInfoReq

type UserInfoReq struct {
	ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoReq) Descriptor deprecated

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

Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.

func (*UserInfoReq) GetID

func (x *UserInfoReq) GetID() uint32

func (*UserInfoReq) ProtoMessage

func (*UserInfoReq) ProtoMessage()

func (*UserInfoReq) ProtoReflect

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

func (*UserInfoReq) Reset

func (x *UserInfoReq) Reset()

func (*UserInfoReq) String

func (x *UserInfoReq) String() string

type UserInfoResp

type UserInfoResp struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
	ID       uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoResp) Descriptor deprecated

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

Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.

func (*UserInfoResp) GetID

func (x *UserInfoResp) GetID() uint32

func (*UserInfoResp) GetUserName

func (x *UserInfoResp) GetUserName() string

func (*UserInfoResp) ProtoMessage

func (*UserInfoResp) ProtoMessage()

func (*UserInfoResp) ProtoReflect

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

func (*UserInfoResp) Reset

func (x *UserInfoResp) Reset()

func (*UserInfoResp) String

func (x *UserInfoResp) String() string

type UserListSort

type UserListSort int32
const (
	UserListSort_ASC  UserListSort = 0
	UserListSort_Desc UserListSort = 1
)

func (UserListSort) Descriptor

func (UserListSort) Enum

func (x UserListSort) Enum() *UserListSort

func (UserListSort) EnumDescriptor deprecated

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

Deprecated: Use UserListSort.Descriptor instead.

func (UserListSort) Number

func (UserListSort) String

func (x UserListSort) String() string

func (UserListSort) Type

type UserServer

type UserServer interface {
	RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error)
	Login(context.Context, *LoginReq) (*LoginResp, error)
	Cancellation(context.Context, *CancellationReq) (*CancellationResp, error)
	UploadImg(context.Context, *UploadImgReq) (*UploadImgResp, error)
	GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
	UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

type UserSex

type UserSex int32
const (
	UserSex_Male   UserSex = 0
	UserSex_Female UserSex = 1
)

func (UserSex) Descriptor

func (UserSex) Descriptor() protoreflect.EnumDescriptor

func (UserSex) Enum

func (x UserSex) Enum() *UserSex

func (UserSex) EnumDescriptor deprecated

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

Deprecated: Use UserSex.Descriptor instead.

func (UserSex) Number

func (x UserSex) Number() protoreflect.EnumNumber

func (UserSex) String

func (x UserSex) String() string

func (UserSex) Type

func (UserSex) Type() protoreflect.EnumType

type Week added in v0.1.5

type Week int32
const (
	Week_Sunday    Week = 0
	Week_Monday    Week = 1
	Week_Tuesday   Week = 2
	Week_Wednesday Week = 3
	Week_Thursday  Week = 4
	Week_Friday    Week = 5
	Week_Saturday  Week = 6
)

func (Week) Descriptor added in v0.1.5

func (Week) Descriptor() protoreflect.EnumDescriptor

func (Week) Enum added in v0.1.5

func (x Week) Enum() *Week

func (Week) EnumDescriptor deprecated added in v0.1.5

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

Deprecated: Use Week.Descriptor instead.

func (Week) Number added in v0.1.5

func (x Week) Number() protoreflect.EnumNumber

func (Week) String added in v0.1.5

func (x Week) String() string

func (Week) Type added in v0.1.5

func (Week) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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