report

package
v1.3.6-RC1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportService

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

ReportService user service

func NewReportService

func NewReportService(
	reportRepo report_common.ReportRepo,
	objectInfoService *object_info.ObjService,
	commonUser *usercommon.UserCommon,
	answerRepo answercommon.AnswerRepo,
	questionRepo questioncommon.QuestionRepo,
	commentCommonRepo comment_common.CommentCommonRepo,
	reportHandle *report_handle.ReportHandle,
	configService *config.ConfigService,
) *ReportService

NewReportService new report service

func (*ReportService) AddReport

func (rs *ReportService) AddReport(ctx context.Context, req *schema.AddReportReq) (err error)

AddReport add report

func (*ReportService) GetUnreviewedReportPostPage added in v1.3.0

func (rs *ReportService) GetUnreviewedReportPostPage(ctx context.Context, req *schema.GetUnreviewedReportPostPageReq) (
	pageModel *pager.PageModel, err error)

GetUnreviewedReportPostPage get unreviewed report post page

func (*ReportService) ReviewReport added in v1.3.0

func (rs *ReportService) ReviewReport(ctx context.Context, req *schema.ReviewReportReq) (err error)

ReviewReport review report

Jump to

Keyboard shortcuts

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