user

package
v0.0.0-...-18974b4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

View Source
var LoginResponse_StatusMsg_DEFAULT string
View Source
var LoginResponse_Token_DEFAULT string
View Source
var LoginResponse_UserId_DEFAULT int64
View Source
var UserInfoResponse_StatusMsg_DEFAULT string
View Source
var UserInfo_Avatar_DEFAULT string
View Source
var UserInfo_BackgroundImage_DEFAULT string
View Source
var UserInfo_FavoriteCount_DEFAULT int64
View Source
var UserInfo_Signature_DEFAULT string
View Source
var UserInfo_TotalFavorited_DEFAULT int64
View Source
var UserInfo_WorkCount_DEFAULT int64

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	Username string `thrift:"username,1" frugal:"1,default,string" json:"username"`
	Password string `thrift:"password,2" frugal:"2,default,string" json:"password"`
}
var UserServiceUserLoginArgs_Request_DEFAULT *LoginRequest

func NewLoginRequest

func NewLoginRequest() *LoginRequest

func (*LoginRequest) BLength

func (p *LoginRequest) BLength() int

func (*LoginRequest) DeepEqual

func (p *LoginRequest) DeepEqual(ano *LoginRequest) bool

func (*LoginRequest) FastRead

func (p *LoginRequest) FastRead(buf []byte) (int, error)

func (*LoginRequest) FastReadField1

func (p *LoginRequest) FastReadField1(buf []byte) (int, error)

func (*LoginRequest) FastReadField2

func (p *LoginRequest) FastReadField2(buf []byte) (int, error)

func (*LoginRequest) FastWrite

func (p *LoginRequest) FastWrite(buf []byte) int

for compatibility

func (*LoginRequest) FastWriteNocopy

func (p *LoginRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*LoginRequest) Field1DeepEqual

func (p *LoginRequest) Field1DeepEqual(src string) bool

func (*LoginRequest) Field2DeepEqual

func (p *LoginRequest) Field2DeepEqual(src string) bool

func (*LoginRequest) GetPassword

func (p *LoginRequest) GetPassword() (v string)

func (*LoginRequest) GetUsername

func (p *LoginRequest) GetUsername() (v string)

func (*LoginRequest) InitDefault

func (p *LoginRequest) InitDefault()

func (*LoginRequest) Read

func (p *LoginRequest) Read(iprot thrift.TProtocol) (err error)

func (*LoginRequest) ReadField1

func (p *LoginRequest) ReadField1(iprot thrift.TProtocol) error

func (*LoginRequest) ReadField2

func (p *LoginRequest) ReadField2(iprot thrift.TProtocol) error

func (*LoginRequest) SetPassword

func (p *LoginRequest) SetPassword(val string)

func (*LoginRequest) SetUsername

func (p *LoginRequest) SetUsername(val string)

func (*LoginRequest) String

func (p *LoginRequest) String() string

func (*LoginRequest) Write

func (p *LoginRequest) Write(oprot thrift.TProtocol) (err error)

type LoginResponse

type LoginResponse struct {
	StatusCode int64   `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	UserId     *int64  `thrift:"user_id,3,optional" frugal:"3,optional,i64" json:"user_id,omitempty"`
	Token      *string `thrift:"token,4,optional" frugal:"4,optional,string" json:"token,omitempty"`
}
var UserServiceUserLoginResult_Success_DEFAULT *LoginResponse

func NewLoginResponse

func NewLoginResponse() *LoginResponse

func (*LoginResponse) BLength

func (p *LoginResponse) BLength() int

func (*LoginResponse) DeepEqual

func (p *LoginResponse) DeepEqual(ano *LoginResponse) bool

func (*LoginResponse) FastRead

func (p *LoginResponse) FastRead(buf []byte) (int, error)

func (*LoginResponse) FastReadField1

func (p *LoginResponse) FastReadField1(buf []byte) (int, error)

func (*LoginResponse) FastReadField2

func (p *LoginResponse) FastReadField2(buf []byte) (int, error)

func (*LoginResponse) FastReadField3

func (p *LoginResponse) FastReadField3(buf []byte) (int, error)

func (*LoginResponse) FastReadField4

func (p *LoginResponse) FastReadField4(buf []byte) (int, error)

func (*LoginResponse) FastWrite

func (p *LoginResponse) FastWrite(buf []byte) int

for compatibility

func (*LoginResponse) FastWriteNocopy

func (p *LoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*LoginResponse) Field1DeepEqual

func (p *LoginResponse) Field1DeepEqual(src int64) bool

func (*LoginResponse) Field2DeepEqual

func (p *LoginResponse) Field2DeepEqual(src *string) bool

func (*LoginResponse) Field3DeepEqual

func (p *LoginResponse) Field3DeepEqual(src *int64) bool

func (*LoginResponse) Field4DeepEqual

func (p *LoginResponse) Field4DeepEqual(src *string) bool

func (*LoginResponse) GetStatusCode

func (p *LoginResponse) GetStatusCode() (v int64)

func (*LoginResponse) GetStatusMsg

func (p *LoginResponse) GetStatusMsg() (v string)

func (*LoginResponse) GetToken

func (p *LoginResponse) GetToken() (v string)

func (*LoginResponse) GetUserId

func (p *LoginResponse) GetUserId() (v int64)

func (*LoginResponse) InitDefault

func (p *LoginResponse) InitDefault()

func (*LoginResponse) IsSetStatusMsg

func (p *LoginResponse) IsSetStatusMsg() bool

func (*LoginResponse) IsSetToken

func (p *LoginResponse) IsSetToken() bool

func (*LoginResponse) IsSetUserId

func (p *LoginResponse) IsSetUserId() bool

func (*LoginResponse) Read

func (p *LoginResponse) Read(iprot thrift.TProtocol) (err error)

func (*LoginResponse) ReadField1

func (p *LoginResponse) ReadField1(iprot thrift.TProtocol) error

func (*LoginResponse) ReadField2

func (p *LoginResponse) ReadField2(iprot thrift.TProtocol) error

func (*LoginResponse) ReadField3

func (p *LoginResponse) ReadField3(iprot thrift.TProtocol) error

func (*LoginResponse) ReadField4

func (p *LoginResponse) ReadField4(iprot thrift.TProtocol) error

func (*LoginResponse) SetStatusCode

func (p *LoginResponse) SetStatusCode(val int64)

func (*LoginResponse) SetStatusMsg

func (p *LoginResponse) SetStatusMsg(val *string)

func (*LoginResponse) SetToken

func (p *LoginResponse) SetToken(val *string)

func (*LoginResponse) SetUserId

func (p *LoginResponse) SetUserId(val *int64)

func (*LoginResponse) String

func (p *LoginResponse) String() string

func (*LoginResponse) Write

func (p *LoginResponse) Write(oprot thrift.TProtocol) (err error)

type RegisterRequest

type RegisterRequest struct {
	Username string `thrift:"username,1" frugal:"1,default,string" json:"username"`
	Password string `thrift:"password,2" frugal:"2,default,string" json:"password"`
}
var UserServiceUserRegisterArgs_Request_DEFAULT *RegisterRequest

func NewRegisterRequest

func NewRegisterRequest() *RegisterRequest

func (*RegisterRequest) BLength

func (p *RegisterRequest) BLength() int

func (*RegisterRequest) DeepEqual

func (p *RegisterRequest) DeepEqual(ano *RegisterRequest) bool

func (*RegisterRequest) FastRead

func (p *RegisterRequest) FastRead(buf []byte) (int, error)

func (*RegisterRequest) FastReadField1

func (p *RegisterRequest) FastReadField1(buf []byte) (int, error)

func (*RegisterRequest) FastReadField2

func (p *RegisterRequest) FastReadField2(buf []byte) (int, error)

func (*RegisterRequest) FastWrite

func (p *RegisterRequest) FastWrite(buf []byte) int

for compatibility

func (*RegisterRequest) FastWriteNocopy

func (p *RegisterRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*RegisterRequest) Field1DeepEqual

func (p *RegisterRequest) Field1DeepEqual(src string) bool

func (*RegisterRequest) Field2DeepEqual

func (p *RegisterRequest) Field2DeepEqual(src string) bool

func (*RegisterRequest) GetPassword

func (p *RegisterRequest) GetPassword() (v string)

func (*RegisterRequest) GetUsername

func (p *RegisterRequest) GetUsername() (v string)

func (*RegisterRequest) InitDefault

func (p *RegisterRequest) InitDefault()

func (*RegisterRequest) Read

func (p *RegisterRequest) Read(iprot thrift.TProtocol) (err error)

func (*RegisterRequest) ReadField1

func (p *RegisterRequest) ReadField1(iprot thrift.TProtocol) error

func (*RegisterRequest) ReadField2

func (p *RegisterRequest) ReadField2(iprot thrift.TProtocol) error

func (*RegisterRequest) SetPassword

func (p *RegisterRequest) SetPassword(val string)

func (*RegisterRequest) SetUsername

func (p *RegisterRequest) SetUsername(val string)

func (*RegisterRequest) String

func (p *RegisterRequest) String() string

func (*RegisterRequest) Write

func (p *RegisterRequest) Write(oprot thrift.TProtocol) (err error)

type RegisterResponse

type RegisterResponse struct {
	StatusCode int64  `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
	UserId     int64  `thrift:"user_id,3" frugal:"3,default,i64" json:"user_id"`
	Token      string `thrift:"token,4" frugal:"4,default,string" json:"token"`
}
var UserServiceUserRegisterResult_Success_DEFAULT *RegisterResponse

func NewRegisterResponse

func NewRegisterResponse() *RegisterResponse

func (*RegisterResponse) BLength

func (p *RegisterResponse) BLength() int

func (*RegisterResponse) DeepEqual

func (p *RegisterResponse) DeepEqual(ano *RegisterResponse) bool

func (*RegisterResponse) FastRead

func (p *RegisterResponse) FastRead(buf []byte) (int, error)

func (*RegisterResponse) FastReadField1

func (p *RegisterResponse) FastReadField1(buf []byte) (int, error)

func (*RegisterResponse) FastReadField2

func (p *RegisterResponse) FastReadField2(buf []byte) (int, error)

func (*RegisterResponse) FastReadField3

func (p *RegisterResponse) FastReadField3(buf []byte) (int, error)

func (*RegisterResponse) FastReadField4

func (p *RegisterResponse) FastReadField4(buf []byte) (int, error)

func (*RegisterResponse) FastWrite

func (p *RegisterResponse) FastWrite(buf []byte) int

for compatibility

func (*RegisterResponse) FastWriteNocopy

func (p *RegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*RegisterResponse) Field1DeepEqual

func (p *RegisterResponse) Field1DeepEqual(src int64) bool

func (*RegisterResponse) Field2DeepEqual

func (p *RegisterResponse) Field2DeepEqual(src string) bool

func (*RegisterResponse) Field3DeepEqual

func (p *RegisterResponse) Field3DeepEqual(src int64) bool

func (*RegisterResponse) Field4DeepEqual

func (p *RegisterResponse) Field4DeepEqual(src string) bool

func (*RegisterResponse) GetStatusCode

func (p *RegisterResponse) GetStatusCode() (v int64)

func (*RegisterResponse) GetStatusMsg

func (p *RegisterResponse) GetStatusMsg() (v string)

func (*RegisterResponse) GetToken

func (p *RegisterResponse) GetToken() (v string)

func (*RegisterResponse) GetUserId

func (p *RegisterResponse) GetUserId() (v int64)

func (*RegisterResponse) InitDefault

func (p *RegisterResponse) InitDefault()

func (*RegisterResponse) Read

func (p *RegisterResponse) Read(iprot thrift.TProtocol) (err error)

func (*RegisterResponse) ReadField1

func (p *RegisterResponse) ReadField1(iprot thrift.TProtocol) error

func (*RegisterResponse) ReadField2

func (p *RegisterResponse) ReadField2(iprot thrift.TProtocol) error

func (*RegisterResponse) ReadField3

func (p *RegisterResponse) ReadField3(iprot thrift.TProtocol) error

func (*RegisterResponse) ReadField4

func (p *RegisterResponse) ReadField4(iprot thrift.TProtocol) error

func (*RegisterResponse) SetStatusCode

func (p *RegisterResponse) SetStatusCode(val int64)

func (*RegisterResponse) SetStatusMsg

func (p *RegisterResponse) SetStatusMsg(val string)

func (*RegisterResponse) SetToken

func (p *RegisterResponse) SetToken(val string)

func (*RegisterResponse) SetUserId

func (p *RegisterResponse) SetUserId(val int64)

func (*RegisterResponse) String

func (p *RegisterResponse) String() string

func (*RegisterResponse) Write

func (p *RegisterResponse) Write(oprot thrift.TProtocol) (err error)

type UserInfo

type UserInfo struct {
	Id              int64   `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Name            string  `thrift:"name,2" frugal:"2,default,string" json:"name"`
	FollowCount     int64   `thrift:"follow_count,3" frugal:"3,default,i64" json:"follow_count"`
	FollowerCount   int64   `thrift:"follower_count,4" frugal:"4,default,i64" json:"follower_count"`
	IsFollow        bool    `thrift:"is_follow,5" frugal:"5,default,bool" json:"is_follow"`
	WorkCount       *int64  `thrift:"work_count,6,optional" frugal:"6,optional,i64" json:"work_count,omitempty"`
	FavoriteCount   *int64  `thrift:"favorite_count,7,optional" frugal:"7,optional,i64" json:"favorite_count,omitempty"`
	TotalFavorited  *int64  `thrift:"total_favorited,8,optional" frugal:"8,optional,i64" json:"total_favorited,omitempty"`
	Signature       *string `thrift:"signature,9,optional" frugal:"9,optional,string" json:"signature,omitempty"`
	Avatar          *string `thrift:"avatar,10,optional" frugal:"10,optional,string" json:"avatar,omitempty"`
	BackgroundImage *string `thrift:"background_image,11,optional" frugal:"11,optional,string" json:"background_image,omitempty"`
}
var UserInfoResponse_User_DEFAULT *UserInfo

func NewUserInfo

func NewUserInfo() *UserInfo

func (*UserInfo) BLength

func (p *UserInfo) BLength() int

func (*UserInfo) DeepEqual

func (p *UserInfo) DeepEqual(ano *UserInfo) bool

func (*UserInfo) FastRead

func (p *UserInfo) FastRead(buf []byte) (int, error)

func (*UserInfo) FastReadField1

func (p *UserInfo) FastReadField1(buf []byte) (int, error)

func (*UserInfo) FastReadField10

func (p *UserInfo) FastReadField10(buf []byte) (int, error)

func (*UserInfo) FastReadField11

func (p *UserInfo) FastReadField11(buf []byte) (int, error)

func (*UserInfo) FastReadField2

func (p *UserInfo) FastReadField2(buf []byte) (int, error)

func (*UserInfo) FastReadField3

func (p *UserInfo) FastReadField3(buf []byte) (int, error)

func (*UserInfo) FastReadField4

func (p *UserInfo) FastReadField4(buf []byte) (int, error)

func (*UserInfo) FastReadField5

func (p *UserInfo) FastReadField5(buf []byte) (int, error)

func (*UserInfo) FastReadField6

func (p *UserInfo) FastReadField6(buf []byte) (int, error)

func (*UserInfo) FastReadField7

func (p *UserInfo) FastReadField7(buf []byte) (int, error)

func (*UserInfo) FastReadField8

func (p *UserInfo) FastReadField8(buf []byte) (int, error)

func (*UserInfo) FastReadField9

func (p *UserInfo) FastReadField9(buf []byte) (int, error)

func (*UserInfo) FastWrite

func (p *UserInfo) FastWrite(buf []byte) int

for compatibility

func (*UserInfo) FastWriteNocopy

func (p *UserInfo) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserInfo) Field10DeepEqual

func (p *UserInfo) Field10DeepEqual(src *string) bool

func (*UserInfo) Field11DeepEqual

func (p *UserInfo) Field11DeepEqual(src *string) bool

func (*UserInfo) Field1DeepEqual

func (p *UserInfo) Field1DeepEqual(src int64) bool

func (*UserInfo) Field2DeepEqual

func (p *UserInfo) Field2DeepEqual(src string) bool

func (*UserInfo) Field3DeepEqual

func (p *UserInfo) Field3DeepEqual(src int64) bool

func (*UserInfo) Field4DeepEqual

func (p *UserInfo) Field4DeepEqual(src int64) bool

func (*UserInfo) Field5DeepEqual

func (p *UserInfo) Field5DeepEqual(src bool) bool

func (*UserInfo) Field6DeepEqual

func (p *UserInfo) Field6DeepEqual(src *int64) bool

func (*UserInfo) Field7DeepEqual

func (p *UserInfo) Field7DeepEqual(src *int64) bool

func (*UserInfo) Field8DeepEqual

func (p *UserInfo) Field8DeepEqual(src *int64) bool

func (*UserInfo) Field9DeepEqual

func (p *UserInfo) Field9DeepEqual(src *string) bool

func (*UserInfo) GetAvatar

func (p *UserInfo) GetAvatar() (v string)

func (*UserInfo) GetBackgroundImage

func (p *UserInfo) GetBackgroundImage() (v string)

func (*UserInfo) GetFavoriteCount

func (p *UserInfo) GetFavoriteCount() (v int64)

func (*UserInfo) GetFollowCount

func (p *UserInfo) GetFollowCount() (v int64)

func (*UserInfo) GetFollowerCount

func (p *UserInfo) GetFollowerCount() (v int64)

func (*UserInfo) GetId

func (p *UserInfo) GetId() (v int64)

func (*UserInfo) GetIsFollow

func (p *UserInfo) GetIsFollow() (v bool)

func (*UserInfo) GetName

func (p *UserInfo) GetName() (v string)

func (*UserInfo) GetSignature

func (p *UserInfo) GetSignature() (v string)

func (*UserInfo) GetTotalFavorited

func (p *UserInfo) GetTotalFavorited() (v int64)

func (*UserInfo) GetWorkCount

func (p *UserInfo) GetWorkCount() (v int64)

func (*UserInfo) InitDefault

func (p *UserInfo) InitDefault()

func (*UserInfo) IsSetAvatar

func (p *UserInfo) IsSetAvatar() bool

func (*UserInfo) IsSetBackgroundImage

func (p *UserInfo) IsSetBackgroundImage() bool

func (*UserInfo) IsSetFavoriteCount

func (p *UserInfo) IsSetFavoriteCount() bool

func (*UserInfo) IsSetSignature

func (p *UserInfo) IsSetSignature() bool

func (*UserInfo) IsSetTotalFavorited

func (p *UserInfo) IsSetTotalFavorited() bool

func (*UserInfo) IsSetWorkCount

func (p *UserInfo) IsSetWorkCount() bool

func (*UserInfo) Read

func (p *UserInfo) Read(iprot thrift.TProtocol) (err error)

func (*UserInfo) ReadField1

func (p *UserInfo) ReadField1(iprot thrift.TProtocol) error

func (*UserInfo) ReadField10

func (p *UserInfo) ReadField10(iprot thrift.TProtocol) error

func (*UserInfo) ReadField11

func (p *UserInfo) ReadField11(iprot thrift.TProtocol) error

func (*UserInfo) ReadField2

func (p *UserInfo) ReadField2(iprot thrift.TProtocol) error

func (*UserInfo) ReadField3

func (p *UserInfo) ReadField3(iprot thrift.TProtocol) error

func (*UserInfo) ReadField4

func (p *UserInfo) ReadField4(iprot thrift.TProtocol) error

func (*UserInfo) ReadField5

func (p *UserInfo) ReadField5(iprot thrift.TProtocol) error

func (*UserInfo) ReadField6

func (p *UserInfo) ReadField6(iprot thrift.TProtocol) error

func (*UserInfo) ReadField7

func (p *UserInfo) ReadField7(iprot thrift.TProtocol) error

func (*UserInfo) ReadField8

func (p *UserInfo) ReadField8(iprot thrift.TProtocol) error

func (*UserInfo) ReadField9

func (p *UserInfo) ReadField9(iprot thrift.TProtocol) error

func (*UserInfo) SetAvatar

func (p *UserInfo) SetAvatar(val *string)

func (*UserInfo) SetBackgroundImage

func (p *UserInfo) SetBackgroundImage(val *string)

func (*UserInfo) SetFavoriteCount

func (p *UserInfo) SetFavoriteCount(val *int64)

func (*UserInfo) SetFollowCount

func (p *UserInfo) SetFollowCount(val int64)

func (*UserInfo) SetFollowerCount

func (p *UserInfo) SetFollowerCount(val int64)

func (*UserInfo) SetId

func (p *UserInfo) SetId(val int64)

func (*UserInfo) SetIsFollow

func (p *UserInfo) SetIsFollow(val bool)

func (*UserInfo) SetName

func (p *UserInfo) SetName(val string)

func (*UserInfo) SetSignature

func (p *UserInfo) SetSignature(val *string)

func (*UserInfo) SetTotalFavorited

func (p *UserInfo) SetTotalFavorited(val *int64)

func (*UserInfo) SetWorkCount

func (p *UserInfo) SetWorkCount(val *int64)

func (*UserInfo) String

func (p *UserInfo) String() string

func (*UserInfo) Write

func (p *UserInfo) Write(oprot thrift.TProtocol) (err error)

type UserInfoRequest

type UserInfoRequest struct {
	UserId  int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
	QueryId int64 `thrift:"query_id,2" frugal:"2,default,i64" json:"query_id"`
}
var UserServiceGetUserInfoArgs_Request_DEFAULT *UserInfoRequest

func NewUserInfoRequest

func NewUserInfoRequest() *UserInfoRequest

func (*UserInfoRequest) BLength

func (p *UserInfoRequest) BLength() int

func (*UserInfoRequest) DeepEqual

func (p *UserInfoRequest) DeepEqual(ano *UserInfoRequest) bool

func (*UserInfoRequest) FastRead

func (p *UserInfoRequest) FastRead(buf []byte) (int, error)

func (*UserInfoRequest) FastReadField1

func (p *UserInfoRequest) FastReadField1(buf []byte) (int, error)

func (*UserInfoRequest) FastReadField2

func (p *UserInfoRequest) FastReadField2(buf []byte) (int, error)

func (*UserInfoRequest) FastWrite

func (p *UserInfoRequest) FastWrite(buf []byte) int

for compatibility

func (*UserInfoRequest) FastWriteNocopy

func (p *UserInfoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserInfoRequest) Field1DeepEqual

func (p *UserInfoRequest) Field1DeepEqual(src int64) bool

func (*UserInfoRequest) Field2DeepEqual

func (p *UserInfoRequest) Field2DeepEqual(src int64) bool

func (*UserInfoRequest) GetQueryId

func (p *UserInfoRequest) GetQueryId() (v int64)

func (*UserInfoRequest) GetUserId

func (p *UserInfoRequest) GetUserId() (v int64)

func (*UserInfoRequest) InitDefault

func (p *UserInfoRequest) InitDefault()

func (*UserInfoRequest) Read

func (p *UserInfoRequest) Read(iprot thrift.TProtocol) (err error)

func (*UserInfoRequest) ReadField1

func (p *UserInfoRequest) ReadField1(iprot thrift.TProtocol) error

func (*UserInfoRequest) ReadField2

func (p *UserInfoRequest) ReadField2(iprot thrift.TProtocol) error

func (*UserInfoRequest) SetQueryId

func (p *UserInfoRequest) SetQueryId(val int64)

func (*UserInfoRequest) SetUserId

func (p *UserInfoRequest) SetUserId(val int64)

func (*UserInfoRequest) String

func (p *UserInfoRequest) String() string

func (*UserInfoRequest) Write

func (p *UserInfoRequest) Write(oprot thrift.TProtocol) (err error)

type UserInfoResponse

type UserInfoResponse struct {
	StatusCode int64     `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  *string   `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	User       *UserInfo `thrift:"user,3,optional" frugal:"3,optional,UserInfo" json:"user,omitempty"`
}
var UserServiceGetUserInfoResult_Success_DEFAULT *UserInfoResponse

func NewUserInfoResponse

func NewUserInfoResponse() *UserInfoResponse

func (*UserInfoResponse) BLength

func (p *UserInfoResponse) BLength() int

func (*UserInfoResponse) DeepEqual

func (p *UserInfoResponse) DeepEqual(ano *UserInfoResponse) bool

func (*UserInfoResponse) FastRead

func (p *UserInfoResponse) FastRead(buf []byte) (int, error)

func (*UserInfoResponse) FastReadField1

func (p *UserInfoResponse) FastReadField1(buf []byte) (int, error)

func (*UserInfoResponse) FastReadField2

func (p *UserInfoResponse) FastReadField2(buf []byte) (int, error)

func (*UserInfoResponse) FastReadField3

func (p *UserInfoResponse) FastReadField3(buf []byte) (int, error)

func (*UserInfoResponse) FastWrite

func (p *UserInfoResponse) FastWrite(buf []byte) int

for compatibility

func (*UserInfoResponse) FastWriteNocopy

func (p *UserInfoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserInfoResponse) Field1DeepEqual

func (p *UserInfoResponse) Field1DeepEqual(src int64) bool

func (*UserInfoResponse) Field2DeepEqual

func (p *UserInfoResponse) Field2DeepEqual(src *string) bool

func (*UserInfoResponse) Field3DeepEqual

func (p *UserInfoResponse) Field3DeepEqual(src *UserInfo) bool

func (*UserInfoResponse) GetStatusCode

func (p *UserInfoResponse) GetStatusCode() (v int64)

func (*UserInfoResponse) GetStatusMsg

func (p *UserInfoResponse) GetStatusMsg() (v string)

func (*UserInfoResponse) GetUser

func (p *UserInfoResponse) GetUser() (v *UserInfo)

func (*UserInfoResponse) InitDefault

func (p *UserInfoResponse) InitDefault()

func (*UserInfoResponse) IsSetStatusMsg

func (p *UserInfoResponse) IsSetStatusMsg() bool

func (*UserInfoResponse) IsSetUser

func (p *UserInfoResponse) IsSetUser() bool

func (*UserInfoResponse) Read

func (p *UserInfoResponse) Read(iprot thrift.TProtocol) (err error)

func (*UserInfoResponse) ReadField1

func (p *UserInfoResponse) ReadField1(iprot thrift.TProtocol) error

func (*UserInfoResponse) ReadField2

func (p *UserInfoResponse) ReadField2(iprot thrift.TProtocol) error

func (*UserInfoResponse) ReadField3

func (p *UserInfoResponse) ReadField3(iprot thrift.TProtocol) error

func (*UserInfoResponse) SetStatusCode

func (p *UserInfoResponse) SetStatusCode(val int64)

func (*UserInfoResponse) SetStatusMsg

func (p *UserInfoResponse) SetStatusMsg(val *string)

func (*UserInfoResponse) SetUser

func (p *UserInfoResponse) SetUser(val *UserInfo)

func (*UserInfoResponse) String

func (p *UserInfoResponse) String() string

func (*UserInfoResponse) Write

func (p *UserInfoResponse) Write(oprot thrift.TProtocol) (err error)

type UserService

type UserService interface {
	UserRegister(ctx context.Context, request *RegisterRequest) (r *RegisterResponse, err error)

	UserLogin(ctx context.Context, request *LoginRequest) (r *LoginResponse, err error)

	GetUserInfo(ctx context.Context, request *UserInfoRequest) (r *UserInfoResponse, err error)
}

type UserServiceClient

type UserServiceClient struct {
	// contains filtered or unexported fields
}

func NewUserServiceClient

func NewUserServiceClient(c thrift.TClient) *UserServiceClient

func NewUserServiceClientProtocol

func NewUserServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserServiceClient

func (*UserServiceClient) Client_

func (p *UserServiceClient) Client_() thrift.TClient

func (*UserServiceClient) GetUserInfo

func (p *UserServiceClient) GetUserInfo(ctx context.Context, request *UserInfoRequest) (r *UserInfoResponse, err error)

func (*UserServiceClient) UserLogin

func (p *UserServiceClient) UserLogin(ctx context.Context, request *LoginRequest) (r *LoginResponse, err error)

func (*UserServiceClient) UserRegister

func (p *UserServiceClient) UserRegister(ctx context.Context, request *RegisterRequest) (r *RegisterResponse, err error)

type UserServiceGetUserInfoArgs

type UserServiceGetUserInfoArgs struct {
	Request *UserInfoRequest `thrift:"request,1" frugal:"1,default,UserInfoRequest" json:"request"`
}

func NewUserServiceGetUserInfoArgs

func NewUserServiceGetUserInfoArgs() *UserServiceGetUserInfoArgs

func (*UserServiceGetUserInfoArgs) BLength

func (p *UserServiceGetUserInfoArgs) BLength() int

func (*UserServiceGetUserInfoArgs) DeepEqual

func (*UserServiceGetUserInfoArgs) FastRead

func (p *UserServiceGetUserInfoArgs) FastRead(buf []byte) (int, error)

func (*UserServiceGetUserInfoArgs) FastReadField1

func (p *UserServiceGetUserInfoArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceGetUserInfoArgs) FastWrite

func (p *UserServiceGetUserInfoArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceGetUserInfoArgs) FastWriteNocopy

func (p *UserServiceGetUserInfoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceGetUserInfoArgs) Field1DeepEqual

func (p *UserServiceGetUserInfoArgs) Field1DeepEqual(src *UserInfoRequest) bool

func (*UserServiceGetUserInfoArgs) GetFirstArgument

func (p *UserServiceGetUserInfoArgs) GetFirstArgument() interface{}

func (*UserServiceGetUserInfoArgs) GetRequest

func (p *UserServiceGetUserInfoArgs) GetRequest() (v *UserInfoRequest)

func (*UserServiceGetUserInfoArgs) InitDefault

func (p *UserServiceGetUserInfoArgs) InitDefault()

func (*UserServiceGetUserInfoArgs) IsSetRequest

func (p *UserServiceGetUserInfoArgs) IsSetRequest() bool

func (*UserServiceGetUserInfoArgs) Read

func (p *UserServiceGetUserInfoArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceGetUserInfoArgs) ReadField1

func (p *UserServiceGetUserInfoArgs) ReadField1(iprot thrift.TProtocol) error

func (*UserServiceGetUserInfoArgs) SetRequest

func (p *UserServiceGetUserInfoArgs) SetRequest(val *UserInfoRequest)

func (*UserServiceGetUserInfoArgs) String

func (p *UserServiceGetUserInfoArgs) String() string

func (*UserServiceGetUserInfoArgs) Write

func (p *UserServiceGetUserInfoArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceGetUserInfoResult

type UserServiceGetUserInfoResult struct {
	Success *UserInfoResponse `thrift:"success,0,optional" frugal:"0,optional,UserInfoResponse" json:"success,omitempty"`
}

func NewUserServiceGetUserInfoResult

func NewUserServiceGetUserInfoResult() *UserServiceGetUserInfoResult

func (*UserServiceGetUserInfoResult) BLength

func (p *UserServiceGetUserInfoResult) BLength() int

func (*UserServiceGetUserInfoResult) DeepEqual

func (*UserServiceGetUserInfoResult) FastRead

func (p *UserServiceGetUserInfoResult) FastRead(buf []byte) (int, error)

func (*UserServiceGetUserInfoResult) FastReadField0

func (p *UserServiceGetUserInfoResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceGetUserInfoResult) FastWrite

func (p *UserServiceGetUserInfoResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceGetUserInfoResult) FastWriteNocopy

func (p *UserServiceGetUserInfoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceGetUserInfoResult) Field0DeepEqual

func (p *UserServiceGetUserInfoResult) Field0DeepEqual(src *UserInfoResponse) bool

func (*UserServiceGetUserInfoResult) GetResult

func (p *UserServiceGetUserInfoResult) GetResult() interface{}

func (*UserServiceGetUserInfoResult) GetSuccess

func (p *UserServiceGetUserInfoResult) GetSuccess() (v *UserInfoResponse)

func (*UserServiceGetUserInfoResult) InitDefault

func (p *UserServiceGetUserInfoResult) InitDefault()

func (*UserServiceGetUserInfoResult) IsSetSuccess

func (p *UserServiceGetUserInfoResult) IsSetSuccess() bool

func (*UserServiceGetUserInfoResult) Read

func (p *UserServiceGetUserInfoResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceGetUserInfoResult) ReadField0

func (p *UserServiceGetUserInfoResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceGetUserInfoResult) SetSuccess

func (p *UserServiceGetUserInfoResult) SetSuccess(x interface{})

func (*UserServiceGetUserInfoResult) String

func (*UserServiceGetUserInfoResult) Write

func (p *UserServiceGetUserInfoResult) Write(oprot thrift.TProtocol) (err error)

type UserServiceProcessor

type UserServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewUserServiceProcessor

func NewUserServiceProcessor(handler UserService) *UserServiceProcessor

func (*UserServiceProcessor) AddToProcessorMap

func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*UserServiceProcessor) GetProcessorFunction

func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*UserServiceProcessor) Process

func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*UserServiceProcessor) ProcessorMap

func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type UserServiceUserLoginArgs

type UserServiceUserLoginArgs struct {
	Request *LoginRequest `thrift:"request,1" frugal:"1,default,LoginRequest" json:"request"`
}

func NewUserServiceUserLoginArgs

func NewUserServiceUserLoginArgs() *UserServiceUserLoginArgs

func (*UserServiceUserLoginArgs) BLength

func (p *UserServiceUserLoginArgs) BLength() int

func (*UserServiceUserLoginArgs) DeepEqual

func (*UserServiceUserLoginArgs) FastRead

func (p *UserServiceUserLoginArgs) FastRead(buf []byte) (int, error)

func (*UserServiceUserLoginArgs) FastReadField1

func (p *UserServiceUserLoginArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceUserLoginArgs) FastWrite

func (p *UserServiceUserLoginArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceUserLoginArgs) FastWriteNocopy

func (p *UserServiceUserLoginArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceUserLoginArgs) Field1DeepEqual

func (p *UserServiceUserLoginArgs) Field1DeepEqual(src *LoginRequest) bool

func (*UserServiceUserLoginArgs) GetFirstArgument

func (p *UserServiceUserLoginArgs) GetFirstArgument() interface{}

func (*UserServiceUserLoginArgs) GetRequest

func (p *UserServiceUserLoginArgs) GetRequest() (v *LoginRequest)

func (*UserServiceUserLoginArgs) InitDefault

func (p *UserServiceUserLoginArgs) InitDefault()

func (*UserServiceUserLoginArgs) IsSetRequest

func (p *UserServiceUserLoginArgs) IsSetRequest() bool

func (*UserServiceUserLoginArgs) Read

func (p *UserServiceUserLoginArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceUserLoginArgs) ReadField1

func (p *UserServiceUserLoginArgs) ReadField1(iprot thrift.TProtocol) error

func (*UserServiceUserLoginArgs) SetRequest

func (p *UserServiceUserLoginArgs) SetRequest(val *LoginRequest)

func (*UserServiceUserLoginArgs) String

func (p *UserServiceUserLoginArgs) String() string

func (*UserServiceUserLoginArgs) Write

func (p *UserServiceUserLoginArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceUserLoginResult

type UserServiceUserLoginResult struct {
	Success *LoginResponse `thrift:"success,0,optional" frugal:"0,optional,LoginResponse" json:"success,omitempty"`
}

func NewUserServiceUserLoginResult

func NewUserServiceUserLoginResult() *UserServiceUserLoginResult

func (*UserServiceUserLoginResult) BLength

func (p *UserServiceUserLoginResult) BLength() int

func (*UserServiceUserLoginResult) DeepEqual

func (*UserServiceUserLoginResult) FastRead

func (p *UserServiceUserLoginResult) FastRead(buf []byte) (int, error)

func (*UserServiceUserLoginResult) FastReadField0

func (p *UserServiceUserLoginResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceUserLoginResult) FastWrite

func (p *UserServiceUserLoginResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceUserLoginResult) FastWriteNocopy

func (p *UserServiceUserLoginResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceUserLoginResult) Field0DeepEqual

func (p *UserServiceUserLoginResult) Field0DeepEqual(src *LoginResponse) bool

func (*UserServiceUserLoginResult) GetResult

func (p *UserServiceUserLoginResult) GetResult() interface{}

func (*UserServiceUserLoginResult) GetSuccess

func (p *UserServiceUserLoginResult) GetSuccess() (v *LoginResponse)

func (*UserServiceUserLoginResult) InitDefault

func (p *UserServiceUserLoginResult) InitDefault()

func (*UserServiceUserLoginResult) IsSetSuccess

func (p *UserServiceUserLoginResult) IsSetSuccess() bool

func (*UserServiceUserLoginResult) Read

func (p *UserServiceUserLoginResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceUserLoginResult) ReadField0

func (p *UserServiceUserLoginResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceUserLoginResult) SetSuccess

func (p *UserServiceUserLoginResult) SetSuccess(x interface{})

func (*UserServiceUserLoginResult) String

func (p *UserServiceUserLoginResult) String() string

func (*UserServiceUserLoginResult) Write

func (p *UserServiceUserLoginResult) Write(oprot thrift.TProtocol) (err error)

type UserServiceUserRegisterArgs

type UserServiceUserRegisterArgs struct {
	Request *RegisterRequest `thrift:"request,1" frugal:"1,default,RegisterRequest" json:"request"`
}

func NewUserServiceUserRegisterArgs

func NewUserServiceUserRegisterArgs() *UserServiceUserRegisterArgs

func (*UserServiceUserRegisterArgs) BLength

func (p *UserServiceUserRegisterArgs) BLength() int

func (*UserServiceUserRegisterArgs) DeepEqual

func (*UserServiceUserRegisterArgs) FastRead

func (p *UserServiceUserRegisterArgs) FastRead(buf []byte) (int, error)

func (*UserServiceUserRegisterArgs) FastReadField1

func (p *UserServiceUserRegisterArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceUserRegisterArgs) FastWrite

func (p *UserServiceUserRegisterArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceUserRegisterArgs) FastWriteNocopy

func (p *UserServiceUserRegisterArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceUserRegisterArgs) Field1DeepEqual

func (p *UserServiceUserRegisterArgs) Field1DeepEqual(src *RegisterRequest) bool

func (*UserServiceUserRegisterArgs) GetFirstArgument

func (p *UserServiceUserRegisterArgs) GetFirstArgument() interface{}

func (*UserServiceUserRegisterArgs) GetRequest

func (p *UserServiceUserRegisterArgs) GetRequest() (v *RegisterRequest)

func (*UserServiceUserRegisterArgs) InitDefault

func (p *UserServiceUserRegisterArgs) InitDefault()

func (*UserServiceUserRegisterArgs) IsSetRequest

func (p *UserServiceUserRegisterArgs) IsSetRequest() bool

func (*UserServiceUserRegisterArgs) Read

func (p *UserServiceUserRegisterArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceUserRegisterArgs) ReadField1

func (p *UserServiceUserRegisterArgs) ReadField1(iprot thrift.TProtocol) error

func (*UserServiceUserRegisterArgs) SetRequest

func (p *UserServiceUserRegisterArgs) SetRequest(val *RegisterRequest)

func (*UserServiceUserRegisterArgs) String

func (p *UserServiceUserRegisterArgs) String() string

func (*UserServiceUserRegisterArgs) Write

func (p *UserServiceUserRegisterArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceUserRegisterResult

type UserServiceUserRegisterResult struct {
	Success *RegisterResponse `thrift:"success,0,optional" frugal:"0,optional,RegisterResponse" json:"success,omitempty"`
}

func NewUserServiceUserRegisterResult

func NewUserServiceUserRegisterResult() *UserServiceUserRegisterResult

func (*UserServiceUserRegisterResult) BLength

func (p *UserServiceUserRegisterResult) BLength() int

func (*UserServiceUserRegisterResult) DeepEqual

func (*UserServiceUserRegisterResult) FastRead

func (p *UserServiceUserRegisterResult) FastRead(buf []byte) (int, error)

func (*UserServiceUserRegisterResult) FastReadField0

func (p *UserServiceUserRegisterResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceUserRegisterResult) FastWrite

func (p *UserServiceUserRegisterResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceUserRegisterResult) FastWriteNocopy

func (p *UserServiceUserRegisterResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceUserRegisterResult) Field0DeepEqual

func (p *UserServiceUserRegisterResult) Field0DeepEqual(src *RegisterResponse) bool

func (*UserServiceUserRegisterResult) GetResult

func (p *UserServiceUserRegisterResult) GetResult() interface{}

func (*UserServiceUserRegisterResult) GetSuccess

func (p *UserServiceUserRegisterResult) GetSuccess() (v *RegisterResponse)

func (*UserServiceUserRegisterResult) InitDefault

func (p *UserServiceUserRegisterResult) InitDefault()

func (*UserServiceUserRegisterResult) IsSetSuccess

func (p *UserServiceUserRegisterResult) IsSetSuccess() bool

func (*UserServiceUserRegisterResult) Read

func (p *UserServiceUserRegisterResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceUserRegisterResult) ReadField0

func (p *UserServiceUserRegisterResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceUserRegisterResult) SetSuccess

func (p *UserServiceUserRegisterResult) SetSuccess(x interface{})

func (*UserServiceUserRegisterResult) String

func (*UserServiceUserRegisterResult) Write

func (p *UserServiceUserRegisterResult) Write(oprot thrift.TProtocol) (err error)

Directories

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

Jump to

Keyboard shortcuts

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