|
@@ -7,6 +7,7 @@ import edu.travel.resp.BaseResponse;
|
|
|
import edu.travel.resp.PageResponse;
|
|
|
import edu.travel.rpc.RPCBaseResponse;
|
|
|
import edu.travel.rpc.RPCPageResponse;
|
|
|
+import edu.travel.utils.tree.CustomDeepCopy;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.http.HttpStatus;
|
|
@@ -25,7 +26,7 @@ public class BaseController<T> {
|
|
|
@Autowired
|
|
|
private IService<T> service;
|
|
|
@GetMapping("/getById")
|
|
|
- public RPCBaseResponse<T> getById(String id) {
|
|
|
+ public RPCBaseResponse<T> getId(String id) {
|
|
|
T byId = service.getById(id);
|
|
|
return new RPCBaseResponse(HttpStatus.OK.value(), HttpStatus.OK.getReasonPhrase(), byId);
|
|
|
}
|