|
|
@@ -50,9 +50,14 @@ public class CollectionController extends BaseController {
|
|
|
@PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/create")
|
|
|
public Collection create(@RequestBody Collection record) {
|
|
|
+ List<FileObject> pic = record.getPic();
|
|
|
+ if (pic.size()>0){
|
|
|
+ for (FileObject fileObject : pic) {
|
|
|
+ fileObject.setUrl("https://"+fileObject.getUrl());
|
|
|
+ }
|
|
|
+ }
|
|
|
return collectionService.create(record);
|
|
|
}
|
|
|
-
|
|
|
//@PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/all")
|
|
|
public Page<CollectionDTO> all(@RequestBody PageQuery pageQuery) {
|