Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodrigo Rodrigues rodrigorodriguescosta

View GitHub Profile
View requests.go
package utils
import (
"bytes"
"encoding/json"
"fmt"
"github.com/sirupsen/logrus"
"io"
"io/ioutil"
"net/http"
View pedido.html
<!doctype html>
<html lang=pt-br>
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<title>PEDIDO</title>
<style> .coluna {
padding: 3px;
}
.coluna .caption {
View teste.go
package main
import (
"encoding/json"
"fmt"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"io/ioutil"
)
View teste.json
{
"id": "1wM5Ftk2GlWl8dr148IIkQX0j2M",
"obs": "TESTE DE OBSERVACAO DE NFE, TESTANDO MUITOS CATECRES VALIDOSFFF",
"tipo": "nfe",
"chave": "24210819843657000149550010000002241271318611",
"serie": 1,
"total": 5561.92,
"numero": 224,
"pessoa": {
"nome": "RODRIGO RODRIGUES DA COSTA",
View nfe.json
{
"id": "1wgSClZh60Sffmwlxzt0y53MCfl",
"tipo": "nfe",
"chave": "24210819843657000149550010000003521984980930",
"serie": 1,
"total": 181.94,
"numero": 352,
"pessoa": {
"id": "1wLtlpGBiVHcX7p2lT2C9srX1xd",
"nome": "FERNANDA CARBAL DE ANDRADE",
View request.go
package utils
import (
"bytes"
"comps/errors"
"encoding/json"
"fmt"
"github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
View ContaReceber.vue
<template>
<f-crud-form
v-if="service"
v-on="$listeners"
:schema="service"
:styleCell="styleCell"
:formValidation="formValidationConta"
@mode="mode = $event"
@newRecord="newRecord"
ref="formConta"
View somente_bloco_de_assiantura.xml
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="#NFe24200919843657000149550010000007351745980290">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
View xml_com_asinatura.xml
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe versao="4.00" Id="NFe24200919843657000149550010000007351745980290">
<ide>
<cUF>24</cUF>
<cNF>74598029</cNF>
<natOp>VENDA</natOp>
<mod>55</mod>
<serie>1</serie>
<nNF>735</nNF>
<dhEmi>2020-09-29T09:16:24-03:00</dhEmi>
View xml_sem_assinatura.xml
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe versao="4.00" Id="NFe24200919843657000149550010000007351745980290">
<ide>
<cUF>24</cUF>
<cNF>74598029</cNF>
<natOp>VENDA</natOp>
<mod>55</mod>
<serie>1</serie>
<nNF>735</nNF>
<dhEmi>2020-09-29T09:16:24-03:00</dhEmi>