|
@ -1,5 +1,7 @@ |
|
|
package com.canvas.web.modules.material.rest; |
|
|
package com.canvas.web.modules.material.rest; |
|
|
|
|
|
|
|
|
|
|
|
import com.canvas.web.annotation.rest.AnonymousGetMapping; |
|
|
|
|
|
import com.canvas.web.annotation.rest.AnonymousPostMapping; |
|
|
import com.canvas.web.modules.material.criteria.MaterialQueryCriteria; |
|
|
import com.canvas.web.modules.material.criteria.MaterialQueryCriteria; |
|
|
import com.canvas.web.modules.material.criteria.ThemeQueryCriteria; |
|
|
import com.canvas.web.modules.material.criteria.ThemeQueryCriteria; |
|
|
import com.canvas.web.modules.material.dto.FolderDTO; |
|
|
import com.canvas.web.modules.material.dto.FolderDTO; |
|
@ -29,7 +31,8 @@ public class MaterialController { |
|
|
private final MaterialService materialService; |
|
|
private final MaterialService materialService; |
|
|
|
|
|
|
|
|
@ApiOperation("编辑主题/素材") |
|
|
@ApiOperation("编辑主题/素材") |
|
|
@PostMapping("/save") |
|
|
|
|
|
|
|
|
// @PostMapping("/save") |
|
|
|
|
|
@AnonymousPostMapping("/save") |
|
|
public Response<Object> save( |
|
|
public Response<Object> save( |
|
|
@Validated @RequestBody MaterialDTO dto |
|
|
@Validated @RequestBody MaterialDTO dto |
|
|
){ |
|
|
){ |
|
@ -38,7 +41,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("主题库素材历史列表") |
|
|
@ApiOperation("主题库素材历史列表") |
|
|
@GetMapping("/getThemeHistoryList") |
|
|
|
|
|
|
|
|
// @GetMapping("/getThemeHistoryList") |
|
|
|
|
|
@AnonymousGetMapping("/getThemeHistoryList") |
|
|
public Response<ResultUtils<List<ThemeVO>>> getThemeHistoryList( |
|
|
public Response<ResultUtils<List<ThemeVO>>> getThemeHistoryList( |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
){ |
|
|
){ |
|
@ -46,7 +50,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("主题库素材历史列表") |
|
|
@ApiOperation("主题库素材历史列表") |
|
|
@GetMapping("/getThemeLibrary") |
|
|
|
|
|
|
|
|
// @GetMapping("/getThemeLibrary") |
|
|
|
|
|
@AnonymousGetMapping("/getThemeLibrary") |
|
|
public Response<ResultUtils<List<ThemeVO>>> getThemeLibrary( |
|
|
public Response<ResultUtils<List<ThemeVO>>> getThemeLibrary( |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
){ |
|
|
){ |
|
@ -54,7 +59,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("我的画布") |
|
|
@ApiOperation("我的画布") |
|
|
@PostMapping("/myAlbum") |
|
|
|
|
|
|
|
|
// @PostMapping("/myAlbum") |
|
|
|
|
|
@AnonymousPostMapping("/myAlbum") |
|
|
public Response<AlbumVO> myAlbum( |
|
|
public Response<AlbumVO> myAlbum( |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
ThemeQueryCriteria criteria, Pageable page |
|
|
){ |
|
|
){ |
|
@ -65,7 +71,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("编辑文件夹-主题库") |
|
|
@ApiOperation("编辑文件夹-主题库") |
|
|
@PostMapping("/saveThemeFolder") |
|
|
|
|
|
|
|
|
// @PostMapping("/saveThemeFolder") |
|
|
|
|
|
@AnonymousPostMapping("/saveThemeFolder") |
|
|
public Response<Object> saveThemeFolder( |
|
|
public Response<Object> saveThemeFolder( |
|
|
@Validated @RequestBody FolderDTO dto |
|
|
@Validated @RequestBody FolderDTO dto |
|
|
){ |
|
|
){ |
|
@ -74,7 +81,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("添加到画册-主题库") |
|
|
@ApiOperation("添加到画册-主题库") |
|
|
@PostMapping("/addMyAlbum") |
|
|
|
|
|
|
|
|
// @PostMapping("/addMyAlbum") |
|
|
|
|
|
@AnonymousPostMapping("/addMyAlbum") |
|
|
public Response<Object> addMyAlbum( |
|
|
public Response<Object> addMyAlbum( |
|
|
String tfId,String themeId,String orgaId |
|
|
String tfId,String themeId,String orgaId |
|
|
){ |
|
|
){ |
|
@ -83,7 +91,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("删除我的画册主题素材") |
|
|
@ApiOperation("删除我的画册主题素材") |
|
|
@PostMapping("/deleteMyAlbum") |
|
|
|
|
|
|
|
|
// @PostMapping("/deleteMyAlbum") |
|
|
|
|
|
@AnonymousPostMapping("/deleteMyAlbum") |
|
|
public Response<Object> deleteMyAlbum( |
|
|
public Response<Object> deleteMyAlbum( |
|
|
String id |
|
|
String id |
|
|
){ |
|
|
){ |
|
@ -92,7 +101,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("删除文件夹-主题库") |
|
|
@ApiOperation("删除文件夹-主题库") |
|
|
@PostMapping("/deleteThemeFolder") |
|
|
|
|
|
|
|
|
// @PostMapping("/deleteThemeFolder") |
|
|
|
|
|
@AnonymousPostMapping("/deleteThemeFolder") |
|
|
public Response<Object> deleteThemeFolder( |
|
|
public Response<Object> deleteThemeFolder( |
|
|
String id |
|
|
String id |
|
|
){ |
|
|
){ |
|
@ -101,7 +111,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("编辑文件夹-素材库") |
|
|
@ApiOperation("编辑文件夹-素材库") |
|
|
@PostMapping("/saveMaterialFolder") |
|
|
|
|
|
|
|
|
// @PostMapping("/saveMaterialFolder") |
|
|
|
|
|
@AnonymousPostMapping("/saveMaterialFolder") |
|
|
public Response<Object> saveMaterialFolder( |
|
|
public Response<Object> saveMaterialFolder( |
|
|
@Validated @RequestBody FolderDTO dto |
|
|
@Validated @RequestBody FolderDTO dto |
|
|
){ |
|
|
){ |
|
@ -110,7 +121,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("删除文件夹-素材库") |
|
|
@ApiOperation("删除文件夹-素材库") |
|
|
@PostMapping("/deleteMaterialFolder") |
|
|
|
|
|
|
|
|
// @PostMapping("/deleteMaterialFolder") |
|
|
|
|
|
@AnonymousPostMapping("/deleteMaterialFolder") |
|
|
public Response<Object> deleteMaterialFolder( |
|
|
public Response<Object> deleteMaterialFolder( |
|
|
String id |
|
|
String id |
|
|
){ |
|
|
){ |
|
@ -119,7 +131,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("我的素材") |
|
|
@ApiOperation("我的素材") |
|
|
@PostMapping("/myMaterial") |
|
|
|
|
|
|
|
|
// @PostMapping("/myMaterial") |
|
|
|
|
|
@AnonymousPostMapping("/myMaterial") |
|
|
public Response<MyMaterialVO> myMaterial( |
|
|
public Response<MyMaterialVO> myMaterial( |
|
|
MaterialQueryCriteria criteria, Pageable page |
|
|
MaterialQueryCriteria criteria, Pageable page |
|
|
){ |
|
|
){ |
|
@ -130,7 +143,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("移动素材-素材库") |
|
|
@ApiOperation("移动素材-素材库") |
|
|
@PostMapping("/moveMyMaterial") |
|
|
|
|
|
|
|
|
// @PostMapping("/moveMyMaterial") |
|
|
|
|
|
@AnonymousPostMapping("/moveMyMaterial") |
|
|
public Response<Object> moveMyMaterial( |
|
|
public Response<Object> moveMyMaterial( |
|
|
String mifId,String folderId,String materialId |
|
|
String mifId,String folderId,String materialId |
|
|
){ |
|
|
){ |
|
@ -139,7 +153,8 @@ public class MaterialController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation("移动素材-素材库") |
|
|
@ApiOperation("移动素材-素材库") |
|
|
@PostMapping("/deleteMyMaterial") |
|
|
|
|
|
|
|
|
// @PostMapping("/deleteMyMaterial") |
|
|
|
|
|
@AnonymousPostMapping("/deleteMyMaterial") |
|
|
public Response<Object> deleteMyMaterial( |
|
|
public Response<Object> deleteMyMaterial( |
|
|
String materialId |
|
|
String materialId |
|
|
){ |
|
|
){ |
|
|