Skip to main content

ReportService

@adamondo/backend


@adamondo/backend / application/services/ReportService

application/services/ReportService

Classes

ReportService

Defined in: src/application/services/ReportService.ts:10

Constructors

Constructor

new ReportService(uow): ReportService

Defined in: src/application/services/ReportService.ts:11

Parameters
uow

UnitOfWork

Returns

ReportService

Methods

adminSearchReports()

adminSearchReports(params): Promise<{ reportsData: any[]; count: number; }>

Defined in: src/application/services/ReportService.ts:13

Parameters
params
currentPage?

number

searchList?

string

Returns

Promise<{ reportsData: any[]; count: number; }>

createUserReport()

createUserReport(params): Promise<{ status: string; firstName?: string; }>

Defined in: src/application/services/ReportService.ts:35

Parameters
params
reporterId

string

reportType

string

userId

string

Returns

Promise<{ status: string; firstName?: string; }>