Documentation ¶
Index ¶
- type ActivityRepo
- type ActivityService
- func (as *ActivityService) GetObjectTimeline(ctx context.Context, req *schema.GetObjectTimelineReq) (resp *schema.GetObjectTimelineResp, err error)
- func (as *ActivityService) GetObjectTimelineDetail(ctx context.Context, req *schema.GetObjectTimelineDetailReq) (resp *schema.GetObjectTimelineDetailResp, err error)
- type AnswerActivityRepo
- type AnswerActivityService
- func (as *AnswerActivityService) AcceptAnswer(ctx context.Context, ...) (err error)
- func (as *AnswerActivityService) CancelAcceptAnswer(ctx context.Context, ...) (err error)
- func (as *AnswerActivityService) DeleteAnswer(ctx context.Context, answerID string, createdAt time.Time, voteCount int) (err error)
- func (as *AnswerActivityService) DeleteQuestion(ctx context.Context, questionID string, createdAt time.Time, voteCount int) (err error)
- type QuestionActivityRepo
- type UserActiveActivityRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityRepo ¶ added in v0.5.0
type ActivityRepo interface {
GetObjectAllActivity(ctx context.Context, objectID string, showVote bool) (activityList []*entity.Activity, err error)
}
ActivityRepo activity repository
type ActivityService ¶ added in v0.5.0
type ActivityService struct {
// contains filtered or unexported fields
}
ActivityService activity service
func NewActivityService ¶ added in v0.5.0
func NewActivityService( activityRepo ActivityRepo, userCommon *usercommon.UserCommon, activityCommonService *activity_common.ActivityCommon, tagCommonService *tag_common.TagCommonService, objectInfoService *object_info.ObjService, commentCommonService *comment_common.CommentCommonService, revisionService *revision_common.RevisionService, metaService *meta.MetaService, ) *ActivityService
NewActivityService new activity service
func (*ActivityService) GetObjectTimeline ¶ added in v0.5.0
func (as *ActivityService) GetObjectTimeline(ctx context.Context, req *schema.GetObjectTimelineReq) ( resp *schema.GetObjectTimelineResp, err error)
GetObjectTimeline get object timeline
func (*ActivityService) GetObjectTimelineDetail ¶ added in v0.5.0
func (as *ActivityService) GetObjectTimelineDetail(ctx context.Context, req *schema.GetObjectTimelineDetailReq) ( resp *schema.GetObjectTimelineDetailResp, err error)
GetObjectTimelineDetail get object timeline
type AnswerActivityRepo ¶
type AnswerActivityRepo interface { AcceptAnswer(ctx context.Context, answerObjID, questionObjID, questionUserID, answerUserID string, isSelf bool) (err error) CancelAcceptAnswer(ctx context.Context, answerObjID, questionObjID, questionUserID, answerUserID string) (err error) DeleteAnswer(ctx context.Context, answerID string) (err error) }
AnswerActivityRepo answer activity
type AnswerActivityService ¶
type AnswerActivityService struct {
// contains filtered or unexported fields
}
AnswerActivityService user service
func NewAnswerActivityService ¶
func NewAnswerActivityService( answerActivityRepo AnswerActivityRepo, questionActivityRepo QuestionActivityRepo) *AnswerActivityService
NewAnswerActivityService new comment service
func (*AnswerActivityService) AcceptAnswer ¶
func (as *AnswerActivityService) AcceptAnswer(ctx context.Context, answerObjID, questionObjID, questionUserID, answerUserID string, isSelf bool) (err error)
AcceptAnswer accept answer change activity
func (*AnswerActivityService) CancelAcceptAnswer ¶
func (as *AnswerActivityService) CancelAcceptAnswer(ctx context.Context, answerObjID, questionObjID, questionUserID, answerUserID string) (err error)
CancelAcceptAnswer cancel accept answer change activity
func (*AnswerActivityService) DeleteAnswer ¶
func (as *AnswerActivityService) DeleteAnswer(ctx context.Context, answerID string, createdAt time.Time, voteCount int) (err error)
DeleteAnswer delete answer change activity
func (*AnswerActivityService) DeleteQuestion ¶
func (as *AnswerActivityService) DeleteQuestion(ctx context.Context, questionID string, createdAt time.Time, voteCount int) (err error)
DeleteQuestion delete question change activity
Click to show internal directories.
Click to hide internal directories.