Merge branch 'be/Quiz' into 'backend'
feat: quiz 빈 퀴즈셋 등록 요청시 거절 추가 See merge request s11-webmobile1-sub2/S11P12A701!155
This commit is contained in:
commit
f7c445c683
@ -34,6 +34,10 @@ public class QuizController {
|
|||||||
, @RequestPart(value = "images", required = false) List<MultipartFile> images) throws IOException {
|
, @RequestPart(value = "images", required = false) List<MultipartFile> images) throws IOException {
|
||||||
long userId = Long.parseLong(jwtUtil.getUserId(accessToken));
|
long userId = Long.parseLong(jwtUtil.getUserId(accessToken));
|
||||||
|
|
||||||
|
if (quizSetCreateRequest.getQuizzes().isEmpty()) {
|
||||||
|
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
|
||||||
|
}
|
||||||
|
|
||||||
QuizSet quizSet = quizSetService.createQuizSet(userId, quizSetCreateRequest.getTitle());
|
QuizSet quizSet = quizSetService.createQuizSet(userId, quizSetCreateRequest.getTitle());
|
||||||
|
|
||||||
int imageIdx = 0;
|
int imageIdx = 0;
|
||||||
|
@ -21,7 +21,7 @@ spring.datasource.username=${USER_NAME}
|
|||||||
spring.datasource.password=${USER_PASSWORD}
|
spring.datasource.password=${USER_PASSWORD}
|
||||||
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
spring.mvc.pathmatch.matching-strategy=ant_path_matcher
|
||||||
spring.jpa.database=mysql
|
spring.jpa.database=mysql
|
||||||
spring.jpa.hibernate.ddl-auto=create
|
spring.jpa.hibernate.ddl-auto=update
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Seoul
|
spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Seoul
|
||||||
management.endpoints.web.exposure.include=health,info
|
management.endpoints.web.exposure.include=health,info
|
||||||
|
Loading…
Reference in New Issue
Block a user