🆕 新增清理不活跃成员功能

This commit is contained in:
李寻欢
2024-05-15 17:19:32 +08:00
parent 4cc50718e2
commit 9c7e93660d
9 changed files with 122 additions and 1 deletions

View File

@@ -77,6 +77,15 @@ func GetAllEnableNews() (records []entity.Friend, err error) {
return
}
// GetAllEnableClearGroup
// @description: 获取所有需要清理成员的群组
// @return records
// @return err
func GetAllEnableClearGroup() (records []entity.Friend, err error) {
err = client.MySQL.Where("clear_members != 0").Where("is_ok IS TRUE").Find(&records).Error
return
}
// CheckIsEnableCommand
// @description: 检查用户是否启用了指令
// @param userId