|
|
|
@@ -16,17 +16,6 @@ import ( |
|
|
|
"github.com/360EntSecGroup-Skylar/excelize/v2" |
|
|
|
) |
|
|
|
|
|
|
|
func QueryUserStaticData(ctx *context.Context) { |
|
|
|
startDate := ctx.Query("startDate") |
|
|
|
endDate := ctx.Query("endDate") |
|
|
|
log.Info("startDate=" + startDate + " endDate=" + endDate) |
|
|
|
startTime, _ := time.Parse("2006-01-02", startDate) |
|
|
|
endTime, _ := time.Parse("2006-01-02", endDate) |
|
|
|
endTime = endTime.AddDate(0, 0, 1) |
|
|
|
log.Info("startTime=" + fmt.Sprint(startTime.Unix()) + " endDate=" + fmt.Sprint(endTime.Unix())) |
|
|
|
ctx.JSON(http.StatusOK, models.QueryUserStaticData(startTime.Unix(), endTime.Unix())) |
|
|
|
} |
|
|
|
|
|
|
|
func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
|
startDate := ctx.Query("startDate") |
|
|
|
endDate := ctx.Query("endDate") |
|
|
|
|