fix: update app key
This commit is contained in:
@@ -121,3 +121,20 @@ func (endpoint *FormulaEndpoint) AIEnhanceRecognition(c *gin.Context) {
|
||||
|
||||
c.JSON(http.StatusOK, common.SuccessResponse(c, nil))
|
||||
}
|
||||
|
||||
func (endpoint *FormulaEndpoint) TestProcessMathpixTask(c *gin.Context) {
|
||||
postData := make(map[string]int)
|
||||
if err := c.BindJSON(&postData); err != nil {
|
||||
c.JSON(http.StatusOK, common.ErrorResponse(c, common.CodeParamError, "Invalid parameters"))
|
||||
return
|
||||
}
|
||||
|
||||
taskID := postData["task_id"]
|
||||
err := endpoint.recognitionService.TestProcessMathpixTask(c, int64(taskID))
|
||||
if err != nil {
|
||||
c.JSON(http.StatusOK, common.ErrorResponse(c, common.CodeSystemError, err.Error()))
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, common.SuccessResponse(c, nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user