support push choice

This commit is contained in:
akrike
2025-02-05 13:46:16 +08:00
parent 4fa227ee82
commit 06cda6821a
3 changed files with 9 additions and 3 deletions

View File

@@ -31,3 +31,8 @@ func (p *pushRepository) DeletePushConfig(id int) error {
Id: int64(id),
}).Error
}
func (p *pushRepository) GetPushConfigByIds(ids []int) (result []model.Push) {
db.Model(&model.Push{}).Where("id in ?", ids).Find(&result)
return
}