Procházet zdrojové kódy

feat 相关结构生成

classic_blue před 1 dnem
rodič
revize
2d7302589a

+ 1 - 18
babyApplication-web/src/main/java/edu/travel/web/BtAccountInfoController.java

@@ -1,6 +1,5 @@
 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;
@@ -12,22 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 */
 @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);
-    }
+public class BtAccountInfoController extends BaseController<BtAccountInfo>{
 
 }

+ 1 - 20
babyApplication-web/src/main/java/edu/travel/web/BtBabyUserRelationController.java

@@ -1,6 +1,4 @@
 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;
@@ -13,21 +11,4 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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);
-    }
-
-}
+}

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

@@ -1,6 +1,4 @@
 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;
@@ -13,21 +11,5 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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);
-    }
 
 }

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

@@ -1,6 +1,4 @@
 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;
@@ -13,21 +11,5 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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);
-    }
 
 }

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

@@ -1,6 +1,4 @@
 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;
@@ -13,21 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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 - 17
babyApplication-web/src/main/java/edu/travel/web/MtFavoriteSongsController.java

@@ -1,6 +1,5 @@
 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;
@@ -13,21 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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);
-    }
 
 }

+ 1 - 17
babyApplication-web/src/main/java/edu/travel/web/MtRelativeRolesController.java

@@ -1,6 +1,5 @@
 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;
@@ -13,21 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 @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);
-    }
 
 }