Initial commit
This commit is contained in:
68
license-system-backend/src/License.Api/DTOs/AgentDtos.cs
Normal file
68
license-system-backend/src/License.Api/DTOs/AgentDtos.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user