All Verbs | /Usuarios/Permisos/Forma |
---|
"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 PermisosFormas {
/** @param {{CodForma?:number,Nombre?:string,Descripcion?:string,Items?:PermisosItems[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CodForma;
/** @type {string} */
Nombre;
/** @type {string} */
Descripcion;
/** @type {PermisosItems[]} */
Items;
}
/** @typedef {'ES'|'PT'|'EN'} */
export var Lenguajes;
(function (Lenguajes) {
Lenguajes["ES"] = "ES"
Lenguajes["PT"] = "PT"
Lenguajes["EN"] = "EN"
})(Lenguajes || (Lenguajes = {}));
export class ArbolPermisosFormasRQ {
/** @param {{Usuario?:string,CodSistema?:number,CodEmpresa?:number,CodModulo?:number,CodForma?:number,Lenguaje?:Lenguajes}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Usuario;
/** @type {number} */
CodSistema;
/** @type {number} */
CodEmpresa;
/** @type {number} */
CodModulo;
/** @type {number} */
CodForma;
/** @type {Lenguajes} */
Lenguaje;
}
JavaScript ArbolPermisosFormasRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Usuarios/Permisos/Forma HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Usuario":"String","CodSistema":0,"CodEmpresa":0,"CodModulo":0,"CodForma":0,"Lenguaje":"ES"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"CodForma":0,"Nombre":"String","Descripcion":"String","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,"Items":[{"CodigoMenu":0,"CodigoPadre":0,"Nombre":"String","Descripcion":"String","TienePermiso":false,"TipoEjecucion":"String","IDEjecucion":"String","InfoAdicional":"String","Orden":0,"Items":null,"Icono":"String"}],"Icono":"String"}],"Icono":"String"}]}