|
|
@@ -922,10 +922,6 @@ func QueryUserLoginInfo(ctx *context.Context) { |
|
|
|
|
|
|
|
func QueryUserAnnualReport(ctx *context.Context) { |
|
|
|
log.Info("start to QueryUserAnnualReport ") |
|
|
|
if ctx.User == nil { |
|
|
|
ctx.JSON(http.StatusOK, nil) |
|
|
|
} else { |
|
|
|
result := models.QueryUserAnnualReport(ctx.User.ID) |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
} |
|
|
|
result := models.QueryUserAnnualReport(ctx.User.ID) |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
} |