user

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type UserLoginReq

type UserLoginReq struct {
	Username *string `protobuf:"bytes,1,req,name=username" json:"username,required" form:"username,required" query:"username,required"` // 登录用户名
	Password *string `protobuf:"bytes,2,req,name=password" json:"password,required" form:"password,required" query:"password,required"` // 登录密码
	// contains filtered or unexported fields
}

func (*UserLoginReq) Descriptor deprecated

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

Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead.

func (*UserLoginReq) GetPassword

func (x *UserLoginReq) GetPassword() string

func (*UserLoginReq) GetUsername

func (x *UserLoginReq) GetUsername() string

func (*UserLoginReq) ProtoMessage

func (*UserLoginReq) ProtoMessage()

func (*UserLoginReq) ProtoReflect

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

func (*UserLoginReq) Reset

func (x *UserLoginReq) Reset()

func (*UserLoginReq) String

func (x *UserLoginReq) String() string

type UserLoginResp

type UserLoginResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"`    // 返回状态描述
	UserId    *int64  `protobuf:"varint,3,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id
	Token     *string `protobuf:"bytes,4,req,name=token" json:"token,required" form:"token,required" query:"token,required"`                      // 用户鉴权token
	// contains filtered or unexported fields
}

func (*UserLoginResp) Descriptor deprecated

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

Deprecated: Use UserLoginResp.ProtoReflect.Descriptor instead.

func (*UserLoginResp) GetStatusCode

func (x *UserLoginResp) GetStatusCode() int32

func (*UserLoginResp) GetStatusMsg

func (x *UserLoginResp) GetStatusMsg() string

func (*UserLoginResp) GetToken

func (x *UserLoginResp) GetToken() string

func (*UserLoginResp) GetUserId

func (x *UserLoginResp) GetUserId() int64

func (*UserLoginResp) ProtoMessage

func (*UserLoginResp) ProtoMessage()

func (*UserLoginResp) ProtoReflect

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

func (*UserLoginResp) Reset

func (x *UserLoginResp) Reset()

func (*UserLoginResp) String

func (x *UserLoginResp) String() string

type UserRegisterReq

type UserRegisterReq struct {
	Username *string `protobuf:"bytes,1,req,name=username" json:"username,required" form:"username,required" query:"username,required"` // 注册用户名,最长32个字符
	Password *string `protobuf:"bytes,2,req,name=password" json:"password,required" form:"password,required" query:"password,required"` // 密码,最长32个字符
	// contains filtered or unexported fields
}

func (*UserRegisterReq) Descriptor deprecated

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

Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.

func (*UserRegisterReq) GetPassword

func (x *UserRegisterReq) GetPassword() string

func (*UserRegisterReq) GetUsername

func (x *UserRegisterReq) GetUsername() string

func (*UserRegisterReq) ProtoMessage

func (*UserRegisterReq) ProtoMessage()

func (*UserRegisterReq) ProtoReflect

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

func (*UserRegisterReq) Reset

func (x *UserRegisterReq) Reset()

func (*UserRegisterReq) String

func (x *UserRegisterReq) String() string

type UserRegisterResp

type UserRegisterResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"`    // 返回状态描述
	UserId    *int64  `protobuf:"varint,3,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id
	Token     *string `protobuf:"bytes,4,req,name=token" json:"token,required" form:"token,required" query:"token,required"`                      // 用户鉴权token
	// contains filtered or unexported fields
}

func (*UserRegisterResp) Descriptor deprecated

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

Deprecated: Use UserRegisterResp.ProtoReflect.Descriptor instead.

func (*UserRegisterResp) GetStatusCode

func (x *UserRegisterResp) GetStatusCode() int32

func (*UserRegisterResp) GetStatusMsg

func (x *UserRegisterResp) GetStatusMsg() string

func (*UserRegisterResp) GetToken

func (x *UserRegisterResp) GetToken() string

func (*UserRegisterResp) GetUserId

func (x *UserRegisterResp) GetUserId() int64

func (*UserRegisterResp) ProtoMessage

func (*UserRegisterResp) ProtoMessage()

func (*UserRegisterResp) ProtoReflect

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

func (*UserRegisterResp) Reset

func (x *UserRegisterResp) Reset()

func (*UserRegisterResp) String

func (x *UserRegisterResp) String() string

type UserReq

type UserReq struct {
	UserId *int64  `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id
	Token  *string `protobuf:"bytes,2,req,name=token" json:"token,required" form:"token,required" query:"token,required"`                      // 用户鉴权token
	// contains filtered or unexported fields
}

func (*UserReq) Descriptor deprecated

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

Deprecated: Use UserReq.ProtoReflect.Descriptor instead.

func (*UserReq) GetToken

func (x *UserReq) GetToken() string

func (*UserReq) GetUserId

func (x *UserReq) GetUserId() int64

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) ProtoReflect

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

func (*UserReq) Reset

func (x *UserReq) Reset()

func (*UserReq) String

func (x *UserReq) String() string

type UserResp

type UserResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string      `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	User      *common.User `protobuf:"bytes,3,req,name=user" json:"user,required" form:"user,required" query:"user,required"`                       // 用户信息
	// contains filtered or unexported fields
}

func (*UserResp) Descriptor deprecated

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

Deprecated: Use UserResp.ProtoReflect.Descriptor instead.

func (*UserResp) GetStatusCode

func (x *UserResp) GetStatusCode() int32

func (*UserResp) GetStatusMsg

func (x *UserResp) GetStatusMsg() string

func (*UserResp) GetUser

func (x *UserResp) GetUser() *common.User

func (*UserResp) ProtoMessage

func (*UserResp) ProtoMessage()

func (*UserResp) ProtoReflect

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

func (*UserResp) Reset

func (x *UserResp) Reset()

func (*UserResp) String

func (x *UserResp) String() string

Jump to

Keyboard shortcuts

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