Features: - React 18 + TypeScript frontend with Vite - Go + Gin backend API - PostgreSQL database - JWT authentication with refresh tokens - User management (admin panel) - Docker containerization - Progress tracking system - 4 economic modules structure Fixed: - Login with username or email - User creation without required email - Database nullable timestamps - API response field naming
24 lines
628 B
Go
24 lines
628 B
Go
package models
|
|
|
|
type Modulo struct {
|
|
Numero int `json:"numero"`
|
|
Titulo string `json:"titulo"`
|
|
Descripcion string `json:"descripcion"`
|
|
Ejercicios []Ejercicio `json:"ejercicios"`
|
|
}
|
|
|
|
type Ejercicio struct {
|
|
ID int `json:"id"`
|
|
Numero int `json:"numero"`
|
|
Titulo string `json:"titulo"`
|
|
Tipo string `json:"tipo"`
|
|
Contenido map[string]interface{} `json:"contenido"`
|
|
Orden int `json:"orden"`
|
|
}
|
|
|
|
type ModuloResumen struct {
|
|
Numero int `json:"numero"`
|
|
Titulo string `json:"titulo"`
|
|
Descripcion string `json:"descripcion"`
|
|
}
|