activity

package
v1.4.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityRepo

type ActivityRepo interface {
	GetObjectAllActivity(ctx context.Context, objectID string, showVote bool) (activityList []*entity.Activity, err error)
}

ActivityRepo activity repository

type ActivityService

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

ActivityService activity service

func NewActivityService

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 *metacommon.MetaCommonService,
	configService *config.ConfigService,
) *ActivityService

NewActivityService new activity service

func (*ActivityService) GetObjectTimeline

func (as *ActivityService) GetObjectTimeline(ctx context.Context, req *schema.GetObjectTimelineReq) (
	resp *schema.GetObjectTimelineResp, err error)

GetObjectTimeline get object timeline

func (*ActivityService) GetObjectTimelineDetail

func (as *ActivityService) GetObjectTimelineDetail(ctx context.Context, req *schema.GetObjectTimelineDetailReq) (
	resp *schema.GetObjectTimelineDetailResp, err error)

GetObjectTimelineDetail get object timeline

type AnswerActivityRepo

type AnswerActivityRepo interface {
	SaveAcceptAnswerActivity(ctx context.Context, op *schema.AcceptAnswerOperationInfo) (err error)
	SaveCancelAcceptAnswerActivity(ctx context.Context, op *schema.AcceptAnswerOperationInfo) (err error)
}

AnswerActivityRepo answer activity

type AnswerActivityService

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

AnswerActivityService answer activity service

func NewAnswerActivityService

func NewAnswerActivityService(
	answerActivityRepo AnswerActivityRepo,
	configService *config.ConfigService,
) *AnswerActivityService

NewAnswerActivityService new comment service

func (*AnswerActivityService) AcceptAnswer

func (as *AnswerActivityService) AcceptAnswer(ctx context.Context,
	loginUserID, answerObjID, questionObjID, questionUserID, answerUserID string, isSelf bool) (err error)

AcceptAnswer accept answer change activity

func (*AnswerActivityService) CancelAcceptAnswer

func (as *AnswerActivityService) CancelAcceptAnswer(ctx context.Context,
	loginUserID, answerObjID, questionObjID, questionUserID, answerUserID string) (err error)

CancelAcceptAnswer cancel accept answer change activity

type ReviewActivityRepo added in v1.3.0

type ReviewActivityRepo interface {
	Review(ctx context.Context, sct *schema.PassReviewActivity) (err error)
}

ReviewActivityRepo interface

type UserActiveActivityRepo

type UserActiveActivityRepo interface {
	UserActive(ctx context.Context, userID string) (err error)
}

UserActiveActivityRepo interface

Jump to

Keyboard shortcuts

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