8b86f17645
PlansController had a class-level [Authorize] that gated the public plans list, contradicting the gateway's optionalAuth on /plans. Mark List/GetById [AllowAnonymous] and resolve tenant optionally so anonymous callers receive global plans (purchase/current-plan stay authenticated). Frontend container stayed "unhealthy" because busybox wget resolves localhost to IPv6 [::1] while the Next.js standalone server binds IPv4 only. Use 127.0.0.1 in the healthcheck. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
485 B
C#
13 lines
485 B
C#
using FlatRender.IdentitySvc.Models.Requests;
|
|
using FlatRender.IdentitySvc.Models.Responses;
|
|
|
|
namespace FlatRender.IdentitySvc.Application.Services.Interfaces;
|
|
|
|
public interface IPlanService
|
|
{
|
|
Task<List<PlanResponse>> ListAsync(Guid? tenantId, string? scope);
|
|
Task<PlanResponse> GetByIdAsync(Guid planId);
|
|
Task<UserPlanResponse?> GetCurrentPlanAsync(Guid userId);
|
|
Task<PurchasePlanResponse> PurchasePlanAsync(Guid userId, Guid tenantId, PurchasePlanRequest request);
|
|
}
|