package quicksearchmod import ( "time" "go.mongodb.org/mongo-driver/bson/primitive" ) // QuickSearchInfo 移动端返回内容 type QuickSearchInfo struct { ID primitive.ObjectID `json:"id"` // 配置ID Enabled bool `json:"enabled"` // 是否开启 Title string `json:"title"` // 展示标题 SearchKeyword string `json:"searchKeyword"` // 搜索关键字 Link string `json:"link"` // 跳转链接 Type int `json:"type"` // 配置类型 1:置顶,2:大家都在搜 CreatedAt time.Time `json:"createdAt"` // 创建时间 UpdatedAt time.Time `json:"updatedAt"` // 更新时间 } // AppQuickSearchBaseInfo 移动端返回内容 type AppQuickSearchBaseInfo struct { ID primitive.ObjectID `json:"id"` // 配置ID Title string `json:"title"` // 展示标题 SearchKeyword string `json:"searchKeyword"` // 搜索关键字 Link string `json:"link"` // 跳转链接 LinkType int `json:"linkType" bson:"linkType"` // 跳转链接类型 Type int `json:"type"` // 配置类型 1:置顶,2:大家都在搜 UserID uint64 `json:"userID" bson:"userID"` // 发表评论的 用户ID UserName string `json:"userName" bson:"userName"` // 发表评论的 用户昵称 UserPortrait string `json:"userPortrait" bson:"userPortrait" ` // 头像 URL Gender int `json:"gender" bson:"gender"` // 性别 VipLevel int `json:"vipLevel" bson:"vipLevel"` // VIP等级 VipExpireDate time.Time `json:"vipExpireDate" bson:"vipExpireDate"` // VIP到期时间 CreatedAt time.Time `json:"createdAt" bson:"createdAt"` // 创建时间 }