Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package questionnaireapi
|
||||
|
||||
import (
|
||||
"videoweb/app/api/proto"
|
||||
"videoweb/app/service/configser"
|
||||
"videoweb/app/service/searchser"
|
||||
"videoweb/app/service/translationser"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// Page 问卷调查页
|
||||
func Page(c *gin.Context) {
|
||||
hotSearch := searchser.GetHotSearchItem(c)
|
||||
data := proto.QuestionnaireHtmlData{
|
||||
Path: c.Request.URL.Path,
|
||||
Translation: translationser.GetTranslationData(),
|
||||
Config: configser.GetRequestConfig(c),
|
||||
Advitise: configser.GetAdvitise(),
|
||||
Announcement: configser.GetAnnouncement(),
|
||||
HotSearch: hotSearch,
|
||||
}
|
||||
configser.RewriteImageCdn(c, &data)
|
||||
c.HTML(200, "questionnaire", gin.H{
|
||||
"data": data,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user