perf: 优化数据看板性能和显示效果

This commit is contained in:
CaIon
2024-01-08 18:49:10 +08:00
parent f3f8cdc4a3
commit 95e84f2bb1
3 changed files with 35 additions and 16 deletions

View File

@@ -10,7 +10,8 @@ import (
func GetAllQuotaDates(c *gin.Context) {
startTimestamp, _ := strconv.ParseInt(c.Query("start_timestamp"), 10, 64)
endTimestamp, _ := strconv.ParseInt(c.Query("end_timestamp"), 10, 64)
dates, err := model.GetAllQuotaDates(startTimestamp, endTimestamp)
username := c.Query("username")
dates, err := model.GetAllQuotaDates(startTimestamp, endTimestamp, username)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,