From 1b6ec86cbd1dba77f665426dbcd4851ee4ea8ed8 Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 28 十一月 2022 14:30:38 +0800 Subject: [PATCH] Merge branch 'local_20221104' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java index 7115cc6..afb173f 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java @@ -16,6 +16,7 @@ import com.panzhihua.common.model.dtos.community.social.PageProjectDTO; import com.panzhihua.common.model.vos.community.rentHouse.WxPayOrderVO; import com.panzhihua.common.utlis.DateUtils; +import io.swagger.annotations.ApiParam; import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.data.redis.core.StringRedisTemplate; @@ -402,7 +403,7 @@ if (StrUtil.isNotBlank(msg)) { String result = checkService.checkMessageBy(msg, this.getLoginUserInfo().getOpenid(),this.getAppId()); if (StrUtil.isNotBlank(result)) { - return R.fail(Constants.NOTICE_FAIL, "填写内容存在 " + result + " 违规信息"); + return R.fail(501, "填写内容存在 " + result + " 违规信息"); } } LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); @@ -524,4 +525,24 @@ pageProjectDTO.setUserId(this.getUserId()); return communityService.pageProjectWhichIsSignedByUser(pageProjectDTO); } + + @ApiOperation("获取用户") + @GetMapping("selectAutomessageSysUserById") + public R selectAutomessageSysUserById(@RequestParam("id")Long id){ + return communityService.selectAutomessageSysUserById(id); + } + + @ApiOperation("新增投诉建议或问题留言") + @PostMapping("addFeedBack") + public R addFeedBack(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){ + sysUserFeedbackDTO.setCommunityId(null); + return userService.addFeedback(sysUserFeedbackDTO); + } + + @ApiOperation("查看自己的投诉建议或问题留言记录") + @GetMapping("myFeedBack") + public R myFeedBack(@ApiParam("类型:1问题留言2投诉建议") @RequestParam(value = "type",required = false)Integer type,@RequestParam("propertyId")Long propertyId){ + return userService.myFeedBack(this.getLoginUserInfo().getUserId(),type,propertyId); + } + } -- Gitblit v1.7.1