package model import "time" // AppShowcase App 候选码展示模型 type AppShowcase struct { ID uint `gorm:"primaryKey" json:"id"` Name string `gorm:"size:100;not null" json:"name"` // App 名称 Icon string `gorm:"size:255" json:"icon"` // 图标 URL Description string `gorm:"type:text" json:"description"` // 简介 Category string `gorm:"size:50" json:"category"` // 分类:工具/社交/教育/生活/娱乐 Platform string `gorm:"size:100" json:"platform"` // 平台:Android/iOS/跨平台 Version string `gorm:"size:50" json:"version"` // 版本 Size string `gorm:"size:50" json:"size"` // 包大小 Downloads int `gorm:"default:0" json:"downloads"` // 下载量 Rating float64 `gorm:"type:decimal(2,1);default:5.0" json:"rating"` // 评分 Screenshots string `gorm:"type:text" json:"screenshots"` // JSON: 截图 URL 数组 VideoUrl string `gorm:"size:500" json:"video_url"` // 录屏视频 URL DownloadUrl string `gorm:"size:500" json:"download_url"` // 下载链接 Tags string `gorm:"type:text" json:"tags"` // JSON: 标签 IsFeatured bool `gorm:"default:false" json:"is_featured"` // 精选推荐 Sort int `gorm:"default:0" json:"sort"` Status int `gorm:"default:1;not null" json:"status"` // 1=上架 0=下架 CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` } // BizSystem 业务系统模型 type BizSystem struct { ID uint `gorm:"primaryKey" json:"id"` Name string `gorm:"size:100;not null" json:"name"` // 系统名称 Icon string `gorm:"size:255" json:"icon"` // 图标 Logo string `gorm:"size:255" json:"logo"` // Logo 大图 Description string `gorm:"type:text" json:"description"` // 一句话介绍 Detail string `gorm:"type:text" json:"detail"` // 详细说明(富文本) Category string `gorm:"size:50" json:"category"` // 分类:进销存/OA/财务/工单/ERP/CRM/自定义 Features string `gorm:"type:text" json:"features"` // JSON: 核心功能列表 Screenshots string `gorm:"type:text" json:"screenshots"` // JSON: 系统截图 URL 数组 PriceType string `gorm:"size:50" json:"price_type"` // 价格类型:按年/按月/一次性/定制 Price string `gorm:"size:100" json:"price"` // 价格描述:如 "3000元/年" DemoUrl string `gorm:"size:500" json:"demo_url"` // 在线演示链接 ContactWay string `gorm:"size:50" json:"contact_way"` // 联系方式类型:微信/电话/表单 ContactInfo string `gorm:"size:200" json:"contact_info"` // 联系方式内容 IsFeatured bool `gorm:"default:false" json:"is_featured"` // 精选推荐 Sort int `gorm:"default:0" json:"sort"` Status int `gorm:"default:1;not null" json:"status"` // 1=上线 0=下线 CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }