|
@@ -0,0 +1,33 @@
|
|
|
+package edu.travel.web;
|
|
|
+import edu.travel.entity.BtBabyUserRelation;
|
|
|
+import edu.travel.service.BtBabyUserRelationServiceImpl;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+
|
|
|
+/**
|
|
|
+* 用户-宝宝-亲属角色-关系表(bt_baby_user_relation)表控制层
|
|
|
+*
|
|
|
+* @author xxxxx
|
|
|
+*/
|
|
|
+@RestController
|
|
|
+@RequestMapping("/bt_baby_user_relation")
|
|
|
+public class BtBabyUserRelationController {
|
|
|
+/**
|
|
|
+* 服务对象
|
|
|
+*/
|
|
|
+ @Autowired
|
|
|
+ private BtBabyUserRelationServiceImpl btBabyUserRelationServiceImpl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过主键查询单条数据
|
|
|
+ *
|
|
|
+ * @param id 主键
|
|
|
+ * @return 单条数据
|
|
|
+ */
|
|
|
+ @GetMapping("selectOne")
|
|
|
+ public BtBabyUserRelation selectOne(Integer id) {
|
|
|
+ return btBabyUserRelationServiceImpl.selectByPrimaryKey(id);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|