package handler
import (
"honoka-chan/internal/model"
"honoka-chan/internal/session"
"html/template"
"net/http"
"time"
"github.com/gin-gonic/gin"
)
func AnnounceIndex(ctx *gin.Context) {
ctx.HTML(http.StatusOK, "common/announce.html", gin.H{
"title": "Love Live! 学园偶像祭 本地服务器",
"content": template.HTML(`目前开发完毕的功能包括:
- 登录
- 相册
- 编队
- 饰品
- 宝石
- Live
- 个人信息设置
- 官方漫画
其他功能仍在开发中,有报错属于正常现象。
侵权联系:梦路_YumeMichi @bilibili 进行删除。`),
})
}
func AnnounceCheckState(ctx *gin.Context) {
ss := session.New(ctx)
defer ss.Finalize()
resp := model.AnnounceResp{
ResponseData: model.AnnounceRes{
HasUnreadAnnounce: false,
ServerTimestamp: time.Now().Unix(),
},
ReleaseInfo: []any{},
StatusCode: 200,
}
ss.Respond(resp)
}