base

package
v0.0.0-...-9495e6b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeedReq_LatestTime_DEFAULT int64
View Source
var FeedReq_Token_DEFAULT string
View Source
var FeedResp_NextTime_DEFAULT int64
View Source
var FeedResp_StatusMsg_DEFAULT string
View Source
var PublishActionResp_StatusMsg_DEFAULT string
View Source
var PublishListResp_StatusMsg_DEFAULT string
View Source
var UserInfoResp_StatusMsg_DEFAULT string
View Source
var UserLoginResp_StatusMsg_DEFAULT string
View Source
var UserRegisterResp_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 FeedReq

type FeedReq struct {
	LatestTime *int64  `thrift:"LatestTime,1,optional" json:"latest_time,omitempty" query:"latest_time"`
	Token      *string `thrift:"Token,2,optional" json:"token,omitempty" query:"token"`
}
var FeedServiceFeedArgs_Req_DEFAULT *FeedReq

func NewFeedReq

func NewFeedReq() *FeedReq

func (*FeedReq) GetLatestTime

func (p *FeedReq) GetLatestTime() (v int64)

func (*FeedReq) GetToken

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

func (*FeedReq) IsSetLatestTime

func (p *FeedReq) IsSetLatestTime() bool

func (*FeedReq) IsSetToken

func (p *FeedReq) IsSetToken() bool

func (*FeedReq) Read

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

func (*FeedReq) ReadField1

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

func (*FeedReq) ReadField2

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

func (*FeedReq) String

func (p *FeedReq) String() string

func (*FeedReq) Write

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

type FeedResp

type FeedResp struct {
	StatusCode int32    `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string  `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	VideoList  []*Video `thrift:"VideoList,3,required" form:"video_list,required" json:"video_list,required" query:"video_list,required"`
	NextTime   *int64   `thrift:"NextTime,4,optional" form:"next_time" json:"next_time,omitempty" query:"next_time"`
}
var FeedServiceFeedResult_Success_DEFAULT *FeedResp

func NewFeedResp

func NewFeedResp() *FeedResp

func (*FeedResp) GetNextTime

func (p *FeedResp) GetNextTime() (v int64)

func (*FeedResp) GetStatusCode

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

func (*FeedResp) GetStatusMsg

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

func (*FeedResp) GetVideoList

func (p *FeedResp) GetVideoList() (v []*Video)

func (*FeedResp) IsSetNextTime

func (p *FeedResp) IsSetNextTime() bool

func (*FeedResp) IsSetStatusMsg

func (p *FeedResp) IsSetStatusMsg() bool

func (*FeedResp) Read

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

func (*FeedResp) ReadField1

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

func (*FeedResp) ReadField2

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

func (*FeedResp) ReadField3

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

func (*FeedResp) ReadField4

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

func (*FeedResp) String

func (p *FeedResp) String() string

func (*FeedResp) Write

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

type FeedService

type FeedService interface {
	Feed(ctx context.Context, req *FeedReq) (r *FeedResp, err error)
}

type FeedServiceClient

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

func NewFeedServiceClient

func NewFeedServiceClient(c thrift.TClient) *FeedServiceClient

func NewFeedServiceClientProtocol

func NewFeedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FeedServiceClient

func (*FeedServiceClient) Client_

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

func (*FeedServiceClient) Feed

func (p *FeedServiceClient) Feed(ctx context.Context, req *FeedReq) (r *FeedResp, err error)

type FeedServiceFeedArgs

type FeedServiceFeedArgs struct {
	Req *FeedReq `thrift:"req,1"`
}

func NewFeedServiceFeedArgs

func NewFeedServiceFeedArgs() *FeedServiceFeedArgs

func (*FeedServiceFeedArgs) GetReq

func (p *FeedServiceFeedArgs) GetReq() (v *FeedReq)

func (*FeedServiceFeedArgs) IsSetReq

func (p *FeedServiceFeedArgs) IsSetReq() bool

func (*FeedServiceFeedArgs) Read

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

func (*FeedServiceFeedArgs) ReadField1

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

func (*FeedServiceFeedArgs) String

func (p *FeedServiceFeedArgs) String() string

func (*FeedServiceFeedArgs) Write

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

type FeedServiceFeedResult

type FeedServiceFeedResult struct {
	Success *FeedResp `thrift:"success,0,optional"`
}

func NewFeedServiceFeedResult

func NewFeedServiceFeedResult() *FeedServiceFeedResult

func (*FeedServiceFeedResult) GetSuccess

func (p *FeedServiceFeedResult) GetSuccess() (v *FeedResp)

func (*FeedServiceFeedResult) IsSetSuccess

func (p *FeedServiceFeedResult) IsSetSuccess() bool

func (*FeedServiceFeedResult) Read

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

func (*FeedServiceFeedResult) ReadField0

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

func (*FeedServiceFeedResult) String

func (p *FeedServiceFeedResult) String() string

func (*FeedServiceFeedResult) Write

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

type FeedServiceProcessor

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

func NewFeedServiceProcessor

func NewFeedServiceProcessor(handler FeedService) *FeedServiceProcessor

func (*FeedServiceProcessor) AddToProcessorMap

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

func (*FeedServiceProcessor) GetProcessorFunction

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

func (*FeedServiceProcessor) Process

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

func (*FeedServiceProcessor) ProcessorMap

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

type PublishActionReq

type PublishActionReq struct {
	Token string `thrift:"Token,1,required" json:"token,required" query:"token,required"`
	Data  []byte `thrift:"Data,2,required" json:"data,required" query:"data,required"`
	Title string `thrift:"Title,3,required" json:"title,required" query:"title,required"`
}
var PublishServicePublishActionArgs_Req_DEFAULT *PublishActionReq

func NewPublishActionReq

func NewPublishActionReq() *PublishActionReq

func (*PublishActionReq) GetData

func (p *PublishActionReq) GetData() (v []byte)

func (*PublishActionReq) GetTitle

func (p *PublishActionReq) GetTitle() (v string)

func (*PublishActionReq) GetToken

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

func (*PublishActionReq) Read

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

func (*PublishActionReq) ReadField1

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

func (*PublishActionReq) ReadField2

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

func (*PublishActionReq) ReadField3

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

func (*PublishActionReq) String

func (p *PublishActionReq) String() string

func (*PublishActionReq) Write

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

type PublishActionResp

type PublishActionResp struct {
	StatusCode int32   `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
}
var PublishServicePublishActionResult_Success_DEFAULT *PublishActionResp

func NewPublishActionResp

func NewPublishActionResp() *PublishActionResp

func (*PublishActionResp) GetStatusCode

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

func (*PublishActionResp) GetStatusMsg

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

func (*PublishActionResp) IsSetStatusMsg

func (p *PublishActionResp) IsSetStatusMsg() bool

func (*PublishActionResp) Read

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

func (*PublishActionResp) ReadField1

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

func (*PublishActionResp) ReadField2

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

func (*PublishActionResp) String

func (p *PublishActionResp) String() string

func (*PublishActionResp) Write

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

type PublishListReq

type PublishListReq struct {
	UserID int64  `thrift:"UserID,1,required" json:"user_id,required" query:"user_id,required"`
	Token  string `thrift:"Token,2,required" json:"token,required" query:"token,required"`
}
var PublishServicePublishListArgs_Req_DEFAULT *PublishListReq

func NewPublishListReq

func NewPublishListReq() *PublishListReq

func (*PublishListReq) GetToken

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

func (*PublishListReq) GetUserID

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

func (*PublishListReq) Read

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

func (*PublishListReq) ReadField1

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

func (*PublishListReq) ReadField2

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

func (*PublishListReq) String

func (p *PublishListReq) String() string

func (*PublishListReq) Write

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

type PublishListResp

type PublishListResp struct {
	StatusCode int32    `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string  `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	VideoList  []*Video `thrift:"VideoList,3,required" form:"video_list,required" json:"video_list,required" query:"video_list,required"`
}
var PublishServicePublishListResult_Success_DEFAULT *PublishListResp

func NewPublishListResp

func NewPublishListResp() *PublishListResp

func (*PublishListResp) GetStatusCode

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

func (*PublishListResp) GetStatusMsg

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

func (*PublishListResp) GetVideoList

func (p *PublishListResp) GetVideoList() (v []*Video)

func (*PublishListResp) IsSetStatusMsg

func (p *PublishListResp) IsSetStatusMsg() bool

func (*PublishListResp) Read

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

func (*PublishListResp) ReadField1

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

func (*PublishListResp) ReadField2

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

func (*PublishListResp) ReadField3

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

func (*PublishListResp) String

func (p *PublishListResp) String() string

func (*PublishListResp) Write

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

type PublishService

type PublishService interface {
	PublishAction(ctx context.Context, req *PublishActionReq) (r *PublishActionResp, err error)

	PublishList(ctx context.Context, req *PublishListReq) (r *PublishListResp, err error)
}

type PublishServiceClient

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

func NewPublishServiceClient

func NewPublishServiceClient(c thrift.TClient) *PublishServiceClient

func NewPublishServiceClientProtocol

func NewPublishServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PublishServiceClient

func (*PublishServiceClient) Client_

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

func (*PublishServiceClient) PublishAction

func (p *PublishServiceClient) PublishAction(ctx context.Context, req *PublishActionReq) (r *PublishActionResp, err error)

func (*PublishServiceClient) PublishList

func (p *PublishServiceClient) PublishList(ctx context.Context, req *PublishListReq) (r *PublishListResp, err error)

type PublishServiceProcessor

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

func NewPublishServiceProcessor

func NewPublishServiceProcessor(handler PublishService) *PublishServiceProcessor

func (*PublishServiceProcessor) AddToProcessorMap

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

func (*PublishServiceProcessor) GetProcessorFunction

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

func (*PublishServiceProcessor) Process

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

func (*PublishServiceProcessor) ProcessorMap

type PublishServicePublishActionArgs

type PublishServicePublishActionArgs struct {
	Req *PublishActionReq `thrift:"req,1"`
}

func NewPublishServicePublishActionArgs

func NewPublishServicePublishActionArgs() *PublishServicePublishActionArgs

func (*PublishServicePublishActionArgs) GetReq

func (*PublishServicePublishActionArgs) IsSetReq

func (p *PublishServicePublishActionArgs) IsSetReq() bool

func (*PublishServicePublishActionArgs) Read

func (*PublishServicePublishActionArgs) ReadField1

func (*PublishServicePublishActionArgs) String

func (*PublishServicePublishActionArgs) Write

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

type PublishServicePublishActionResult

type PublishServicePublishActionResult struct {
	Success *PublishActionResp `thrift:"success,0,optional"`
}

func NewPublishServicePublishActionResult

func NewPublishServicePublishActionResult() *PublishServicePublishActionResult

func (*PublishServicePublishActionResult) GetSuccess

func (*PublishServicePublishActionResult) IsSetSuccess

func (p *PublishServicePublishActionResult) IsSetSuccess() bool

func (*PublishServicePublishActionResult) Read

func (*PublishServicePublishActionResult) ReadField0

func (*PublishServicePublishActionResult) String

func (*PublishServicePublishActionResult) Write

type PublishServicePublishListArgs

type PublishServicePublishListArgs struct {
	Req *PublishListReq `thrift:"req,1"`
}

func NewPublishServicePublishListArgs

func NewPublishServicePublishListArgs() *PublishServicePublishListArgs

func (*PublishServicePublishListArgs) GetReq

func (*PublishServicePublishListArgs) IsSetReq

func (p *PublishServicePublishListArgs) IsSetReq() bool

func (*PublishServicePublishListArgs) Read

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

func (*PublishServicePublishListArgs) ReadField1

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

func (*PublishServicePublishListArgs) String

func (*PublishServicePublishListArgs) Write

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

type PublishServicePublishListResult

type PublishServicePublishListResult struct {
	Success *PublishListResp `thrift:"success,0,optional"`
}

func NewPublishServicePublishListResult

func NewPublishServicePublishListResult() *PublishServicePublishListResult

func (*PublishServicePublishListResult) GetSuccess

func (p *PublishServicePublishListResult) GetSuccess() (v *PublishListResp)

func (*PublishServicePublishListResult) IsSetSuccess

func (p *PublishServicePublishListResult) IsSetSuccess() bool

func (*PublishServicePublishListResult) Read

func (*PublishServicePublishListResult) ReadField0

func (*PublishServicePublishListResult) String

func (*PublishServicePublishListResult) Write

func (p *PublishServicePublishListResult) 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:"FollowCount,3,optional" form:"follow_count" json:"follow_count,omitempty" query:"follow_count"`
	FollowerCount   *int64  `thrift:"FollowerCount,4,optional" form:"follower_count" json:"follower_count,omitempty" query:"follower_count"`
	IsFollow        bool    `thrift:"IsFollow,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:"BackgroundImage,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:"TotalFavorited,9,optional" form:"total_favorited" json:"total_favorited,omitempty" query:"total_favorited"`
	WorkCount       *int64  `thrift:"WorkCount,10,optional" form:"work_count" json:"work_count,omitempty" query:"work_count"`
	FavoriteCount   *int64  `thrift:"FavoriteCount,11,optional" form:"favorite_count" json:"favorite_count,omitempty" query:"favorite_count"`
}
var UserInfoResp_User_DEFAULT *User
var Video_Author_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 UserInfoReq

type UserInfoReq struct {
	UserID int64  `thrift:"UserID,1,required" json:"user_id,required" query:"user_id,required"`
	Token  string `thrift:"Token,2,required" json:"token,required" query:"token,required"`
}
var UserServiceUserInfoArgs_Req_DEFAULT *UserInfoReq

func NewUserInfoReq

func NewUserInfoReq() *UserInfoReq

func (*UserInfoReq) GetToken

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

func (*UserInfoReq) GetUserID

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

func (*UserInfoReq) Read

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

func (*UserInfoReq) ReadField1

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

func (*UserInfoReq) ReadField2

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

func (*UserInfoReq) String

func (p *UserInfoReq) String() string

func (*UserInfoReq) Write

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

type UserInfoResp

type UserInfoResp struct {
	StatusCode int32   `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"StatusMsg,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"`
}
var UserServiceUserInfoResult_Success_DEFAULT *UserInfoResp

func NewUserInfoResp

func NewUserInfoResp() *UserInfoResp

func (*UserInfoResp) GetStatusCode

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

func (*UserInfoResp) GetStatusMsg

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

func (*UserInfoResp) GetUser

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

func (*UserInfoResp) IsSetStatusMsg

func (p *UserInfoResp) IsSetStatusMsg() bool

func (*UserInfoResp) IsSetUser

func (p *UserInfoResp) IsSetUser() bool

func (*UserInfoResp) Read

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

func (*UserInfoResp) ReadField1

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

func (*UserInfoResp) ReadField2

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

func (*UserInfoResp) ReadField3

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

func (*UserInfoResp) String

func (p *UserInfoResp) String() string

func (*UserInfoResp) Write

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

type UserLoginReq

type UserLoginReq struct {
	Username string `thrift:"Username,1,required" json:"username,required" query:"username,required" vd:"len($)<=32"`
	Password string `thrift:"Password,2,required" json:"password,required" query:"password,required" vd:"len($)<=32 && len($)>=6"`
}
var UserServiceUserLoginArgs_Req_DEFAULT *UserLoginReq

func NewUserLoginReq

func NewUserLoginReq() *UserLoginReq

func (*UserLoginReq) GetPassword

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

func (*UserLoginReq) GetUsername

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

func (*UserLoginReq) Read

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

func (*UserLoginReq) ReadField1

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

func (*UserLoginReq) ReadField2

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

func (*UserLoginReq) String

func (p *UserLoginReq) String() string

func (*UserLoginReq) Write

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

type UserLoginResp

type UserLoginResp struct {
	StatusCode int32   `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	UserID     int64   `thrift:"UserID,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"`
}
var UserServiceUserLoginResult_Success_DEFAULT *UserLoginResp

func NewUserLoginResp

func NewUserLoginResp() *UserLoginResp

func (*UserLoginResp) GetStatusCode

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

func (*UserLoginResp) GetStatusMsg

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

func (*UserLoginResp) GetToken

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

func (*UserLoginResp) GetUserID

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

func (*UserLoginResp) IsSetStatusMsg

func (p *UserLoginResp) IsSetStatusMsg() bool

func (*UserLoginResp) Read

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

func (*UserLoginResp) ReadField1

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

func (*UserLoginResp) ReadField2

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

func (*UserLoginResp) ReadField3

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

func (*UserLoginResp) ReadField4

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

func (*UserLoginResp) String

func (p *UserLoginResp) String() string

func (*UserLoginResp) Write

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

type UserRegisterReq

type UserRegisterReq struct {
	Username string `thrift:"Username,1,required" json:"username,required" query:"username,required" vd:"len($)<=32"`
	Password string `thrift:"Password,2,required" json:"password,required" query:"password,required" vd:"len($)<=32 && len($)>=6"`
}

hz new -idl idl/base.thrift --snake_tag -mod github.com/linzijie1998/bytedance_camp_douyin

var UserServiceUserRegisterArgs_Req_DEFAULT *UserRegisterReq

func NewUserRegisterReq

func NewUserRegisterReq() *UserRegisterReq

func (*UserRegisterReq) GetPassword

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

func (*UserRegisterReq) GetUsername

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

func (*UserRegisterReq) Read

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

func (*UserRegisterReq) ReadField1

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

func (*UserRegisterReq) ReadField2

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

func (*UserRegisterReq) String

func (p *UserRegisterReq) String() string

func (*UserRegisterReq) Write

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

type UserRegisterResp

type UserRegisterResp struct {
	StatusCode int32   `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	UserID     int64   `thrift:"UserID,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"`
}
var UserServiceUserRegisterResult_Success_DEFAULT *UserRegisterResp

func NewUserRegisterResp

func NewUserRegisterResp() *UserRegisterResp

func (*UserRegisterResp) GetStatusCode

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

func (*UserRegisterResp) GetStatusMsg

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

func (*UserRegisterResp) GetToken

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

func (*UserRegisterResp) GetUserID

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

func (*UserRegisterResp) IsSetStatusMsg

func (p *UserRegisterResp) IsSetStatusMsg() bool

func (*UserRegisterResp) Read

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

func (*UserRegisterResp) ReadField1

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

func (*UserRegisterResp) ReadField2

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

func (*UserRegisterResp) ReadField3

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

func (*UserRegisterResp) ReadField4

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

func (*UserRegisterResp) String

func (p *UserRegisterResp) String() string

func (*UserRegisterResp) Write

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

type UserService

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

	UserLogin(ctx context.Context, req *UserLoginReq) (r *UserLoginResp, err error)

	UserInfo(ctx context.Context, req *UserInfoReq) (r *UserInfoResp, 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 *UserInfoReq) (r *UserInfoResp, err error)

func (*UserServiceClient) UserLogin

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

func (*UserServiceClient) UserRegister

func (p *UserServiceClient) UserRegister(ctx context.Context, req *UserRegisterReq) (r *UserRegisterResp, 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 *UserInfoReq `thrift:"req,1"`
}

func NewUserServiceUserInfoArgs

func NewUserServiceUserInfoArgs() *UserServiceUserInfoArgs

func (*UserServiceUserInfoArgs) GetReq

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

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 *UserInfoResp `thrift:"success,0,optional"`
}

func NewUserServiceUserInfoResult

func NewUserServiceUserInfoResult() *UserServiceUserInfoResult

func (*UserServiceUserInfoResult) GetSuccess

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

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 *UserLoginReq `thrift:"req,1"`
}

func NewUserServiceUserLoginArgs

func NewUserServiceUserLoginArgs() *UserServiceUserLoginArgs

func (*UserServiceUserLoginArgs) GetReq

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

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 *UserLoginResp `thrift:"success,0,optional"`
}

func NewUserServiceUserLoginResult

func NewUserServiceUserLoginResult() *UserServiceUserLoginResult

func (*UserServiceUserLoginResult) GetSuccess

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

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 *UserRegisterReq `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 *UserRegisterResp `thrift:"success,0,optional"`
}

func NewUserServiceUserRegisterResult

func NewUserServiceUserRegisterResult() *UserServiceUserRegisterResult

func (*UserServiceUserRegisterResult) GetSuccess

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

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)

type Video

type Video struct {
	ID            int64  `thrift:"ID,1,required" form:"id,required" json:"id,required" query:"id,required"`
	Author        *User  `thrift:"Author,2,required" form:"author,required" json:"author,required" query:"author,required"`
	PlayURL       string `thrift:"PlayURL,3,required" form:"play_url,required" json:"play_url,required" query:"play_url,required"`
	CoverURL      string `thrift:"CoverURL,4,required" form:"cover_url,required" json:"cover_url,required" query:"cover_url,required"`
	FavoriteCount int64  `` /* 127-byte string literal not displayed */
	CommentCount  int64  `thrift:"CommentCount,6,required" form:"comment_count,required" json:"comment_count,required" query:"comment_count,required"`
	IsFavorite    bool   `thrift:"IsFavorite,7,required" form:"is_favorite,required" json:"is_favorite,required" query:"is_favorite,required"`
	Title         string `thrift:"Title,8,required" form:"title,required" json:"title,required" query:"title,required"`
}

func NewVideo

func NewVideo() *Video

func (*Video) GetAuthor

func (p *Video) GetAuthor() (v *User)

func (*Video) GetCommentCount

func (p *Video) GetCommentCount() (v int64)

func (*Video) GetCoverURL

func (p *Video) GetCoverURL() (v string)

func (*Video) GetFavoriteCount

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

func (*Video) GetID

func (p *Video) GetID() (v int64)

func (*Video) GetIsFavorite

func (p *Video) GetIsFavorite() (v bool)

func (*Video) GetPlayURL

func (p *Video) GetPlayURL() (v string)

func (*Video) GetTitle

func (p *Video) GetTitle() (v string)

func (*Video) IsSetAuthor

func (p *Video) IsSetAuthor() bool

func (*Video) Read

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

func (*Video) ReadField1

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

func (*Video) ReadField2

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

func (*Video) ReadField3

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

func (*Video) ReadField4

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

func (*Video) ReadField5

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

func (*Video) ReadField6

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

func (*Video) ReadField7

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

func (*Video) ReadField8

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

func (*Video) String

func (p *Video) String() string

func (*Video) Write

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

Jump to

Keyboard shortcuts

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