Spaces:
Sleeping
Sleeping
Commit ·
67d4c53
1
Parent(s): 7039b6a
feat: include daily AI generation count in user response DTO
Browse files
FlowAPI.Application/DTOs/User/UserDtos.cs
CHANGED
|
@@ -31,6 +31,7 @@ namespace FlowAPI.Application.DTOs.User
|
|
| 31 |
public string? AvatarUrl { get; set; }
|
| 32 |
public DateTime CreatedAt { get; set; }
|
| 33 |
public string SubscriptionTier { get; set; } = "Free";
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
public class AuthResponseDto
|
|
|
|
| 31 |
public string? AvatarUrl { get; set; }
|
| 32 |
public DateTime CreatedAt { get; set; }
|
| 33 |
public string SubscriptionTier { get; set; } = "Free";
|
| 34 |
+
public int DailyAiGenerationsCount { get; set; }
|
| 35 |
}
|
| 36 |
|
| 37 |
public class AuthResponseDto
|
FlowAPI.Application/Services/UserService.cs
CHANGED
|
@@ -147,7 +147,8 @@ namespace FlowAPI.Application.Services
|
|
| 147 |
IsPremium = user.IsPremium,
|
| 148 |
AvatarUrl = user.AvatarUrl,
|
| 149 |
CreatedAt = user.CreatedAt,
|
| 150 |
-
SubscriptionTier = user.SubscriptionTier
|
|
|
|
| 151 |
};
|
| 152 |
}
|
| 153 |
}
|
|
|
|
| 147 |
IsPremium = user.IsPremium,
|
| 148 |
AvatarUrl = user.AvatarUrl,
|
| 149 |
CreatedAt = user.CreatedAt,
|
| 150 |
+
SubscriptionTier = user.SubscriptionTier,
|
| 151 |
+
DailyAiGenerationsCount = user.DailyAiGenerationsCount
|
| 152 |
};
|
| 153 |
}
|
| 154 |
}
|
FlowAPI/Controllers/PaymentsController.cs
CHANGED
|
@@ -57,7 +57,8 @@ namespace FlowAPI.Controllers
|
|
| 57 |
isPremium = user.IsPremium,
|
| 58 |
avatarUrl = user.AvatarUrl,
|
| 59 |
createdAt = user.CreatedAt,
|
| 60 |
-
subscriptionTier = user.SubscriptionTier
|
|
|
|
| 61 |
});
|
| 62 |
}
|
| 63 |
}
|
|
|
|
| 57 |
isPremium = user.IsPremium,
|
| 58 |
avatarUrl = user.AvatarUrl,
|
| 59 |
createdAt = user.CreatedAt,
|
| 60 |
+
subscriptionTier = user.SubscriptionTier,
|
| 61 |
+
dailyAiGenerationsCount = user.DailyAiGenerationsCount
|
| 62 |
});
|
| 63 |
}
|
| 64 |
}
|