social

package
v0.0.0-...-2943c40 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionRelationResponse_Base_DEFAULT *common.BaseResponse
View Source
var ListFollowerRequest_PageNum_DEFAULT int64
View Source
var ListFollowerRequest_PageSize_DEFAULT int64
View Source
var ListFollowingRequest_PageNum_DEFAULT int64
View Source
var ListFollowingRequest_PageSize_DEFAULT int64
View Source
var ListFriendsRequest_PageNum_DEFAULT int64
View Source
var ListFriendsRequest_PageSize_DEFAULT int64
View Source
var SocialResponse_Base_DEFAULT *common.BaseResponse
View Source
var SocialResponse_Data_DEFAULT *common.SocialDataForListResponse

Functions

This section is empty.

Types

type ActionRelationRequest

type ActionRelationRequest struct {
	ToUserID   string             `thrift:"to_user_id,1" form:"to_user_id" json:"to_user_id" vd:"len($) > 0 && len($) < 100"`
	ActionType ActionTypeRelation `thrift:"action_type,2,default,ActionTypeRelation" form:"action_type" json:"action_type" vd:"$==0 || $==1"`
}

关注操作

var SocialServiceActionRelationArgs_Req_DEFAULT *ActionRelationRequest

func NewActionRelationRequest

func NewActionRelationRequest() *ActionRelationRequest

func (*ActionRelationRequest) GetActionType

func (p *ActionRelationRequest) GetActionType() (v ActionTypeRelation)

func (*ActionRelationRequest) GetToUserID

func (p *ActionRelationRequest) GetToUserID() (v string)

func (*ActionRelationRequest) InitDefault

func (p *ActionRelationRequest) InitDefault()

func (*ActionRelationRequest) Read

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

func (*ActionRelationRequest) ReadField1

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

func (*ActionRelationRequest) ReadField2

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

func (*ActionRelationRequest) String

func (p *ActionRelationRequest) String() string

func (*ActionRelationRequest) Write

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

type ActionRelationResponse

type ActionRelationResponse struct {
	Base *common.BaseResponse `thrift:"base,1" form:"base" json:"base" query:"base"`
}
var SocialServiceActionRelationResult_Success_DEFAULT *ActionRelationResponse

func NewActionRelationResponse

func NewActionRelationResponse() *ActionRelationResponse

func (*ActionRelationResponse) GetBase

func (p *ActionRelationResponse) GetBase() (v *common.BaseResponse)

func (*ActionRelationResponse) InitDefault

func (p *ActionRelationResponse) InitDefault()

func (*ActionRelationResponse) IsSetBase

func (p *ActionRelationResponse) IsSetBase() bool

func (*ActionRelationResponse) Read

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

func (*ActionRelationResponse) ReadField1

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

func (*ActionRelationResponse) String

func (p *ActionRelationResponse) String() string

func (*ActionRelationResponse) Write

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

type ActionTypeRelation

type ActionTypeRelation int64

关注操作 关注是0,取消关注是1

const (
	ActionTypeRelation_FOLLOW   ActionTypeRelation = 0
	ActionTypeRelation_UNFOLLOW ActionTypeRelation = 1
)

func ActionTypeRelationFromString

func ActionTypeRelationFromString(s string) (ActionTypeRelation, error)

func ActionTypeRelationPtr

func ActionTypeRelationPtr(v ActionTypeRelation) *ActionTypeRelation

func (*ActionTypeRelation) Scan

func (p *ActionTypeRelation) Scan(value interface{}) (err error)

func (ActionTypeRelation) String

func (p ActionTypeRelation) String() string

func (*ActionTypeRelation) Value

func (p *ActionTypeRelation) Value() (driver.Value, error)

type ListFollowerRequest

type ListFollowerRequest struct {
	UserID   string `thrift:"user_id,1" json:"user_id" query:"user_id" vd:"(len($) > 0 && len($) < 100)"`
	PageNum  *int64 `thrift:"page_num,2,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
	PageSize *int64 `thrift:"page_size,3,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}

粉丝列表

var SocialServiceListFollowerArgs_Req_DEFAULT *ListFollowerRequest

func NewListFollowerRequest

func NewListFollowerRequest() *ListFollowerRequest

func (*ListFollowerRequest) GetPageNum

func (p *ListFollowerRequest) GetPageNum() (v int64)

func (*ListFollowerRequest) GetPageSize

func (p *ListFollowerRequest) GetPageSize() (v int64)

func (*ListFollowerRequest) GetUserID

func (p *ListFollowerRequest) GetUserID() (v string)

func (*ListFollowerRequest) InitDefault

func (p *ListFollowerRequest) InitDefault()

func (*ListFollowerRequest) IsSetPageNum

func (p *ListFollowerRequest) IsSetPageNum() bool

func (*ListFollowerRequest) IsSetPageSize

func (p *ListFollowerRequest) IsSetPageSize() bool

func (*ListFollowerRequest) Read

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

func (*ListFollowerRequest) ReadField1

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

func (*ListFollowerRequest) ReadField2

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

func (*ListFollowerRequest) ReadField3

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

func (*ListFollowerRequest) String

func (p *ListFollowerRequest) String() string

func (*ListFollowerRequest) Write

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

type ListFollowingRequest

type ListFollowingRequest struct {
	UserID   string `thrift:"user_id,1" json:"user_id" query:"user_id" vd:"(len($) > 0 && len($) < 100)"`
	PageNum  *int64 `thrift:"page_num,2,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
	PageSize *int64 `thrift:"page_size,3,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}

关注列表

var SocialServiceListFollowingArgs_Req_DEFAULT *ListFollowingRequest

func NewListFollowingRequest

func NewListFollowingRequest() *ListFollowingRequest

func (*ListFollowingRequest) GetPageNum

func (p *ListFollowingRequest) GetPageNum() (v int64)

func (*ListFollowingRequest) GetPageSize

func (p *ListFollowingRequest) GetPageSize() (v int64)

func (*ListFollowingRequest) GetUserID

func (p *ListFollowingRequest) GetUserID() (v string)

func (*ListFollowingRequest) InitDefault

func (p *ListFollowingRequest) InitDefault()

func (*ListFollowingRequest) IsSetPageNum

func (p *ListFollowingRequest) IsSetPageNum() bool

func (*ListFollowingRequest) IsSetPageSize

func (p *ListFollowingRequest) IsSetPageSize() bool

func (*ListFollowingRequest) Read

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

func (*ListFollowingRequest) ReadField1

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

func (*ListFollowingRequest) ReadField2

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

func (*ListFollowingRequest) ReadField3

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

func (*ListFollowingRequest) String

func (p *ListFollowingRequest) String() string

func (*ListFollowingRequest) Write

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

type ListFriendsRequest

type ListFriendsRequest struct {
	PageNum  *int64 `thrift:"page_num,1,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
	PageSize *int64 `thrift:"page_size,2,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}

好友列表

var SocialServiceListFriendsArgs_Req_DEFAULT *ListFriendsRequest

func NewListFriendsRequest

func NewListFriendsRequest() *ListFriendsRequest

func (*ListFriendsRequest) GetPageNum

func (p *ListFriendsRequest) GetPageNum() (v int64)

func (*ListFriendsRequest) GetPageSize

func (p *ListFriendsRequest) GetPageSize() (v int64)

func (*ListFriendsRequest) InitDefault

func (p *ListFriendsRequest) InitDefault()

func (*ListFriendsRequest) IsSetPageNum

func (p *ListFriendsRequest) IsSetPageNum() bool

func (*ListFriendsRequest) IsSetPageSize

func (p *ListFriendsRequest) IsSetPageSize() bool

func (*ListFriendsRequest) Read

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

func (*ListFriendsRequest) ReadField1

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

func (*ListFriendsRequest) ReadField2

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

func (*ListFriendsRequest) String

func (p *ListFriendsRequest) String() string

func (*ListFriendsRequest) Write

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

type SocialResponse

type SocialResponse struct {
	Base *common.BaseResponse              `thrift:"base,1" form:"base" json:"base" query:"base"`
	Data *common.SocialDataForListResponse `thrift:"data,2" form:"data" json:"data" query:"data"`
}
var SocialServiceListFollowerResult_Success_DEFAULT *SocialResponse
var SocialServiceListFollowingResult_Success_DEFAULT *SocialResponse
var SocialServiceListFriendsResult_Success_DEFAULT *SocialResponse

func NewSocialResponse

func NewSocialResponse() *SocialResponse

func (*SocialResponse) GetBase

func (p *SocialResponse) GetBase() (v *common.BaseResponse)

func (*SocialResponse) GetData

func (*SocialResponse) InitDefault

func (p *SocialResponse) InitDefault()

func (*SocialResponse) IsSetBase

func (p *SocialResponse) IsSetBase() bool

func (*SocialResponse) IsSetData

func (p *SocialResponse) IsSetData() bool

func (*SocialResponse) Read

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

func (*SocialResponse) ReadField1

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

func (*SocialResponse) ReadField2

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

func (*SocialResponse) String

func (p *SocialResponse) String() string

func (*SocialResponse) Write

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

type SocialService

type SocialService interface {
	ActionRelation(ctx context.Context, req *ActionRelationRequest) (r *ActionRelationResponse, err error)

	ListFollowing(ctx context.Context, req *ListFollowingRequest) (r *SocialResponse, err error)

	ListFollower(ctx context.Context, req *ListFollowerRequest) (r *SocialResponse, err error)

	ListFriends(ctx context.Context, req *ListFriendsRequest) (r *SocialResponse, err error)
}

type SocialServiceActionRelationArgs

type SocialServiceActionRelationArgs struct {
	Req *ActionRelationRequest `thrift:"req,1"`
}

func NewSocialServiceActionRelationArgs

func NewSocialServiceActionRelationArgs() *SocialServiceActionRelationArgs

func (*SocialServiceActionRelationArgs) GetReq

func (*SocialServiceActionRelationArgs) InitDefault

func (p *SocialServiceActionRelationArgs) InitDefault()

func (*SocialServiceActionRelationArgs) IsSetReq

func (p *SocialServiceActionRelationArgs) IsSetReq() bool

func (*SocialServiceActionRelationArgs) Read

func (*SocialServiceActionRelationArgs) ReadField1

func (*SocialServiceActionRelationArgs) String

func (*SocialServiceActionRelationArgs) Write

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

type SocialServiceActionRelationResult

type SocialServiceActionRelationResult struct {
	Success *ActionRelationResponse `thrift:"success,0,optional"`
}

func NewSocialServiceActionRelationResult

func NewSocialServiceActionRelationResult() *SocialServiceActionRelationResult

func (*SocialServiceActionRelationResult) GetSuccess

func (*SocialServiceActionRelationResult) InitDefault

func (p *SocialServiceActionRelationResult) InitDefault()

func (*SocialServiceActionRelationResult) IsSetSuccess

func (p *SocialServiceActionRelationResult) IsSetSuccess() bool

func (*SocialServiceActionRelationResult) Read

func (*SocialServiceActionRelationResult) ReadField0

func (*SocialServiceActionRelationResult) String

func (*SocialServiceActionRelationResult) Write

type SocialServiceClient

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

func NewSocialServiceClient

func NewSocialServiceClient(c thrift.TClient) *SocialServiceClient

func NewSocialServiceClientProtocol

func NewSocialServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SocialServiceClient

func (*SocialServiceClient) ActionRelation

func (*SocialServiceClient) Client_

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

func (*SocialServiceClient) ListFollower

func (p *SocialServiceClient) ListFollower(ctx context.Context, req *ListFollowerRequest) (r *SocialResponse, err error)

func (*SocialServiceClient) ListFollowing

func (p *SocialServiceClient) ListFollowing(ctx context.Context, req *ListFollowingRequest) (r *SocialResponse, err error)

func (*SocialServiceClient) ListFriends

func (p *SocialServiceClient) ListFriends(ctx context.Context, req *ListFriendsRequest) (r *SocialResponse, err error)

type SocialServiceListFollowerArgs

type SocialServiceListFollowerArgs struct {
	Req *ListFollowerRequest `thrift:"req,1"`
}

func NewSocialServiceListFollowerArgs

func NewSocialServiceListFollowerArgs() *SocialServiceListFollowerArgs

func (*SocialServiceListFollowerArgs) GetReq

func (*SocialServiceListFollowerArgs) InitDefault

func (p *SocialServiceListFollowerArgs) InitDefault()

func (*SocialServiceListFollowerArgs) IsSetReq

func (p *SocialServiceListFollowerArgs) IsSetReq() bool

func (*SocialServiceListFollowerArgs) Read

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

func (*SocialServiceListFollowerArgs) ReadField1

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

func (*SocialServiceListFollowerArgs) String

func (*SocialServiceListFollowerArgs) Write

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

type SocialServiceListFollowerResult

type SocialServiceListFollowerResult struct {
	Success *SocialResponse `thrift:"success,0,optional"`
}

func NewSocialServiceListFollowerResult

func NewSocialServiceListFollowerResult() *SocialServiceListFollowerResult

func (*SocialServiceListFollowerResult) GetSuccess

func (p *SocialServiceListFollowerResult) GetSuccess() (v *SocialResponse)

func (*SocialServiceListFollowerResult) InitDefault

func (p *SocialServiceListFollowerResult) InitDefault()

func (*SocialServiceListFollowerResult) IsSetSuccess

func (p *SocialServiceListFollowerResult) IsSetSuccess() bool

func (*SocialServiceListFollowerResult) Read

func (*SocialServiceListFollowerResult) ReadField0

func (*SocialServiceListFollowerResult) String

func (*SocialServiceListFollowerResult) Write

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

type SocialServiceListFollowingArgs

type SocialServiceListFollowingArgs struct {
	Req *ListFollowingRequest `thrift:"req,1"`
}

func NewSocialServiceListFollowingArgs

func NewSocialServiceListFollowingArgs() *SocialServiceListFollowingArgs

func (*SocialServiceListFollowingArgs) GetReq

func (*SocialServiceListFollowingArgs) InitDefault

func (p *SocialServiceListFollowingArgs) InitDefault()

func (*SocialServiceListFollowingArgs) IsSetReq

func (p *SocialServiceListFollowingArgs) IsSetReq() bool

func (*SocialServiceListFollowingArgs) Read

func (*SocialServiceListFollowingArgs) ReadField1

func (*SocialServiceListFollowingArgs) String

func (*SocialServiceListFollowingArgs) Write

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

type SocialServiceListFollowingResult

type SocialServiceListFollowingResult struct {
	Success *SocialResponse `thrift:"success,0,optional"`
}

func NewSocialServiceListFollowingResult

func NewSocialServiceListFollowingResult() *SocialServiceListFollowingResult

func (*SocialServiceListFollowingResult) GetSuccess

func (p *SocialServiceListFollowingResult) GetSuccess() (v *SocialResponse)

func (*SocialServiceListFollowingResult) InitDefault

func (p *SocialServiceListFollowingResult) InitDefault()

func (*SocialServiceListFollowingResult) IsSetSuccess

func (p *SocialServiceListFollowingResult) IsSetSuccess() bool

func (*SocialServiceListFollowingResult) Read

func (*SocialServiceListFollowingResult) ReadField0

func (*SocialServiceListFollowingResult) String

func (*SocialServiceListFollowingResult) Write

type SocialServiceListFriendsArgs

type SocialServiceListFriendsArgs struct {
	Req *ListFriendsRequest `thrift:"req,1"`
}

func NewSocialServiceListFriendsArgs

func NewSocialServiceListFriendsArgs() *SocialServiceListFriendsArgs

func (*SocialServiceListFriendsArgs) GetReq

func (*SocialServiceListFriendsArgs) InitDefault

func (p *SocialServiceListFriendsArgs) InitDefault()

func (*SocialServiceListFriendsArgs) IsSetReq

func (p *SocialServiceListFriendsArgs) IsSetReq() bool

func (*SocialServiceListFriendsArgs) Read

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

func (*SocialServiceListFriendsArgs) ReadField1

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

func (*SocialServiceListFriendsArgs) String

func (*SocialServiceListFriendsArgs) Write

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

type SocialServiceListFriendsResult

type SocialServiceListFriendsResult struct {
	Success *SocialResponse `thrift:"success,0,optional"`
}

func NewSocialServiceListFriendsResult

func NewSocialServiceListFriendsResult() *SocialServiceListFriendsResult

func (*SocialServiceListFriendsResult) GetSuccess

func (p *SocialServiceListFriendsResult) GetSuccess() (v *SocialResponse)

func (*SocialServiceListFriendsResult) InitDefault

func (p *SocialServiceListFriendsResult) InitDefault()

func (*SocialServiceListFriendsResult) IsSetSuccess

func (p *SocialServiceListFriendsResult) IsSetSuccess() bool

func (*SocialServiceListFriendsResult) Read

func (*SocialServiceListFriendsResult) ReadField0

func (*SocialServiceListFriendsResult) String

func (*SocialServiceListFriendsResult) Write

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

type SocialServiceProcessor

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

func NewSocialServiceProcessor

func NewSocialServiceProcessor(handler SocialService) *SocialServiceProcessor

func (*SocialServiceProcessor) AddToProcessorMap

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

func (*SocialServiceProcessor) GetProcessorFunction

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

func (*SocialServiceProcessor) Process

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

func (*SocialServiceProcessor) ProcessorMap

Jump to

Keyboard shortcuts

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