littleshop/LittleShop.Client/Services/ICatalogService.cs
SysAdmin 622bdcf111 🔒 SECURITY: Emergency fixes and hardening
EMERGENCY FIXES:
 DELETE MockSilverPayService.cs - removed fake payment system
 REMOVE mock service registration - no fake payments possible
 GENERATE new JWT secret - replaced hardcoded key
 FIX HttpClient disposal - proper resource management

SECURITY HARDENING:
 ADD production guards - prevent mock services in production
 CREATE environment configs - separate dev/prod settings
 ADD config validation - fail fast on misconfiguration

IMPACT:
- Mock payment system completely eliminated
- JWT authentication now uses secure keys
- Production deployment now validated on startup
- Resource leaks fixed in TeleBot currency API

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-22 05:45:49 +01:00

18 lines
613 B
C#

using LittleShop.Client.Models;
namespace LittleShop.Client.Services;
public interface ICatalogService
{
Task<ApiResponse<List<Category>>> GetCategoriesAsync();
Task<ApiResponse<Category>> GetCategoryByIdAsync(Guid id);
Task<ApiResponse<PagedResult<Product>>> GetProductsAsync(
int pageNumber = 1,
int pageSize = 20,
Guid? categoryId = null,
string? searchTerm = null,
decimal? minPrice = null,
decimal? maxPrice = null);
Task<ApiResponse<Product>> GetProductByIdAsync(Guid id);
Task<ApiResponse<List<string>>> GetAvailableCurrenciesAsync();
}