Files
landing_page/backend/internal/models/publications.go
T
Godopu fb6881070c feat(backend,docker,docs): implement Go/Gin/SQLite REST API server, Docker containerization, and architecture specifications
- 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
2026-08-24 17:34:51 +09:00

31 lines
1.0 KiB
Go

package models
import "time"
type Publication struct {
ID int `json:"id"`
Category string `json:"category"`
Title string `json:"title"`
Authors *string `json:"authors,omitempty"`
Venue string `json:"venue"`
Volume *string `json:"volume,omitempty"`
PublishedAt string `json:"published_at"`
KCI bool `json:"kci"`
DOI *string `json:"doi,omitempty"`
IsHighlight bool `json:"is_highlight"`
CreatedAt time.Time `json:"created_at"`
}
type Patent struct {
ID int `json:"id"`
Title string `json:"title"`
Inventors string `json:"inventors"`
ApplicationNo string `json:"application_no"`
ApplicationAt string `json:"application_at"`
RegistrationNo *string `json:"registration_no,omitempty"`
RegistrationAt *string `json:"registration_at,omitempty"`
Country string `json:"country"`
PublishedAt string `json:"published_at"`
CreatedAt time.Time `json:"created_at"`
}