activity

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerActivityRepo

type AnswerActivityRepo interface {
	AcceptAnswer(ctx context.Context,
		answerObjID, questionUserID, answerUserID string, isSelf bool) (err error)
	CancelAcceptAnswer(ctx context.Context,
		answerObjID, 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, questionUserID, answerUserID string, isSelf bool) (err error)

AcceptAnswer accept answer change activity

func (*AnswerActivityService) CancelAcceptAnswer

func (as *AnswerActivityService) CancelAcceptAnswer(ctx context.Context,
	answerObjID, 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

type QuestionActivityRepo

type QuestionActivityRepo interface {
	DeleteQuestion(ctx context.Context, questionID string) (err error)
}

QuestionActivityRepo answer activity

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