Documentation ¶
Index ¶
- Constants
- type AddReplyData
- type BinaryReplyData
- type Bus
- func (b *Bus) AddReply(ctx context.Context, data *comm.Model) error
- func (b *Bus) DelReply(ctx context.Context, rid uint64, reply *comm.Model) error
- func (b *Bus) DisLikeReply(ctx context.Context, rid, uid uint64) error
- func (b *Bus) LikeReply(ctx context.Context, rid, uid uint64) error
- func (b *Bus) PinReply(ctx context.Context, oid, rid uint64) error
- func (b *Bus) UnDisLikeReply(ctx context.Context, rid, uid uint64) error
- func (b *Bus) UnLikeReply(ctx context.Context, rid, uid uint64) error
- func (b *Bus) UnPinReply(ctx context.Context, oid, rid uint64) error
- type Data
- type DelReplyData
- type PinReplyData
Constants ¶
View Source
const ( ActAddReply = 1 + iota ActDelReply ActLikeReply ActDislikeReply ActPinReply )
View Source
const ( ActionUndo = 0 ActionDo = 1 )
View Source
const ( LikeType = 0 DisLikeType = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryReplyData ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) UnDisLikeReply ¶
type Data ¶
type Data struct { Action int `json:"action"` AddReplyData *AddReplyData `json:"add_reply_data,omitempty"` DelReplyData *DelReplyData `json:"del_reply_data,omitempty"` LikeReplyData *BinaryReplyData `json:"like_reply_data,omitempty"` PinReplyData *PinReplyData `json:"pin_reply_data,omitempty"` }
放进消息队列中的数据
type DelReplyData ¶
删除评论所需数据
type PinReplyData ¶
Click to show internal directories.
Click to hide internal directories.