diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index dd72fac4a..0cbcfba8f 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -2566,3 +2566,9 @@ func GetContentFromPromote(url string) (string, error) { allLineStr := string(bytes) return allLineStr, nil } + +func QueryLast30DaysHighestIndexUsers(size int) ([]int64, error) { + userIds := make([]int64, 0) + err := xStatistic.Table("user_business_analysis_last30_day").Cols("id").OrderBy("user_index desc").Limit(size).Find(&userIds) + return userIds, err +}