Fix stupid ai bug
Some checks failed
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build failed

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-29 00:58:28 +08:00
parent 79dfa8499c
commit 330b037dca
14 changed files with 59 additions and 103 deletions

View File

@@ -16,7 +16,9 @@ import (
// @Accept json
// @Produce json
// @Param event_id query string true "Event UUID"
// @Success 200 {object} service_event.CheckinResult
// @Success 200 {object} utils.RespStatus{data=service_event.CheckinResult} "Successfully generated code"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error"
// @Router /event/checkin [get]
func (self *EventHandler) Checkin(c *gin.Context) {
userIdOrig, _ := c.Get("user_id")
@@ -52,7 +54,8 @@ func (self *EventHandler) Checkin(c *gin.Context) {
// @Accept json
// @Produce json
// @Param payload body service_event.CheckinSubmitData true "Checkin Code Data"
// @Success 200 {object} service_event.CheckinSubmitResult
// @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input"
// @Router /event/checkin/submit [post]
func (self *EventHandler) CheckinSubmit(c *gin.Context) {
var data service_event.CheckinSubmitData
@@ -83,7 +86,9 @@ func (self *EventHandler) CheckinSubmit(c *gin.Context) {
// @Accept json
// @Produce json
// @Param event_id query string true "Event UUID"
// @Success 200 {object} service_event.CheckinQueryResult
// @Success 200 {object} utils.RespStatus{data=service_event.CheckinQueryResult} "Current attendance status"
// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input"
// @Failure 404 {object} utils.RespStatus{data=nil} "Record Not Found"
// @Router /event/checkin/query [get]
func (self *EventHandler) CheckinQuery(c *gin.Context) {
userIdOrig, _ := c.Get("user_id")