From 39fd893c2d4cf695284826655c3f59bd769cfedd Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期一, 04 一月 2021 19:45:05 +0800 Subject: [PATCH] 广告通知接口 --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java | 74 +++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java index f43cac8..46c85b0 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/UserApi.java @@ -1,5 +1,9 @@ package com.panzhihua.service_user.api; +import com.panzhihua.common.model.dtos.PageDTO; +import com.panzhihua.common.model.dtos.community.NoticeReadDTO; +import com.panzhihua.common.model.dtos.user.PageUserAppletsBackstageDTO; +import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; import com.panzhihua.common.model.vos.LoginUserInfoVO; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.SystemmanagementConfigVO; @@ -340,4 +344,74 @@ public R putComMngUserTag(@RequestBody SystemmanagementConfigVO systemmanagementConfigVO){ return userService.putComMngUserTag(systemmanagementConfigVO); } + + /** + * 分页查询小程序用户 + * @param pageUserAppletsBackstageDTO 查询参数 + * @return 分页集合 + */ + @PostMapping("pageuserappletsbackstage") + public R pageUserAppletsBackstage(@RequestBody PageUserAppletsBackstageDTO pageUserAppletsBackstageDTO){ + return userService.pageUserAppletsBackstage(pageUserAppletsBackstageDTO); + } + + /** + * 编辑用户状态 + * @param pageUserAppletsBackstageDTO 启用或者禁用 1 启用 2 禁用 + * @return 编辑结果 + */ + @PostMapping("putuserappletsbackstage") + public R putUserAppletsBackstage(@RequestBody PageUserAppletsBackstageDTO pageUserAppletsBackstageDTO){ + return userService.putUserAppletsBackstage(pageUserAppletsBackstageDTO); + } + + /** + * 调试接口--清除昵称、社区、小区 + * @param userId 登录用户id + * @return 清除结果 + */ + @PostMapping("deleteusertest") + public R deleteUserTest(@RequestParam("userId")Long userId){ + return userService.deleteUserTest(userId); + } + + /** + * 用户协议和隐私政策 + * @param type 所属app 1居民端app 2网格员端app 3商家端app + * @return 协议内容 + */ + @PostMapping("useragreement") + public R userAgreement(@RequestParam("type")int type){ + return userService.userAgreement(type); + } + + /** + * 意见反馈 + * @param sysUserFeedbackDTO 反馈内容 + * @return 反馈结果 + */ + @PostMapping("addfeedback") + public R addFeedback(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){ + return userService.addFeedback(sysUserFeedbackDTO); + } + + /** + * 分页通知列表 + * @param pageDTO 分页参数 + * @return 分页结果 + */ + @PostMapping("pagenotice") + public R pageNotice(@RequestBody PageDTO pageDTO){ + return userService.pageNotice(pageDTO); + } + + /** + * 通知已读 + * @param noticeReadDTO 通知已读 + * @return 修改状态 + */ + @PostMapping("putnotice") + public R putNotice(@RequestBody NoticeReadDTO noticeReadDTO){ + return userService.putNotice(noticeReadDTO); + } } -- Gitblit v1.7.1