This commit is contained in:
mmrbnjd
2025-07-11 20:37:28 +03:30
parent 1924c88e7a
commit ff342a53c0
156 changed files with 13746 additions and 35 deletions

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View 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>();
}
}

View File

@@ -0,0 +1,8 @@
namespace HushianWebApp.Data.Models
{
public class WindowSize
{
public int Width { get; set; }
public int Height { get; set; }
}
}

View File

@@ -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; }
}
}