first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
namespace Fitness_core_BE.DTOs.Mobile
{
public class SendOtpRequest
{
public string Identifier { get; set; } = string.Empty;
public int NumberOfDigits { get; set; } = 4;
public bool NewUser { get; set; }
}
public class VerifyOtpLoginRequest
{
public string OtpCode { get; set; } = string.Empty;
public string ReferenceNumber { get; set; } = string.Empty;
}
public class VerifyOtpAltRequest
{
public string OtpCode { get; set; } = string.Empty;
public string ReferenceNumber { get; set; } = string.Empty;
public string? IdentifireType { get; set; }
public string? Identifier { get; set; }
}
public class RefreshTokenRequest
{
public string? RefreshToken { get; set; }
}
public class RegisterCustomerRequest
{
public string Gender { get; set; } = string.Empty;
public string Bod { get; set; } = string.Empty;
public string UserTypeId { get; set; } = string.Empty;
public string RoleId { get; set; } = string.Empty;
public bool ChkUser { get; set; }
public string? DeviceName { get; set; }
public string? PushTokenId { get; set; }
public string Fullname { get; set; } = string.Empty;
public string MobileNumber { get; set; } = string.Empty;
}
public class ForgotPasswordRequest
{
public string Identifier { get; set; } = string.Empty;
public bool UseResetLink { get; set; }
public int NumberOfDigits { get; set; } = 6;
}
public class ResetPasswordRequest
{
public string ReferenceNumber { get; set; } = string.Empty;
public string NewPassword { get; set; } = string.Empty;
public string ConfirmPassword { get; set; } = string.Empty;
}
// Verifies an OTP for a customer's own channel and sets the matching verified flag.
public class VerifyChannelRequest
{
// "PrimaryPH" | "SecondaryPH" | "Email"
public string IdentifireType { get; set; } = string.Empty;
public string OtpCode { get; set; } = string.Empty;
public string ReferenceNumber { get; set; } = string.Empty;
public string Identifier { get; set; } = string.Empty;
}
}
+15
View File
@@ -0,0 +1,15 @@
namespace Fitness_core_BE.DTOs.Mobile
{
public class GetOrCreateChatRequest
{
public Guid OtherUserId { get; set; }
}
public class SendChatMessageRequest
{
public Guid ChatId { get; set; }
public Guid SenderId { get; set; }
public string Message { get; set; } = string.Empty;
public string Type { get; set; } = "text";
}
}
+72
View File
@@ -0,0 +1,72 @@
namespace Fitness_core_BE.DTOs.Mobile
{
/// <summary>Self-service profile update (mobile). Distinct from DTOs/Customer/UpdateCustomerRequest,
/// which is the client-managed shape used by ClientController.</summary>
public class UpdateCustomerProfileRequest
{
public string? Fullname { get; set; }
public string? Gender { get; set; }
public DateOnly? Bod { get; set; }
public string? PrimaryPH { get; set; }
public string? SecondaryPH { get; set; }
public string? Nic { get; set; }
public string? Address { get; set; }
public string? Email { get; set; }
}
public class UpdateHealthRequest
{
public string? BloodGroup { get; set; }
public string? Disabilities { get; set; }
}
public class CreateProgressRequest
{
public decimal? Height { get; set; }
public decimal? CurrentWeight { get; set; }
public decimal? TargetWeight { get; set; }
public string? Goal { get; set; }
public int? Age { get; set; }
public string? Gender { get; set; }
public string? ActivityLevel { get; set; }
public decimal? TimePeriod { get; set; }
}
/// <summary>Updates the customer's latest height and/or weight measurement.</summary>
public class UpdateProgressRequest
{
public decimal? Height { get; set; }
public decimal? Weight { get; set; }
public DateTime? ProgressDate { get; set; }
}
/// <summary>Member self-serve "add card" for auto-deduct. cardToken is an opaque client-side
/// value (mock today, would be real PayHere/Stripe tokenization once a gateway is wired up).</summary>
public class SaveCardRequest
{
public string CardToken { get; set; } = string.Empty;
public string? CardLast4 { get; set; }
public string? CardType { get; set; }
public string? NickName { get; set; }
/// <summary>Must be explicitly true — this is the member's auto-deduct consent.</summary>
public bool Consent { get; set; }
}
public class SetAutoChargeRequest
{
public bool Enabled { get; set; }
public Guid? CardId { get; set; }
}
public class UpdatePushTokenRequest
{
public string PushTokenId { get; set; } = string.Empty;
}
/// <summary>documentId comes from POST /customer/documents' upload response — the client
/// uploads the picked image first, then links it here as the profile picture.</summary>
public class UpdateProfileImageRequest
{
public int DocumentId { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace Fitness_core_BE.DTOs.Mobile
{
public class AcceptGymTermsRequest
{
public int Version { get; set; }
}
}
+20
View File
@@ -0,0 +1,20 @@
namespace Fitness_core_BE.DTOs.Mobile
{
public class CreateTicketRequest
{
public string MainReason { get; set; } = string.Empty;
public string? TicketCategoryId { get; set; }
public string? TicketStatus { get; set; }
}
public class SendTicketMessageRequest
{
public string Message { get; set; } = string.Empty;
}
public class SubmitTicketFeedbackRequest
{
public int Rating { get; set; }
public string? Feedback { get; set; }
}
}