|
|
@ -9,11 +9,7 @@ import org.hlrj.duobao_demo.tool.Result; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -46,4 +42,9 @@ public class RecommendationController { |
|
|
|
|
|
|
|
return Result.success(recommendationList); |
|
|
|
} |
|
|
|
@DeleteMapping("/api/deleteRecommendation/{id}") |
|
|
|
public Result deleteRecommendation(@PathVariable Integer id) { |
|
|
|
recommendationService.delete(id); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
} |