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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InfoResponse_StatusMsg_DEFAULT string
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" form:"user_id,required" json:"user_id,required" query:"user_id,required"`
	Token  string `thrift:"token,2,required" form:"token,required" json:"token,required" query:"token,required"`
}

用户信息查询HTTP请求体

var UserServiceUserInfoArgs_Req_DEFAULT *InfoRequest

func NewInfoRequest

func NewInfoRequest() *InfoRequest

func (*InfoRequest) GetToken

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

func (*InfoRequest) GetUserID

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

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) 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" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	User       *User   `thrift:"user,3,required" form:"user,required" json:"user,required" query:"user,required"`
}

用户信息查询HTTP响应体

var UserServiceUserInfoResult_Success_DEFAULT *InfoResponse

func NewInfoResponse

func NewInfoResponse() *InfoResponse

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) 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) 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" form:"username,required" json:"username,required" query:"username,required"`
	Password string `thrift:"password,2,required" form:"password,required" json:"password,required" query:"password,required"`
}

登录功能HTTP请求体

var UserServiceUserLoginArgs_Req_DEFAULT *LoginRequest

func NewLoginRequest

func NewLoginRequest() *LoginRequest

func (*LoginRequest) GetPassword

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

func (*LoginRequest) GetUsername

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

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) 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" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	UserID     int64   `thrift:"user_id,3,required" form:"user_id,required" json:"user_id,required" query:"user_id,required"`
	Token      string  `thrift:"token,4,required" form:"token,required" json:"token,required" query:"token,required"`
}

登录功能HTTP响应体

var UserServiceUserLoginResult_Success_DEFAULT *LoginResponse

func NewLoginResponse

func NewLoginResponse() *LoginResponse

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) 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) 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" form:"username,required" json:"username,required" query:"username,required"`
	Password string `thrift:"password,2,required" form:"password,required" json:"password,required" query:"password,required"`
}

注册功能HTTP请求体

var UserServiceUserRegisterArgs_Req_DEFAULT *RegisterRequest

func NewRegisterRequest

func NewRegisterRequest() *RegisterRequest

func (*RegisterRequest) GetPassword

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

func (*RegisterRequest) GetUsername

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

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) 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" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	UserID     int64   `thrift:"user_id,3,required" form:"user_id,required" json:"user_id,required" query:"user_id,required"`
	Token      string  `thrift:"token,4,required" form:"token,required" json:"token,required" query:"token,required"`
}

注册功能HTTP响应体

var UserServiceUserRegisterResult_Success_DEFAULT *RegisterResponse

func NewRegisterResponse

func NewRegisterResponse() *RegisterResponse

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) 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) 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" form:"id,required" json:"id,required" query:"id,required"`
	Name            string  `thrift:"name,2,required" form:"name,required" json:"name,required" query:"name,required"`
	FollowCount     *int64  `thrift:"follow_count,3,optional" form:"follow_count" json:"follow_count,omitempty" query:"follow_count"`
	FollowerCount   *int64  `thrift:"follower_count,4,optional" form:"follower_count" json:"follower_count,omitempty" query:"follower_count"`
	IsFollow        bool    `thrift:"is_follow,5,required" form:"is_follow,required" json:"is_follow,required" query:"is_follow,required"`
	Avatar          *string `thrift:"avatar,6,optional" form:"avatar" json:"avatar,omitempty" query:"avatar"`
	BackgroundImage *string `thrift:"background_image,7,optional" form:"background_image" json:"background_image,omitempty" query:"background_image"`
	Signature       *string `thrift:"signature,8,optional" form:"signature" json:"signature,omitempty" query:"signature"`
	TotalFavorited  *int64  `thrift:"total_favorited,9,optional" form:"total_favorited" json:"total_favorited,omitempty" query:"total_favorited"`
	WorkCount       *int64  `thrift:"work_count,10,optional" form:"work_count" json:"work_count,omitempty" query:"work_count"`
	FavoriteCount   *int64  `thrift:"favorite_count,11,optional" form:"favorite_count" json:"favorite_count,omitempty" query:"favorite_count"`
}

用户信息

var InfoResponse_User_DEFAULT *User

func NewUser

func NewUser() *User

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) 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) 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"`
}

func NewUserServiceUserInfoArgs

func NewUserServiceUserInfoArgs() *UserServiceUserInfoArgs

func (*UserServiceUserInfoArgs) GetReq

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

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) 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"`
}

func NewUserServiceUserInfoResult

func NewUserServiceUserInfoResult() *UserServiceUserInfoResult

func (*UserServiceUserInfoResult) GetSuccess

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

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) 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"`
}

func NewUserServiceUserLoginArgs

func NewUserServiceUserLoginArgs() *UserServiceUserLoginArgs

func (*UserServiceUserLoginArgs) GetReq

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

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) 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"`
}

func NewUserServiceUserLoginResult

func NewUserServiceUserLoginResult() *UserServiceUserLoginResult

func (*UserServiceUserLoginResult) GetSuccess

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

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) 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"`
}

func NewUserServiceUserRegisterArgs

func NewUserServiceUserRegisterArgs() *UserServiceUserRegisterArgs

func (*UserServiceUserRegisterArgs) GetReq

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) 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"`
}

func NewUserServiceUserRegisterResult

func NewUserServiceUserRegisterResult() *UserServiceUserRegisterResult

func (*UserServiceUserRegisterResult) GetSuccess

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

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

func (*UserServiceUserRegisterResult) Write

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

Jump to

Keyboard shortcuts

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