All Verbs | /Usuarios/Permisos/MenuPrincipal |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ArbolPermisosPpalRQ
{
public String Usuario = null;
public Integer CodSistema = null;
public Integer CodEmpresa = null;
public Lenguajes Lenguaje = null;
public String getUsuario() { return Usuario; }
public ArbolPermisosPpalRQ setUsuario(String value) { this.Usuario = value; return this; }
public Integer getCodSistema() { return CodSistema; }
public ArbolPermisosPpalRQ setCodSistema(Integer value) { this.CodSistema = value; return this; }
public Integer getCodEmpresa() { return CodEmpresa; }
public ArbolPermisosPpalRQ setCodEmpresa(Integer value) { this.CodEmpresa = value; return this; }
public Lenguajes getLenguaje() { return Lenguaje; }
public ArbolPermisosPpalRQ setLenguaje(Lenguajes value) { this.Lenguaje = value; return this; }
}
public static enum Lenguajes
{
Es,
Pt,
En;
}
public static class ArbolPermisosPpalRS
{
public Integer CodSistema = null;
public Integer CodEmpresa = null;
public ArrayList<PermisosModulos> Modulos = null;
public Lenguajes Lenguaje = null;
public Integer getCodSistema() { return CodSistema; }
public ArbolPermisosPpalRS setCodSistema(Integer value) { this.CodSistema = value; return this; }
public Integer getCodEmpresa() { return CodEmpresa; }
public ArbolPermisosPpalRS setCodEmpresa(Integer value) { this.CodEmpresa = value; return this; }
public ArrayList<PermisosModulos> getModulos() { return Modulos; }
public ArbolPermisosPpalRS setModulos(ArrayList<PermisosModulos> value) { this.Modulos = value; return this; }
public Lenguajes getLenguaje() { return Lenguaje; }
public ArbolPermisosPpalRS setLenguaje(Lenguajes value) { this.Lenguaje = value; return this; }
}
public static class PermisosModulos
{
public BigDecimal CodModulo = null;
public String Nombre = null;
public Boolean SuperUsuario = null;
public Integer Orden = null;
public ArrayList<PermisosItems> MenuPrincipal = null;
public BigDecimal getCodModulo() { return CodModulo; }
public PermisosModulos setCodModulo(BigDecimal value) { this.CodModulo = value; return this; }
public String getNombre() { return Nombre; }
public PermisosModulos setNombre(String value) { this.Nombre = value; return this; }
public Boolean isSuperUsuario() { return SuperUsuario; }
public PermisosModulos setSuperUsuario(Boolean value) { this.SuperUsuario = value; return this; }
public Integer getOrden() { return Orden; }
public PermisosModulos setOrden(Integer value) { this.Orden = value; return this; }
public ArrayList<PermisosItems> getMenuPrincipal() { return MenuPrincipal; }
public PermisosModulos setMenuPrincipal(ArrayList<PermisosItems> value) { this.MenuPrincipal = value; return this; }
}
public static class PermisosItems
{
public BigDecimal CodigoMenu = null;
public BigDecimal CodigoPadre = null;
public String Nombre = null;
public String Descripcion = null;
public Boolean TienePermiso = null;
public String TipoEjecucion = null;
public String IDEjecucion = null;
public String InfoAdicional = null;
public Integer Orden = null;
public ArrayList<PermisosItems> Items = null;
public String Icono = null;
public BigDecimal getCodigoMenu() { return CodigoMenu; }
public PermisosItems setCodigoMenu(BigDecimal value) { this.CodigoMenu = value; return this; }
public BigDecimal getCodigoPadre() { return CodigoPadre; }
public PermisosItems setCodigoPadre(BigDecimal value) { this.CodigoPadre = value; return this; }
public String getNombre() { return Nombre; }
public PermisosItems setNombre(String value) { this.Nombre = value; return this; }
public String getDescripcion() { return Descripcion; }
public PermisosItems setDescripcion(String value) { this.Descripcion = value; return this; }
public Boolean isTienePermiso() { return TienePermiso; }
public PermisosItems setTienePermiso(Boolean value) { this.TienePermiso = value; return this; }
public String getTipoEjecucion() { return TipoEjecucion; }
public PermisosItems setTipoEjecucion(String value) { this.TipoEjecucion = value; return this; }
public String getIdEjecucion() { return IDEjecucion; }
public PermisosItems setIdEjecucion(String value) { this.IDEjecucion = value; return this; }
public String getInfoAdicional() { return InfoAdicional; }
public PermisosItems setInfoAdicional(String value) { this.InfoAdicional = value; return this; }
public Integer getOrden() { return Orden; }
public PermisosItems setOrden(Integer value) { this.Orden = value; return this; }
public ArrayList<PermisosItems> getItems() { return Items; }
public PermisosItems setItems(ArrayList<PermisosItems> value) { this.Items = value; return this; }
public String getIcono() { return Icono; }
public PermisosItems setIcono(String value) { this.Icono = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Usuarios/Permisos/MenuPrincipal HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Usuario: String,
CodSistema: 0,
CodEmpresa: 0,
Lenguaje: ES
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { CodSistema: 0, CodEmpresa: 0, Modulos: [ { CodModulo: 0, Nombre: String, SuperUsuario: False, Orden: 0, MenuPrincipal: [ { CodigoMenu: 0, CodigoPadre: 0, Nombre: String, Descripcion: String, TienePermiso: False, TipoEjecucion: String, IDEjecucion: String, InfoAdicional: String, Orden: 0, Items: [ { CodigoMenu: 0, CodigoPadre: 0, Nombre: String, Descripcion: String, TienePermiso: False, TipoEjecucion: String, IDEjecucion: String, InfoAdicional: String, Orden: 0, Items: [ { CodigoMenu: 0, CodigoPadre: 0, Nombre: String, Descripcion: String, TienePermiso: False, TipoEjecucion: String, IDEjecucion: String, InfoAdicional: String, Orden: 0, Icono: String } ], Icono: String } ], Icono: String } ] } ], Lenguaje: ES }