初始化
This commit is contained in:
28
server/models/about.go
Normal file
28
server/models/about.go
Normal file
@@ -0,0 +1,28 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user