Initial commit

This commit is contained in:
2026-01-04 23:00:21 +08:00
commit d3178871eb
124 changed files with 19300 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
namespace License.Api.DTOs;
public class AgentLoginRequest
{
public string AgentCode { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
public class AgentCreateRequest
{
public int? AdminId { get; set; }
public string AgentCode { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string? CompanyName { get; set; }
public string? ContactPerson { get; set; }
public string? ContactPhone { get; set; }
public string? ContactEmail { get; set; }
public decimal InitialBalance { get; set; }
public decimal Discount { get; set; } = 100m;
public decimal CreditLimit { get; set; }
public List<string>? AllowedProjects { get; set; }
}
public class AgentUpdateRequest
{
public string? CompanyName { get; set; }
public string? ContactPerson { get; set; }
public string? ContactPhone { get; set; }
public string? ContactEmail { get; set; }
public decimal? Discount { get; set; }
public decimal? CreditLimit { get; set; }
public List<string>? AllowedProjects { get; set; }
public string? Status { get; set; }
}
public class AgentBalanceRequest
{
public decimal Amount { get; set; }
public string? Remark { get; set; }
}
public class AgentListItem
{
public int Id { get; set; }
public string AgentCode { get; set; } = string.Empty;
public string? CompanyName { get; set; }
public string? ContactPerson { get; set; }
public string? ContactPhone { get; set; }
public decimal Balance { get; set; }
public decimal Discount { get; set; }
public string Status { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; }
}
public class AgentDetailResponse
{
public int Id { get; set; }
public string AgentCode { get; set; } = string.Empty;
public string? CompanyName { get; set; }
public string? ContactPerson { get; set; }
public string? ContactPhone { get; set; }
public string? ContactEmail { get; set; }
public decimal Balance { get; set; }
public decimal Discount { get; set; }
public decimal CreditLimit { get; set; }
public string Status { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; }
}