...
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user