增加定时任务 处理异常
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user