feat(checkin): add check-in functionality with status retrieval and user quota rewards

This commit is contained in:
CaIon
2026-01-02 23:00:33 +08:00
parent a195e88896
commit 8abfbe372f
16 changed files with 970 additions and 48 deletions

View File

@@ -93,6 +93,10 @@ func SetApiRouter(router *gin.Engine) {
selfRoute.POST("/2fa/enable", controller.Enable2FA)
selfRoute.POST("/2fa/disable", controller.Disable2FA)
selfRoute.POST("/2fa/backup_codes", controller.RegenerateBackupCodes)
// Check-in routes
selfRoute.GET("/checkin", controller.GetCheckinStatus)
selfRoute.POST("/checkin", controller.DoCheckin)
}
adminRoute := userRoute.Group("/")