Skip to content

Commit

Permalink
chore: service 패키지를 application으로 변경 (#141)
Browse files Browse the repository at this point in the history
* chore: service 패키지를 application으로 변경

* fix: long casting 이슈 해결
  • Loading branch information
char-yb authored Jan 15, 2024
1 parent 89c3d9a commit 10a7bcd
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.depromeet.domain.mission.api;

import static org.springframework.data.domain.Sort.Direction.*;

import com.depromeet.domain.mission.application.MissionService;
import com.depromeet.domain.mission.dto.request.MissionCreateRequest;
import com.depromeet.domain.mission.dto.request.MissionUpdateRequest;
import com.depromeet.domain.mission.dto.response.MissionCreateResponse;
import com.depromeet.domain.mission.dto.response.MissionFindResponse;
import com.depromeet.domain.mission.dto.response.MissionUpdateResponse;
import com.depromeet.domain.mission.service.MissionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.depromeet.domain.mission.service;
package com.depromeet.domain.mission.application;

import com.depromeet.domain.member.domain.Member;
import com.depromeet.domain.mission.dao.MissionRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Slice<Mission> findAllMission(Member member, Pageable pageable, Long last
.selectFrom(mission)
.where(ltMissionId(lastId), memberIdEq(member.getId()))
.orderBy(mission.id.desc())
.limit(pageable.getPageSize() + 1);
.limit((long) pageable.getPageSize() + 1);

List<Mission> missions = query.fetch();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.depromeet.domain.missionRecord.api;

import com.depromeet.domain.missionRecord.application.MissionRecordService;
import com.depromeet.domain.missionRecord.dto.request.MissionRecordCreateRequest;
import com.depromeet.domain.missionRecord.dto.request.MissionRecordUpdateRequest;
import com.depromeet.domain.missionRecord.dto.response.MissionRecordCreateResponse;
import com.depromeet.domain.missionRecord.dto.response.MissionRecordFindOneResponse;
import com.depromeet.domain.missionRecord.dto.response.MissionRecordFindResponse;
import com.depromeet.domain.missionRecord.dto.response.MissionRecordUpdateResponse;
import com.depromeet.domain.missionRecord.service.MissionRecordService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.depromeet.domain.missionRecord.service;
package com.depromeet.domain.missionRecord.application;

import com.depromeet.domain.member.domain.Member;
import com.depromeet.domain.mission.dao.MissionRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.depromeet.domain.missionRecord.service;
package com.depromeet.domain.missionRecord.application;

import com.depromeet.domain.missionRecord.dao.MissionRecordRepository;
import com.depromeet.global.common.constants.RedisExpireEventConstants;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.depromeet.infra.config.redis;

import com.depromeet.domain.missionRecord.service.RedisExpireEventRedisMessageListener;
import com.depromeet.domain.missionRecord.application.RedisExpireEventRedisMessageListener;
import com.depromeet.global.common.constants.RedisExpireEventConstants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.depromeet.domain.image.application;

import static org.assertj.core.api.AssertionsForClassTypes.*;
import static org.junit.jupiter.api.Assertions.*;

import com.depromeet.DatabaseCleaner;
import com.depromeet.domain.image.domain.ImageFileExtension;
Expand All @@ -11,17 +10,17 @@
import com.depromeet.domain.member.dao.MemberRepository;
import com.depromeet.domain.member.domain.Member;
import com.depromeet.domain.member.domain.Profile;
import com.depromeet.domain.mission.application.MissionService;
import com.depromeet.domain.mission.domain.MissionCategory;
import com.depromeet.domain.mission.domain.MissionVisibility;
import com.depromeet.domain.mission.dto.request.MissionCreateRequest;
import com.depromeet.domain.mission.dto.response.MissionCreateResponse;
import com.depromeet.domain.mission.service.MissionService;
import com.depromeet.domain.missionRecord.application.MissionRecordService;
import com.depromeet.domain.missionRecord.dao.MissionRecordRepository;
import com.depromeet.domain.missionRecord.domain.ImageUploadStatus;
import com.depromeet.domain.missionRecord.domain.MissionRecord;
import com.depromeet.domain.missionRecord.dto.request.MissionRecordCreateRequest;
import com.depromeet.domain.missionRecord.dto.response.MissionRecordCreateResponse;
import com.depromeet.domain.missionRecord.service.MissionRecordService;
import com.depromeet.global.error.exception.CustomException;
import com.depromeet.global.error.exception.ErrorCode;
import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;

import com.depromeet.domain.mission.api.MissionController;
import com.depromeet.domain.mission.application.MissionService;
import com.depromeet.domain.mission.domain.ArchiveStatus;
import com.depromeet.domain.mission.domain.MissionCategory;
import com.depromeet.domain.mission.domain.MissionVisibility;
Expand All @@ -18,7 +19,6 @@
import com.depromeet.domain.mission.dto.response.MissionCreateResponse;
import com.depromeet.domain.mission.dto.response.MissionFindResponse;
import com.depromeet.domain.mission.dto.response.MissionUpdateResponse;
import com.depromeet.domain.mission.service.MissionService;
import com.depromeet.global.error.exception.CustomException;
import com.depromeet.global.error.exception.ErrorCode;
import com.depromeet.global.security.JwtAuthenticationFilter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static org.junit.jupiter.api.Assertions.*;

import com.depromeet.DatabaseCleaner;
import com.depromeet.domain.mission.application.MissionService;
import com.depromeet.domain.mission.dao.MissionRepository;
import com.depromeet.domain.mission.domain.Mission;
import com.depromeet.domain.mission.domain.MissionCategory;
Expand Down

0 comments on commit 10a7bcd

Please sign in to comment.