|
@@ -0,0 +1,55 @@
|
|
|
+package com.ruoyi.app.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.ruoyi.app.controller.base.AppBaseController;
|
|
|
+import com.ruoyi.app.domain.TbMyPublish;
|
|
|
+import com.ruoyi.app.service.ITbAppUserService;
|
|
|
+import com.ruoyi.app.service.ITbMyPublishService;
|
|
|
+import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
+import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+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;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 会员管理
|
|
|
+ *
|
|
|
+ * @author Alex
|
|
|
+ * @date 2020-10-09
|
|
|
+ */
|
|
|
+@Api(value = "会员管理",tags = "会员管理")
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/app/user" )
|
|
|
+public class AppUserController extends AppBaseController {
|
|
|
+
|
|
|
+ private final ITbMyPublishService publishService;
|
|
|
+
|
|
|
+ private final ITbAppUserService userService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询家族朋友圈
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "查询家族朋友圈", notes = "查询家族朋友圈")
|
|
|
+ @ApiImplicitParam(name = "userId", value = "会员ID",paramType="Long")
|
|
|
+ @GetMapping("/selectCircle")
|
|
|
+ public TableDataInfo selectCircle(Long userId){
|
|
|
+ LambdaQueryWrapper<TbMyPublish> lqw = new LambdaQueryWrapper();
|
|
|
+ if (userId == null) {
|
|
|
+ return new TableDataInfo();
|
|
|
+ }
|
|
|
+ lqw.eq(TbMyPublish::getAppUserId,userId);
|
|
|
+ List<TbMyPublish> list = publishService.selectPublish(lqw);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|