| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.codec.digest.DigestUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @Api(tags = "对外【IAM、PAD端】推送提供接口") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping("/push") |
| | | public class PushController extends BaseController { |
| | | @Autowired |
| | |
| | | zbomIAMService.updateShopInfo(token,uuid,timestamp,shopList); |
| | | r = ApiResponse.successIam("操作成功"); |
| | | }catch (BusinessException e){ |
| | | log.error("【IAM】组织信息更新推送===失败:"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | r = ApiResponse.failed(StringUtils.defaultString(e.getMessage(),"操作失败")); |
| | | }catch (Exception e){ |
| | | log.error("【IAM】组织信息更新推送===失败:"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | success = Constants.ONE; |
| | | r = ApiResponse.failed("操作失败"); |
| | |
| | | zbomIAMService.updateUserInfo(token,uuid,timestamp,upateUserModel); |
| | | r = ApiResponse.successIam("操作成功"); |
| | | }catch (BusinessException e){ |
| | | log.error("【IAM】人员账号信息更新推送===失败:"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | r = ApiResponse.failed(StringUtils.defaultString(e.getMessage(),"操作失败")); |
| | | }catch (Exception e){ |
| | | log.error("【IAM】人员账号信息更新推送===失败:"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | e.getMessage(); |
| | | r = ApiResponse.failed("操作失败"); |
| | |
| | | zbomIAMService.updateRoleInfo(token,uuid,timestamp,upateModel); |
| | | r = ApiResponse.successIam("操作成功"); |
| | | }catch (BusinessException e){ |
| | | log.error("【IAM】角色信息更新推送===失败:"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | r = ApiResponse.failed(StringUtils.defaultString(e.getMessage(),"操作失败")); |
| | | }catch (Exception e){ |
| | | log.error("【IAM】角色信息更新推送===失败:"+e.getMessage()); |
| | | success = Constants.ONE; |
| | | e.getMessage(); |
| | | r = ApiResponse.failed("操作失败"); |
| | |
| | | InputStream inputStream = usersService.getQrCode(generateQRCodeRequest); |
| | | ImageIO.write(ImageIO.read(inputStream),"png",response.getOutputStream()); |
| | | }catch (Exception e){ |
| | | log.error("生成消费者C端小程序码===失败:"+e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | } |