附件修改
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
XaoLi717 2025-01-15 15:34:09 +08:00
parent 2be572dd43
commit 6758f6bffe

View File

@ -80,7 +80,7 @@ public class onlyofController {
@GetMapping("/page")
@Operation(summary = "获得文件编辑分页")
@PreAuthorize("@ss.hasPermission('only:onlyof:query')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:query')")
public CommonResult<PageResult<onlyofRespVO>> getonlyofPage(@Valid onlyofPageReqVO pageReqVO) {
PageResult<onlyofDO> pageResult = onlyofService.getonlyofPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, onlyofRespVO.class));
@ -93,7 +93,7 @@ public class onlyofController {
*/
@GetMapping("/filelist")
@Operation(summary = "获取文件列表")
@PreAuthorize("@ss.hasPermission('only:onlyof:filelist')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:filelist')")
public ResponseEntity<Object> listFile() {
return new ResponseEntity<Object>(uploadService.list(), HttpStatus.OK);
}
@ -107,7 +107,7 @@ public class onlyofController {
*/
@PostMapping("/update")
@Operation(summary = "更新文件编辑")
@PreAuthorize("@ss.hasPermission('only:onlyof:update')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:update')")
public ResponseEntity<Object> upload(@RequestParam("file") MultipartFile file,@RequestParam("cDate") String cDate,HttpServletRequest request) throws Exception {
cDate = cDate.isEmpty() ? cDate : cDate + "\\";
// System.out.println("update"+file.getOriginalFilename()+uuid);
@ -140,7 +140,7 @@ public class onlyofController {
*/
@GetMapping("/edit")
@Operation(summary = "编辑文件")
@PreAuthorize("@ss.hasPermission('only:onlyof:edit')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:edit')")
public ModelAndView editDocFile(@RequestParam String name, String userName, String userId ,String cDate ,String token, Model model) {
String cDate2 = "";
cDate2 = cDate.isEmpty() ? cDate : cDate + "\\";
@ -168,7 +168,7 @@ public class onlyofController {
*/
@GetMapping("/download")
@Operation(summary = "下载文件")
@PreAuthorize("@ss.hasPermission('only:onlyof:download')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:download')")
public void download(String name, String cDate,HttpServletResponse response) {
cDate = cDate.equals("") ? cDate : cDate + "\\";
// System.out.println("download: "+name+"---"+response+"---"+uuid);
@ -188,7 +188,7 @@ public class onlyofController {
*/
@RequestMapping("/callback")
@Operation(summary = "回调文件")
@PreAuthorize("@ss.hasPermission('only:onlyof:callback')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:callback')")
public void saveDocumentFile(HttpServletRequest request, HttpServletResponse response,String cDate) throws IOException {
// System.out.println("callback"+uuid);
//处理编辑回调逻辑
@ -204,7 +204,7 @@ public class onlyofController {
*/
@GetMapping("/editStatus")
@Operation(summary = "文件状态")
@PreAuthorize("@ss.hasPermission('only:onlyof:editStatus')")
// @PreAuthorize("@ss.hasPermission('only:onlyof:editStatus')")
public ResponseEntity<Object> getDoucmentEditStatus(String name,String cDate) throws ParseException {
cDate = (cDate != null && !cDate.isEmpty()) ? cDate + "\\" : cDate;
// System.out.println("editStatus");