-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from GSM-MSG/322-not-use-api-delete
🔀 :: 쓰이지 않는 api 삭제
- Loading branch information
Showing
7 changed files
with
0 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/AcceptStudentReqDto.kt
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/main/kotlin/com/msg/gauth/domain/user/presentation/dto/request/AcceptTeacherReqDto.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/kotlin/com/msg/gauth/domain/user/repository/UserRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
package com.msg.gauth.domain.user.repository | ||
|
||
import com.msg.gauth.domain.user.User | ||
import com.msg.gauth.domain.user.enums.UserRoleType | ||
import com.msg.gauth.domain.user.enums.UserState | ||
import org.springframework.data.domain.Page | ||
import org.springframework.data.domain.Pageable | ||
import org.springframework.data.jpa.repository.EntityGraph | ||
import org.springframework.data.jpa.repository.JpaRepository | ||
import org.springframework.data.jpa.repository.Query | ||
|
||
interface UserRepository: JpaRepository<User, Long>, CustomUserRepository { | ||
@EntityGraph(attributePaths = ["userRole"]) | ||
fun findByEmail(email: String): User? | ||
fun findByEmailIn(emailList: List<String>): List<User> | ||
fun existsByEmail(email: String): Boolean | ||
@Query("select user.email from User user") | ||
fun findAllEmail(): List<String> | ||
fun findAllByState(state: UserState): List<User> | ||
fun findAllByState(state: UserState, pageable: Pageable): Page<User> | ||
fun findByIdAndState(id: Long, roles: UserState): User? | ||
@Query("select user from User user where user.id = :id and user.state = :state and user.userRole = :userRole") | ||
fun findByIdAndStateAndUserRole(id: Long, state: UserState, userRole: UserRoleType): User? | ||
} |
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/com/msg/gauth/domain/user/service/AcceptStudentSignUpService.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/kotlin/com/msg/gauth/domain/user/service/AcceptTeacherSignUpService.kt
This file was deleted.
Oops, something went wrong.