Version OScar
This commit is contained in:
18
ModelosApiborrar/Sistema/Response/ResponseCambiarEmpresa.cs
Normal file
18
ModelosApiborrar/Sistema/Response/ResponseCambiarEmpresa.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SIGAPI.Models.Sistema.Response
|
||||
{
|
||||
public class ResponseCambiarEmpresa
|
||||
{
|
||||
public long CveToken { get; set; }
|
||||
public string AccessToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public List<UsuarioModulo> UsuarioModulos { get; set; }
|
||||
public List<UsuarioEmpresa> UsuarioEmpresas { get; set; }
|
||||
public List<EmpresaFuncionalidad> EmpresaFuncionalidades { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
31
ModelosApiborrar/Sistema/Response/ResponseLogin.cs
Normal file
31
ModelosApiborrar/Sistema/Response/ResponseLogin.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Newtonsoft.Json;
|
||||
using SIGAPI.Models.Sistema;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SIGAPI.Models.Request
|
||||
{
|
||||
public class ResponseLogin
|
||||
{
|
||||
public long CveUsuario { get; set; }
|
||||
public string Usuario { get; set; }
|
||||
public string Nombre { get; set; }
|
||||
public string Correo { get; set; }
|
||||
public long CveEmpresa { get; set; }
|
||||
public string Empresa { get; set; }
|
||||
public long CvePlataforma { get; set; }
|
||||
public bool Estatus { get; set; }
|
||||
public long CveRol { get; set; }
|
||||
public string Rol { get; set; }
|
||||
public long CveToken { get; set; }
|
||||
public string AccessToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public List<UsuarioModulo> UsuarioModulos { get; set; }
|
||||
public List<UsuarioEmpresa> UsuarioEmpresas { get; set; }
|
||||
public List<EmpresaFuncionalidad> EmpresaFuncionalidades { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
13
ModelosApiborrar/Sistema/Response/ResponseRefreshToken.cs
Normal file
13
ModelosApiborrar/Sistema/Response/ResponseRefreshToken.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SIGAPI.Models.Sistema.Response
|
||||
{
|
||||
public class ResponseRefreshToken
|
||||
{
|
||||
public string RefreshToken { get; set; }
|
||||
public string AccessToken { get; set; }
|
||||
}
|
||||
}
|
||||
126
ModelosApiborrar/Sistema/Response/UserModuloModel.cs
Normal file
126
ModelosApiborrar/Sistema/Response/UserModuloModel.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SIGAPI.Models.Sistema.Response
|
||||
{
|
||||
public class UserModuloModel
|
||||
{
|
||||
public UserModuloModel()
|
||||
{
|
||||
this.cveModulo = -1;
|
||||
}
|
||||
|
||||
private int cveModulo;
|
||||
public int CveModulo
|
||||
{
|
||||
get { return cveModulo; }
|
||||
set { cveModulo = value; }
|
||||
}
|
||||
|
||||
private string modulo;
|
||||
public string Modulo
|
||||
{
|
||||
get { return modulo; }
|
||||
set { modulo = value; }
|
||||
}
|
||||
|
||||
private string liga;
|
||||
public string Liga
|
||||
{
|
||||
get { return liga; }
|
||||
set { liga = value; }
|
||||
}
|
||||
|
||||
private int orden;
|
||||
public int Orden
|
||||
{
|
||||
get { return orden; }
|
||||
set { orden = value; }
|
||||
}
|
||||
|
||||
private string estilo;
|
||||
public string Estilo
|
||||
{
|
||||
get { return estilo; }
|
||||
set { estilo = value; }
|
||||
}
|
||||
|
||||
private int cveModuloPadre;
|
||||
public int CveModuloPadre
|
||||
{
|
||||
get { return cveModuloPadre; }
|
||||
set { cveModuloPadre = value; }
|
||||
}
|
||||
private int isAngular;
|
||||
public int IsAngular
|
||||
{
|
||||
get { return isAngular; }
|
||||
set { isAngular = value; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class Menu
|
||||
{
|
||||
private List<ItemMenu> items;
|
||||
public List<ItemMenu> Items
|
||||
{
|
||||
get { return items; }
|
||||
set { items = value; }
|
||||
}
|
||||
}
|
||||
|
||||
public class ItemMenu
|
||||
{
|
||||
private string title;
|
||||
public string Title
|
||||
{
|
||||
get { return title; }
|
||||
set { title = value; }
|
||||
}
|
||||
|
||||
private string page;
|
||||
public string Page
|
||||
{
|
||||
get { return page; }
|
||||
set { page = value; }
|
||||
}
|
||||
|
||||
private string icon;
|
||||
public string Icon
|
||||
{
|
||||
get { return icon; }
|
||||
set { icon = value; }
|
||||
}
|
||||
private int isAngular;
|
||||
public int IsAngular
|
||||
{
|
||||
get { return isAngular; }
|
||||
set { isAngular = value; }
|
||||
}
|
||||
|
||||
private List<ItemMenu> submenu;
|
||||
public List<ItemMenu> Submenu
|
||||
{
|
||||
get { return submenu; }
|
||||
set { submenu = value; }
|
||||
}
|
||||
|
||||
// cosas que no estan en db pero se pueden usar en el front
|
||||
private bool root;
|
||||
public bool Root
|
||||
{
|
||||
get { return root; }
|
||||
set { root = value; }
|
||||
}
|
||||
|
||||
private string bullet;
|
||||
public string Bullet
|
||||
{
|
||||
get { return bullet; }
|
||||
set { bullet = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
13
ModelosApiborrar/Sistema/Response/UsuarioComboModel.cs
Normal file
13
ModelosApiborrar/Sistema/Response/UsuarioComboModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SIGAPI.Models.Sistema.Response
|
||||
{
|
||||
public class UsuarioComboModel
|
||||
{
|
||||
public int cveUsuario { get; set; }
|
||||
public string nombre { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user