rwadurian/backend/services/authorization-service/src/application/dto/authorization.dto.ts

61 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { RoleType, AuthorizationStatus } from '@/domain/enums'
export interface AuthorizationDTO {
authorizationId: string
userId: string
roleType: RoleType
regionCode: string
regionName: string
status: AuthorizationStatus
displayTitle: string
benefitActive: boolean
currentMonthIndex: number
requireLocalPercentage: number
exemptFromPercentageCheck: boolean
// 考核进度字段
initialTargetTreeCount: number // 初始考核目标社区10市100省500
currentTreeCount: number // 当前团队认种数量
monthlyTargetTreeCount: number // 月度考核目标社区固定10
createdAt: Date
updatedAt: Date
}
export interface StickmanRankingDTO {
userId: string
authorizationId: string
roleType: RoleType
regionCode: string
nickname?: string
avatarUrl?: string
ranking: number
isFirstPlace: boolean
cumulativeCompleted: number
cumulativeTarget: number
finalTarget: number
progressPercentage: number
exceedRatio: number
monthlyRewardUsdt: number
monthlyRewardRwad: number
}
export interface MonthlyAssessmentDTO {
assessmentId: string
authorizationId: string
userId: string
roleType: RoleType
regionCode: string
assessmentMonth: string
monthIndex: number
monthlyTarget: number
cumulativeTarget: number
monthlyCompleted: number
cumulativeCompleted: number
localPercentage: number
localPercentagePass: boolean
exceedRatio: number
result: string
rankingInRegion: number | null
isFirstPlace: boolean
isBypassed: boolean
}