Models and Static Details
This commit is contained in:
parent
c856f9b28e
commit
10fcab79c1
|
@ -0,0 +1,10 @@
|
|||
namespace PokemonSleepWeb.Models
|
||||
{
|
||||
public class PokemonDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string SleepType { get; set; }
|
||||
public string Speciality { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
namespace PokemonSleepWeb.Models
|
||||
{
|
||||
public class PokemonNatureDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Nature { get; set; }
|
||||
public int BerryRating { get; set; }
|
||||
public int IngredientRating { get; set; }
|
||||
public int SkillRating { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
namespace PokemonSleepWeb.Models
|
||||
{
|
||||
public class PokemonSubskillDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string SubSkill { get; set; }
|
||||
public int BerryRank { get; set; }
|
||||
public int IngredientRank { get; set; }
|
||||
public int SkillRank { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
using static PokemonSleepWeb.Utility.StaticDetails;
|
||||
|
||||
namespace PokemonSleepWeb.Models
|
||||
{
|
||||
public class RequestDto
|
||||
{
|
||||
public ApiType ApiType { get; set; } = ApiType.GET;
|
||||
public string Url { get; set; }
|
||||
public object Data { get; set; }
|
||||
public string AccessToken { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace PokemonSleepWeb.Models
|
||||
{
|
||||
public class ResponseDto
|
||||
{
|
||||
public object? Result { get; set; }
|
||||
public bool IsSuccess { get; set; } = true;
|
||||
public string Message { get; set; } = "";
|
||||
}
|
||||
}
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="Service\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
using Microsoft.AspNetCore.Mvc.Infrastructure;
|
||||
|
||||
namespace PokemonSleepWeb.Utility
|
||||
{
|
||||
public class StaticDetails
|
||||
{
|
||||
public static string CouponAPIBase { get; set; }
|
||||
public static string AuthAPIBase { get; set; }
|
||||
public static string ProductAPIBase { get; set; }
|
||||
public static string ShoppingCartAPIBase { get; set; }
|
||||
public const string RoleAdmin = "ADMIN";
|
||||
public const string RoleCustomer = "CUSTOMER";
|
||||
public const string TokenCookie = "JWTToken";
|
||||
public enum ApiType
|
||||
{
|
||||
GET, POST, PUT, DELETE
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue