rating
This commit is contained in:
18
core/identity/application/dtos/CreateRatingEventDto.ts
Normal file
18
core/identity/application/dtos/CreateRatingEventDto.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* DTO: CreateRatingEventDto
|
||||
*
|
||||
* Input for creating a rating event from external sources
|
||||
*/
|
||||
|
||||
export interface CreateRatingEventDto {
|
||||
userId: string;
|
||||
dimension: string;
|
||||
delta: number;
|
||||
weight?: number;
|
||||
sourceType: 'race' | 'penalty' | 'vote' | 'adminAction' | 'manualAdjustment';
|
||||
sourceId: string;
|
||||
reasonCode: string;
|
||||
reasonSummary: string;
|
||||
reasonDetails?: Record<string, unknown>;
|
||||
occurredAt?: string; // ISO date string
|
||||
}
|
||||
Reference in New Issue
Block a user