治理设备管理功能
This commit is contained in:
@@ -22,6 +22,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -42,10 +45,10 @@ public class CsElementController extends BaseController {
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("组态图元新增")
|
||||
@ApiImplicitParam(name = "param", value = "组态图元", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated CsPageParm param){
|
||||
@ApiImplicitParam(name = "multipartFile", value = "组态图元数据流", required = true)
|
||||
public HttpResult<String> add(@RequestBody @Validated MultipartFile multipartFile){
|
||||
String methodDescribe = getMethodDescribe("add");
|
||||
csElementService.addElement(param.getJsonFile());
|
||||
csElementService.addElement(multipartFile);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, CommonResponseEnum.SUCCESS.getMessage(), methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user