user

package
v0.0.0-...-671c73a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InfoResponse_StatusMsg_DEFAULT string
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 RegisterResponse_StatusMsg_DEFAULT string
View Source
var User_Avatar_DEFAULT string
View Source
var User_BackgroundImage_DEFAULT string
View Source
var User_FavoriteCount_DEFAULT int64
View Source
var User_FollowCount_DEFAULT int64
View Source
var User_FollowerCount_DEFAULT int64
View Source
var User_Signature_DEFAULT string
View Source
var User_TotalFavorited_DEFAULT int64
View Source
var User_WorkCount_DEFAULT int64

Functions

This section is empty.

Types

type InfoRequest

type InfoRequest struct {
	UserId int64  `thrift:"user_id,1,required" frugal:"1,required,i64" json:"user_id"`
	Token  string `thrift:"token,2,required" frugal:"2,required,string" json:"token"`
}
var UserServiceUserInfoArgs_Req_DEFAULT *InfoRequest

func NewInfoRequest

func NewInfoRequest() *InfoRequest

func (*InfoRequest) BLength

func (p *InfoRequest) BLength() int

func (*InfoRequest) DeepEqual

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

func (*InfoRequest) FastRead

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

func (*InfoRequest) FastReadField1

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

func (*InfoRequest) FastReadField2

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

func (*InfoRequest) FastWrite

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

for compatibility

func (*InfoRequest) FastWriteNocopy

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

func (*InfoRequest) Field1DeepEqual

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

func (*InfoRequest) Field2DeepEqual

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

func (*InfoRequest) GetToken

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

func (*InfoRequest) GetUserId

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

func (*InfoRequest) InitDefault

func (p *InfoRequest) InitDefault()

func (*InfoRequest) Read

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

func (*InfoRequest) ReadField1

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

func (*InfoRequest) ReadField2

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

func (*InfoRequest) SetToken

func (p *InfoRequest) SetToken(val string)

func (*InfoRequest) SetUserId

func (p *InfoRequest) SetUserId(val int64)

func (*InfoRequest) String

func (p *InfoRequest) String() string

func (*InfoRequest) Write

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

type InfoResponse

type InfoResponse struct {
	StatusCode int32   `thrift:"status_code,1,required" frugal:"1,required,i32" json:"status_code"`
	StatusMsg  *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	User       *User   `thrift:"user,3,required" frugal:"3,required,User" json:"user"`
}
var UserServiceUserInfoResult_Success_DEFAULT *InfoResponse

func NewInfoResponse

func NewInfoResponse() *InfoResponse

func (*InfoResponse) BLength

func (p *InfoResponse) BLength() int

func (*InfoResponse) DeepEqual

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

func (*InfoResponse) FastRead

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

func (*InfoResponse) FastReadField1

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

func (*InfoResponse) FastReadField2

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

func (*InfoResponse) FastReadField3

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

func (*InfoResponse) FastWrite

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

for compatibility

func (*InfoResponse) FastWriteNocopy

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

func (*InfoResponse) Field1DeepEqual

func (p *InfoResponse) Field1DeepEqual(src int32) bool

func (*InfoResponse) Field2DeepEqual

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

func (*InfoResponse) Field3DeepEqual

func (p *InfoResponse) Field3DeepEqual(src *User) bool

func (*InfoResponse) GetStatusCode

func (p *InfoResponse) GetStatusCode() (v int32)

func (*InfoResponse) GetStatusMsg

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

func (*InfoResponse) GetUser

func (p *InfoResponse) GetUser() (v *User)

func (*InfoResponse) InitDefault

func (p *InfoResponse) InitDefault()

func (*InfoResponse) IsSetStatusMsg

func (p *InfoResponse) IsSetStatusMsg() bool

func (*InfoResponse) IsSetUser

func (p *InfoResponse) IsSetUser() bool

func (*InfoResponse) Read

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

func (*InfoResponse) ReadField1

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

func (*InfoResponse) ReadField2

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

func (*InfoResponse) ReadField3

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

func (*InfoResponse) SetStatusCode

func (p *InfoResponse) SetStatusCode(val int32)

func (*InfoResponse) SetStatusMsg

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

func (*InfoResponse) SetUser

func (p *InfoResponse) SetUser(val *User)

func (*InfoResponse) String

func (p *InfoResponse) String() string

func (*InfoResponse) Write

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

type LoginRequest

type LoginRequest struct {
	Username string `thrift:"username,1,required" frugal:"1,required,string" json:"username"`
	Password string `thrift:"password,2,required" frugal:"2,required,string" json:"password"`
}
var UserServiceUserLoginArgs_Req_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 int32   `thrift:"status_code,1,required" frugal:"1,required,i32" json:"status_code"`
	StatusMsg  *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	UserId     int64   `thrift:"user_id,3,required" frugal:"3,required,i64" json:"user_id"`
	Token      string  `thrift:"token,4,required" frugal:"4,required,string" json:"token"`
}
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 int32) 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 int32)

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) 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 int32)

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,required" frugal:"1,required,string" json:"username"`
	Password string `thrift:"password,2,required" frugal:"2,required,string" json:"password"`
}
var UserServiceUserRegisterArgs_Req_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 int32   `thrift:"status_code,1,required" frugal:"1,required,i32" json:"status_code"`
	StatusMsg  *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	UserId     int64   `thrift:"user_id,3,required" frugal:"3,required,i64" json:"user_id"`
	Token      string  `thrift:"token,4,required" frugal:"4,required,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 int32) 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 int32)

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) IsSetStatusMsg

func (p *RegisterResponse) IsSetStatusMsg() bool

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 int32)

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 User

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

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

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

func (*User) FastRead

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

func (*User) FastReadField1

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

func (*User) FastReadField10

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

func (*User) FastReadField11

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

func (*User) FastReadField2

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

func (*User) FastReadField3

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

func (*User) FastReadField4

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

func (*User) FastReadField5

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

func (*User) FastReadField6

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

func (*User) FastReadField7

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

func (*User) FastReadField8

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

func (*User) FastReadField9

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

func (*User) FastWrite

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

for compatibility

func (*User) FastWriteNocopy

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

func (*User) Field10DeepEqual

func (p *User) Field10DeepEqual(src *int64) bool

func (*User) Field11DeepEqual

func (p *User) Field11DeepEqual(src *int64) bool

func (*User) Field1DeepEqual

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

func (*User) Field2DeepEqual

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

func (*User) Field3DeepEqual

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

func (*User) Field4DeepEqual

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

func (*User) Field5DeepEqual

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

func (*User) Field6DeepEqual

func (p *User) Field6DeepEqual(src *string) bool

func (*User) Field7DeepEqual

func (p *User) Field7DeepEqual(src *string) bool

func (*User) Field8DeepEqual

func (p *User) Field8DeepEqual(src *string) bool

func (*User) Field9DeepEqual

func (p *User) Field9DeepEqual(src *int64) bool

func (*User) GetAvatar

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

func (*User) GetBackgroundImage

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

func (*User) GetFavoriteCount

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

func (*User) GetFollowCount

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

func (*User) GetFollowerCount

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

func (*User) GetId

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

func (*User) GetIsFollow

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

func (*User) GetName

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

func (*User) GetSignature

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

func (*User) GetTotalFavorited

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

func (*User) GetWorkCount

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

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) IsSetAvatar

func (p *User) IsSetAvatar() bool

func (*User) IsSetBackgroundImage

func (p *User) IsSetBackgroundImage() bool

func (*User) IsSetFavoriteCount

func (p *User) IsSetFavoriteCount() bool

func (*User) IsSetFollowCount

func (p *User) IsSetFollowCount() bool

func (*User) IsSetFollowerCount

func (p *User) IsSetFollowerCount() bool

func (*User) IsSetSignature

func (p *User) IsSetSignature() bool

func (*User) IsSetTotalFavorited

func (p *User) IsSetTotalFavorited() bool

func (*User) IsSetWorkCount

func (p *User) IsSetWorkCount() bool

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField10

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

func (*User) ReadField11

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

func (*User) ReadField2

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

func (*User) ReadField3

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

func (*User) ReadField4

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

func (*User) ReadField5

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

func (*User) ReadField6

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

func (*User) ReadField7

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

func (*User) ReadField8

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

func (*User) ReadField9

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

func (*User) SetAvatar

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

func (*User) SetBackgroundImage

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

func (*User) SetFavoriteCount

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

func (*User) SetFollowCount

func (p *User) SetFollowCount(val *int64)

func (*User) SetFollowerCount

func (p *User) SetFollowerCount(val *int64)

func (*User) SetId

func (p *User) SetId(val int64)

func (*User) SetIsFollow

func (p *User) SetIsFollow(val bool)

func (*User) SetName

func (p *User) SetName(val string)

func (*User) SetSignature

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

func (*User) SetTotalFavorited

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

func (*User) SetWorkCount

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

func (*User) String

func (p *User) String() string

func (*User) Write

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

type UserService

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

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

	UserInfo(ctx context.Context, req *InfoRequest) (r *InfoResponse, 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) UserInfo

func (p *UserServiceClient) UserInfo(ctx context.Context, req *InfoRequest) (r *InfoResponse, err error)

func (*UserServiceClient) UserLogin

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

func (*UserServiceClient) UserRegister

func (p *UserServiceClient) UserRegister(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, 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 UserServiceUserInfoArgs

type UserServiceUserInfoArgs struct {
	Req *InfoRequest `thrift:"req,1" frugal:"1,default,InfoRequest" json:"req"`
}

func NewUserServiceUserInfoArgs

func NewUserServiceUserInfoArgs() *UserServiceUserInfoArgs

func (*UserServiceUserInfoArgs) BLength

func (p *UserServiceUserInfoArgs) BLength() int

func (*UserServiceUserInfoArgs) DeepEqual

func (*UserServiceUserInfoArgs) FastRead

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

func (*UserServiceUserInfoArgs) FastReadField1

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

func (*UserServiceUserInfoArgs) FastWrite

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

for compatibility

func (*UserServiceUserInfoArgs) FastWriteNocopy

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

func (*UserServiceUserInfoArgs) Field1DeepEqual

func (p *UserServiceUserInfoArgs) Field1DeepEqual(src *InfoRequest) bool

func (*UserServiceUserInfoArgs) GetFirstArgument

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

func (*UserServiceUserInfoArgs) GetReq

func (p *UserServiceUserInfoArgs) GetReq() (v *InfoRequest)

func (*UserServiceUserInfoArgs) InitDefault

func (p *UserServiceUserInfoArgs) InitDefault()

func (*UserServiceUserInfoArgs) IsSetReq

func (p *UserServiceUserInfoArgs) IsSetReq() bool

func (*UserServiceUserInfoArgs) Read

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

func (*UserServiceUserInfoArgs) ReadField1

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

func (*UserServiceUserInfoArgs) SetReq

func (p *UserServiceUserInfoArgs) SetReq(val *InfoRequest)

func (*UserServiceUserInfoArgs) String

func (p *UserServiceUserInfoArgs) String() string

func (*UserServiceUserInfoArgs) Write

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

type UserServiceUserInfoResult

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

func NewUserServiceUserInfoResult

func NewUserServiceUserInfoResult() *UserServiceUserInfoResult

func (*UserServiceUserInfoResult) BLength

func (p *UserServiceUserInfoResult) BLength() int

func (*UserServiceUserInfoResult) DeepEqual

func (*UserServiceUserInfoResult) FastRead

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

func (*UserServiceUserInfoResult) FastReadField0

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

func (*UserServiceUserInfoResult) FastWrite

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

for compatibility

func (*UserServiceUserInfoResult) FastWriteNocopy

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

func (*UserServiceUserInfoResult) Field0DeepEqual

func (p *UserServiceUserInfoResult) Field0DeepEqual(src *InfoResponse) bool

func (*UserServiceUserInfoResult) GetResult

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

func (*UserServiceUserInfoResult) GetSuccess

func (p *UserServiceUserInfoResult) GetSuccess() (v *InfoResponse)

func (*UserServiceUserInfoResult) InitDefault

func (p *UserServiceUserInfoResult) InitDefault()

func (*UserServiceUserInfoResult) IsSetSuccess

func (p *UserServiceUserInfoResult) IsSetSuccess() bool

func (*UserServiceUserInfoResult) Read

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

func (*UserServiceUserInfoResult) ReadField0

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

func (*UserServiceUserInfoResult) SetSuccess

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

func (*UserServiceUserInfoResult) String

func (p *UserServiceUserInfoResult) String() string

func (*UserServiceUserInfoResult) Write

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

type UserServiceUserLoginArgs

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

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) GetReq

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

func (*UserServiceUserLoginArgs) InitDefault

func (p *UserServiceUserLoginArgs) InitDefault()

func (*UserServiceUserLoginArgs) IsSetReq

func (p *UserServiceUserLoginArgs) IsSetReq() 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) SetReq

func (p *UserServiceUserLoginArgs) SetReq(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 {
	Req *RegisterRequest `thrift:"req,1" frugal:"1,default,RegisterRequest" json:"req"`
}

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) GetReq

func (*UserServiceUserRegisterArgs) InitDefault

func (p *UserServiceUserRegisterArgs) InitDefault()

func (*UserServiceUserRegisterArgs) IsSetReq

func (p *UserServiceUserRegisterArgs) IsSetReq() 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) SetReq

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.5.2.
Code generated by Kitex v0.5.2.

Jump to

Keyboard shortcuts

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