- Implement standalone Go backend API server using Gin and pure-Go SQLite (modernc.org/sqlite) - Add 11-table schema DDL migrations (000001_init.up.sql) based on DATA_TABLE.md - Add seed data ingestion tool (cmd/seed) and static TypeScript content exporter (cmd/export-content) - Add configuration loader (internal/config) supporting environment variables and .env files (HOST, PORT, DB_PATH, GIN_MODE, CORS_ALLOW_ORIGINS, AUTO_MIGRATE) - Add lightweight multi-stage Dockerfile and docker-compose.yml with persistent SQLite volume - Add comprehensive architecture specification (ARCHITECTURE.md) and REST API interface specification (API_INTERFACE.md) - Harmonize frontend publications page to consume isHighlight flag from database-synced content
31 lines
937 B
Go
31 lines
937 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type ResearchProject struct {
|
|
ID int `json:"id"`
|
|
Slug string `json:"slug"`
|
|
Title string `json:"title"`
|
|
Abstract string `json:"abstract"`
|
|
Keywords []string `json:"keywords"`
|
|
Organization *string `json:"organization,omitempty"`
|
|
StandardsOrg *string `json:"standards_org,omitempty"`
|
|
Period *string `json:"period,omitempty"`
|
|
Funder *string `json:"funder,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type ResearchArea struct {
|
|
ID int `json:"id"`
|
|
NameEn string `json:"name_en"`
|
|
NameKr *string `json:"name_kr,omitempty"`
|
|
DisplayOrder int `json:"display_order"`
|
|
}
|
|
|
|
type StatsSummary struct {
|
|
IntlPublications int `json:"intl_publications"`
|
|
StandardizationDocs int `json:"standardization_docs"`
|
|
Patents int `json:"patents"`
|
|
}
|