All Verbs | /Usuarios/Permisos/MenuPrincipal |
---|
"use strict";
export class PermisosItems {
/** @param {{CodigoMenu?:number,CodigoPadre?:number,Nombre?:string,Descripcion?:string,TienePermiso?:boolean,TipoEjecucion?:string,IDEjecucion?:string,InfoAdicional?:string,Orden?:number,Items?:PermisosItems[],Icono?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CodigoMenu;
/** @type {number} */
CodigoPadre;
/** @type {string} */
Nombre;
/** @type {string} */
Descripcion;
/** @type {boolean} */
TienePermiso;
/** @type {string} */
TipoEjecucion;
/** @type {string} */
IDEjecucion;
/** @type {string} */
InfoAdicional;
/** @type {number} */
Orden;
/** @type {PermisosItems[]} */
Items;
/** @type {string} */
Icono;
}
export class PermisosModulos {
/** @param {{CodModulo?:number,Nombre?:string,SuperUsuario?:boolean,Orden?:number,MenuPrincipal?:PermisosItems[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CodModulo;
/** @type {string} */
Nombre;
/** @type {boolean} */
SuperUsuario;
/** @type {number} */
Orden;
/** @type {PermisosItems[]} */
MenuPrincipal;
}
/** @typedef {'ES'|'PT'|'EN'} */
export var Lenguajes;
(function (Lenguajes) {
Lenguajes["ES"] = "ES"
Lenguajes["PT"] = "PT"
Lenguajes["EN"] = "EN"
})(Lenguajes || (Lenguajes = {}));
export class ArbolPermisosPpalRS {
/** @param {{CodSistema?:number,CodEmpresa?:number,Modulos?:PermisosModulos[],Lenguaje?:Lenguajes}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CodSistema;
/** @type {number} */
CodEmpresa;
/** @type {PermisosModulos[]} */
Modulos;
/** @type {Lenguajes} */
Lenguaje;
}
export class ArbolPermisosPpalRQ {
/** @param {{Usuario?:string,CodSistema?:number,CodEmpresa?:number,Lenguaje?:Lenguajes}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Usuario;
/** @type {number} */
CodSistema;
/** @type {number} */
CodEmpresa;
/** @type {Lenguajes} */
Lenguaje;
}
JavaScript ArbolPermisosPpalRQ DTOs
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 }