package 이동 반영
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.eactive.httpmockserver.client.entity;
|
||||
|
||||
import com.eactive.httpmockserver.server.entity.Server;
|
||||
import com.eactive.httpmockserver.user.entity.StaffUser;
|
||||
import org.hibernate.annotations.Type;
|
||||
|
||||
|
||||
@@ -2,12 +2,11 @@ package com.eactive.httpmockserver.client.mapper;
|
||||
|
||||
import com.eactive.httpmockserver.client.dto.ApiCollectionDTO;
|
||||
import com.eactive.httpmockserver.client.dto.ApiRequestDTO;
|
||||
import com.eactive.httpmockserver.client.dto.ApiRequestKeyValueDTO;
|
||||
import com.eactive.httpmockserver.client.entity.ApiCollection;
|
||||
import com.eactive.httpmockserver.client.entity.ApiRequestInfo;
|
||||
import com.eactive.httpmockserver.common.mapper.CommonMapper;
|
||||
import com.eactive.httpmockserver.server.mapper.ServerMapper;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.ReportingPolicy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.eactive.httpmockserver.server.controller;
|
||||
|
||||
import com.eactive.httpmockserver.client.mapper.ServerMapper;
|
||||
import com.eactive.httpmockserver.server.mapper.ServerMapper;
|
||||
import com.eactive.httpmockserver.server.dto.ServerDTO;
|
||||
import com.eactive.httpmockserver.server.dto.ServerSearch;
|
||||
import com.eactive.httpmockserver.server.entity.Server;
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package com.eactive.httpmockserver.client.mapper;
|
||||
package com.eactive.httpmockserver.server.mapper;
|
||||
|
||||
|
||||
import com.eactive.httpmockserver.client.repository.ServerRepository;
|
||||
@@ -18,12 +18,12 @@ public class ServerMapper {
|
||||
@Autowired
|
||||
ServerRepository serverRepository;
|
||||
|
||||
Server mapById(Long id) {
|
||||
public Server mapById(Long id) {
|
||||
if (id == null || id == 0) return null;
|
||||
return serverRepository.findById(id).orElseThrow(() -> new NotFoundException("Server[" + id + "] not found"));
|
||||
}
|
||||
|
||||
Long mapById(Server server) {
|
||||
public Long mapById(Server server) {
|
||||
if (server == null) return null;
|
||||
return server.getId();
|
||||
}
|
||||
Reference in New Issue
Block a user