Files
honoka-chan/internal/handler/ghome/misc/integration.go
T
2026-07-13 08:03:15 +08:00

30 lines
511 B
Go

package misc
import (
"honoka-chan/internal/router"
ghomeschema "honoka-chan/internal/schema/ghome"
"honoka-chan/internal/session"
"github.com/gin-gonic/gin"
)
func appReport(ctx *gin.Context) {
ss := session.Attach(ctx)
if ss.Done() {
return
}
defer ss.FinalizeOrRollback()
ss.Respond(ghomeschema.AppReportResp{
Code: 0,
Msg: "",
Data: ghomeschema.AppReportData{
NeedReport: 0,
},
})
}
func init() {
router.AddHandler("/", "GET", "/integration/appReport/initialize", appReport)
}