|
@@ -3,9 +3,15 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import edu.travel.commodity.dto.BaseCountryServeDTO;
|
|
import edu.travel.commodity.dto.BaseCountryServeDTO;
|
|
import edu.travel.commodity.entity.BaseCountryServe;
|
|
import edu.travel.commodity.entity.BaseCountryServe;
|
|
|
|
+import edu.travel.commodity.remote.BaseCountryServeRemoteController;
|
|
import edu.travel.commodity.service.BaseCountryServeService;
|
|
import edu.travel.commodity.service.BaseCountryServeService;
|
|
|
|
+import edu.travel.commodity.vo.BaseCountryServeVo;
|
|
|
|
+import edu.travel.interfaces.UpdateGroups;
|
|
|
|
+import edu.travel.resp.BaseResponse;
|
|
import edu.travel.rpc.RPCBaseResponse;
|
|
import edu.travel.rpc.RPCBaseResponse;
|
|
import edu.travel.web.BaseController;
|
|
import edu.travel.web.BaseController;
|
|
|
|
+import org.springframework.validation.Errors;
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -17,7 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/base_country_serve")
|
|
@RequestMapping("/base_country_serve")
|
|
-public class BaseCountryServeController extends BaseController {
|
|
|
|
|
|
+public class BaseCountryServeController extends BaseController implements BaseCountryServeRemoteController {
|
|
@Autowired
|
|
@Autowired
|
|
private BaseCountryServeService baseCountryServeService;
|
|
private BaseCountryServeService baseCountryServeService;
|
|
|
|
|
|
@@ -26,4 +32,9 @@ public class BaseCountryServeController extends BaseController {
|
|
return baseCountryServeService.getCountryServePage(dto);
|
|
return baseCountryServeService.getCountryServePage(dto);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ @PostMapping("/updateById")
|
|
|
|
+ public BaseResponse<BaseCountryServeVo> updateTargetById(@Validated(UpdateGroups.class) @RequestBody BaseCountryServeDTO entity, Errors errors) {
|
|
|
|
+ return super.updateTargetById(entity, errors);
|
|
|
|
+ }
|
|
}
|
|
}
|