Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
| | |
| | | List<ZTAreaInfoResponse> getAreaList(ZTAreaListRequest param); |
| | | List<ZTAreaTreeResponse> getAreaTreeList(ZTAreaListRequest param); |
| | | boolean bindCustomerFavorites(ZTBindCusFavoriteDoRequest param); |
| | | ZSZXCatalogResponse getZSZXCatalogs(); |
| | | ZTBasePageResponse<ZTCusFavoritesInfoResponse> pageCusFavoriteList(ZTContentListRequest param); |
| | | |
| | | List<ZTCusCarouselImageResponse> carouselImageList(ZTContentListRequest param); |
| | | ZTCusCarouselImageResponse carouselImageDetail(ZTDataDetailRequest param); |
| | | ZTBasePageResponse<ZTCollectLikeInfoResponse> collectLikePage(ZTCollectLikeRequest param); |
| | | } |
| | |
| | | * è·åç¨æ·ç»étoken |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ZSZXCatalogResponse getZSZXCatalogs(){ |
| | | ZSZXCatalogResponse response = new ZSZXCatalogResponse(); |
| | | ZTCatalogListRequest param = new ZTCatalogListRequest(); |
| | | param.setCatalogCode(ZTConstants.CatalogCode.ZHISHUO_ZHUANGXIU); |
| | | List<ZTCatalogInfoResponse> cataList = getCatalogList(param); |
| | | if(cataList!=null ){ |
| | | for(ZTCatalogInfoResponse data : cataList){ |
| | | if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.JIADE_ID)){ |
| | | response.setJdId(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.CHUFANGSHEJI)){ |
| | | response.setCfsj(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.QW_SHEJI)){ |
| | | response.setQwsj(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.SHOUNASHEJI)){ |
| | | response.setSnsj(data); |
| | | } |
| | | } |
| | | } |
| | | return response; |
| | | } |
| | | |
| | | /** |
| | | * ç¨æ·ä¿¡æ¯åæ¥ |
| | | * @param param |
| | |
| | | log.error("ãä¸å°æ¥å£ï¼"+name+"ã================失败====ï¼\n"+ res); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åæç忬¢/æ¶èå表 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ZTBasePageResponse<ZTCollectLikeInfoResponse> collectLikePage(ZTCollectLikeRequest param){ |
| | | ZTBaseResponse<ZTBasePageResponse<ZTCollectLikeInfoResponse>> result = sendHttpRequest( |
| | | ZTConstants.IntegerUrl.FAVORITES_PAGE_URL, |
| | | ZTConstants.IntegerName.FAVORITES_NAME, |
| | | param.getToken(), |
| | | param.getUserType(), |
| | | JSONObject.toJSONString(param ), |
| | | new TypeReference<ZTBaseResponse<ZTBasePageResponse<ZTCollectLikeInfoResponse>>>(){}); |
| | | if(result!=null){ |
| | | return result.getData(); |
| | | } |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.biz.zbom.model.zhongtai; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/7/19 11:33 |
| | | */ |
| | | @Data |
| | | public class APISpaceCaseVo { |
| | | |
| | | private String caseInfo; |
| | | /** |
| | | * 空é´ä¸»å¾ |
| | | */ |
| | | private String coverImage; |
| | | private String id; |
| | | /** |
| | | * 空é´å¾ç |
| | | */ |
| | | private String[] imgList; |
| | | private String intro; |
| | | private String publishDate; |
| | | private String publishDt; |
| | | /** |
| | | * ç©ºé´æè¿° |
| | | */ |
| | | private String spaceDesc; |
| | | /** |
| | | * 空é´åç§° |
| | | */ |
| | | private String spaceName; |
| | | private String title; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.biz.zbom.model.zhongtai; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | @Data |
| | | public class ZTCollectLikeRequest extends ZTBaseRequst { |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡ç±»å æä¸¾å¼: whole_case real_case product_intro") |
| | | private String businessType; |
| | | |
| | | @ApiModelProperty(value = "å½å页") |
| | | private String pageNum; |
| | | |
| | | @ApiModelProperty(value = "æ¯é¡µæ¡æ°") |
| | | private String pageSize; |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡ç±»å« collect like") |
| | | private String businessCategory; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®",hidden = true) |
| | | private String userId; |
| | | } |
| | |
| | | String WHOLECASE_INFO_URL ="/content/api/wholeCaseDetail"; |
| | | String REALCASE_PAGE_LIST_URL ="/content/api/realCasePageList"; |
| | | String REALCASE_INFO_URL ="/content/api/realCaseDetail"; |
| | | String FAVORITES_PAGE_URL ="/behavior/api/favoritesPageList"; |
| | | |
| | | |
| | | } |
| | | public interface IntegerName{ |
| | | String USER_UPDATE_NAME ="ç¨æ·ä¿¡æ¯åæ¥"; |
| | |
| | | String REALCASE_PAGE_LIST_NAME ="è·å宿¯æ¡ä¾å表"; |
| | | String REALCASE_INFO_NAME ="è·å宿¯æ¡ä¾è¯¦æ
"; |
| | | |
| | | String FAVORITES_NAME ="è·åæç忬¢/æ¶èå表"; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty(value = "æåºæ¹å¼ NORMAL - é»è®¤ï¼HOT - æçï¼LATEST - ææ°ï¼") |
| | | private String sortType; |
| | | |
| | | @ApiModelProperty(value = "å¤ä¸ªæ ç¾å¯ä¸ç¼ç çå表ï¼å¤ä¸ªæ ç¾å¯ä¸ç¼ç çå表",hidden = true) |
| | | private List<String> tagCode; |
| | | @ApiModelProperty(value = "å¤ä¸ªæ ç¾å¯ä¸ç¼ç çå表ï¼å¤ä¸ªæ ç¾å¯ä¸ç¼ç çå表") |
| | | private List<String> tagCodes; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ä¸»é®",hidden = true) |
| | |
| | | package com.doumee.biz.zbom.model.zhongtai.response; |
| | | |
| | | import com.doumee.biz.zbom.model.zhongtai.APISpaceCaseVo; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | */ |
| | | @Data |
| | | public class ZTCaseInfoResponse implements Serializable { |
| | | private String apiSpaceCaseVos; |
| | | private APISpaceCaseVo[] apiSpaceCaseVos; |
| | | private String caseInfo; |
| | | /** |
| | | * æ¶èé |
| | |
| | | * æµè§é |
| | | */ |
| | | private String viewCount; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.biz.zbom.model.zhongtai.response; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | |
| | | /** |
| | | * æç忬¢/æ¶è |
| | | */ |
| | | @Data |
| | | public class ZTCollectLikeInfoResponse implements Serializable { |
| | | /** |
| | | * æ¶èæ° |
| | | */ |
| | | @ApiModelProperty(value = "id") |
| | | private String id; |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String displayName; |
| | | /** |
| | | * 缩ç¥å¾ |
| | | */ |
| | | @ApiModelProperty(value = "缩ç¥å¾") |
| | | private String thumbnailUrl; |
| | | |
| | | @ApiModelProperty(value = "æµè§é") |
| | | private Integer viewCount; |
| | | |
| | | @ApiModelProperty(value = "æ¶èé") |
| | | private Integer collectCount; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.doumee.biz.zbom.model.zhongtai.response; |
| | | |
| | | import com.doumee.biz.zbom.model.zhongtai.APISpaceCaseVo; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | */ |
| | | @Data |
| | | public class ZTRealcaseInfoResponse implements Serializable { |
| | | |
| | | private String caseInfo; |
| | | private String collectCount; |
| | | /** |
| | | * ä¸»å¾ |
| | | */ |
| | | @ApiModelProperty(value = "主å¾") |
| | | private String coverImage; |
| | | private String id; |
| | | private String[] imgList; |
| | | /** |
| | | * æ¯å¦æ¶è true:æ¶è false:æªæ¶è |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¶è true:æ¶è false:æªæ¶è") |
| | | private boolean isCollection; |
| | | /** |
| | | * å叿¥æ |
| | | */ |
| | | @ApiModelProperty(value = "å叿¥æ") |
| | | private String publishDt; |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | private String title; |
| | | private String viewCount; |
| | | |
| | | private String contentCategory; |
| | | private String intro; |
| | | private String linkAddress; |
| | | /** |
| | | * æå¼å
容 |
| | | */ |
| | | @ApiModelProperty(value = "æå¼å
容") |
| | | private String openContent; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "å
容æå¼æ¹å¼(å
é¨é¡µé¢pageãè§é¢videoã坿æ¬textãå¤é¨é¾æ¥link)") |
| | | private String openType; |
| | | /** |
| | | * å¾æè¯¦æ
|
| | | */ |
| | | private APISpaceCaseVo[] apiSpaceCaseVos; |
| | | /** |
| | | * 720å
¨æ¯å°å |
| | | */ |
| | | private String layoutUlr; |
| | | private String panorama; |
| | | |
| | | /** |
| | | * 详æ
å¾ç |
| | | */ |
| | | private String[] contentImgList; |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | private String[] contentLabelList; |
| | | /** |
| | | * 详æ
ææ¬ |
| | | */ |
| | | private String contentText; |
| | | private String recommandTitle; |
| | | |
| | | } |
| | |
| | | public Boolean checkLogin(HttpServletRequest request, HttpServletResponse response){ |
| | | String token = request.getHeader(JwtTokenUtil.HEADER_KEY); |
| | | try { |
| | | //夿Tokenæ¯å¦è¶
æ¶ |
| | | boolean expiration = JwtTokenUtil.isTokenExpired(token); |
| | | if (expiration) { |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | //è·åè´¦å·ID |
| | | Long memberId = JwtTokenUtil.getJwtPayLoad(token).getUserId(); |
| | | Integer userType = JwtTokenUtil.getJwtPayLoad(token).getUserType(); |
| | | if(!Constants.equalsInteger(userType,Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"æ è®¿é®æé"); |
| | | String tokenRedis = (String) redisTemplate.opsForValue().get(ZTConstants.CUSTOMER+"_"+memberId); |
| | | if(StringUtils.isNotBlank(tokenRedis)){ |
| | | if(!tokenRedis.equals(token)){ |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | Member member = dao.queryForObject(" select * from `member` where id = ? limit 1 ", new BeanPropertyRowMapper<>(Member.class),memberId ); |
| | | if(Objects.isNull(member)){ |
| | |
| | | public Boolean checkPersonnelLogin(HttpServletRequest request, HttpServletResponse response){ |
| | | String token = request.getHeader(JwtTokenUtil.HEADER_KEY); |
| | | try { |
| | | if(isDebug){ |
| | | return true; |
| | | } |
| | | //夿Tokenæ¯å¦è¶
æ¶ |
| | | boolean expiration = JwtTokenUtil.isTokenExpired(token); |
| | | if (expiration) { |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | //è·åè´¦å·ID |
| | | Long userId = JwtTokenUtil.getJwtPayLoad(token).getUserId(); |
| | | Integer userType = JwtTokenUtil.getJwtPayLoad(token).getUserType(); |
| | | if(!Constants.equalsInteger(userType,Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"æ è®¿é®æé"); |
| | | String tokenRedis = (String) redisTemplate.opsForValue().get(ZTConstants.BUSINESS+"_"+userId); |
| | | if(StringUtils.isNotBlank(tokenRedis)){ |
| | | if(!tokenRedis.equals(token)){ |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.TOKEN_EXCEED_TIME.getCode(),"é¿æ¶é´æªæä½,è¯·éæ°ç»å½"); |
| | | } |
| | | Users users = dao.queryForObject(" select * from `users` where id = ? limit 1 ", new BeanPropertyRowMapper<>(Users.class),userId); |
| | | if(Objects.isNull(users)){ |
| | |
| | | if(Constants.equalsInteger(users.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·å·²å é¤,请è系管çå"); |
| | | } |
| | | if(!StringUtils.equals(users.getStatus(),Constants.ZERO+"")){ |
| | | if(!StringUtils.equals(users.getStatus(),Constants.ONE+"")){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·å·²ç¦ç¨,请è系管çå"); |
| | | } |
| | | request.setAttribute(JwtTokenUtil.UserId_Name, userId); |
| | |
| | | @ApiModelProperty(value = "æè¿åå¸å¤æ³¨") |
| | | @ExcelColumn(name="æè¿åå¸å¤æ³¨") |
| | | private String publishInfo; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æä½äºº") |
| | | @ExcelColumn(name="æä½äºº") |
| | | @TableField(exist = false) |
| | |
| | | @ExcelColumn(name="微信openid") |
| | | private String openid; |
| | | |
| | | @ApiModelProperty(value = "è´¦æ·ç¶æ 0åç¨ï¼1å¯ç¨", example = "1") |
| | | @ApiModelProperty(value = "è´¦æ·ç¶æ 0åç¨ï¼1å¯ç¨ï¼-1å é¤", example = "1") |
| | | @ExcelColumn(name="è´¦æ·ç¶æ 0åç¨ï¼1å¯ç¨") |
| | | private String status; |
| | | |
| | |
| | | |
| | | import com.doumee.biz.zbom.model.zhongtai.*; |
| | | import com.doumee.biz.zbom.model.zhongtai.response.*; |
| | | import com.doumee.dao.web.response.ZSZXCatalogResponse; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @date 2024/07/04 14:40 |
| | | */ |
| | | public interface GetZhongTaiDataService { |
| | | |
| | | |
| | | ZSZXCatalogResponse getZSZXCatalogs(Long userId); |
| | | |
| | | /** |
| | | * åç±»æ°æ® |
| | |
| | | */ |
| | | ZTRealcaseInfoResponse getRealcaseInfo(String id,String userType,Long userId); |
| | | |
| | | /** |
| | | * ä¸å° - æçæ¶è/忬¢å表 |
| | | * @param ztContentListRequest |
| | | * @return |
| | | */ |
| | | ZTBasePageResponse<ZTCollectLikeInfoResponse> collectLikePage(ZTCollectLikeRequest ztCollectLikeRequest); |
| | | } |
| | |
| | | * @param userId |
| | | */ |
| | | void saveShareRecord(Long id,Long userId); |
| | | |
| | | } |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTBaseRequst; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Member; |
| | |
| | | void editUserInfo(EditUsersRequest editUsersRequest); |
| | | |
| | | String getContentShareImg(Users loginUserInfo, ContentShareImgDto param); |
| | | |
| | | ZTBaseRequst logOff(Long userId); |
| | | } |
| | |
| | | .eq(CustomerLog::getIsdeleted, Constants.ZERO) |
| | | .eq(Objects.nonNull(pageWrap.getModel().getType()),CustomerLog::getType, pageWrap.getModel().getType()) |
| | | .eq(Objects.nonNull(pageWrap.getModel().getMemberId()),Customer::getMemberId, pageWrap.getModel().getMemberId()); |
| | | |
| | | if (pageWrap.getModel().getMemberId() != null) { |
| | | queryWrapper.eq(Customer::getMemberId, pageWrap.getModel().getMemberId()); |
| | | } |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.eq(CustomerLog::getId, pageWrap.getModel().getId()); |
| | | } |
| | |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.UsersMapper; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.web.response.ZSZXCatalogResponse; |
| | | import com.doumee.dao.web.response.ZTBaseInfoResponse; |
| | | import com.doumee.service.business.GetZhongTaiDataService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | |
| | | @Autowired |
| | | private RedisTemplate<String, Object> redisTemplate; |
| | | |
| | | |
| | | @Override |
| | | public ZSZXCatalogResponse getZSZXCatalogs(Long userId){ |
| | | ZSZXCatalogResponse response = new ZSZXCatalogResponse(); |
| | | ZTCatalogListRequest param = new ZTCatalogListRequest(); |
| | | param.setUserId(userId.toString()); |
| | | param.setUserType(ZTConstants.CUSTOMER); |
| | | param.setCatalogCode(ZTConstants.CatalogCode.ZHISHUO_ZHUANGXIU); |
| | | List<ZTCatalogInfoResponse> cataList = getCatalogList(param); |
| | | if(cataList!=null ){ |
| | | for(ZTCatalogInfoResponse data : cataList){ |
| | | if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.JIADE_ID)){ |
| | | response.setJdId(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.CHUFANGSHEJI)){ |
| | | response.setCfsj(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.QW_SHEJI)){ |
| | | response.setQwsj(data); |
| | | }else if(StringUtils.equals(data.getCode(), ZTConstants.CatalogCode.SHOUNASHEJI)){ |
| | | response.setSnsj(data); |
| | | } |
| | | } |
| | | } |
| | | return response; |
| | | } |
| | | |
| | | @Override |
| | | public List<ZTCatalogInfoResponse> getCatalogList(ZTCatalogListRequest ztCatalogListRequest){ |
| | |
| | | || StringUtils.isBlank(ztCatalogListRequest.getCatalogCode())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | ZTBaseInfoResponse ztBaseInfoResponse = MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz,Long.valueOf(ztCatalogListRequest.getUserId()),ztCatalogListRequest.getUserType()); |
| | | System.out.println(JSONObject.toJSONString(ztBaseInfoResponse)); |
| | | ztCatalogListRequest.setOpenId(ztBaseInfoResponse.getOpenId()); |
| | | ztCatalogListRequest.setToken(ztBaseInfoResponse.getToken()); |
| | | return zbomZhongTaiService.getCatalogList(ztCatalogListRequest); |
| | | } |
| | | |
| | |
| | | || StringUtils.isBlank(ztCatalogListRequest.getCatalogCode())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | ZTBaseInfoResponse ztBaseInfoResponse = MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz,Long.valueOf(ztCatalogListRequest.getUserId()),ztCatalogListRequest.getUserType()); |
| | | ztCatalogListRequest.setOpenId(ztBaseInfoResponse.getOpenId()); |
| | | ztCatalogListRequest.setToken(ztBaseInfoResponse.getToken()); |
| | | return zbomZhongTaiService.getTagList(ztCatalogListRequest); |
| | | } |
| | | |
| | |
| | | String data = (String) redisTemplate.opsForValue().get(Constants.RedisKeys.ZBOM_AREA_REDIS_KEY); |
| | | List<ZTAreaTreeResponse> ztAreaTreeResponses = new ArrayList<>(); |
| | | if(StringUtils.isBlank(data)){ |
| | | ZTBaseInfoResponse ztBaseInfoResponse = MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz,Long.valueOf(ztAreaListRequest.getUserId()),ztAreaListRequest.getUserType()); |
| | | ztAreaListRequest.setOpenId(ztBaseInfoResponse.getOpenId()); |
| | | ztAreaListRequest.setToken(ztBaseInfoResponse.getToken()); |
| | | ztAreaTreeResponses = zbomZhongTaiService.getAreaTreeList(ztAreaListRequest); |
| | | redisTemplate.opsForValue().set(Constants.RedisKeys.ZBOM_AREA_REDIS_KEY,JSONArray.toJSONString(ztAreaTreeResponses)); |
| | | if(CollectionUtils.isNotEmpty(ztAreaTreeResponses)){ |
| | | redisTemplate.opsForValue().set(Constants.RedisKeys.ZBOM_AREA_REDIS_KEY,JSONArray.toJSONString(ztAreaTreeResponses)); |
| | | } |
| | | }else{ |
| | | ztAreaTreeResponses = JSONArray.parseArray(data,ZTAreaTreeResponse.class); |
| | | } |
| | |
| | | return response; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public ZTBasePageResponse<ZTCollectLikeInfoResponse> collectLikePage(ZTCollectLikeRequest ztCollectLikeRequest){ |
| | | if(Objects.isNull(ztCollectLikeRequest) |
| | | || Objects.isNull(ztCollectLikeRequest.getPageNum()) |
| | | || Objects.isNull(ztCollectLikeRequest.getPageSize()) |
| | | || StringUtils.isBlank(ztCollectLikeRequest.getBusinessType()) |
| | | || StringUtils.isBlank(ztCollectLikeRequest.getBusinessCategory()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | //æ¥è¯¢ ä¸å° |
| | | ZTBaseInfoResponse ztBaseInfoResponse = MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz, |
| | | Long.valueOf(ztCollectLikeRequest.getUserId()),ztCollectLikeRequest.getUserType()); |
| | | ztCollectLikeRequest.setToken(ztBaseInfoResponse.getToken()); |
| | | ZTBasePageResponse<ZTCollectLikeInfoResponse> response = zbomZhongTaiService.collectLikePage(ztCollectLikeRequest); |
| | | return response; |
| | | } |
| | | } |
| | |
| | | this.saveCustomerUser(users,member.getId()); |
| | | }else{ |
| | | ZTUserGetTokenResponse ztUserGetTokenResponse = this.syncZhongTaiUser(member); |
| | | if(Objects.isNull(ztUserGetTokenResponse)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ä¸å°æå¡è°èµ·å¤±è´¥!"); |
| | | }else{ |
| | | if(!Objects.isNull(ztUserGetTokenResponse)){ |
| | | member.setToken(ztUserGetTokenResponse.getToken()); |
| | | memberMapper.updateById(member); |
| | | } |
| | | this.saveCustomerUser(users,member.getId()); |
| | | member = this.getMemberInfo(member.getId()); |
| | | |
| | | } |
| | | //å建token |
| | | JwtPayLoad payLoad = new JwtPayLoad(member.getId(),Constants.ZERO); |
| | | String token = JwtTokenUtil.generateToken(payLoad); |
| | | redisTemplate.opsForValue().set(ZTConstants.CUSTOMER+"_"+member.getId(),token); |
| | | AccountResponse accountResponse = new AccountResponse(); |
| | | accountResponse.setToken(token); |
| | | accountResponse.setSessionKey(session.getSessionKey()); |
| | |
| | | ztUserInfoUpdateRequest.setHouseLayout(Constants.getHouseLayout(member.getHousetype())); |
| | | ZTBaseResponse userUpdateInfo = zbomZhongTaiService.userUpdateInfo(ztUserInfoUpdateRequest); |
| | | if(Objects.isNull(userUpdateInfo)||userUpdateInfo.getCode()!=200){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ä¸å°ä¿¡æ¯æ´æ°å¤±è´¥ï¼è¯·è系管çå"); |
| | | return null; |
| | | } |
| | | ZTUserGetTokenResponse ztUserGetTokenResponse = (ZTUserGetTokenResponse) userUpdateInfo.getData(); |
| | | return ztUserGetTokenResponse; |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(StringUtils.isBlank(member.getPhone())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"ç¨æ·å·²æ³¨é"); |
| | | redisTemplate.delete(ZTConstants.CUSTOMER+"_"+ member.getId()); |
| | | return null; |
| | | } |
| | | //æ ¡éªç¨æ·tokenä¿¡æ¯ |
| | | MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz,member.getId(),ZTConstants.CUSTOMER); |
| | |
| | | .set(Member::getEditDate,new Date()) |
| | | .eq(Member::getId,member.getId()) |
| | | ); |
| | | redisTemplate.delete(ZTConstants.CUSTOMER+"_"+ member.getId()); |
| | | return ztBaseRequst; |
| | | } |
| | | |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.dingtalk.api.request.OapiMaterialNewsListRequest; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import cn.hutool.core.date.DateUnit; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.biz.zbom.ZbomZhongTaiService; |
| | | import com.doumee.biz.zbom.model.IamUserRoleModel; |
| | | import com.doumee.biz.zbom.model.IamUserTypeModel; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTBaseRequst; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTConstants; |
| | | import com.doumee.config.Jwt.JwtPayLoad; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.core.annotation.excel.ExcelImporter; |
| | |
| | | import com.doumee.core.utils.tyyun.TyyZosUtil; |
| | | import com.doumee.dao.admin.request.ShopImport; |
| | | import com.doumee.dao.admin.request.UserImport; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.ShopMapper; |
| | | import com.doumee.core.wx.WxMiniConfig; |
| | | import com.doumee.dao.business.SmsEmailMapper; |
| | |
| | | private SmsEmailMapper smsEmailMapper; |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private MemberMapper memberMapper; |
| | | |
| | | @Autowired |
| | | private ZbomZhongTaiService zbomZhongTaiService; |
| | | |
| | | @Override |
| | | public Long create(Users users) { |
| | |
| | | } |
| | | Users users = usersMapper.selectOne(new QueryWrapper<Users>().lambda().eq(Users::getPhone,phone).last("limit 1")); |
| | | if(Objects.isNull(users)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"æªæ¥è¯¢å°è´¦æ·ä¿¡æ¯"); |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对ä¸èµ·ï¼è´¦å·ä¿¡æ¯ä¸åå¨ï¼"); |
| | | } |
| | | if(!Constants.equalsInteger(users.getIsdeleted(), Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åè´¦æ·å·²å é¤"); |
| | | } |
| | | if(!StringUtils.equals(users.getStatus(),Constants.ZERO+"")){ |
| | | if(StringUtils.equals(users.getStatus(),Constants.ZERO+"")){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åè´¦æ·å·²åç¨ï¼è¯·è系管çå"); |
| | | } |
| | | //éªè¯çä¿¡ |
| | |
| | | //å建token |
| | | JwtPayLoad payLoad = new JwtPayLoad(users.getId(),Constants.ONE); |
| | | String token = JwtTokenUtil.generateToken(payLoad); |
| | | redisTemplate.opsForValue().set(ZTConstants.BUSINESS+"_"+users.getId(),token); |
| | | AccountResponse accountResponse = new AccountResponse(); |
| | | accountResponse.setToken(token); |
| | | accountResponse.setUsers(users); |
| | |
| | | if(!StringUtils.equals(users.getStatus(),Constants.ZERO+"")){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åè´¦æ·å·²åç¨ï¼è¯·è系管çå"); |
| | | } |
| | | users.setOpenid(openId); |
| | | usersMapper.updateById(users); |
| | | //å建token |
| | | JwtPayLoad payLoad = new JwtPayLoad(users.getId(),Constants.ONE); |
| | | String token = JwtTokenUtil.generateToken(payLoad); |
| | | redisTemplate.opsForValue().set(ZTConstants.BUSINESS+"_"+users.getId(),token); |
| | | accountResponse.setToken(token); |
| | | getUsersDetail(users); |
| | | accountResponse.setUsers(users); |
| | | return accountResponse; |
| | | } catch (WxErrorException e) { |
| | |
| | | if(Objects.isNull(users)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(Constants.equalsInteger(users.getIsdeleted(),Constants.ZERO)){ |
| | | if(!Constants.equalsInteger(users.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"ç¨æ·å·²ç¦ç¨"); |
| | | } |
| | | getUsersDetail(users); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public ZTBaseRequst logOff(Long userId){ |
| | | Users users = usersMapper.selectById(userId); |
| | | if(Objects.isNull(users)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(StringUtils.isBlank(users.getOpenid())){ |
| | | redisTemplate.delete(ZTConstants.BUSINESS+"_"+ users.getId()); |
| | | return null; |
| | | } |
| | | //æ ¡éªç¨æ·tokenä¿¡æ¯ |
| | | MemberServiceImpl.getZTToken(zbomZhongTaiService,memberMapper,usersMapper,systemDictDataBiz,users.getId(), ZTConstants.BUSINESS); |
| | | //è°èµ·ä¸å°æ³¨éæ¥å£ |
| | | ZTBaseRequst ztBaseRequst = new ZTBaseRequst(); |
| | | ztBaseRequst.setUserType(ZTConstants.BUSINESS); |
| | | ztBaseRequst.setOpenId(users.getOpenid()); |
| | | ztBaseRequst.setToken(users.getToken()); |
| | | usersMapper.update(new UpdateWrapper<Users>().lambda() |
| | | .set(Users::getOpenid,null) |
| | | .set(Users::getEditDate,new Date()) |
| | | .eq(Users::getId,users.getId()) |
| | | ); |
| | | redisTemplate.delete(ZTConstants.BUSINESS+"_"+ users.getId()); |
| | | return ztBaseRequst; |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | return obj != null ? (Long) obj : null; |
| | | } |
| | | protected Long getUserId() { |
| | | if(isDebug){ |
| | | return 2L; |
| | | } |
| | | // if(isDebug){ |
| | | // return 2L; |
| | | // } |
| | | Object obj = this.getRequest().getAttribute(JwtTokenUtil.UserId_Name); |
| | | return obj != null ? (Long) obj : null; |
| | | } |
| | |
| | | @Autowired |
| | | public SmsEmailService smsEmailService; |
| | | |
| | | @ApiOperation(value = "C端å°ç¨åº-è·åé¦é¡µå¿è¯´è£
ä¿®å个模åç±»ç®æ°æ®", notes = "è·åé¦é¡µå¿è¯´è£
ä¿®å个模åç±»ç®æ°æ®") |
| | | @PostMapping("/getZSZXCatalogs") |
| | | public ApiResponse<ZSZXCatalogResponse> getZSZXCatalogs() { |
| | | return ApiResponse.success(zbomZhongTaiService.getZSZXCatalogs()); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.doumee.biz.zbom.ZbomCRMService; |
| | | import com.doumee.biz.zbom.ZbomZhongTaiService; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTAreaListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTConstants; |
| | | import com.doumee.biz.zbom.model.zhongtai.response.ZTAreaInfoResponse; |
| | | import com.doumee.biz.zbom.model.zhongtai.response.ZTAreaTreeResponse; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "è·ååºåå
¨éæ 形信æ¯", notes = "客æ·ç«¯å°ç¨åº") |
| | | @PostMapping("/getAreaTree") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<List<ZTAreaTreeResponse>> getAreaTree(@RequestBody ZTAreaListRequest ztAreaListRequest) { |
| | | if(StringUtils.isBlank(ztAreaListRequest.getPid())){ |
| | | ztAreaListRequest.setPid("1"); |
| | |
| | | if(StringUtils.isBlank(ztAreaListRequest.getLevel())){ |
| | | ztAreaListRequest.setLevel("5"); |
| | | } |
| | | ztAreaListRequest.setUserId(getMemberId()+""); |
| | | ztAreaListRequest.setUserType(ZTConstants.CUSTOMER); |
| | | List<ZTAreaTreeResponse> ztAreaInfoResponses = getZhongTaiDataService.getZhongTaiAreaTree(ztAreaListRequest); |
| | | return ApiResponse.success(ztAreaInfoResponses); |
| | | } |
| | |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.biz.zbom.ZbomCRMService; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTCatalogListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTConstants; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTContentListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTDataDetailRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.*; |
| | | import com.doumee.biz.zbom.model.zhongtai.response.*; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | |
| | | import java.beans.Customizer; |
| | | import java.io.InputStream; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @ApiOperation(value = "ç¨æ·æ³¨é", notes = "客æ·ç«¯å°ç¨åº") |
| | | @GetMapping("/logOff") |
| | | public ApiResponse logOff() { |
| | | getZhongTaiDataService.userLogout(memberService.logOff(getMemberId())); |
| | | ZTBaseRequst ztBaseRequst = memberService.logOff(getUserId()); |
| | | if(Objects.nonNull(ztBaseRequst)){ |
| | | getZhongTaiDataService.userLogout(ztBaseRequst); |
| | | } |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "æµè¯å°ç¨åºToken", notes = "客æ·ç«¯å°ç¨åº") |
| | | @GetMapping("/testToken") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse testToken () { |
| | | systemDictDataBiz.updWxMiniToken(); |
| | | return ApiResponse.success("æ´æ°æå"); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "è·åå享å°ç¨åºäºç»´ç ï¼å¾çæµï¼imgæ ç¾srcæå®ï¼", notes = "客æ·ç«¯å°ç¨åº") |
| | |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<PageData<CustomerLog>> customerLogPage(@RequestBody PageWrap<CustomerLog> pageWrap) { |
| | | pageWrap.getModel().setCostomerId(getMemberId().toString()); |
| | | pageWrap.getModel().setMemberId(getMemberId()); |
| | | pageWrap.getModel().setIsHiddenPhone(Constants.ZERO); |
| | | return ApiResponse.success(customerLogService.findPage(pageWrap)); |
| | | } |
| | |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<List<ZTCatalogInfoResponse>> getCatalogList (@RequestBody ZTCatalogListRequest ztCatalogListRequest ) { |
| | | ztCatalogListRequest.setUserId(getMemberId()+""); |
| | | ztCatalogListRequest.setUserType(ZTConstants.CUSTOMER); |
| | | List<ZTCatalogInfoResponse> ztCatalogInfoResponseList = getZhongTaiDataService.getCatalogList(ztCatalogListRequest); |
| | | return ApiResponse.success("æ¥è¯¢æå",ztCatalogInfoResponseList); |
| | | } |
| | |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<List<ZTTagInfoResponse>> getCataLogTagList(@RequestBody ZTCatalogListRequest ztCatalogListRequest ) { |
| | | ztCatalogListRequest.setUserId(getMemberId()+""); |
| | | ztCatalogListRequest.setUserType(ZTConstants.CUSTOMER); |
| | | List<ZTTagInfoResponse> ztTagInfoResponseList = getZhongTaiDataService.getCataLogTagList(ztCatalogListRequest); |
| | | return ApiResponse.success("æ¥è¯¢æå",ztTagInfoResponseList); |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "æçæ¶è/忬¢å表 - ä¸å°", notes = "客æ·ç«¯å°ç¨åº") |
| | | @PostMapping("/collectLikePage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<ZTBasePageResponse<ZTCollectLikeInfoResponse>> collectLikePage(@RequestBody ZTCollectLikeRequest ztCollectLikeRequest) { |
| | | ztCollectLikeRequest.setUserId(getMemberId()+""); |
| | | ztCollectLikeRequest.setUserType(ZTConstants.CUSTOMER); |
| | | ZTBasePageResponse<ZTCollectLikeInfoResponse> ztBasePageResponse= getZhongTaiDataService.collectLikePage(ztCollectLikeRequest); |
| | | return ApiResponse.success("æ¥è¯¢æå",ztBasePageResponse); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | import com.doumee.biz.zbom.ZbomCRMService; |
| | | import com.doumee.biz.zbom.ZbomZhongTaiService; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | |
| | | import com.doumee.dao.business.model.News; |
| | | import com.doumee.dao.web.response.DailyUpdatesResponse; |
| | | import com.doumee.dao.web.response.ZSZXCatalogResponse; |
| | | import com.doumee.service.business.GetZhongTaiDataService; |
| | | import com.doumee.service.business.NewsService; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | public NewsService newsService; |
| | | |
| | | @Autowired |
| | | public GetZhongTaiDataService getZhongTaiDataService; |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "ãC端å°ç¨åºãè·åé¦é¡µå¿è¯´è£
ä¿®å个模åç±»ç®æ°æ®", notes = "è·åé¦é¡µå¿è¯´è£
ä¿®å个模åç±»ç®æ°æ®ï¼èæ¯å¾ææ¶åæ»ï¼åèUI") |
| | | @PostMapping("/getZSZXCatalogs") |
| | | public ApiResponse<ZSZXCatalogResponse> getZSZXCatalogs() { |
| | | return ApiResponse.success(zbomZhongTaiService.getZSZXCatalogs()); |
| | | return ApiResponse.success(getZhongTaiDataService.getZSZXCatalogs(getMemberId())); |
| | | } |
| | | |
| | | |
| | |
| | | import com.doumee.biz.zbom.model.crm.CrmCustomerListRequest; |
| | | import com.doumee.biz.zbom.model.crm.response.CRMBaseResponse; |
| | | import com.doumee.biz.zbom.model.crm.response.CRMCustomerListResponse; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTBaseRequst; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTCatalogListRequest; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTConstants; |
| | | import com.doumee.biz.zbom.model.zhongtai.ZTContentListRequest; |
| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.Shop; |
| | | import com.doumee.dao.business.model.SmsEmail; |
| | | import com.doumee.dao.business.model.Users; |
| | | import com.doumee.dao.web.reqeust.EditMemberRequest; |
| | | import com.doumee.dao.web.reqeust.EditShopDTO; |
| | | import com.doumee.dao.web.reqeust.EditUsersRequest; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse getUserDetail() { |
| | | usersService.usersDetailById(getUserId()); |
| | | return ApiResponse.success("æä½æå"); |
| | | public ApiResponse<Users> getUserDetail() { |
| | | return ApiResponse.success("æä½æå",usersService.usersDetailById(getUserId())); |
| | | } |
| | | |
| | | @UserLoginRequired |
| | |
| | | usersService.editUserInfo(editUsersRequest); |
| | | return ApiResponse.success("æ´æ°æå"); |
| | | } |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "é¨åºå页", notes = "å工端å°ç¨åº") |
| | | @PostMapping("/shopPage") |
| | |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "ä¿®æ¹é¨åºä¿¡æ¯", notes = "å工端å°ç¨åº") |
| | | @GetMapping("/updShop") |
| | | @PostMapping("/updShop") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "è·å个人åç", notes = "å工端å°ç¨åº") |
| | | @PostMapping("/getUserCard") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse<String> getUserCard() { |
| | | return ApiResponse.success(usersService.getUserCard(this.getLoginUserInfo())); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "è·åå
容å享海æ¥", notes = "è·åå
容å享海æ¥ï¼å å°ç¨åºç ") |
| | | @PostMapping("/getContentShareImg") |
| | |
| | | List<ZTTagInfoResponse> ztTagInfoResponseList = getZhongTaiDataService.getCataLogTagList(ztCatalogListRequest); |
| | | return ApiResponse.success("æ¥è¯¢æå",ztTagInfoResponseList); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @UserLoginRequired |
| | | @ApiOperation(value = "ç¨æ·æ³¨é", notes = "å工端å°ç¨åº") |
| | | @PostMapping("/logOff") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true) |
| | | }) |
| | | public ApiResponse logOff() { |
| | | ZTBaseRequst ztBaseRequst = usersService.logOff(getUserId()); |
| | | if(Objects.nonNull(ztBaseRequst)){ |
| | | getZhongTaiDataService.userLogout(ztBaseRequst); |
| | | } |
| | | return ApiResponse.success("æä½æå"); |
| | | } |
| | | } |