userdemo

package
v0.0.0-...-712232d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode    int64  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	ServiceTime   int64  `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) GetServiceTime

func (x *BaseResp) GetServiceTime() int64

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int64

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

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

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) String

func (x *BaseResp) String() string

type CheckUserRequest

type CheckUserRequest struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserRequest) Descriptor deprecated

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

Deprecated: Use CheckUserRequest.ProtoReflect.Descriptor instead.

func (*CheckUserRequest) GetPassword

func (x *CheckUserRequest) GetPassword() string

func (*CheckUserRequest) GetUserName

func (x *CheckUserRequest) GetUserName() string

func (*CheckUserRequest) ProtoMessage

func (*CheckUserRequest) ProtoMessage()

func (*CheckUserRequest) ProtoReflect

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

func (*CheckUserRequest) Reset

func (x *CheckUserRequest) Reset()

func (*CheckUserRequest) String

func (x *CheckUserRequest) String() string

type CheckUserResponse

type CheckUserResponse struct {
	UserId   int64     `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	BaseResp *BaseResp `protobuf:"bytes,2,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserResponse) Descriptor deprecated

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

Deprecated: Use CheckUserResponse.ProtoReflect.Descriptor instead.

func (*CheckUserResponse) GetBaseResp

func (x *CheckUserResponse) GetBaseResp() *BaseResp

func (*CheckUserResponse) GetUserId

func (x *CheckUserResponse) GetUserId() int64

func (*CheckUserResponse) ProtoMessage

func (*CheckUserResponse) ProtoMessage()

func (*CheckUserResponse) ProtoReflect

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

func (*CheckUserResponse) Reset

func (x *CheckUserResponse) Reset()

func (*CheckUserResponse) String

func (x *CheckUserResponse) String() string

type CreateUserRequest

type CreateUserRequest struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUserName

func (x *CreateUserRequest) GetUserName() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetBaseResp

func (x *CreateUserResponse) GetBaseResp() *BaseResp

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type MGetUserRequest

type MGetUserRequest struct {
	UserIds []int64 `protobuf:"varint,1,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*MGetUserRequest) Descriptor deprecated

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

Deprecated: Use MGetUserRequest.ProtoReflect.Descriptor instead.

func (*MGetUserRequest) GetUserIds

func (x *MGetUserRequest) GetUserIds() []int64

func (*MGetUserRequest) ProtoMessage

func (*MGetUserRequest) ProtoMessage()

func (*MGetUserRequest) ProtoReflect

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

func (*MGetUserRequest) Reset

func (x *MGetUserRequest) Reset()

func (*MGetUserRequest) String

func (x *MGetUserRequest) String() string

type MGetUserResponse

type MGetUserResponse struct {
	Users    []*User   `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	BaseResp *BaseResp `protobuf:"bytes,2,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	// contains filtered or unexported fields
}

func (*MGetUserResponse) Descriptor deprecated

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

Deprecated: Use MGetUserResponse.ProtoReflect.Descriptor instead.

func (*MGetUserResponse) GetBaseResp

func (x *MGetUserResponse) GetBaseResp() *BaseResp

func (*MGetUserResponse) GetUsers

func (x *MGetUserResponse) GetUsers() []*User

func (*MGetUserResponse) ProtoMessage

func (*MGetUserResponse) ProtoMessage()

func (*MGetUserResponse) ProtoReflect

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

func (*MGetUserResponse) Reset

func (x *MGetUserResponse) Reset()

func (*MGetUserResponse) String

func (x *MGetUserResponse) String() string

type User

type User struct {
	UserId   int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Avatar   string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetUserId

func (x *User) GetUserId() int64

func (*User) GetUserName

func (x *User) GetUserName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserService

type UserService interface {
	CreateUser(ctx context.Context, req *CreateUserRequest) (res *CreateUserResponse, err error)
	MGetUser(ctx context.Context, req *MGetUserRequest) (res *MGetUserResponse, err error)
	CheckUser(ctx context.Context, req *CheckUserRequest) (res *CheckUserResponse, err error)
}

Directories

Path Synopsis
Code generated by Kitex v0.1.4.
Code generated by Kitex v0.1.4.

Jump to

Keyboard shortcuts

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