From 70bc69dffb53702d5e9c1f58b2072b5c2cc6fa42 Mon Sep 17 00:00:00 2001 From: Penny <2500338766@qq.com> Date: Sun, 14 May 2023 20:32:19 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E4=BF=AE=E6=AD=A3=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../file/constants/RedisKeyConstant.java | 104 ------------------ .../file/service/impl/FileServiceImpl.java | 6 +- 2 files changed, 3 insertions(+), 107 deletions(-) delete mode 100644 bnyer-services/bnyer-file/src/main/java/com/bnyer/file/constants/RedisKeyConstant.java diff --git a/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/constants/RedisKeyConstant.java b/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/constants/RedisKeyConstant.java deleted file mode 100644 index 14ea436..0000000 --- a/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/constants/RedisKeyConstant.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.bnyer.file.constants; - -public class RedisKeyConstant { - - - /** - * 抖音小程序用户收藏图片键 - */ - public static final String TIKTOK_USER_COLLECT_KEY = "bnyer.img.tiktok.collect:"; - - /** - * 抖音小程序图片收藏数量键 - */ - public static final String TIKTOK_IMG_COLLECT_NUM_KEY = "bnyer.img.tiktok.collectNum"; - - /** - * 快手小程序图片收藏数量键 - */ - public static final String FAST_HAND_IMG_COLLECT_NUM_KEY = "bnyer.img.fh.collectNum"; - - /** - * 微信小程序图片收藏数量键 - */ - public static final String WECHAT_IMG_COLLECT_NUM_KEY = "bnyer.img.wx.collectNum"; - - /** - * 抖音小程序用户点赞图片键 - */ - public static final String TIKTOK_USER_LIKE_KEY = "bnyer.img.tiktok.like"; - - /** - * 快手小程序用户点赞图片键 - */ - public static final String FAST_HAND_USER_LIKE_KEY = "bnyer.img.fh.like"; - - /** - * 微信小程序用户点赞图片键 - */ - public static final String WECHAT_USER_LIKE_KEY = "bnyer.img.wx.like"; - - /** - * 抖音小程序图片点赞数量键 - */ - public static final String TIKTOK_IMG_LIKE_NUM_KEY = "bnyer.img.tiktok.likeNum"; - - /** - * 快手小程序图片点赞数量键 - */ - public static final String FAST_HAND_IMG_LIKE_NUM_KEY = "bnyer.img.fh.likeNum"; - - /** - * 微信小程序图片点赞数量键 - */ - public static final String WECHAT_IMG_LIKE_NUM_KEY = "bnyer.img.wx.likeNum"; - - /** - * 抖音小程序图片下载数量键 - */ - public static final String TIKTOK_IMG_DOWNLOAD_NUM_KEY = "bnyer.img.creator.downloadNum:"; - - /** - * 抖音小程序图片下载总数量键 - */ - public static final String TIKTOK_IMG_TOTAL_DOWNLOAD_NUM_KEY = "bnyer.img.date.downloadTotalNum:"; - - /** - * 抖音小程序用户登录键 - */ - public static final String TIKTOK_USER_LOGIN_KEY = "bnyer.img.tiktok.user:"; - - /** - * 快手小程序用户登录键 - */ - public static final String FH_USER_LOGIN_KEY = "bnyer.img.fh.user:"; - - /** - * 微信小程序用户登录键 - */ - public static final String WECHAT_USER_LOGIN_KEY = "bnyer.img.wx.user:"; - - /** - * 微信小程序艺术家登录键 - */ - public static final String WECHAT_CREATOR_LOGIN_KEY = "bnyer.img.wechat.creator:"; - - /** - * 微信小程序艺术家邀请键 - */ - public static final String WECHAT_CREATOR_INVITE_KEY = "bnyer.img.invite.creator:"; - - /** - * 审核收益锁键 - */ - public static final String VERIFY_PROFIT_LOCK_KEY = "bnyer.img.profit.lock:"; - - /** - * 平台用户下载键 - */ - public static final String PLATFORM_USER_DOWNLOAD_KEY = "bnyer.img.user.download:"; - /** - * 艺术家上传键 - */ - public static final String CREATOR_UPLOAD_KEY="bnyer.img.createor.upload"; -} diff --git a/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/service/impl/FileServiceImpl.java b/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/service/impl/FileServiceImpl.java index 0d32885..d9b1623 100644 --- a/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/service/impl/FileServiceImpl.java +++ b/bnyer-services/bnyer-file/src/main/java/com/bnyer/file/service/impl/FileServiceImpl.java @@ -1,20 +1,20 @@ package com.bnyer.file.service.impl; +import com.bnyer.common.core.constant.RedisKeyConstant; import com.bnyer.common.redis.service.RedisService; -import com.bnyer.file.constants.RedisKeyConstant; import com.bnyer.file.service.IFileService; import com.bnyer.file.service.IQiniuService; import com.bnyer.file.service.ITikTokImage; import com.bnyer.file.utils.ImgUtil; import com.bnyer.file.vo.ChekFileVo; import com.bnyer.img.api.remote.RemoteImgService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; -import java.util.ArrayList; -import lombok.extern.slf4j.Slf4j; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Date; /**