Browse Source

feat 相关结构生成

classic_blue 1 day ago
parent
commit
477b71b383

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/BtAccountInfoController.java

@@ -0,0 +1,33 @@
+package edu.travel.web;
+import edu.travel.entity.BtAccountInfo;
+import edu.travel.service.BtAccountInfoServiceImpl;
+import org.springframework.web.bind.annotation.*;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+* 用户表(bt_account_info)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/bt_account_info")
+public class BtAccountInfoController {
+/**
+* 服务对象
+*/
+    @Autowired
+    private BtAccountInfoServiceImpl btAccountInfoServiceImpl;
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public BtAccountInfo selectOne(Integer id) {
+    return btAccountInfoServiceImpl.selectByPrimaryKey(id);
+    }
+
+}

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/BtBabyUserRelationController.java

@@ -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);
+    }
+
+}

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/BtBodyRecordController.java

@@ -0,0 +1,33 @@
+package edu.travel.web;
+import edu.travel.entity.BtBodyRecord;
+import edu.travel.service.BtBodyRecordServiceImpl;
+import org.springframework.web.bind.annotation.*;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+* 宝宝身体记录表(bt_body_record)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/bt_body_record")
+public class BtBodyRecordController {
+/**
+* 服务对象
+*/
+    @Autowired
+    private BtBodyRecordServiceImpl btBodyRecordServiceImpl;
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public BtBodyRecord selectOne(Integer id) {
+    return btBodyRecordServiceImpl.selectByPrimaryKey(id);
+    }
+
+}

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/BtFeedRecordController.java

@@ -0,0 +1,33 @@
+package edu.travel.web;
+import edu.travel.entity.BtFeedRecord;
+import edu.travel.service.BtFeedRecordServiceImpl;
+import org.springframework.web.bind.annotation.*;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+* 喂养记录表(bt_feed_record)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/bt_feed_record")
+public class BtFeedRecordController {
+/**
+* 服务对象
+*/
+    @Autowired
+    private BtFeedRecordServiceImpl btFeedRecordServiceImpl;
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public BtFeedRecord selectOne(Integer id) {
+    return btFeedRecordServiceImpl.selectByPrimaryKey(id);
+    }
+
+}

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/BtMessageController.java

@@ -0,0 +1,33 @@
+package edu.travel.web;
+import edu.travel.entity.BtMessage;
+import edu.travel.service.BtMessageServiceImpl;
+import org.springframework.web.bind.annotation.*;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+* 用户消息表(bt_message)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/bt_message")
+public class BtMessageController {
+/**
+* 服务对象
+*/
+    @Autowired
+    private BtMessageServiceImpl btMessageServiceImpl;
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public BtMessage selectOne(Integer id) {
+    return btMessageServiceImpl.selectByPrimaryKey(id);
+    }
+
+}

+ 1 - 1
babyApplication-web/src/main/java/edu/travel/controller/LoginController.java → babyApplication-web/src/main/java/edu/travel/web/LoginController.java

@@ -1,4 +1,4 @@
-package edu.travel.controller;
+package edu.travel.web;
 
 import edu.travel.dto.LoginDto;
 import edu.travel.dto.SendSmsDto;

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/MtFavoriteSongsController.java

@@ -0,0 +1,33 @@
+package edu.travel.web;
+import edu.travel.entity.MtFavoriteSongs;
+import edu.travel.service.MtFavoriteSongsServiceImpl;
+import org.springframework.web.bind.annotation.*;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+* 歌曲收藏列表(mt_favorite_songs)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/mt_favorite_songs")
+public class MtFavoriteSongsController {
+/**
+* 服务对象
+*/
+    @Autowired
+    private MtFavoriteSongsServiceImpl mtFavoriteSongsServiceImpl;
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public MtFavoriteSongs selectOne(Integer id) {
+    return mtFavoriteSongsServiceImpl.selectByPrimaryKey(id);
+    }
+
+}

+ 33 - 0
babyApplication-web/src/main/java/edu/travel/web/MtRelativeRolesController.java

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