Files
web_hgtv_server/app/api/proto/config.go
T
rootandClaude Opus 5.5 7974a42301 Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 11:07:42 +08:00

126 lines
7.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package proto
type ConfigInfo struct {
PdfAddr string `json:"pdfAddr" bson:"pdfAddr"` // 回家的路PDF
NewUrlAddr string `json:"newUrlAddr" bson:"newUrlAddr"` //最新地址
NewUrlAddr1 string `json:"newUrlAddr1" bson:"newUrlAddr1"` //最新地址(备用地址1)
NewUrlAddr2 string `json:"newUrlAddr2" bson:"newUrlAddr2"` //最新地址(备用地址2)
ForeverUrlAddr string `json:"foreverUrlAddr" bson:"foreverUrlAddr"` //永久地址
GmailAddr string `json:"gmailAddr" bson:"gmailAddr"` //邮箱地址
AppAddr string `json:"appAddr" bson:"appAddr"` //APP下载地址(落地页)
OfficialAppAddr string `json:"officialAppAddr" bson:"officialAppAddr"` //官网app地址
WeiChart string `json:"weiChart" bson:"weiChart"` //微信群
QQ string `json:"qq" bson:"qq"` //qq群
TgGroup string `json:"tgGroup" bson:"tgGroup"` //tg群
PotaoGroup string `json:"potaoGroup" bson:"potaoGroup"` //土豆群
GitAddr string `json:"gitAddr" bson:"gitAddr"` //git地址
TwitterAddr string `json:"twitterAddr" bson:"twitterAddr"` //推特地址
Telegram string `json:"telegram" bson:"telegram"` //商务tg
TelegramAdd string `json:"telegramAdd" bson:"telegramAdd"` //加入我们tg
TranslationAddr string `json:"translationAddr" bson:"translationAddr"` //应用导航
ImgCdn string `json:"imgCdn" bson:"imgCdn"` // 图片CDN
TsCdn string `json:"tsCdn" bson:"tsCdn"` // 视频CDN
ImgAppUsCdn string `json:"imgAppUsCdn" bson:"imgAppUsCdn"` // 图片CDN(海外app使用)
MediaAppUsCdn string `json:"mediaAppUsCdn" bson:"mediaAppUsCdn"` // 视频CDN(海外app使用)
WebTitle string `json:"webTitle" bson:"webTitle"` // 网站SEO标题
WebKeyworld []string `json:"webKeyworld" bson:"webKeyworld"` // 网站SEO关键字
WebDescription string `json:"webDescription" bson:"webDescription"` // 网站SEO描述
WebSiteName string `json:"webSiteName" bson:"webSiteName"` // 网站SEO网站名称
WebAddr string `json:"webAddr" bson:"webAddr"` // 网站SEO网站地址
DHNewUrlAddr1 string `json:"dhNewUrlAddr1" bson:"dhNewUrlAddr1"` // 导航页-线路1
DHNewUrlAddr2 string `json:"dhNewUrlAddr2" bson:"dhNewUrlAddr2"` // 导航页-线路2
DHNewUrlAddr3 string `json:"dhNewUrlAddr3" bson:"dhNewUrlAddr3"` // 导航页-线路3
FreeVPN string `json:"freeVPN" bson:"freeVPN"` // 免费vpn链接
UseIngAddress []string `json:"useIngAddress" bson:"useIngAddress"` // 所有使用中的域名
AdvitiesTopicNum int64 `json:"advitiesTopicNum" bson:"advitiesTopicNum"` // 广告间隔
DHTitle string `json:"dhTitle" bson:"dhTitle"` // 导航SEO标题
DHKeyworld []string `json:"dhKeyworld" bson:"dhKeyworld"` // 导航SEO关键字
DHDescription string `json:"dhDescription" bson:"dhDescription"` // 导航SEO描述
DHSiteName string `json:"dhSiteName" bson:"dhSiteName"` // 导航SEO网站名称
ActressBackGround string `json:"actressBackGround" bson:"actressBackGround"` // 女优通用背景图
ReportSDKConfig string `json:"reportSdkConfig"` // 数据上报SDK域名配置
WatermarkImage string `json:"watermarkImage"` // 图片水印文件
CustomerServiceHost string `json:"customerServiceHost"` // 在线客服
ChannelCode string `json:"channelCode"` // 渠道码
EnableH265 bool `json:"enableH265"` // 是否允许客户端使用 H265 地址播放
}
type AdvitiseInfo struct {
Id int64 `json:"id" bson:"_id"` // 广告id
Title string `json:"title" bson:"title"` // 广告标题
Images string `json:"images" bson:"images"` // 视频banner
Link string `json:"link" bson:"link"` // 链接
}
// ConfigInfoResp APP配置响应
type ConfigInfoResp struct {
// 最新地址信息
NewAddressInfo NewAddressInfo `json:"newAddressInfo"`
// 完整系统配置(与首页等接口的 config 一致,含 potaoGroup 等其余字段)
Config ConfigInfo `json:"config"`
// 广告配置
Advitise AdvitiseData `json:"advitise"`
// 全站SEO信息
SeoInfo SeoInfo `json:"seoInfo"`
// 导航SEO信息
SeoNavInfo SeoNavInfo `json:"seoNavInfo"`
// 导航页线路集合
NavPageList []NavPageItem `json:"navPageList"`
// 数据上报SDK域名配置
ReportSDKConfig string `json:"reportSdkConfig"`
}
// SeoNavInfo 导航SEO信息
type SeoNavInfo struct {
DHTitle string `json:"dhTitle"` // 导航标题
DHKeyworld []string `json:"dhKeyworld"` // 关键词
DHDescription string `json:"dhDescription"` // 导航描述
DHSiteName string `json:"dhSiteName"` // 导航名称
}
// NavPageItem 导航页线路
type NavPageItem struct {
Line int64 `json:"line"` // 线路序号
Url string `json:"url"` // 线路地址
}
// FooterInfoResp APP底部信息响应
type FooterInfoResp struct {
FooterInfo FooterInfo `json:"footerInfo"` // 底部信息
}
// FooterInfo APP底部信息
type FooterInfo struct {
Brand FooterBrand `json:"brand"` // 品牌信息
NavList []TranslationCategory `json:"navList"` // 底部导航
ContactList []FooterContact `json:"contactList"` // 联系方式
}
// FooterBrand APP底部品牌信息
type FooterBrand struct {
Title string `json:"title"` // 品牌标题
Content string `json:"content"` // 品牌标语
}
// FooterContact APP底部联系方式
type FooterContact struct {
Name string `json:"name"` // 联系方式名称
Value string `json:"value"` // 联系方式值
}
// NewAddressInfo 最新地址
type NewAddressInfo struct {
NewUrlAddr string `json:"newUrlAddr"` // 新国内地址
NewUrlAddr1 string `json:"newUrlAddr1"` // 备用地址1
NewUrlAddr2 string `json:"newUrlAddr2"` // 备用地址1
ForeverUrlAddr string `json:"foreverUrlAddr"` // 永久海外地址(翻墙访问 永不迷路)
GmailAddr string `json:"gmailAddr"` // 邮箱地址
TgGroup string `json:"tgGroup"` // tg群
Telegram string `json:"telegram" bson:"telegram"` // 商务tg
CustomerServiceHost string `json:"customerServiceHost"` // 在线客服
TwitterAddr string `json:"twitterAddr"` // 推特地址
PdfAddr string `json:"pdfAddr"` // 回家的路PDF
AppAddr string `json:"appAddr"` // APP下载地址(落地页)
OfficialAppAddr string `json:"officialAppAddr"` // 官网app地址
}