-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Crear modelos para firma electrónica
- Se crea modelo para representar respuesta de documentos CUD. - Se crea modelo para representar respuesta de gestor documental. - Se crea modelo para representar respuesta de persona natural. - Se crea modelo para representar respuesta de firma electrónica. - Se crea modelo para representar petición de firma electrónica. udistrital/Cumplidos_y_certificaciones_documentacion#272
- Loading branch information
Showing
6 changed files
with
197 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type DominioTipoDocumento struct { | ||
Id int `json:"Id"` | ||
Nombre string `json:"Nombre"` | ||
Descripcion string `json:"Descripcion"` | ||
CodigoAbreviacion string `json:"CodigoAbreviacion"` | ||
Activo bool `json:"Activo"` | ||
NumeroOrden float64 `json:"NumeroOrden"` | ||
} | ||
|
||
type TipoDocumento struct { | ||
Id int `json:"Id"` | ||
Nombre string `json:"Nombre"` | ||
Descripcion string `json:"Descripcion"` | ||
CodigoAbreviacion string `json:"CodigoAbreviacion"` | ||
Activo bool `json:"Activo"` | ||
NumeroOrden float64 `json:"NumeroOrden"` | ||
Tamano int `json:"Tamano"` | ||
Extension string `json:"Extension"` | ||
Workspace string `json:"Workspace"` | ||
TipoDocumentoNuxeo string `json:"TipoDocumentoNuxeo"` | ||
DominioTipoDocumento DominioTipoDocumento `json:"DominioTipoDocumento"` | ||
} | ||
|
||
type DocumentoCrud struct { | ||
Id int `json:"Id"` | ||
Nombre string `json:"Nombre"` | ||
Descripcion string `json:"Descripcion"` | ||
Enlace string `json:"Enlace"` | ||
TipoDocumento TipoDocumento `json:"TipoDocumento"` | ||
Metadatos string `json:"Metadatos"` | ||
Activo bool `json:"Activo"` | ||
FechaCreacion time.Time `json:"FechaCreacion"` | ||
FechaModificacion time.Time `json:"FechaModificacion"` | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type Thumbnail struct { | ||
Name string `json:"name"` | ||
MimeType string `json:"mime-type"` | ||
Encoding *string `json:"encoding"` | ||
DigestAlgorithm string `json:"digestAlgorithm"` | ||
Digest string `json:"digest"` | ||
Length string `json:"length"` | ||
Data string `json:"data"` | ||
} | ||
|
||
type FileContent struct { | ||
Name string `json:"name"` | ||
MimeType string `json:"mime-type"` | ||
Encoding *string `json:"encoding"` | ||
DigestAlgorithm string `json:"digestAlgorithm"` | ||
Digest string `json:"digest"` | ||
Length string `json:"length"` | ||
Data string `json:"data"` | ||
} | ||
|
||
type DocumentoEnlace struct { | ||
UIDUID *string `json:"uid:uid"` | ||
UIDMajorVersion int `json:"uid:major_version"` | ||
UIDMinorVersion int `json:"uid:minor_version"` | ||
Thumbnail Thumbnail `json:"thumb:thumbnail"` | ||
FileContent FileContent `json:"file:content"` | ||
CommonIconExpanded *string `json:"common:icon-expanded"` | ||
CommonIcon string `json:"common:icon"` | ||
FilesFiles []interface{} `json:"files:files"` | ||
Description string `json:"dc:description"` | ||
Language *string `json:"dc:language"` | ||
Coverage *string `json:"dc:coverage"` | ||
Valid *string `json:"dc:valid"` | ||
Creator string `json:"dc:creator"` | ||
Modified time.Time `json:"dc:modified"` | ||
LastContributor string `json:"dc:lastContributor"` | ||
Rights *string `json:"dc:rights"` | ||
Expired *string `json:"dc:expired"` | ||
Format *string `json:"dc:format"` | ||
Created time.Time `json:"dc:created"` | ||
Title string `json:"dc:title"` | ||
Issued *string `json:"dc:issued"` | ||
Nature *string `json:"dc:nature"` | ||
Subjects []interface{} `json:"dc:subjects"` | ||
Contributors []string `json:"dc:contributors"` | ||
Source *string `json:"dc:source"` | ||
Publisher *string `json:"dc:publisher"` | ||
RelatedTextResources []interface{} `json:"relatedtext:relatedtextresources"` | ||
Tags []interface{} `json:"nxtag:tags"` | ||
File string `json:"file"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type TipoDocumentoCrud struct { | ||
Id int | ||
ClaseParametro string | ||
ValorParametro string | ||
DescripcionParametro string | ||
Abreviatura string | ||
} | ||
|
||
type Perfil struct { | ||
Id int | ||
ClaseParametro string | ||
ValorParametro string | ||
DescripcionParametro string | ||
Abreviatura string | ||
} | ||
|
||
type Persona struct { | ||
TipoDocumento TipoDocumentoCrud | ||
Id string | ||
DigitoVerificacion int | ||
PrimerApellido string | ||
SegundoApellido string | ||
PrimerNombre string | ||
SegundoNombre string | ||
Cargo string | ||
IdPaisNacimiento int | ||
Perfil Perfil | ||
Profesion string | ||
Especialidad string | ||
MontoCapitalAutorizado int | ||
Genero string | ||
GrupoEtnico string | ||
ComunidadLgbt bool | ||
CabezaFamilia bool | ||
PersonasACargo bool | ||
NumeroPersonasACargo int | ||
EstadoCivil string | ||
Discapacitado bool | ||
TipoDiscapacidad string | ||
DeclaranteRenta bool | ||
MedicinaPrepagada bool | ||
ValorUvtPrepagada int | ||
CuentaAhorroAfc bool | ||
NumCuentaBancariaAfc string | ||
IdEntidadBancariaAfc int | ||
InteresViviendaAfc int | ||
DependienteHijoMenorEdad bool | ||
DependienteHijoMenos23Estudiando bool | ||
DependienteHijoMas23Discapacitado bool | ||
DependienteConyuge bool | ||
DependientePadreOHermano bool | ||
IdNucleoBasico int | ||
IdArl int | ||
IdEps int | ||
IdFondoPension int | ||
IdCajaCompensacion int | ||
FechaExpedicionDocumento time.Time | ||
IdCiudadExpedicionDocumento int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package models | ||
|
||
type PeticionFirmaElectronica struct { | ||
PersonaId string `json:"PersonaId"` | ||
AsignacionId int `json:"AsignacionId"` | ||
} | ||
|
||
type Firmante struct { | ||
Cargo string `json:"cargo"` | ||
Identificacion string `json:"identificacion"` | ||
Nombre string `json:"nombre"` | ||
TipoId string `json:"tipoId"` | ||
} | ||
type Metadatos map[string]interface{} | ||
|
||
type PeticionFirmaElectronicaCrud struct { | ||
Descripcion string `json:"descripcion"` | ||
File string `json:"file"` | ||
Firmantes []Firmante `json:"firmantes"` | ||
EtapaFirma int `json:"etapa_firma"` | ||
IdTipoDocumento int `json:"IdTipoDocumento"` | ||
Metadatos Metadatos `json:"metadatos"` | ||
Nombre string `json:"nombre"` | ||
Representantes []Firmante `json:"representantes"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package models | ||
|
||
type CuerpoFimaElectronica struct { | ||
Id int `json:"Id"` | ||
Nombre string `json:"Nombre"` | ||
Descripcion string `json:"Descripcion"` | ||
Enlace string `json:"Enlace"` | ||
TipoDocumento TipoDocumento `json:"TipoDocumento"` | ||
Metadatos interface{} `json:"Metadatos"` | ||
Activo bool `json:"Activo"` | ||
} | ||
|
||
type RespuestaFirmaElectronica struct { | ||
Status string `json:"Status"` | ||
Res CuerpoFimaElectronica `json:"res"` | ||
} |