Skip to content

Commit 5f4305b

Browse files
committed
add seventh time homework
1 parent 9ca6e23 commit 5f4305b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.github.yibing.data.datademo.controller;
2+
3+
import com.github.yibing.data.datademo.entity.Order;
4+
import com.github.yibing.data.datademo.service.OrderService;
5+
import org.springframework.beans.factory.annotation.Autowired;
6+
import org.springframework.web.bind.annotation.GetMapping;
7+
import org.springframework.web.bind.annotation.RestController;
8+
9+
import java.util.List;
10+
11+
@RestController
12+
public class OrderController {
13+
14+
@Autowired
15+
private OrderService orderService;
16+
17+
@GetMapping("/order/query")
18+
public List<Order> gerOrderList() {
19+
return orderService.queryOrder();
20+
}
21+
}

0 commit comments

Comments
 (0)