🆕 新增清理不活跃成员功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user