mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 实现数据库备份和恢复并发调度 (#84)
This commit is contained in:
@@ -62,7 +62,7 @@ func (m *roleRepoImpl) GetRoleResources(roleId uint64, toEntity any) {
|
||||
}
|
||||
|
||||
func (m *roleRepoImpl) SaveRoleResource(rr []*entity.RoleResource) {
|
||||
gormx.BatchInsert(rr)
|
||||
gormx.BatchInsert[*entity.RoleResource](rr)
|
||||
}
|
||||
|
||||
func (m *roleRepoImpl) DeleteRoleResource(roleId uint64, resourceId uint64) {
|
||||
|
||||
Reference in New Issue
Block a user