add support for Terms and Conditions Seeding in Configuration Support ...

This commit is contained in:
2026-05-27 15:00:21 +03:30
parent ac168ed7c1
commit 661a17fb97
4 changed files with 242 additions and 11 deletions
@@ -0,0 +1,27 @@
using System.Collections.Generic;
using xDataService.Constants;
using xStringService.Models.Dtos;
namespace xTermsAndConditionsService.Configuration
{
/// <summary>
/// Terms and Conditions Configuration ...
/// </summary>
public class XTermsAndConditionsServiceConfiguration
{
/// <summary>
/// Terms And Conditions Resource Title in XString Table ...
/// </summary>
public string ResourceTitle { get; set; } = "terms_and_conditions";
/// <summary>
/// Seeding Mode for Terms and Conditions ...
/// </summary>
public XDbSeedingMode SeedingMode { get; set; } = XDbSeedingMode.AddIfNotExists;
/// <summary>
/// Default Terms and Conditions for Add to Databse on App Startup ...
/// </summary>
public List<XStringDto> TermsAndConditions { get; set; } = null;
}
}