first time include all file

This commit is contained in:
2026-06-18 21:39:20 +10:00
commit d48a07a0fe
285 changed files with 31416 additions and 0 deletions
@@ -0,0 +1,55 @@
using CarParkValidationAPI.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class AdminUserDto
{
#region public Member
public int Id { get; set; }
public string StafflinkNo { get; set; }
public string FirstName { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public string? AddedOn { get; set; }
public bool? Active { get; set; }
public int? RoleType { get; set; }
public int? ValidationPointId { get; set; }
#endregion
}
public class AdminUserViewDto
{
#region public Member
public int Id { get; set; }
public string StafflinkNo { get; set; }
public string FirstName { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public string? AddedOn { get; set; }
public bool? Active { get; set; }
public int? RoleType { get; set; }
public string ValidationPoint { get; set; }
public int ValidationPointId { get; set; }
[JsonIgnore]
public string PasswordHash { get; set; }
#endregion
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ApiException
{
public ApiException(int statusCode, string message = null, string details = null)
{
StatusCode = statusCode;
Message = message;
Details = details;
}
public int StatusCode { get; set; }
public string Message { get; set; }
public string Details { get; set; }
}
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ConcessionTypeDto
{
#region public Member
public int Id { get; set; }
public string Description { get; set; }
public string Display { get; set; }
public bool Active { get; set; }
#endregion
}
}
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ConcessionValidationExtDto: ConcessionValidationDto
{
public string ConcessionType { get; set; }
public string ValidationPoint { get; set; }
}
public partial class ConcessionValidationDto
{
#region public Member
public int Id { get; set; }
public DateTime ValidateDate { get; set; }
public string ConcessionCard { get; set; }
public string ConcessionHolder { get; set; }
public bool ConcessionExpiry { get; set; }
public int ConcessionTypeId { get; set; }
public string StafflinkNo { get; set; }
public int ValidationPointId { get; set; }
public bool Active { get; set; }
public string StaffFirstName { get; set; }
public string StaffLastName { get; set; }
public string StaffEmail { get; set; }
#endregion
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class FileContent
{
public byte[] Content { get; set; }
public string FileName { get; set; }
}
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class LookupCodeDto
{
public int Id
{
get; set;
}
public string Description
{
get; set;
}
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Models
{
public class ResultModel<T>
{
public T Data { get; set; }
public int StatusCode { get; set; }
public string Message { get; set; }
}
}
+8
View File
@@ -0,0 +1,8 @@
namespace CarParkValidationAPI.Entities
{
public enum Role
{
Admin,
User
}
}
+22
View File
@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
namespace CarParkValidationAPI.Entities;
public enum AdminRole
{
Normal = 1,
Admin = 2
}
public class User
{
public int Id { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string Email { get; set; }
public string Username { get; set; }
public int? Role { get; set; }
public int ValidationPointId { get; set; }
[JsonIgnore]
public string PasswordHash { get; set; }
}
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Entities
{
public class ValidationPointDto
{
#region public Member
public int Id { get; set; }
[Required]
public string Description { get; set; }
public string Display { get; set; }
public bool? Active { get; set; }
#endregion
}
}