feature 1.邮箱采集接口优化

release
zhenghaiyang@ele-cloud.com 2 years ago
parent 903fca1c83
commit d49c0251bb
  1. 16
      dxhy-core/src/main/java/com/dxhy/core/controller/mailGather/EmailMaintainController.java

@ -89,5 +89,21 @@ public class EmailMaintainController extends AbstractController {
return ResponseEntity.ok(R.error());
}
/**
* 编辑数据
*
* @param emailMaintain 实体
* @return 编辑结果
*/
@PostMapping("/emailUpload")
public ResponseEntity<R> emailUpload(@RequestBody EmailMaintainVo emailMaintain) {
boolean b = emailMaintainService.update(emailMaintain);
if(b){
return ResponseEntity.ok(R.ok());
}
return ResponseEntity.ok(R.error());
}
}

Loading…
Cancel
Save