(status int64)
| 703 | } |
| 704 | |
| 705 | func DeleteChannelByStatus(status int64) (int64, error) { |
| 706 | result := DB.Where("status = ?", status).Delete(&Channel{}) |
| 707 | return result.RowsAffected, result.Error |
| 708 | } |
| 709 | |
| 710 | func DeleteDisabledChannel() (int64, error) { |
| 711 | result := DB.Where("status = ? or status = ?", common.ChannelStatusAutoDisabled, common.ChannelStatusManuallyDisabled).Delete(&Channel{}) |