| | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.Jwt.JwtProperties; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.config.annotation.EncryptionReq; |
| | | import com.doumee.config.annotation.EncryptionResp; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.Constants; |
| | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("H5业务登录") |
| | | @PostMapping("/loginH5") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<Member> loginH5 (@RequestBody LoginH5DTO dto) { |
| | | try { |
| | | //拿CODE换qwid,先查下本系统是否存在,存在直接返回member,否则用qwid查询企业用户数据,插入数据库(member) |
| | |
| | | @LoginRequired |
| | | @ApiOperation("更新用户邮箱信息") |
| | | @PostMapping("/upateInfo") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse upateInfo (@RequestBody UpdEmailDTO updEmailDTO ,@RequestHeader(JwtTokenUtil.HEADER_KEY) String token) { |
| | | try { |
| | | Member user = jwtTokenUtil.getUserInfoByToken(token); |
| | |
| | | @ApiOperation("获取企业微信JS签名") |
| | | @PostMapping("/getQwSignature") |
| | | @ResponseBody |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<WebQwSingatureVO> getQwSignature(@RequestBody WebQwSingatureDto param) { |
| | | try { |
| | | String jsapiTicket = systemDictDataBiz.queryByCode(Constants.QYWX,Constants.QYWX_JS_API_TICKET).getCode(); |
| | |
| | | @LoginRequired |
| | | @ApiOperation("查询可被抄送人分页") |
| | | @PostMapping("/getCopySendUserPage") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<PageData<Member>> getCopySendUserPage (@RequestBody PageWrap<Member> pageWrap) { |
| | | pageWrap.getModel().setIsSendCopy(Constants.ONE); |
| | | return ApiResponse.success(memberService.findPage(pageWrap)); |