upc_sports_account

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_upc_sports_account_proto protoreflect.FileDescriptor

Functions

func RegisterUpcSportsAccountServer

func RegisterUpcSportsAccountServer(s *grpc.Server, srv UpcSportsAccountServer)

Types

type AccountInfo

type AccountInfo struct {
	UserId      int32  `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	Password    string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	NickName    string `protobuf:"bytes,4,opt,name=NickName,proto3" json:"NickName,omitempty"`
	Email       string `protobuf:"bytes,5,opt,name=Email,proto3" json:"Email,omitempty"`
	ClassName   string `protobuf:"bytes,6,opt,name=ClassName,proto3" json:"ClassName,omitempty"`
	Grade       int32  `protobuf:"varint,7,opt,name=Grade,proto3" json:"Grade,omitempty"`
	Subject     int32  `protobuf:"varint,8,opt,name=Subject,proto3" json:"Subject,omitempty"`
	HeadPicture string `protobuf:"bytes,9,opt,name=HeadPicture,proto3" json:"HeadPicture,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountInfo) Descriptor deprecated

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

Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.

func (*AccountInfo) GetClassName

func (x *AccountInfo) GetClassName() string

func (*AccountInfo) GetEmail

func (x *AccountInfo) GetEmail() string

func (*AccountInfo) GetGrade

func (x *AccountInfo) GetGrade() int32

func (*AccountInfo) GetHeadPicture

func (x *AccountInfo) GetHeadPicture() string

func (*AccountInfo) GetName

func (x *AccountInfo) GetName() string

func (*AccountInfo) GetNickName

func (x *AccountInfo) GetNickName() string

func (*AccountInfo) GetPassword

func (x *AccountInfo) GetPassword() string

func (*AccountInfo) GetSubject

func (x *AccountInfo) GetSubject() int32

func (*AccountInfo) GetUserId added in v0.0.3

func (x *AccountInfo) GetUserId() int32

func (*AccountInfo) ProtoMessage

func (*AccountInfo) ProtoMessage()

func (*AccountInfo) ProtoReflect

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

func (*AccountInfo) Reset

func (x *AccountInfo) Reset()

func (*AccountInfo) String

func (x *AccountInfo) String() string

type GetAccountRequest

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

func (*GetAccountRequest) Descriptor deprecated

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) GetUserIds added in v0.0.3

func (x *GetAccountRequest) GetUserIds() []int32

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type GetAccountResponse

type GetAccountResponse struct {
	Body       *GetAccountResponseBody `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"`
	StatusCode int32                   `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	Message    string                  `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountResponse) Descriptor deprecated

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

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetBody

func (*GetAccountResponse) GetMessage

func (x *GetAccountResponse) GetMessage() string

func (*GetAccountResponse) GetStatusCode

func (x *GetAccountResponse) GetStatusCode() int32

func (*GetAccountResponse) ProtoMessage

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) ProtoReflect

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

func (*GetAccountResponse) Reset

func (x *GetAccountResponse) Reset()

func (*GetAccountResponse) String

func (x *GetAccountResponse) String() string

type GetAccountResponseBody

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

func (*GetAccountResponseBody) Descriptor deprecated

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

Deprecated: Use GetAccountResponseBody.ProtoReflect.Descriptor instead.

func (*GetAccountResponseBody) GetAccountsInfo

func (x *GetAccountResponseBody) GetAccountsInfo() []*AccountInfo

func (*GetAccountResponseBody) ProtoMessage

func (*GetAccountResponseBody) ProtoMessage()

func (*GetAccountResponseBody) ProtoReflect

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

func (*GetAccountResponseBody) Reset

func (x *GetAccountResponseBody) Reset()

func (*GetAccountResponseBody) String

func (x *GetAccountResponseBody) String() string

type LoginRequest

type LoginRequest struct {
	UserId   int32  `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUserId added in v0.0.3

func (x *LoginRequest) GetUserId() int32

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Body       *LoginResponseBody `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"`
	StatusCode int32              `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	Message    string             `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetBody

func (x *LoginResponse) GetBody() *LoginResponseBody

func (*LoginResponse) GetMessage

func (x *LoginResponse) GetMessage() string

func (*LoginResponse) GetStatusCode

func (x *LoginResponse) GetStatusCode() int32

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type LoginResponseBody

type LoginResponseBody struct {
	Ok bool `protobuf:"varint,1,opt,name=Ok,proto3" json:"Ok,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponseBody) Descriptor deprecated

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

Deprecated: Use LoginResponseBody.ProtoReflect.Descriptor instead.

func (*LoginResponseBody) GetOk

func (x *LoginResponseBody) GetOk() bool

func (*LoginResponseBody) ProtoMessage

func (*LoginResponseBody) ProtoMessage()

func (*LoginResponseBody) ProtoReflect

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

func (*LoginResponseBody) Reset

func (x *LoginResponseBody) Reset()

func (*LoginResponseBody) String

func (x *LoginResponseBody) String() string

type UnimplementedUpcSportsAccountServer

type UnimplementedUpcSportsAccountServer struct {
}

UnimplementedUpcSportsAccountServer can be embedded to have forward compatible implementations.

func (*UnimplementedUpcSportsAccountServer) GetAccount

func (*UnimplementedUpcSportsAccountServer) Login

type UpcSportsAccountClient

type UpcSportsAccountClient interface {
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}

UpcSportsAccountClient is the client API for UpcSportsAccount service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type UpcSportsAccountServer

type UpcSportsAccountServer interface {
	GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
}

UpcSportsAccountServer is the server API for UpcSportsAccount service.

Jump to

Keyboard shortcuts

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