| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.applets.weixin.CheckService; |
| | | import com.panzhihua.common.constants.Constants; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.CommonDTO; |
| | | import com.panzhihua.common.model.dtos.PageDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComActEasyPhotoCommentDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComActEasyPhotoCommentDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComActEasyPhotoCommentUserDTO; |
| | | import com.panzhihua.common.model.dtos.community.NoticeReadDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComActEasyPhotoCommentDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.advertisement.ComOpsAdvVO; |
| | |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PageGroup; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | return communityService.putEasyPhoto(comActEasyPhotoVO); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "分页展示社区微心愿",response = ComActMicroWishVO.class) |
| | | @PostMapping("pagemicrowish") |
| | | public R pageMicroWish (@RequestBody ComActMicroWishVO comActMicroWishVO){ |
| | |
| | | return userService.agreement(type); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("发布留言") |
| | | @PostMapping("addmessage") |
| | | public R addMessage(@RequestBody @Validated(AddGroup.class) ComActMessageVO comActMessageVO){ |
| | |
| | | comActMessageVO.setPhone(loginUserInfo.getPhone()); |
| | | return communityService.pageSendToMessageApplets(comActMessageVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页显示指定用户的留言",response =ComActMessageVO.class ) |
| | | @PostMapping("pagemessagebyuser") |
| | | public R pageMessageByUser (@RequestBody ComActMessageVO comActMessageVO){ |