|
|
@ -7,6 +7,7 @@ import com.iflytop.gd.app.service.api.PhotosService; |
|
|
|
import com.iflytop.gd.common.base.BasePageQuery; |
|
|
|
import com.iflytop.gd.common.result.Result; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
@ -51,5 +52,13 @@ public class PhotoController { |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "删除照片") |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
public Result<String> delete(@Parameter(description = "ID,多个以英文逗号(,)分割") @PathVariable String ids) { |
|
|
|
boolean isSuccess = photosService.deletePhoto(ids); |
|
|
|
if (isSuccess) { |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
return Result.failed(); |
|
|
|
} |
|
|
|
} |