🆕 新增热榜功能

This commit is contained in:
李寻欢
2024-07-15 14:14:24 +08:00
parent 24ddb1befe
commit 3c92f83745
15 changed files with 283 additions and 5 deletions

View File

@@ -88,6 +88,15 @@ func GetAllEnableNews() (records []entity.Friend, err error) {
return
}
// GetAllEnableHotTop
// @description: 获取所有启用了热搜排行榜的好友或群组
// @return records
// @return err
func GetAllEnableHotTop() (records []entity.Friend, err error) {
err = client.MySQL.Where("enable_hot_top = ?", 1).Where("is_ok IS TRUE").Find(&records).Error
return
}
// GetAllEnableClearGroup
// @description: 获取所有需要清理成员的群组
// @return records