Files
nl-blogs/server/models/about.go
2026-01-15 15:37:34 +08:00

29 lines
945 B
Go

package models
import (
"time"
)
type Experience struct {
Year string `json:"year"`
Role string `json:"role"`
Company string `json:"company"`
}
type AboutProfile struct {
ID uint `json:"id"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Location string `json:"location"`
Bio string `json:"bio"`
Email string `json:"email"`
Wechat string `json:"wechat"`
TechStack string `json:"-"` // Stored as string in DB
TechList []string `json:"techStack"` // Exposed as array in JSON
ExperiencesStr string `json:"-"` // Stored as string in DB
ExperienceList []Experience `json:"experiences"` // Exposed as array in JSON
IsPrimary bool `json:"isPrimary"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}