增加定时任务 处理异常

This commit is contained in:
2024-08-30 11:55:19 +08:00
parent aa3f9e8711
commit bfb284c4cc
30 changed files with 945 additions and 336 deletions

View File

@@ -2,6 +2,8 @@ package v1
import (
"energy-management-system/response"
"energy-management-system/utils"
"fmt"
"github.com/gin-gonic/gin"
)
@@ -13,6 +15,8 @@ func (r *TestApi) Test(c *gin.Context) {
}
func (r *TestApi) TestData(c *gin.Context) {
x, y, z, e := utils.GetMinutesFromTimeRange("00:00", "05:01")
fmt.Println(x, y, z, e)
response.SuccessData(gin.H{"userName": "iuu"}, c)
}