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; /**