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