package model import "time" // Company 企业信息模型(3 套企业官网共用同一套数据) type Company struct { ID uint `gorm:"primaryKey" json:"id"` Name string `gorm:"size:100;not null" json:"name"` Logo string `gorm:"size:255" json:"logo"` Slogan string `gorm:"size:255" json:"slogan"` Description string `gorm:"type:text" json:"description"` // 关于我们 Vision string `gorm:"type:text" json:"vision"` // 愿景 Mission string `gorm:"type:text" json:"mission"` // 使命 Phone string `gorm:"size:30" json:"phone"` Email string `gorm:"size:100" json:"email"` Address string `gorm:"size:255" json:"address"` Website string `gorm:"size:255" json:"website"` FoundedYear int `json:"founded_year"` EmployeeCount string `gorm:"size:50" json:"employee_count"` Stats string `gorm:"type:text" json:"stats"` // JSON: 统计数据 CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // EnterpriseNews 企业新闻 type EnterpriseNews struct { ID uint `gorm:"primaryKey" json:"id"` Title string `gorm:"size:200;not null" json:"title"` Summary string `gorm:"size:500" json:"summary"` Content string `gorm:"type:text" json:"content"` Image string `gorm:"size:255" json:"image"` Category string `gorm:"size:50;index" json:"category"` // company/industry/product Author string `gorm:"size:50" json:"author"` Status int `gorm:"default:1;not null" json:"status"` // 1=已发布 CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // EnterpriseService 企业服务/产品 type EnterpriseService struct { ID uint `gorm:"primaryKey" json:"id"` Title string `gorm:"size:100;not null" json:"title"` Description string `gorm:"type:text" json:"description"` Icon string `gorm:"size:50" json:"icon"` // 图标标识 Image string `gorm:"size:255" json:"image"` // 图片URL Features string `gorm:"type:text" json:"features"` // JSON: 特性列表 Sort int `gorm:"default:0" json:"sort"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // TeamMember 团队成员 type TeamMember struct { ID uint `gorm:"primaryKey" json:"id"` Name string `gorm:"size:50;not null" json:"name"` Position string `gorm:"size:100" json:"position"` Avatar string `gorm:"size:255" json:"avatar"` Bio string `gorm:"type:text" json:"bio"` Sort int `gorm:"default:0" json:"sort"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }