add batch delete log #57

This commit is contained in:
ljw
2024-11-12 09:08:10 +08:00
parent 7862a34760
commit aced098982
11 changed files with 1064 additions and 26 deletions
+4
View File
@@ -43,3 +43,7 @@ func (us *LoginLogService) Delete(u *model.LoginLog) error {
func (us *LoginLogService) Update(u *model.LoginLog) error {
return global.DB.Model(u).Updates(u).Error
}
func (us *LoginLogService) BatchDelete(ids []uint) error {
return global.DB.Where("id in (?)", ids).Delete(&model.LoginLog{}).Error
}