| | |
| | | import com.ruoyi.system.api.domain.dto.AppUserSuggestDto; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @RequestMapping("/app/member") |
| | | public class AppMemberController { |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private MemberService memberService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private MemberSuggestService memberSuggestService; |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/userSuggest", method = RequestMethod.POST) |
| | | @ApiOperation(value = "发起建议") |
| | | @ApiOperation(value = "用户发起建议") |
| | | public R userSuggest(@RequestBody AppUserSuggestDto appUserSuggestDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | appUserSuggestDto.setUserId(userId); |