feat: 导航页SEO/GEO优化 + 手机端完全适配 + App候选码 + 业务系统板块
- SEO: 添加meta description/keywords/Open Graph/结构化数据/地理信息 - GEO: 添加geo.region/geo.position/ICBM等地理标记 - 手机端完全重写响应式: 咨询表单/导航卡片/hero区/标签全部适配 - 新增App候选码板块: 后台管理+导航页动态展示(支持录屏视频/下载链接) - 新增业务系统板块: 进销存/OA/财务/工单等,支持按年/按月/定制定价 - 后台新增App候选码管理页面(增删改查+上下架) - 后台新增业务系统管理页面(增删改查+上下架) - 导航页设置新增新板块标题配置 - 公开API: GET /api/v1/showcase/apps + /api/v1/showcase/systems
This commit is contained in:
49
internal/model/showcase.go
Normal file
49
internal/model/showcase.go
Normal file
@@ -0,0 +1,49 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user