...
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Common.Models.Identity
|
||||
{
|
||||
public class AuthRequest
|
||||
{
|
||||
public AuthRequest(string username, string password)
|
||||
{
|
||||
Username = username;
|
||||
Password = password;
|
||||
}
|
||||
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
public class AuthRequestFromMobile
|
||||
{
|
||||
public string Mobile { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Common.Models.Identity
|
||||
{
|
||||
public class AuthResponse
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string Fullname { get; set; }
|
||||
public List <string>? Roles { get; set; }
|
||||
public string Token { get; set; }
|
||||
public byte[]? img { get; set; }
|
||||
}
|
||||
}
|
14
Presentation/HushianWebApp/Data/Models/ResponseBase.cs
Normal file
14
Presentation/HushianWebApp/Data/Models/ResponseBase.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Common.Models
|
||||
{
|
||||
public class ResponseBase<T>
|
||||
{
|
||||
public T? Value { get; set; }
|
||||
public bool Success { get; set; }=false;
|
||||
public List<string> Errors { get; set; }=new List<string>();
|
||||
|
||||
}
|
||||
}
|
8
Presentation/HushianWebApp/Data/Models/WindowSize.cs
Normal file
8
Presentation/HushianWebApp/Data/Models/WindowSize.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace HushianWebApp.Data.Models
|
||||
{
|
||||
public class WindowSize
|
||||
{
|
||||
public int Width { get; set; }
|
||||
public int Height { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common.Models.ai.openAi
|
||||
{
|
||||
public class RequestModel
|
||||
{
|
||||
public string model { get; set; }
|
||||
public string question { get; set; }
|
||||
public string Context { get; set; }
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user