|
@@ -7,10 +7,14 @@ import com.ym.mec.common.controller.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RequestMapping("eduPhotoAlbum")
|
|
|
@Api(tags = "相册")
|
|
|
@RestController
|
|
@@ -26,15 +30,17 @@ public class EduPhotoAlbumController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("修改")
|
|
|
- @PostMapping(value = "update")
|
|
|
- public Object update(PhotoAlbum photoAlbum) {
|
|
|
- return succeed(photoAlbumService.update(photoAlbum));
|
|
|
+ @PostMapping(value = "batchUpdate")
|
|
|
+ public Object batchUpdate(@RequestBody List<PhotoAlbum> photoAlbumList) {
|
|
|
+ photoAlbumService.batchUpdate(photoAlbumList);
|
|
|
+ return succeed();
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除")
|
|
|
@PostMapping(value = "del")
|
|
|
- public Object del(Integer id) {
|
|
|
- return succeed(photoAlbumService.del(id));
|
|
|
+ public Object del(String ids) {
|
|
|
+ photoAlbumService.batchDelete(ids);
|
|
|
+ return succeed();
|
|
|
}
|
|
|
|
|
|
@ApiOperation("分页查询")
|