fix: correct .gitignore to not ignore source db directory
This commit is contained in:
+3
-2
@@ -64,8 +64,9 @@ Thumbs.db
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Application specific
|
# Application specific
|
||||||
db/
|
# Database files (local development databases)
|
||||||
logs/
|
/db/
|
||||||
|
/logs/
|
||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
File diff suppressed because it is too large
Load Diff
+8
-1
@@ -4,6 +4,9 @@ import cn.novalon.manage.sys.infrastructure.db.entity.OperationLogEntity;
|
|||||||
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
|
import reactor.core.publisher.Mono;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface OperationLogDao extends R2dbcRepository<OperationLogEntity, Long> {
|
public interface OperationLogDao extends R2dbcRepository<OperationLogEntity, Long> {
|
||||||
@@ -11,4 +14,8 @@ public interface OperationLogDao extends R2dbcRepository<OperationLogEntity, Lon
|
|||||||
Flux<OperationLogEntity> findByUsernameAndDeletedAtIsNull(String username);
|
Flux<OperationLogEntity> findByUsernameAndDeletedAtIsNull(String username);
|
||||||
|
|
||||||
Flux<OperationLogEntity> findByDeletedAtIsNull();
|
Flux<OperationLogEntity> findByDeletedAtIsNull();
|
||||||
}
|
|
||||||
|
Mono<Long> countByDeletedAtIsNull();
|
||||||
|
|
||||||
|
Mono<Long> countByCreatedAtAfterAndDeletedAtIsNull(LocalDateTime dateTime);
|
||||||
|
}
|
||||||
+2
@@ -25,4 +25,6 @@ public interface SysFileDao extends R2dbcRepository<SysFileEntity, Long> {
|
|||||||
Mono<Long> countByDeletedAtIsNull();
|
Mono<Long> countByDeletedAtIsNull();
|
||||||
|
|
||||||
Mono<Void> deleteByIdAndDeletedAtIsNull(Long id);
|
Mono<Void> deleteByIdAndDeletedAtIsNull(Long id);
|
||||||
|
|
||||||
|
Flux<SysFileEntity> findByFilePathContaining(String fileName);
|
||||||
}
|
}
|
||||||
|
|||||||
+15
@@ -1,6 +1,7 @@
|
|||||||
package cn.novalon.manage.sys.infrastructure.db.dao;
|
package cn.novalon.manage.sys.infrastructure.db.dao;
|
||||||
|
|
||||||
import cn.novalon.manage.sys.infrastructure.db.entity.SysRoleEntity;
|
import cn.novalon.manage.sys.infrastructure.db.entity.SysRoleEntity;
|
||||||
|
import org.springframework.data.domain.Sort;
|
||||||
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
@@ -9,7 +10,21 @@ import reactor.core.publisher.Mono;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface SysRoleDao extends R2dbcRepository<SysRoleEntity, Long> {
|
public interface SysRoleDao extends R2dbcRepository<SysRoleEntity, Long> {
|
||||||
|
|
||||||
|
Mono<SysRoleEntity> findByIdAndDeletedAtIsNull(Long id);
|
||||||
|
|
||||||
Mono<SysRoleEntity> findByRoleKeyAndDeletedAtIsNull(String roleKey);
|
Mono<SysRoleEntity> findByRoleKeyAndDeletedAtIsNull(String roleKey);
|
||||||
|
|
||||||
Flux<SysRoleEntity> findByDeletedAtIsNull();
|
Flux<SysRoleEntity> findByDeletedAtIsNull();
|
||||||
|
|
||||||
|
Flux<SysRoleEntity> findByDeletedAtIsNull(Sort sort);
|
||||||
|
|
||||||
|
Flux<SysRoleEntity> findByRoleNameLikeAndRoleKeyLikeAndDeletedAtIsNull(String roleName, String roleKey, Sort sort);
|
||||||
|
|
||||||
|
Mono<Long> countByDeletedAtIsNull();
|
||||||
|
|
||||||
|
Mono<Long> countByRoleNameLikeAndRoleKeyLikeAndDeletedAtIsNull(String roleName, String roleKey);
|
||||||
|
|
||||||
|
Mono<SysRoleEntity> findByRoleNameAndDeletedAtIsNull(String roleName);
|
||||||
|
|
||||||
|
Mono<Boolean> existsByRoleNameAndDeletedAtIsNull(String roleName);
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-1
@@ -1,6 +1,7 @@
|
|||||||
package cn.novalon.manage.sys.infrastructure.db.dao;
|
package cn.novalon.manage.sys.infrastructure.db.dao;
|
||||||
|
|
||||||
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserEntity;
|
import cn.novalon.manage.sys.infrastructure.db.entity.SysUserEntity;
|
||||||
|
import org.springframework.data.domain.Sort;
|
||||||
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
import org.springframework.data.r2dbc.repository.R2dbcRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
@@ -11,5 +12,15 @@ public interface SysUserDao extends R2dbcRepository<SysUserEntity, Long> {
|
|||||||
|
|
||||||
Mono<SysUserEntity> findByUsernameAndDeletedAtIsNull(String username);
|
Mono<SysUserEntity> findByUsernameAndDeletedAtIsNull(String username);
|
||||||
|
|
||||||
|
Mono<SysUserEntity> findByEmailAndDeletedAtIsNull(String email);
|
||||||
|
|
||||||
|
Flux<SysUserEntity> findAll();
|
||||||
|
|
||||||
|
Flux<SysUserEntity> findAll(Sort sort);
|
||||||
|
|
||||||
Flux<SysUserEntity> findByDeletedAtIsNull();
|
Flux<SysUserEntity> findByDeletedAtIsNull();
|
||||||
}
|
|
||||||
|
Flux<SysUserEntity> findByDeletedAtIsNull(Sort sort);
|
||||||
|
|
||||||
|
Mono<Long> countByDeletedAtIsNull();
|
||||||
|
}
|
||||||
-6
@@ -13,11 +13,5 @@ public interface SysUserMessageDao extends R2dbcRepository<SysUserMessageEntity,
|
|||||||
|
|
||||||
Flux<SysUserMessageEntity> findByUserIdOrderByCreateTimeDesc(Long userId);
|
Flux<SysUserMessageEntity> findByUserIdOrderByCreateTimeDesc(Long userId);
|
||||||
|
|
||||||
Flux<SysUserMessageEntity> findByDeletedAtIsNull();
|
|
||||||
|
|
||||||
Mono<Long> countByUserIdAndIsRead(Long userId, String isRead);
|
Mono<Long> countByUserIdAndIsRead(Long userId, String isRead);
|
||||||
|
|
||||||
Mono<Long> countByDeletedAtIsNull();
|
|
||||||
|
|
||||||
Mono<Void> deleteByIdAndDeletedAtIsNull(Long id);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user