Version:0.0.3.dev.260203

feat:  新增任务队列任务获取与创建接口
- 编写获取任务队列中任务的接口
- 编写新增任务接口
- 完成相关测试并验证通过 
This commit is contained in:
LoveLosita
2026-02-03 20:27:36 +08:00
parent 5038ec2fc5
commit a59bcfbc5e
10 changed files with 272 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ func (api *UserHandler) UserRegister(c *gin.Context) {
}
}
c.JSON(http.StatusOK, respond.OKWithData(respond.Ok, retUser))
c.JSON(http.StatusOK, respond.RespWithData(respond.Ok, retUser))
}
func (api *UserHandler) UserLogin(c *gin.Context) {
@@ -68,7 +68,7 @@ func (api *UserHandler) UserLogin(c *gin.Context) {
return
}
}
c.JSON(http.StatusOK, respond.OKWithData(respond.Ok, tokens))
c.JSON(http.StatusOK, respond.RespWithData(respond.Ok, tokens))
}
func (api *UserHandler) RefreshTokenHandler(c *gin.Context) {
@@ -93,7 +93,7 @@ func (api *UserHandler) RefreshTokenHandler(c *gin.Context) {
c.JSON(http.StatusInternalServerError, respond.InternalError(err))
}
}
c.JSON(http.StatusOK, respond.OKWithData(respond.Ok, tokens))
c.JSON(http.StatusOK, respond.RespWithData(respond.Ok, tokens))
}
func (api *UserHandler) UserLogout(c *gin.Context) {