statics file change

This commit is contained in:
2025-06-16 16:17:18 +08:00
parent 90d1ef301d
commit a8bc73ae99
800 changed files with 105 additions and 4877 deletions

View File

@@ -119,12 +119,8 @@ func (s *departmentService) List(ctx context.Context, q dto.SearchDto) ([]*syste
}
func (s *departmentService) RefreshCache(ctx context.Context) error {
var res []*system.Department
key := know.GetManageKey(ctx, know.AllDepartments)
err := util.GetOrSetCache(ctx, s.Redis, key, util.GetCacheExpire(), func() (any, error) {
return s.All(ctx)
}, &res)
return err
return s.Redis.Del(ctx, key)
}
func (s *departmentService) RebuildParentPath(ctx context.Context) error {