|
@@ -9,6 +9,7 @@ import edu.travel.interfaces.UpdateGroups;
|
|
|
import edu.travel.resp.BaseResponse;
|
|
|
import edu.travel.rpc.RPCBaseResponse;
|
|
|
import edu.travel.web.BaseController;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.validation.Errors;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -31,4 +32,12 @@ public class BaseCountryServeController extends BaseController<BaseCountryServe
|
|
|
return baseCountryServeService.getCountryServePage(dto);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @GetMapping("/getByControlId")
|
|
|
+ public RPCBaseResponse getByControlId(String id) {
|
|
|
+ BaseResponse baseResponse = super.getById(id);
|
|
|
+ RPCBaseResponse<Object> objectRPCBaseResponse = new RPCBaseResponse<>();
|
|
|
+ BeanUtils.copyProperties(baseResponse, objectRPCBaseResponse);
|
|
|
+ return objectRPCBaseResponse;
|
|
|
+ }
|
|
|
}
|