|
|
@ -1,16 +1,22 @@ |
|
|
|
package com.hnac.hzinfo.inspect.obj.feign; |
|
|
|
package com.hnac.hzinfo.inspect.obj.feign; |
|
|
|
|
|
|
|
|
|
|
|
import com.hnac.hzinfo.inspect.Constants; |
|
|
|
import com.hnac.hzinfo.inspect.Constants; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.inspect.obj.dto.ContentDTO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.vo.ContentVO; |
|
|
|
import com.hnac.hzinfo.inspect.obj.vo.ContentVO; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
@FeignClient(value = Constants.APP_NAME) |
|
|
|
@FeignClient(value = Constants.APP_NAME) |
|
|
|
public interface IContentClient { |
|
|
|
public interface IContentClient { |
|
|
|
String API_PREFIX = "/feign/content"; |
|
|
|
String API_PREFIX = "/feign/content"; |
|
|
|
String DETAIL = API_PREFIX + "/detail"; |
|
|
|
String DETAIL = API_PREFIX + "/detail"; |
|
|
|
String SAVE_BATCH = API_PREFIX + "/saveBatch"; |
|
|
|
String UPDATE_BATCH = API_PREFIX + "/detail"; |
|
|
|
|
|
|
|
String SAVE_BATCH = API_PREFIX + "/updateBatch"; |
|
|
|
String LIST = API_PREFIX + "/list"; |
|
|
|
String LIST = API_PREFIX + "/list"; |
|
|
|
String SAVE_OR_UPDATE_BATCH = API_PREFIX + "/saveOrUpdateBatch"; |
|
|
|
String SAVE_OR_UPDATE_BATCH = API_PREFIX + "/saveOrUpdateBatch"; |
|
|
|
|
|
|
|
|
|
|
@ -22,4 +28,12 @@ public interface IContentClient { |
|
|
|
@GetMapping(DETAIL) |
|
|
|
@GetMapping(DETAIL) |
|
|
|
R<ContentVO> detail(Long id); |
|
|
|
R<ContentVO> detail(Long id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 批量更新巡检内容 |
|
|
|
|
|
|
|
* @param request 巡检内容列表 |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@PutMapping(UPDATE_BATCH) |
|
|
|
|
|
|
|
R<Boolean> updateBatch(@RequestBody List<ContentDTO> request); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|