|
@@ -0,0 +1,45 @@
|
|
|
+package com.dt.child.controller;
|
|
|
+
|
|
|
+import com.dt.child.dto.SelShiwuDto1;
|
|
|
+import com.dt.child.service.LzyShiwuTypeService;
|
|
|
+import com.dt.vo.Result;
|
|
|
+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 javax.annotation.Resource;
|
|
|
+
|
|
|
+@RequestMapping("ShiwuType")
|
|
|
+@RestController
|
|
|
+public class LzyShiwuTypeController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private LzyShiwuTypeService lzyShiwuTypeService;
|
|
|
+
|
|
|
+
|
|
|
+// 查询类型
|
|
|
+ @PostMapping("selShiwuType")
|
|
|
+ public Result selShiwuType() {
|
|
|
+ return lzyShiwuTypeService.selShiwuType();
|
|
|
+ }
|
|
|
+// 查询人物
|
|
|
+ @PostMapping("selShiwuType1")
|
|
|
+ public Result selShiwuType1() {
|
|
|
+ return lzyShiwuTypeService.selShiwuType1();
|
|
|
+ }
|
|
|
+// 是否能吃
|
|
|
+ @PostMapping("selShiwuType2")
|
|
|
+ public Result selShiwuType2() {
|
|
|
+ return lzyShiwuTypeService.selShiwuType2();
|
|
|
+ }
|
|
|
+
|
|
|
+// 查询类型中的食物
|
|
|
+ @PostMapping("selShiwu")
|
|
|
+ public Result selShiwu(@RequestBody SelShiwuDto1 selShiwuDto1) {
|
|
|
+ return lzyShiwuTypeService.selShiwu(selShiwuDto1);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|