|
|
@ -6,10 +6,7 @@ import com.example.demo.service.ConsumeService; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -32,7 +29,7 @@ public class ConsumeController { |
|
|
|
@Autowired |
|
|
|
private ConsumeService consumeService; |
|
|
|
|
|
|
|
@GetMapping("/selectAll") |
|
|
|
@PostMapping("/selectAll") |
|
|
|
public Result selcetAll() |
|
|
|
{ |
|
|
|
List<Consume> consumes = consumeService.selectAll(); |
|
|
|