adicionado comentários
This commit is contained in:
parent
e8ca410b94
commit
e796b29e1d
8 changed files with 875 additions and 13 deletions
|
|
@ -88,13 +88,43 @@ type RespostaPainel struct {
|
|||
}
|
||||
|
||||
type PainelDados struct {
|
||||
Produto string
|
||||
Produtos []string
|
||||
Meses []NPSMensal
|
||||
Respostas []RespostaPainel
|
||||
Pagina int
|
||||
SomenteBaixas bool
|
||||
MsgErro string
|
||||
Produto string
|
||||
Produtos []string
|
||||
Meses []NPSMensal
|
||||
Respostas []RespostaPainel
|
||||
// Operador logado no painel (usado para auditoria de comentários/ações).
|
||||
Operador string
|
||||
// ID da sessão do painel (por login). Serve para permitir editar/deletar
|
||||
// comentários apenas na mesma sessão.
|
||||
SessaoID string
|
||||
// Status de análise por resposta_id.
|
||||
StatusAnalise map[string]StatusAnalisePainel
|
||||
// Comentários internos por resposta_id.
|
||||
Comentarios map[string][]ComentarioPainel
|
||||
Pagina int
|
||||
SomenteBaixas bool
|
||||
SomentePendentes bool
|
||||
MsgErro string
|
||||
}
|
||||
|
||||
// ------------------------------
|
||||
// Painel: comentários e status de análise
|
||||
// ------------------------------
|
||||
|
||||
type StatusAnalisePainel string
|
||||
|
||||
const (
|
||||
StatusAnalisePendente StatusAnalisePainel = "pendente"
|
||||
StatusAnaliseConcluida StatusAnalisePainel = "concluida"
|
||||
)
|
||||
|
||||
type ComentarioPainel struct {
|
||||
ID string
|
||||
PessoaNome string
|
||||
SessaoID string
|
||||
Comentario string
|
||||
CriadoEm time.Time
|
||||
AtualizadoEm time.Time
|
||||
}
|
||||
|
||||
type ListarRespostasFiltro struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue