|
@@ -995,4 +995,33 @@ public class CmsAccountController {
|
|
|
accountService.readFileAndImportEmail(file);
|
|
accountService.readFileAndImportEmail(file);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 系统邮箱列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/email")
|
|
|
|
|
+ public Result<SearchResult<SysEmail>> getEmail() {
|
|
|
|
|
+ SearchResult<SysEmail> search = beanSearcher.search(SysEmail.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
|
|
+ .field(SysEmail::getDeleted, 1)
|
|
|
|
|
+ .build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 修改系统邮箱
|
|
|
|
|
+ */
|
|
|
|
|
+ @PutMapping("/update/email")
|
|
|
|
|
+ public Result updateEmail(@RequestBody SysEmail sysEmail) {
|
|
|
|
|
+ sysEmailMapper.updateById(sysEmail);
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 删除系统邮箱
|
|
|
|
|
+ */
|
|
|
|
|
+ @PutMapping("/update/email/{id}")
|
|
|
|
|
+ public Result updateEmail(@PathVariable Long id) {
|
|
|
|
|
+ sysEmailMapper.deleteById(id);
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|