일단 front 내정보쪽 core->front로 이관,, 하나로 합칠지는 조금 생각해보고 정리하겠음
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.config.application.annotation.UpdateCommand;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortOut;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateFrontHouseholdDao implements UpdateFrontHouseholdPortOut {
|
|
||||||
private final UpdateFrontHouseholdMapper mapper;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@UpdateCommand
|
|
||||||
public void operate(UpdateFrontHouseholdCmd cmd) {
|
|
||||||
mapper.update(cmd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateFrontHouseholdMapper {
|
|
||||||
void update(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
|
|
||||||
public interface UpdateFrontHouseholdPortIn {
|
|
||||||
void operate(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
|
|
||||||
public interface UpdateFrontHouseholdPortOut {
|
|
||||||
void operate(UpdateFrontHouseholdCmd cmd);
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
package app.module.core.usecase.household.updateFrontHousehold.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortIn;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.UpdateFrontHouseholdPortOut;
|
|
||||||
import app.module.core.usecase.household.updateFrontHousehold.ports.application.domain.UpdateFrontHouseholdCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateFrontHouseholdService implements UpdateFrontHouseholdPortIn {
|
|
||||||
private final UpdateFrontHouseholdPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateFrontHouseholdCmd cmd) { portOut.operate(cmd); }
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetMonthlyInputStatusMapper {
|
|
||||||
|
|
||||||
GetMonthlyInputStatus getMonthlyInputStatus(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetMonthlyInputStatusService implements GetMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final GetMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetPrevMonthlyInputStatusMapper {
|
|
||||||
|
|
||||||
GetPrevMonthlyInputStatus getPrevMonthlyInputStatus(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetPrevMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetPrevMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetPrevMonthlyInputStatusService implements GetPrevMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final GetPrevMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateMonthlyInputStatusMapper {
|
|
||||||
void updateMonthlyInputStatus(UpdateMonthlyInputStatusDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
public interface UpdateMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
void operate(UpdateMonthlyInputStatusCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
|
|
||||||
public interface UpdateMonthlyInputStatusPortOut {
|
|
||||||
|
|
||||||
void operate(UpdateMonthlyInputStatusCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortIn;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateMonthlyInputStatusService implements UpdateMonthlyInputStatusPortIn {
|
|
||||||
|
|
||||||
private final UpdateMonthlyInputStatusPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateMonthlyInputStatusCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.adapters.persistence.model.CreateNoticeDto;
|
|
||||||
import app.module.core.usecase.notice.createNotice.adapters.persistence.model.CreateNoticeHasUploadFilesParam;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface CreateNoticeMapper {
|
|
||||||
void createNotice(CreateNoticeDto dto);
|
|
||||||
void createNoticeHasUploadFile(CreateNoticeHasUploadFilesParam param);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNotice;
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateNoticePortIn {
|
|
||||||
|
|
||||||
Optional<CreateNotice> operate(CreateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.createNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNotice;
|
|
||||||
import app.module.core.usecase.notice.createNotice.ports.application.domain.CreateNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateNoticePortOut {
|
|
||||||
|
|
||||||
Optional<CreateNotice> operate(CreateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeUploadFile;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetNoticeMapper {
|
|
||||||
|
|
||||||
GetNotice getNotice(GetNoticeCmd command);
|
|
||||||
|
|
||||||
List<GetNoticeUploadFile> getUploadFiles(Long id);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetNoticePortIn {
|
|
||||||
|
|
||||||
Optional<GetNotice> operate(GetNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetNoticePortOut {
|
|
||||||
|
|
||||||
Optional<GetNotice> operate(GetNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.getNotice.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.GetNoticePortIn;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.GetNoticePortOut;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice;
|
|
||||||
import app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetNoticeService implements GetNoticePortIn {
|
|
||||||
|
|
||||||
private final GetNoticePortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetNotice> operate(GetNoticeCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
|
|
||||||
public interface RemoveNoticesPortIn {
|
|
||||||
void operate(RemoveNoticesCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
|
|
||||||
public interface RemoveNoticesPortOut {
|
|
||||||
void operate(RemoveNoticesCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.removeNotices.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.RemoveNoticesPortIn;
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.RemoveNoticesPortOut;
|
|
||||||
import app.module.core.usecase.notice.removeNotices.ports.application.domain.RemoveNoticesCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class RemoveNoticesService implements RemoveNoticesPortIn {
|
|
||||||
|
|
||||||
private final RemoveNoticesPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(RemoveNoticesCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
|
|
||||||
public interface UpdateNoticePortIn {
|
|
||||||
|
|
||||||
void operate(UpdateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
|
|
||||||
public interface UpdateNoticePortOut {
|
|
||||||
|
|
||||||
void operate(UpdateNoticeCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.notice.updateNotice.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.UpdateNoticePortIn;
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.UpdateNoticePortOut;
|
|
||||||
import app.module.core.usecase.notice.updateNotice.ports.application.domain.UpdateNoticeCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateNoticeService implements UpdateNoticePortIn {
|
|
||||||
|
|
||||||
private final UpdateNoticePortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateNoticeCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface CreateForestProductMapper {
|
|
||||||
void createForestProduct(CreateForestProductDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateForestProductPortIn {
|
|
||||||
|
|
||||||
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface CreateForestProductPortOut {
|
|
||||||
|
|
||||||
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.config.application.annotation.CreateCommand;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class CreateForestProductService implements CreateForestProductPortIn {
|
|
||||||
|
|
||||||
private final CreateForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@CreateCommand
|
|
||||||
public Optional<CreateForestProduct> operate(CreateForestProductCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface GetForestProductMapper {
|
|
||||||
|
|
||||||
GetForestProduct getForestProduct(GetForestProductCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetForestProductPortIn {
|
|
||||||
|
|
||||||
Optional<GetForestProduct> operate(GetForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
public interface GetForestProductPortOut {
|
|
||||||
|
|
||||||
Optional<GetForestProduct> operate(GetForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.GetForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.GetForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProduct;
|
|
||||||
import app.module.core.usecase.product.getForestProduct.ports.application.domain.GetForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetForestProductService implements GetForestProductPortIn {
|
|
||||||
|
|
||||||
private final GetForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Optional<GetForestProduct> operate(GetForestProductCmd command) {
|
|
||||||
return portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface GetForestProductsPortIn {
|
|
||||||
|
|
||||||
Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public interface GetForestProductsPortOut {
|
|
||||||
|
|
||||||
Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.GetForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.GetForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProducts;
|
|
||||||
import app.module.core.usecase.product.getForestProducts.ports.application.domain.GetForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetForestProductsService implements GetForestProductsPortIn {
|
|
||||||
|
|
||||||
private final GetForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Page<GetForestProducts> operate(Pageable pageable, GetForestProductsCmd command) {
|
|
||||||
return portOut.operate(pageable, command);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
public interface GetMonthlyForestProductsPortIn {
|
|
||||||
|
|
||||||
Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
|
|
||||||
public interface GetMonthlyForestProductsPortOut {
|
|
||||||
|
|
||||||
Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command);
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package app.module.core.usecase.product.getMonthlyForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.GetMonthlyForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.GetMonthlyForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProducts;
|
|
||||||
import app.module.core.usecase.product.getMonthlyForestProducts.ports.application.domain.GetMonthlyForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class GetMonthlyForestProductsService implements GetMonthlyForestProductsPortIn {
|
|
||||||
|
|
||||||
private final GetMonthlyForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Page<GetMonthlyForestProducts> operate(Pageable pageable, GetMonthlyForestProductsCmd command) {
|
|
||||||
return portOut.operate(pageable, command);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.adapters.persistence.model.RemoveForestProductsParam;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface RemoveForestProductsMapper {
|
|
||||||
void deleteForestProducts(RemoveForestProductsParam param);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveForestProductsPortIn {
|
|
||||||
void operate(RemoveForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveForestProductsPortOut {
|
|
||||||
void operate(RemoveForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.RemoveForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.RemoveForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.removeForestProducts.ports.application.domain.RemoveForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class RemoveForestProductsService implements RemoveForestProductsPortIn {
|
|
||||||
|
|
||||||
private final RemoveForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(RemoveForestProductsCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.adapters.persistence.model.RemoveMonthForestProductsParam;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface RemoveMonthForestProductsMapper {
|
|
||||||
void deleteForestProducts(RemoveMonthForestProductsParam param);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeMonthForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveMonthForestProductsPortIn {
|
|
||||||
void operate(RemoveMonthForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeMonthForestProducts.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
|
|
||||||
|
|
||||||
public interface RemoveMonthForestProductsPortOut {
|
|
||||||
void operate(RemoveMonthForestProductsCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.product.removeMonthForestProducts.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.ports.RemoveMonthForestProductsPortIn;
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.ports.RemoveMonthForestProductsPortOut;
|
|
||||||
import app.module.core.usecase.product.removeMonthForestProducts.ports.application.domain.RemoveMonthForestProductsCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class RemoveMonthForestProductsService implements RemoveMonthForestProductsPortIn {
|
|
||||||
|
|
||||||
private final RemoveMonthForestProductsPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(RemoveMonthForestProductsCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.adapters.persistence;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.adapters.persistence.model.UpdateForestProductDto;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface UpdateForestProductMapper {
|
|
||||||
void updateForestProduct(UpdateForestProductDto dto);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
|
|
||||||
public interface UpdateForestProductPortIn {
|
|
||||||
|
|
||||||
void operate(UpdateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
|
|
||||||
public interface UpdateForestProductPortOut {
|
|
||||||
|
|
||||||
void operate(UpdateForestProductCmd command);
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
package app.module.core.usecase.product.updateForestProduct.ports.application;
|
|
||||||
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.UpdateForestProductPortIn;
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.UpdateForestProductPortOut;
|
|
||||||
import app.module.core.usecase.product.updateForestProduct.ports.application.domain.UpdateForestProductCmd;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
class UpdateForestProductService implements UpdateForestProductPortIn {
|
|
||||||
|
|
||||||
private final UpdateForestProductPortOut portOut;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void operate(UpdateForestProductCmd command) {
|
|
||||||
portOut.operate(command);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
<mapper
|
<mapper
|
||||||
namespace="app.module.core.usecase.notice.createNotice.adapters.persistence.CreateNoticeMapper">
|
namespace="app.module.front.usecase.info.notice.createNotice.adapters.persistence.CreateNoticeMapper">
|
||||||
|
|
||||||
<insert id="createNotice" keyProperty="id">
|
<insert id="createNotice" keyProperty="id">
|
||||||
<!-- createNotice 게시글 등록 -->
|
<!-- createNotice 게시글 등록 -->
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
<mapper
|
<mapper
|
||||||
namespace="app.module.core.usecase.notice.getNotice.adapters.persistence.GetNoticeMapper">
|
namespace="app.module.front.usecase.info.notice.getNotice.adapters.persistence.GetNoticeMapper">
|
||||||
<select id="getNotice"
|
<select id="getNotice"
|
||||||
resultType="app.module.core.usecase.notice.getNotice.ports.application.domain.GetNotice">
|
resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNotice">
|
||||||
/* getNotice 상세 게시글 조회 */
|
/* getNotice 상세 게시글 조회 */
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
SELECT
|
SELECT
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUploadFiles"
|
<select id="getUploadFiles"
|
||||||
resultType="app.module.core.usecase.notice.getNotice.ports.application.domain.GetNoticeUploadFile">
|
resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNoticeUploadFile">
|
||||||
/* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */
|
/* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */
|
||||||
SELECT
|
SELECT
|
||||||
awuf.notice_id AS noticeId,
|
awuf.notice_id AS noticeId,
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
<mapper
|
<mapper
|
||||||
namespace="app.module.core.usecase.notice.getNotices.adapters.persistence.GetNoticesMapper">
|
namespace="app.module.front.usecase.info.notice.getNotices.adapters.persistence.GetNoticesMapper">
|
||||||
|
|
||||||
<select id="getNotices"
|
<select id="getNotices"
|
||||||
resultType="app.module.core.usecase.notice.getNotices.adapters.persistence.model.GetNoticesDto">
|
resultType="app.module.front.usecase.info.notice.getNotices.adapters.persistence.model.GetNoticesDto">
|
||||||
/* getNotices : 게시물 리스트 */
|
/* getNotices : 게시물 리스트 */
|
||||||
SELECT
|
SELECT
|
||||||
a.id,
|
a.id,
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUploadFiles"
|
<select id="getUploadFiles"
|
||||||
resultType="app.module.core.usecase.notice.getNotices.ports.application.domain.GetNoticeFiles">
|
resultType="app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNoticeFiles">
|
||||||
/* getUploadFiles : 게시물 리스트의 대표 이미지 */
|
/* getUploadFiles : 게시물 리스트의 대표 이미지 */
|
||||||
SELECT
|
SELECT
|
||||||
awuf.notice_id,
|
awuf.notice_id,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
<mapper
|
<mapper
|
||||||
namespace="app.module.core.usecase.notice.removeNotices.adapters.persistence.RemoveNoticesMapper">
|
namespace="app.module.front.usecase.info.notice.removeNotices.adapters.persistence.RemoveNoticesMapper">
|
||||||
<update id="deleteNotices">
|
<update id="deleteNotices">
|
||||||
/* deleteNotices : 게시물 삭제 */
|
/* deleteNotices : 게시물 삭제 */
|
||||||
UPDATE notice
|
UPDATE notice
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
<mapper
|
<mapper
|
||||||
namespace="app.module.core.usecase.notice.updateNotice.adapters.persistence.UpdateNoticeMapper">
|
namespace="app.module.front.usecase.info.notice.updateNotice.adapters.persistence.UpdateNoticeMapper">
|
||||||
|
|
||||||
<update id="deleteFileUploads">
|
<update id="deleteFileUploads">
|
||||||
/* deleteFileUploads 게시글 수정 시, 첨부파일 join 데이터 삭제 */
|
/* deleteFileUploads 게시글 수정 시, 첨부파일 join 데이터 삭제 */
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package app.module.front.usecase.info;
|
|||||||
import app.module.core.config.application.util.CommonUtil;
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
||||||
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
import app.module.core.usecase.household.getHousehold.ports.application.domain.GetHouseholdCmd;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.GetNoticesPortIn;
|
import app.module.front.usecase.info.notice.getNotices.ports.GetNoticesPortIn;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNotices;
|
import app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNotices;
|
||||||
import app.module.core.usecase.notice.getNotices.ports.application.domain.GetNoticesCmd;
|
import app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNoticesCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.front.usecase.info.bank.getBanksUI.adapters.web;
|
package app.module.front.usecase.info.bankUI.getBanksUI.adapters.web;
|
||||||
|
|
||||||
import app.module.core.config.application.util.CommonUtil;
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
import app.module.core.usecase.household.getHousehold.ports.GetHouseholdPortIn;
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface GetMonthlyInputStatusMapper {
|
||||||
|
|
||||||
|
GetMonthlyInputStatus getMonthlyInputStatus(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.GetMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain.GetMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class GetMonthlyInputStatusService implements GetMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final GetMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<GetMonthlyInputStatus> operate(GetMonthlyInputStatusCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.apache.commons.collections4.ListUtils;
|
import org.apache.commons.collections4.ListUtils;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model.GetMonthlyInputStatussDto;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.adapters.persistence.model;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.adapters.persistence.model;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortIn;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortIn;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.GetMonthlyInputStatussPortOut;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatuss;
|
||||||
import app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
import app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain.GetMonthlyInputStatussCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getMonthlyInputStatuss.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getMonthlyInputStatuss.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
import app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface GetPrevMonthlyInputStatusMapper {
|
||||||
|
|
||||||
|
GetPrevMonthlyInputStatus getPrevMonthlyInputStatus(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetPrevMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface GetPrevMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.GetPrevMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatus;
|
||||||
|
import app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain.GetPrevMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class GetPrevMonthlyInputStatusService implements GetPrevMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final GetPrevMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Optional<GetPrevMonthlyInputStatus> operate(GetPrevMonthlyInputStatusCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.getPrevMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.config.application.util.CommonUtil;
|
import app.module.core.config.application.util.CommonUtil;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
||||||
import app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model.UpdateMonthlyInputStatusDto;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface UpdateMonthlyInputStatusMapper {
|
||||||
|
void updateMonthlyInputStatus(UpdateMonthlyInputStatusDto dto);
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.adapters.persistence.model;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.adapters.persistence.model;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
public interface UpdateMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
void operate(UpdateMonthlyInputStatusCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
|
||||||
|
public interface UpdateMonthlyInputStatusPortOut {
|
||||||
|
|
||||||
|
void operate(UpdateMonthlyInputStatusCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortIn;
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.UpdateMonthlyInputStatusPortOut;
|
||||||
|
import app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain.UpdateMonthlyInputStatusCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class UpdateMonthlyInputStatusService implements UpdateMonthlyInputStatusPortIn {
|
||||||
|
|
||||||
|
private final UpdateMonthlyInputStatusPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operate(UpdateMonthlyInputStatusCmd command) {
|
||||||
|
portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.monthly.updateMonthlyInputStatus.ports.application.domain;
|
package app.module.front.usecase.info.monthly.updateMonthlyInputStatus.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.application.enums.MonthStatus;
|
import app.module.core.config.application.enums.MonthStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence;
|
||||||
|
|
||||||
import app.module.core.usecase.product.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.CreateForestProductPortOut;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortOut;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProduct;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
import app.module.core.usecase.product.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model.CreateForestProductDto;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface CreateForestProductMapper {
|
||||||
|
void createForestProduct(CreateForestProductDto dto);
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.adapters.persistence.model;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.adapters.persistence.model;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface CreateForestProductPortIn {
|
||||||
|
|
||||||
|
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports;
|
||||||
|
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
public interface CreateForestProductPortOut {
|
||||||
|
|
||||||
|
Optional<CreateForestProduct> operate(CreateForestProductCmd command);
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application;
|
||||||
|
|
||||||
|
import app.module.core.config.application.annotation.CreateCommand;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortIn;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.CreateForestProductPortOut;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProduct;
|
||||||
|
import app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain.CreateForestProductCmd;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
class CreateForestProductService implements CreateForestProductPortIn {
|
||||||
|
|
||||||
|
private final CreateForestProductPortOut portOut;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CreateCommand
|
||||||
|
public Optional<CreateForestProduct> operate(CreateForestProductCmd command) {
|
||||||
|
return portOut.operate(command);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application.domain;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package app.module.core.usecase.product.createForestProduct.ports.application.domain;
|
package app.module.front.usecase.info.monthlyProduct.createForestProduct.ports.application.domain;
|
||||||
|
|
||||||
import app.module.core.config.adapters.persistence.component.AuditCommand;
|
import app.module.core.config.adapters.persistence.component.AuditCommand;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user