Browse Source

王宇:更多服务控制层

wangyu 6 years ago
parent
commit
4adac6a3c4

+ 39 - 0
diagbotman-service/src/main/java/com/diagbot/web/MoreServiceController.java

@@ -0,0 +1,39 @@
+package com.diagbot.web;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.entity.LantoneProduct;
+import com.diagbot.facade.DiagLantoneProductFacade;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Description: diagbot更多服务 前端控制器
+ * @author: wangyu
+ * @time: 2018/9/17 18:28
+ */
+@RestController
+@Api(value="diagbot更多服务 前端控制器", tags={"diagbot更多服务 前端控制器"})
+@RequestMapping("/morServices")
+public class MoreServiceController {
+    @Autowired
+    private DiagLantoneProductFacade diagLantoneProductFacade;
+
+    @ApiOperation(value = "根据用户id查询已开通信息", notes = "根据用户id查询已开通信息")
+    @GetMapping("/showProductInfo")
+    @SysLogger("showProductInfo")
+    public RespDTO<LantoneProduct> showProductInfo(Page page){
+
+        /*int userId = Integer.parseInt(UserUtils.getCurrentPrincipleID());//获取用户id*/
+        IPage<LantoneProduct> diagLantoneProducts =diagLantoneProductFacade.productLine(page,1);
+        return RespDTO.onSuc(diagLantoneProducts);
+    }
+}
+
+