proj_name
stringclasses
131 values
relative_path
stringlengths
30
228
class_name
stringlengths
1
68
func_name
stringlengths
1
48
masked_class
stringlengths
78
9.82k
func_body
stringlengths
46
9.61k
len_input
int64
29
2.01k
len_output
int64
14
1.94k
total
int64
55
2.05k
relevant_context
stringlengths
0
38.4k
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/MemberProductCollectionController.java
MemberProductCollectionController
add
class MemberProductCollectionController { @Autowired private MemberCollectionService memberCollectionService; @ApiOperation("添加商品收藏") @RequestMapping(value = "/add", method = RequestMethod.POST) @ResponseBody public CommonResult add(@RequestBody MemberProductCollection productCollection) {<FILL...
int count = memberCollectionService.add(productCollection); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); }
479
52
531
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/MemberReadHistoryController.java
MemberReadHistoryController
create
class MemberReadHistoryController { @Autowired private MemberReadHistoryService memberReadHistoryService; @ApiOperation("创建浏览记录") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody MemberReadHistory memberReadHistory) {<FILL_FUN...
int count = memberReadHistoryService.create(memberReadHistory); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); }
406
54
460
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/OmsCartItemController.java
OmsCartItemController
add
class OmsCartItemController { @Autowired private OmsCartItemService cartItemService; @Autowired private UmsMemberService memberService; @ApiOperation("添加商品到购物车") @RequestMapping(value = "/add", method = RequestMethod.POST) @ResponseBody public CommonResult add(@RequestBody OmsCartItem c...
int count = cartItemService.add(cartItem); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed();
890
47
937
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/OmsPortalOrderReturnApplyController.java
OmsPortalOrderReturnApplyController
create
class OmsPortalOrderReturnApplyController { @Autowired private OmsPortalOrderReturnApplyService returnApplyService; @ApiOperation("申请退货") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult create(@RequestBody OmsOrderReturnApplyParam returnApply) {...
int count = returnApplyService.create(returnApply); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed();
99
47
146
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/PmsPortalProductController.java
PmsPortalProductController
search
class PmsPortalProductController { @Autowired private PmsPortalProductService portalProductService; @ApiOperation(value = "综合搜索、筛选、排序") @ApiImplicitParam(name = "sort", value = "排序字段:0->按相关度;1->按新品;2->按销量;3->价格从低到高;4->价格从高到低", defaultValue = "0", allowableValues = "0,1,2,3,4", paramType = ...
List<PmsProduct> productList = portalProductService.search(keyword, brandId, productCategoryId, pageNum, pageSize, sort); return CommonResult.success(CommonPage.restPage(productList));
486
54
540
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/UmsMemberController.java
UmsMemberController
login
class UmsMemberController { @Value("${jwt.tokenHeader}") private String tokenHeader; @Value("${jwt.tokenHead}") private String tokenHead; @Autowired private UmsMemberService memberService; @ApiOperation("会员注册") @RequestMapping(value = "/register", method = RequestMethod.POST) @Respo...
String token = memberService.login(username, password); if (token == null) { return CommonResult.validateFailed("用户名或密码错误"); } Map<String, String> tokenMap = new HashMap<>(); tokenMap.put("token", token); tokenMap.put("tokenHead", tokenHead); return C...
690
96
786
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/UmsMemberCouponController.java
UmsMemberCouponController
listCart
class UmsMemberCouponController { @Autowired private UmsMemberCouponService memberCouponService; @Autowired private OmsCartItemService cartItemService; @Autowired private UmsMemberService memberService; @ApiOperation("领取指定优惠券") @RequestMapping(value = "/add/{couponId}", method = Request...
List<CartPromotionItem> cartPromotionItemList = cartItemService.listPromotion(memberService.getCurrentMember().getId(), null); List<SmsCouponHistoryDetail> couponHistoryList = memberCouponService.listCart(cartPromotionItemList, type); return CommonResult.success(couponHistoryList);
773
83
856
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/controller/UmsMemberReceiveAddressController.java
UmsMemberReceiveAddressController
delete
class UmsMemberReceiveAddressController { @Autowired private UmsMemberReceiveAddressService memberReceiveAddressService; @ApiOperation("添加收货地址") @RequestMapping(value = "/add", method = RequestMethod.POST) @ResponseBody public CommonResult add(@RequestBody UmsMemberReceiveAddress address) { ...
int count = memberReceiveAddressService.delete(id); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed();
497
48
545
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
AlipayServiceImpl
notify
class AlipayServiceImpl implements AlipayService { @Autowired private AlipayConfig alipayConfig; @Autowired private AlipayClient alipayClient; @Autowired private OmsOrderMapper orderMapper; @Autowired private OmsPortalOrderService portalOrderService; @Override public String pay(A...
String result = "failure"; boolean signVerified = false; try { //调用SDK验证签名 signVerified = AlipaySignature.rsaCheckV1(params, alipayConfig.getAlipayPublicKey(), alipayConfig.getCharset(), alipayConfig.getSignType()); } catch (AlipayApiException e) { lo...
1,403
296
1,699
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/HomeServiceImpl.java
HomeServiceImpl
hotProductList
class HomeServiceImpl implements HomeService { @Autowired private SmsHomeAdvertiseMapper advertiseMapper; @Autowired private HomeDao homeDao; @Autowired private SmsFlashPromotionMapper flashPromotionMapper; @Autowired private SmsFlashPromotionSessionMapper promotionSessionMapper; @Au...
int offset = pageSize * (pageNum - 1); return homeDao.getHotProductList(offset, pageSize);
1,754
35
1,789
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/MemberAttentionServiceImpl.java
MemberAttentionServiceImpl
add
class MemberAttentionServiceImpl implements MemberAttentionService { @Value("${mongo.insert.sqlEnable}") private Boolean sqlEnable; @Autowired private PmsBrandMapper brandMapper; @Autowired private MemberBrandAttentionRepository memberBrandAttentionRepository; @Autowired private UmsMembe...
int count = 0; if(memberBrandAttention.getBrandId()==null){ return 0; } UmsMember member = memberService.getCurrentMember(); memberBrandAttention.setMemberId(member.getId()); memberBrandAttention.setMemberNickname(member.getNickname()); memberBrandAtt...
384
321
705
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/MemberCollectionServiceImpl.java
MemberCollectionServiceImpl
add
class MemberCollectionServiceImpl implements MemberCollectionService { @Value("${mongo.insert.sqlEnable}") private Boolean sqlEnable; @Autowired private PmsProductMapper productMapper; @Autowired private MemberProductCollectionRepository productCollectionRepository; @Autowired private Um...
int count = 0; if (productCollection.getProductId() == null) { return 0; } UmsMember member = memberService.getCurrentMember(); productCollection.setMemberId(member.getId()); productCollection.setMemberNickname(member.getNickname()); productCollection...
354
284
638
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/MemberReadHistoryServiceImpl.java
MemberReadHistoryServiceImpl
delete
class MemberReadHistoryServiceImpl implements MemberReadHistoryService { @Value("${mongo.insert.sqlEnable}") private Boolean sqlEnable; @Autowired private PmsProductMapper productMapper; @Autowired private MemberReadHistoryRepository memberReadHistoryRepository; @Autowired private UmsMe...
List<MemberReadHistory> deleteList = new ArrayList<>(); for(String id:ids){ MemberReadHistory memberReadHistory = new MemberReadHistory(); memberReadHistory.setId(id); deleteList.add(memberReadHistory); } memberReadHistoryRepository.deleteAll(deleteLi...
531
87
618
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsCartItemServiceImpl.java
OmsCartItemServiceImpl
listPromotion
class OmsCartItemServiceImpl implements OmsCartItemService { @Autowired private OmsCartItemMapper cartItemMapper; @Autowired private PortalProductDao productDao; @Autowired private OmsPromotionService promotionService; @Autowired private UmsMemberService memberService; @Override ...
List<OmsCartItem> cartItemList = list(memberId); if(CollUtil.isNotEmpty(cartIds)){ cartItemList = cartItemList.stream().filter(item->cartIds.contains(item.getId())).collect(Collectors.toList()); } List<CartPromotionItem> cartPromotionItemList = new ArrayList<>(); if(...
1,113
138
1,251
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsPortalOrderReturnApplyServiceImpl.java
OmsPortalOrderReturnApplyServiceImpl
create
class OmsPortalOrderReturnApplyServiceImpl implements OmsPortalOrderReturnApplyService { @Autowired private OmsOrderReturnApplyMapper returnApplyMapper; @Override public int create(OmsOrderReturnApplyParam returnApply) {<FILL_FUNCTION_BODY>} }
OmsOrderReturnApply realApply = new OmsOrderReturnApply(); BeanUtils.copyProperties(returnApply,realApply); realApply.setCreateTime(new Date()); realApply.setStatus(0); return returnApplyMapper.insert(realApply);
74
69
143
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/PmsPortalBrandServiceImpl.java
PmsPortalBrandServiceImpl
productList
class PmsPortalBrandServiceImpl implements PmsPortalBrandService { @Autowired private HomeDao homeDao; @Autowired private PmsBrandMapper brandMapper; @Autowired private PmsProductMapper productMapper; @Override public List<PmsBrand> recommendList(Integer pageNum, Integer pageSize) { ...
PageHelper.startPage(pageNum,pageSize); PmsProductExample example = new PmsProductExample(); example.createCriteria().andDeleteStatusEqualTo(0) .andPublishStatusEqualTo(1) .andBrandIdEqualTo(brandId); List<PmsProduct> productList = productMapper.selectByE...
215
104
319
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/PmsPortalProductServiceImpl.java
PmsPortalProductServiceImpl
search
class PmsPortalProductServiceImpl implements PmsPortalProductService { @Autowired private PmsProductMapper productMapper; @Autowired private PmsProductCategoryMapper productCategoryMapper; @Autowired private PmsBrandMapper brandMapper; @Autowired private PmsProductAttributeMapper product...
PageHelper.startPage(pageNum, pageSize); PmsProductExample example = new PmsProductExample(); PmsProductExample.Criteria criteria = example.createCriteria(); criteria.andDeleteStatusEqualTo(0); criteria.andPublishStatusEqualTo(1); if (StrUtil.isNotEmpty(keyword)) { ...
1,265
305
1,570
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/UmsMemberReceiveAddressServiceImpl.java
UmsMemberReceiveAddressServiceImpl
update
class UmsMemberReceiveAddressServiceImpl implements UmsMemberReceiveAddressService { @Autowired private UmsMemberService memberService; @Autowired private UmsMemberReceiveAddressMapper addressMapper; @Override public int add(UmsMemberReceiveAddress address) { UmsMember currentMember = me...
address.setId(null); UmsMember currentMember = memberService.getCurrentMember(); UmsMemberReceiveAddressExample example = new UmsMemberReceiveAddressExample(); example.createCriteria().andMemberIdEqualTo(currentMember.getId()).andIdEqualTo(id); if(address.getDefaultStatus()==nul...
469
242
711
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/service/impl/UmsMemberServiceImpl.java
UmsMemberServiceImpl
generateAuthCode
class UmsMemberServiceImpl implements UmsMemberService { private static final Logger LOGGER = LoggerFactory.getLogger(UmsMemberServiceImpl.class); @Autowired private PasswordEncoder passwordEncoder; @Autowired private JwtTokenUtil jwtTokenUtil; @Autowired private UmsMemberMapper memberMapper...
StringBuilder sb = new StringBuilder(); Random random = new Random(); for(int i=0;i<6;i++){ sb.append(random.nextInt(10)); } memberCacheService.setAuthCode(telephone,sb.toString()); return sb.toString();
1,533
78
1,611
<no_super_class>
macrozheng_mall
mall/mall-portal/src/main/java/com/macro/mall/portal/util/DateUtil.java
DateUtil
getTime
class DateUtil { /** * 从Date类型的时间中提取日期部分 */ public static Date getDate(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); ...
Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.set(Calendar.YEAR, 1970); calendar.set(Calendar.MONTH, 0); calendar.set(Calendar.DAY_OF_MONTH, 1); return calendar.getTime();
161
80
241
<no_super_class>
macrozheng_mall
mall/mall-search/src/main/java/com/macro/mall/search/config/SwaggerConfig.java
SwaggerConfig
swaggerProperties
class SwaggerConfig extends BaseSwaggerConfig { @Override public SwaggerProperties swaggerProperties() {<FILL_FUNCTION_BODY>} @Bean public BeanPostProcessor springfoxHandlerProviderBeanPostProcessor() { return generateBeanPostProcessor(); } }
return SwaggerProperties.builder() .apiBasePackage("com.macro.mall.search.controller") .title("mall搜索系统") .description("mall搜索相关接口文档") .contactName("macro") .version("1.0") .enableSecurity(false) .bu...
74
86
160
<methods>public non-sealed void <init>() ,public Docket createRestApi() ,public BeanPostProcessor generateBeanPostProcessor() ,public abstract com.macro.mall.common.domain.SwaggerProperties swaggerProperties() <variables>
macrozheng_mall
mall/mall-search/src/main/java/com/macro/mall/search/controller/EsProductController.java
EsProductController
create
class EsProductController { @Autowired private EsProductService esProductService; @ApiOperation(value = "导入所有数据库中商品到ES") @RequestMapping(value = "/importAll", method = RequestMethod.POST) @ResponseBody public CommonResult<Integer> importAllList() { int count = esProductService.importAll...
EsProduct esProduct = esProductService.create(id); if (esProduct != null) { return CommonResult.success(esProduct); } else { return CommonResult.failed(); }
1,072
56
1,128
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/aspect/RedisCacheAspect.java
RedisCacheAspect
doAround
class RedisCacheAspect { private static final Logger LOGGER = LoggerFactory.getLogger(RedisCacheAspect.class); @Pointcut("execution(public * com.macro.mall.portal.service.*CacheService.*(..)) || execution(public * com.macro.mall.service.*CacheService.*(..))") public void cacheAspect() { } @Around(...
Signature signature = joinPoint.getSignature(); MethodSignature methodSignature = (MethodSignature) signature; Method method = methodSignature.getMethod(); Object result = null; try { result = joinPoint.proceed(); } catch (Throwable throwable) { /...
145
134
279
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/component/DynamicAccessDecisionManager.java
DynamicAccessDecisionManager
decide
class DynamicAccessDecisionManager implements AccessDecisionManager { @Override public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException {<FILL_FUNCTION_BODY>} @Ov...
// 当接口未被配置资源时直接放行 if (CollUtil.isEmpty(configAttributes)) { return; } Iterator<ConfigAttribute> iterator = configAttributes.iterator(); while (iterator.hasNext()) { ConfigAttribute configAttribute = iterator.next(); //将访问所需资源或用户拥有资源进行比对 ...
119
179
298
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityFilter.java
DynamicSecurityFilter
doFilter
class DynamicSecurityFilter extends AbstractSecurityInterceptor implements Filter { @Autowired private DynamicSecurityMetadataSource dynamicSecurityMetadataSource; @Autowired private IgnoreUrlsConfig ignoreUrlsConfig; @Autowired public void setMyAccessDecisionManager(DynamicAccessDecisionManag...
HttpServletRequest request = (HttpServletRequest) servletRequest; FilterInvocation fi = new FilterInvocation(servletRequest, servletResponse, filterChain); //OPTIONS请求直接放行 if(request.getMethod().equals(HttpMethod.OPTIONS.toString())){ fi.getChain().doFilter(fi.getRequest(), ...
253
269
522
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/component/DynamicSecurityMetadataSource.java
DynamicSecurityMetadataSource
getAttributes
class DynamicSecurityMetadataSource implements FilterInvocationSecurityMetadataSource { private static Map<String, ConfigAttribute> configAttributeMap = null; @Autowired private DynamicSecurityService dynamicSecurityService; @PostConstruct public void loadDataSource() { configAttributeMap ...
if (configAttributeMap == null) this.loadDataSource(); List<ConfigAttribute> configAttributes = new ArrayList<>(); //获取当前访问的路径 String url = ((FilterInvocation) o).getRequestUrl(); String path = URLUtil.getPath(url); PathMatcher pathMatcher = new AntPathMatcher(); ...
203
196
399
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/component/JwtAuthenticationTokenFilter.java
JwtAuthenticationTokenFilter
doFilterInternal
class JwtAuthenticationTokenFilter extends OncePerRequestFilter { private static final Logger LOGGER = LoggerFactory.getLogger(JwtAuthenticationTokenFilter.class); @Autowired private UserDetailsService userDetailsService; @Autowired private JwtTokenUtil jwtTokenUtil; @Value("${jwt.tokenHeader}")...
String authHeader = request.getHeader(this.tokenHeader); if (authHeader != null && authHeader.startsWith(this.tokenHead)) { String authToken = authHeader.substring(this.tokenHead.length());// The part after "Bearer " String username = jwtTokenUtil.getUserNameFromToken(authToken)...
166
262
428
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/config/SecurityConfig.java
SecurityConfig
filterChain
class SecurityConfig { @Autowired private IgnoreUrlsConfig ignoreUrlsConfig; @Autowired private RestfulAccessDeniedHandler restfulAccessDeniedHandler; @Autowired private RestAuthenticationEntryPoint restAuthenticationEntryPoint; @Autowired private JwtAuthenticationTokenFilter jwtAuthent...
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry = httpSecurity .authorizeRequests(); //不需要保护的资源路径允许访问 for (String url : ignoreUrlsConfig.getUrls()) { registry.antMatchers(url).permitAll(); } //允许跨域请求的OPTIONS请...
165
362
527
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/util/JwtTokenUtil.java
JwtTokenUtil
getUserNameFromToken
class JwtTokenUtil { private static final Logger LOGGER = LoggerFactory.getLogger(JwtTokenUtil.class); private static final String CLAIM_KEY_USERNAME = "sub"; private static final String CLAIM_KEY_CREATED = "created"; @Value("${jwt.secret}") private String secret; @Value("${jwt.expiration}") ...
String username; try { Claims claims = getClaimsFromToken(token); username = claims.getSubject(); } catch (Exception e) { username = null; } return username;
1,193
58
1,251
<no_super_class>
macrozheng_mall
mall/mall-security/src/main/java/com/macro/mall/security/util/SpringUtil.java
SpringUtil
setApplicationContext
class SpringUtil implements ApplicationContextAware { private static ApplicationContext applicationContext; // 获取applicationContext public static ApplicationContext getApplicationContext() { return applicationContext; } @Override public void setApplicationContext(ApplicationContext ap...
if (SpringUtil.applicationContext == null) { SpringUtil.applicationContext = applicationContext; }
222
31
253
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-auth/src/main/java/com/mall4j/cloud/api/auth/bo/UserInfoInTokenBO.java
UserInfoInTokenBO
toString
class UserInfoInTokenBO { /** * 用户在自己系统的用户id */ private Long userId; /** * 全局唯一的id, */ private Long uid; /** * 租户id (商家id) */ private Long tenantId; /** * 系统类型 * @see SysTypeEnum */ private Integer sysType; /** * 是否是管理员 */ private Integer isAdmin; private String bizUserId; priva...
return "UserInfoInTokenBO{" + "userId=" + userId + ", uid=" + uid + ", tenantId=" + tenantId + ", sysType=" + sysType + ", isAdmin=" + isAdmin + ", bizUserId='" + bizUserId + '\'' + ", bizUid='" + bizUid + '\'' + '}';
489
116
605
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-auth/src/main/java/com/mall4j/cloud/api/auth/dto/AuthAccountDTO.java
AuthAccountDTO
toString
class AuthAccountDTO { /** * 用户名 */ @NotBlank(message = "username not blank") private String username; /** * 密码 */ private String password; /** * 创建ip */ private String createIp; /** * 状态 1:启用 0:禁用 -1:删除 */ @NotNull(message = "status not nu...
return "AuthAccountDTO{" + "username='" + username + '\'' + ", password='" + password + '\'' + ", createIp='" + createIp + '\'' + ", status=" + status + ", sysType=" + sysType + ", userId=" + userId + ...
669
111
780
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-auth/src/main/java/com/mall4j/cloud/api/auth/vo/AuthAccountVO.java
AuthAccountVO
toString
class AuthAccountVO { /** * 全平台用户唯一id */ private Long uid; @Schema(description = "用户id" ) private Long userId; @Schema(description = "用户名" ) private String username; @Schema(description = "状态 1:启用 0:禁用 -1:删除" ) private Integer status; @Schema(description = "创建ip" ) ...
return "AuthAccountVO{" + "uid=" + uid + ", userId=" + userId + ", username='" + username + '\'' + ", status=" + status + ", createIp='" + createIp + '\'' + '}';
373
75
448
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-auth/src/main/java/com/mall4j/cloud/api/auth/vo/TokenInfoVO.java
TokenInfoVO
toString
class TokenInfoVO { @Schema(description = "accessToken" ) private String accessToken; @Schema(description = "refreshToken" ) private String refreshToken; @Schema(description = "在多少秒后过期" ) private Integer expiresIn; public String getAccessToken() { return accessToken; } public void setAccessToken(String ...
return "TokenInfoVO{" + "accessToken='" + accessToken + '\'' + ", refreshToken='" + refreshToken + '\'' + ", expiresIn=" + expiresIn + '}';
228
52
280
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-multishop/src/main/java/com/mall4j/cloud/api/multishop/bo/EsShopDetailBO.java
EsShopDetailBO
toString
class EsShopDetailBO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "店铺类型1自营店 2普通店" ) private Integer type; @Schema(description = "店铺名称" ) private String shopName; @Schema(description = "店铺log...
return "EsShopDetailBO{" + "shopId=" + shopId + ", type=" + type + ", shopName='" + shopName + '\'' + ", shopLogo='" + shopLogo + '\'' + ", shopStatus=" + shopStatus + '}';
390
83
473
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-multishop/src/main/java/com/mall4j/cloud/api/multishop/vo/ShopDetailVO.java
ShopDetailVO
toString
class ShopDetailVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "店铺类型1自营店 2普通店" ) private Integer type; @Schema(description = "店铺名称" ) private String shopName; @Schema(description = "店铺简介" )...
return "ShopDetailVO{" + "shopId=" + shopId + ", type=" + type + ", shopName='" + shopName + '\'' + ", intro='" + intro + '\'' + ", shopLogo='" + shopLogo + '\'' + ", shopStatus=" + shopStatus + ", businessLicense='" + businessLicense + '\'' + ", identityCardFront='" + identityCardFro...
956
193
1,149
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/bo/EsOrderItemBO.java
EsOrderItemBO
toString
class EsOrderItemBO { @Schema(description = "商品图片" , requiredMode = Schema.RequiredMode.REQUIRED) private String pic; @Schema(description = "商品名称" , requiredMode = Schema.RequiredMode.REQUIRED) private String spuName; @Schema(description = "商品数量" , requiredMode = Schema.RequiredMode.REQUIRED) ...
return "EsOrderItemBO{" + "pic='" + pic + '\'' + ", spuName='" + spuName + '\'' + ", count=" + count + ", price=" + price + ", skuId=" + skuId + ", skuName='" + skuName + '\'' + ", orderItemId=" + or...
1,057
180
1,237
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/bo/OrderSimpleAmountInfoBO.java
OrderSimpleAmountInfoBO
toString
class OrderSimpleAmountInfoBO { private Long orderId; private Long shopId; /** * 实际总值 */ private Long actualTotal; /** * 订单状态 */ private Integer status; /** * 订单关闭原因 */ private Integer closeType; public Long getOrderId() { return orderId; ...
return "OrderSimpleAmountInfoBO{" + "orderId=" + orderId + ", shopId=" + shopId + ", actualTotal=" + actualTotal + ", status=" + status + ", closeType=" + closeType + '}';
339
72
411
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/bo/OrderStatusBO.java
OrderStatusBO
toString
class OrderStatusBO { private Long orderId; private Integer status; public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public Integer getStatus() { return status; } public void setStatus(Integer ...
return "OrderStatusBO{" + "orderId=" + orderId + ", status=" + status + '}';
134
37
171
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/dto/DeliveryOrderDTO.java
DeliveryOrderDTO
toString
class DeliveryOrderDTO{ @Schema(description = "deliveryOrderId" ) private Long deliveryOrderId; @NotNull(message="订单号不能为空") @Schema(description = "订单号" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long orderId; @NotNull(message="发货方式不能为空") @Schema(description = "发货方式" ,requiredMode = Schema.RequiredM...
return "DeliveryOrderDTO{" + "deliveryOrderId='" + deliveryOrderId + '\'' + "orderNumber='" + orderId + '\'' + ", deliveryType=" + deliveryType + ", selectOrderItems=" + selectOrderItems + '}';
364
76
440
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-order/src/main/java/com/mall4j/cloud/api/order/dto/DeliveryOrderItemDTO.java
DeliveryOrderItemDTO
toString
class DeliveryOrderItemDTO{ @Schema(description = "id" ) private Long orderItemId; @Schema(description = "商品图片" ) private String pic; @Schema(description = "商品名称" ) private String spuName; @Schema(description = "发货改变的数量" ) private Integer changeNum; public Long getOrderItemId() { ...
return "DeliveryOrderItemDTO{" + "orderItemId=" + orderItemId + ", pic='" + pic + '\'' + ", spuName='" + spuName + '\'' + ", changeNum=" + changeNum + '}';
294
75
369
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/bo/EsAttrBO.java
EsAttrBO
toString
class EsAttrBO { /** * 规格id */ private Long attrId; /** * 规格名 */ private String attrName; /** * 规格值id */ private Long attrValueId; /** * 规格值名称 */ private String attrValueName; public Long getAttrId() { return attrId; } pub...
return "EsAttrBO{" + "attrId=" + attrId + ", attrName='" + attrName + '\'' + ", attrValueId=" + attrValueId + ", attrValueName='" + attrValueName + '\'' + '}';
318
71
389
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/ShopCartItemDTO.java
ShopCartItemDTO
toString
class ShopCartItemDTO { @NotNull(message = "产品ID不能为空") @Schema(description = "产品ID" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long spuId; @NotNull(message = "skuId不能为空") @Schema(description = "skuId" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long skuId; @NotNull(message = "商品数量不能为空") ...
return "OrderItemDTO{" + "spuId=" + spuId + ", skuId=" + skuId + ", count=" + count + ", shopId=" + shopId + '}';
405
67
472
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/SkuStockLockDTO.java
SkuStockLockDTO
toString
class SkuStockLockDTO { @NotNull(message = "产品ID不能为空") @Schema(description = "产品ID" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long spuId; @NotNull(message = "skuId不能为空") @Schema(description = "skuId" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long skuId; @NotNull(me...
return "SkuStockLockDTO{" + "spuId=" + spuId + ", skuId=" + skuId + ", orderId=" + orderId + ", count=" + count + '}';
527
67
594
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/dto/SpuUpdateDTO.java
SpuUpdateDTO
toString
class SpuUpdateDTO implements Serializable { /** * 分类id */ private Long categoryId; /** * 分类id列表 */ private List<Long> categoryIds; /** * 分类名称 */ private String categoryName; /** * 分类等级 */ private Integer categoryLevel; /** * 商品状态 ...
return "SpuUpdateDTO{" + "categoryId=" + categoryId + ", categoryIds=" + categoryIds + ", categoryName='" + categoryName + '\'' + ", categoryLevel=" + categoryLevel + ", status=" + status + ", shopId=" + shopId + ...
809
157
966
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/manager/ShopCartAdapter.java
ShopCartAdapter
getShopCartItems
class ShopCartAdapter { @Autowired private SpuFeignClient spuFeignClient; @Autowired private ShopCartFeignClient shopCartFeignClient; @Autowired private ShopDetailFeignClient shopDetailFeignClient; /** * 获取购物项组装信息 * @param shopCartItemParam 购物项参数 * @return 购物项组装信息 */ ...
ServerResponseEntity<List<ShopCartItemVO>> shopCartItemResponse; // 当立即购买时,没有提交的订单是没有购物车信息的 if (shopCartItemParam != null) { shopCartItemResponse = conversionShopCartItem(shopCartItemParam); } // 从购物车提交订单 else { shopCartItemResponse = shopCartFeig...
1,129
220
1,349
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/AttrCategoryVO.java
AttrCategoryVO
toString
class AttrCategoryVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "属性与分类关联id" ) private Long attrCategoryId; @Schema(description = "分类id" ) private Long categoryId; @Schema(description = "属性id" ) private Long attrId; public Long getAttrCategoryI...
return "AttrCategoryVO{" + "attrCategoryId=" + attrCategoryId + ",createTime=" + createTime + ",updateTime=" + updateTime + ",categoryId=" + categoryId + ",attrId=" + attrId + '}';
247
78
325
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/AttrVO.java
AttrVO
toString
class AttrVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "attr id" ) private Long attrId; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "属性名称" ) private String name; @Schema(description = "属性描述" ) private String desc; @Schema(descript...
return "AttrVO{" + "attrId=" + attrId + ", shopId=" + shopId + ", name='" + name + '\'' + ", desc='" + desc + '\'' + ", attrType=" + attrType + ", searchType=" + searchType + ", attrValues=" + attrValues + ", categorys=" + categories + ", createTime=" + createTime + ", updateT...
566
136
702
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/AttrValueVO.java
AttrValueVO
toString
class AttrValueVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "属性id" ) private Long attrValueId; @Schema(description = "属性ID" ) private Long attrId; @Schema(description = "属性值" ) private String value; public Long getAttrValueId() { return att...
return "AttrValueVO{" + "attrValueId=" + attrValueId + ",createTime=" + createTime + ",updateTime=" + updateTime + ",attrId=" + attrId + ",value=" + value + '}';
237
76
313
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/BrandVO.java
BrandVO
toString
class BrandVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "brand_id" ) private Long brandId; @Schema(description = "品牌名称" ) private String name; @Schema(description = "品牌描述" ) private String desc; @Schema(description = "品牌logo图片" ) @JsonSer...
return "BrandVO{" + "brandId=" + brandId + ", name='" + name + '\'' + ", desc='" + desc + '\'' + ", imgUrl='" + imgUrl + '\'' + ", firstLetter='" + firstLetter + '\'' + ", seq=" + seq + ", status=" + status + ", categories=" + categories + ", createTime=" + createTime + ", upd...
572
142
714
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/CategoryVO.java
CategoryVO
toString
class CategoryVO{ private static final long serialVersionUID = 1L; @Schema(description = "分类id" ) private Long categoryId; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "父ID" ) private Long parentId; @Schema(description = "分类名称" ) private String name; ...
return "CategoryVO{" + "categoryId=" + categoryId + ", shopId=" + shopId + ", parentId=" + parentId + ", name='" + name + '\'' + ", desc='" + desc + '\'' + ", path='" + path + '\'' + ", status=" + status + ", icon='" + icon + '\'' + ", imgUrl='" + imgUrl + '\'' + ", level=" + ...
889
172
1,061
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/SkuVO.java
SkuVO
toString
class SkuVO extends BaseVO { private static final long serialVersionUID = 1L; @Schema(description = "属性id" ) private Long skuId; @Schema(description = "SPU id" ) private Long spuId; @Schema(description = "多个销售属性值id逗号分隔" ) private String attrs; @Schema(description = "sku名称" ) private String skuName; @Sche...
return "SkuVO{" + "skuId=" + skuId + ", spuId=" + spuId + ", attrs='" + attrs + '\'' + ", imgUrl='" + imgUrl + '\'' + ", priceFee=" + priceFee + ", marketPriceFee=" + marketPriceFee + ", status=" + status + ", stock=" + stock + ", spuSkuAttrValues=" + spuSkuAttrValues + ", par...
1,024
194
1,218
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/SpuAndSkuVO.java
SpuAndSkuVO
toString
class SpuAndSkuVO { @Schema(description = "spu信息" ) private SpuVO spu; @Schema(description = "sku信息" ) private SkuVO sku; public SpuVO getSpu() { return spu; } public void setSpu(SpuVO spu) { this.spu = spu; } public SkuVO getSku() { return sku; } ...
return "SpuAndSkuVO{" + "spu=" + spu + ", sku=" + sku + '}';
182
42
224
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/SpuAttrValueVO.java
SpuAttrValueVO
toString
class SpuAttrValueVO extends BaseVO { private static final long serialVersionUID = 1L; @Schema(description = "商品属性值关联信息id" ) private Long spuAttrValueId; @Schema(description = "商品id" ) private Long spuId; @Schema(description = "规格属性id" ) private Long attrId; @Schema(description = "规格...
return "SpuAttrValueVO{" + "spuAttrValueId=" + spuAttrValueId + ", spuId=" + spuId + ", attrId=" + attrId + ", attrName='" + attrName + '\'' + ", attrValueId=" + attrValueId + ", attrValueName='" + attrValueName + '\'' + ", searchType=" + searchType + ", createTime=" + createTime + ...
551
144
695
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/SpuSkuAttrValueVO.java
SpuSkuAttrValueVO
toString
class SpuSkuAttrValueVO extends BaseVO { private static final long serialVersionUID = 1L; @Schema(description = "商品sku销售属性关联信息id" ) private Integer spuSkuAttrId; @Schema(description = "SPU ID" ) private Long spuId; @Schema(description = "SKU ID" ) private Long skuId; @Schema(description = "销售属性ID" ) privat...
return "SpuSkuAttrValueVO{" + "spuSkuAttrId=" + spuSkuAttrId + ", spuId=" + spuId + ", skuId=" + skuId + ", attrId=" + attrId + ", attrName='" + attrName + '\'' + ", attrValueId=" + attrValueId + ", attrValueName='" + attrValueName + '\'' + ", status=" + status + ", createTime=" +...
613
160
773
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-product/src/main/java/com/mall4j/cloud/api/product/vo/SpuVO.java
SpuVO
toString
class SpuVO extends BaseVO { private static final long serialVersionUID = 1L; @Schema(description = "spu id" ) private Long spuId; @Schema(description = "品牌ID" ) private Long brandId; @Schema(description = "分类ID" ) private Long categoryId; @Schema(description = "店铺分类ID" ) private Long shopCategoryId; @Sc...
return "SpuVO{" + "spuId=" + spuId + ", brandId=" + brandId + ", categoryId=" + categoryId + ", shopCategoryId=" + shopCategoryId + ", shopId=" + shopId + ", name='" + name + '\'' + ", sellingPoint='" + sellingPoint + '\'' + ", mainImgUrl='" + mainImgUrl + '\'' + ", imgUrls='" + i...
1,704
340
2,044
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-rbac/src/main/java/com/mall4j/cloud/api/rbac/bo/UriPermissionBO.java
UriPermissionBO
toString
class UriPermissionBO { /** * 请求方法 1.GET 2.POST 3.PUT 4.DELETE */ private Integer method; /** * uri */ private String uri; /** * permission */ private String permission; public Integer getMethod() { return method; } public void setMethod(Integer method) { this.method = method; } public ...
return "UriPermissionBO{" + "method=" + method + ", uri='" + uri + '\'' + ", permission='" + permission + '\'' + '}';
205
44
249
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-rbac/src/main/java/com/mall4j/cloud/api/rbac/dto/CheckPermissionDTO.java
CheckPermissionDTO
toString
class CheckPermissionDTO { /** * 用户id */ @NotNull(message = "userId not null") private Long userId; /** * 系统类型 */ @NotNull(message = "sysType not null") private Integer sysType; /** * uri */ @NotBlank(message = "uri not blank") private String uri; /** * 是否是管理员 */ @NotNull(message = "isAdm...
return "CheckPermissionDTO{" + "userId=" + userId + ", sysType=" + sysType + ", uri='" + uri + '\'' + ", isAdmin=" + isAdmin + ", method=" + method + '}';
387
62
449
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-rbac/src/main/java/com/mall4j/cloud/api/rbac/dto/ClearUserPermissionsCacheDTO.java
ClearUserPermissionsCacheDTO
toString
class ClearUserPermissionsCacheDTO { /** * 用户id */ @NotNull(message = "userId not null") private Long userId; /** * 系统类型 */ @NotNull(message = "sysType not null") private Integer sysType; public Long getUserId() { return userId; } public void setUserId...
return "ClearUserPermissionsCacheDTO{" + "userId=" + userId + ", sysType=" + sysType + '}';
197
43
240
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-rbac/src/main/java/com/mall4j/cloud/api/rbac/dto/UserRoleDTO.java
UserRoleDTO
toString
class UserRoleDTO { /** * 用户id */ @NotNull(message = "userId not null") private Long userId; /** * 角色id列表 */ @NotEmpty(message = "userId not null") private List<Long> roleIds; public Long getUserId() { return userId; } public void setUserId(Long userI...
return "UserRoleDTO{" + "userId=" + userId + ", roleIds=" + roleIds + '}';
205
40
245
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/dto/EsPageDTO.java
EsPageDTO
setPageSize
class EsPageDTO{ public static final String ASC = "ASC"; public static final String DESC = "DESC"; /** * 最大分页大小,如果分页大小大于500,则用500作为分页的大小。防止有人直接传入一个较大的数,导致服务器内存溢出宕机 */ public static final Integer MAX_PAGE_SIZE = 500; /** * 当前页 */ @NotNull(message = "pageNum 不能为空") @Sch...
if (pageSize > MAX_PAGE_SIZE) { this.pageSize = MAX_PAGE_SIZE; return; } this.pageSize = pageSize;
1,022
49
1,071
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/EsPageVO.java
EsPageVO
toString
class EsPageVO<T> { @Schema(description = "总页数" ) private Integer pages; @Schema(description = "总条目数" ) private Long total; @Schema(description = "结果集" ) private List<T> list; public Integer getPages() { return pages; } public void setPages(Integer pages) { this....
return "EsPageVO{" + ", pages=" + pages + ", total=" + total + ", list=" + list + '}';
225
44
269
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/AttrSearchVO.java
AttrSearchVO
toString
class AttrSearchVO { @Schema(description = "规格id" ) private Long attrId; @Schema(description = "规格名" ) private String attrName; @Schema(description = "规格值列表" ) private List<AttrValueSearchVO> attrValues; public Long getAttrId() { return attrId; } public void setAttrId(Lo...
return "AttrVO{" + "attrId=" + attrId + ", attrName='" + attrName + '\'' + ", attrValues=" + attrValues + '}';
255
52
307
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/AttrValueSearchVO.java
AttrValueSearchVO
toString
class AttrValueSearchVO { @Schema(description = "规格值id" ) private Long attrValueId; @Schema(description = "规格值名称" ) private String attrValueName; public Long getAttrValueId() { return attrValueId; } public void setAttrValueId(Long attrValueId) { this.attrValueId = attrVal...
return "AttrValueVO{" + "attrValueId=" + attrValueId + ", attrValueName='" + attrValueName + '\'' + '}';
186
46
232
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/BrandSearchVO.java
BrandSearchVO
toString
class BrandSearchVO { @Schema(description = "品牌名称" ) private String brandName; @Schema(description = "品牌id" ) private Long brandId; @Schema(description = "品牌图片" ) private String brandImg; public String getBrandName() { return brandName; } public void setBrandName(String ...
return "BrandVO{" + "brandName='" + brandName + '\'' + ", brandId=" + brandId + ", brandImg='" + brandImg + '\'' + '}';
245
58
303
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/CategorySearchVO.java
CategorySearchVO
toString
class CategorySearchVO{ private static final long serialVersionUID = 1L; @Schema(description = "分类id" ) private Long categoryId; @Schema(description = "分类名称" ) private String name; public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categor...
return "CategorySearchVO{" + "categoryId=" + categoryId + ", name='" + name + '\'' + '}';
162
41
203
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/EsOrderItemVO.java
EsOrderItemVO
toString
class EsOrderItemVO { @Schema(description = "商品图片" , requiredMode = Schema.RequiredMode.REQUIRED) @JsonSerialize(using = ImgJsonSerializer.class) private String pic; @Schema(description = "商品名称" , requiredMode = Schema.RequiredMode.REQUIRED) private String spuName; @Schema(description = "商品数量"...
return "EsOrderItemVO{" + "pic='" + pic + '\'' + ", spuName='" + spuName + '\'' + ", count=" + count + ", price=" + price + ", skuId=" + skuId + ", skuName='" + skuName + '\'' + ", orderItemId=" + or...
1,074
180
1,254
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/EsOrderVO.java
EsOrderVO
toString
class EsOrderVO { @Schema(description = "订单项" ,requiredMode = Schema.RequiredMode.REQUIRED) private List<EsOrderItemVO> orderItems; @Schema(description = "订单号" ,requiredMode = Schema.RequiredMode.REQUIRED) private Long orderId; @Schema(description = "总价" ,requiredMode = Schema.RequiredMode.REQUIR...
return "EsOrderVO{" + "orderItems=" + orderItems + ", orderId=" + orderId + ", actualTotal=" + actualTotal + ", status=" + status + ", deliveryType=" + deliveryType + ", shopName='" + shopName + '\'' + ...
1,587
246
1,833
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/ProductSearchVO.java
ProductSearchVO
toString
class ProductSearchVO { @Schema(description = "店铺信息" ) private ShopInfoSearchVO shopInfo; @Schema(description = "规格属性列表" ) private List<AttrSearchVO> attrs; @Schema(description = "品牌列表信息" ) private List<BrandSearchVO> brands; @Schema(description = "spu列表信息" ) private List<SpuSearchV...
return "ProductSearchVO{" + "shopInfo=" + shopInfo + ", attrs=" + attrs + ", brands=" + brands + ", spus=" + spus + '}';
447
59
506
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/ShopInfoSearchVO.java
ShopInfoSearchVO
toString
class ShopInfoSearchVO { @Schema(description = "店铺名称 搜索华为的时候,可以把华为的旗舰店搜索出来" ) private String shopName; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "店铺logo" ) @JsonSerialize(using =ImgJsonSerializer.class) private String shopLogo; @Schema(description = "店...
return "ShopInfoSearchVO{" + "shopName='" + shopName + '\'' + ", shopId=" + shopId + ", type=" + type + ", shopLogo='" + shopLogo + '\'' + '}';
341
68
409
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-search/src/main/java/com/mall4j/cloud/api/vo/search/SpuSearchVO.java
SpuSearchVO
toString
class SpuSearchVO { @Schema(description = "商品id" ) private Long spuId; @Schema(description = "商品名称" ) private String spuName; @Schema(description = "卖点" ) private String sellingPoint; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "商品售价" ) private ...
return "SpuVO{" + "spuId=" + spuId + ", spuName='" + spuName + '\'' + ", sellingPoint='" + sellingPoint + '\'' + ", priceFee=" + priceFee + ", marketPriceFee=" + marketPriceFee + ", hasStock=" + hasStock + ...
703
130
833
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-user/src/main/java/com/mall4j/cloud/api/user/vo/AreaVO.java
AreaVO
toString
class AreaVO extends BaseVO{ private static final long serialVersionUID = 1L; private Long areaId; @Schema(description = "地址" ) private String areaName; @Schema(description = "上级地址" ) private Long parentId; @Schema(description = "等级(从1开始)" ) private Integer level; private Integer check; /** * 下级地...
return "AreaDTO{" + "areaId=" + areaId + ", areaName='" + areaName + '\'' + ", parentId=" + parentId + ", level=" + level + ", check=" + check + ", areas=" + areas + ", areaIds=" + areaIds + '}';
463
97
560
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-api/mall4cloud-api-user/src/main/java/com/mall4j/cloud/api/user/vo/UserApiVO.java
UserApiVO
toString
class UserApiVO extends BaseVO{ private static final long serialVersionUID = 1L; @Schema(description = "ID" ) private Long userId; @Schema(description = "用户昵称" ) private String nickName; @Schema(description = "头像图片路径" ) @JsonSerialize(using = ImgJsonSerializer.class) private String pic; ...
return "UserApiVO{" + "userId=" + userId + ",createTime=" + createTime + ",updateTime=" + updateTime + ",nickName=" + nickName + ",pic=" + pic + ",status=" + status + '}';
419
85
504
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/config/CaptchaConfig.java
CaptchaConfig
captchaService
class CaptchaConfig { @Bean public CaptchaService captchaService() {<FILL_FUNCTION_BODY>} }
Properties config = new Properties(); config.put(Const.CAPTCHA_CACHETYPE, "redis"); config.put(Const.CAPTCHA_WATER_MARK, ""); // 滑动验证 config.put(Const.CAPTCHA_TYPE, CaptchaTypeEnum.BLOCKPUZZLE.getCodeValue()); // config.put(Const.ORIGINAL_PATH_JIGSAW, FileUtil.getAbsolutePath("classpath:captcha")); return...
37
146
183
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/controller/LoginController.java
LoginController
login
class LoginController { @Autowired private TokenStore tokenStore; @Autowired private AuthAccountService authAccountService; @Autowired private PermissionFeignClient permissionFeignClient; @Autowired private PasswordEncoder passwordEncoder; @PostMapping("/ua/login") @Operation(summary = "账号密码" , descripti...
// 这边获取了用户的用户信息,那么根据sessionid对应一个user的原则,我应该要把这个东西存起来,然后校验,那么存到哪里呢? // redis,redis有天然的自动过期的机制,有key value的形式 ServerResponseEntity<UserInfoInTokenBO> userInfoInTokenResponse = authAccountService .getUserInfoInTokenByInputUserNameAndPassword(authenticationDTO.getPrincipal(), authenticationDTO.getCredenti...
405
388
793
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/controller/PasswordController.java
PasswordController
updatePassword
class PasswordController { @Autowired private TokenStore tokenStore; @Autowired private AuthAccountService authAccountService; @Autowired private PasswordEncoder passwordEncoder; @PutMapping("/update_password") @Operation(summary = "更新密码" , description = "更新当前用户的密码, 更新密码之后要退出登录,清理token") public ServerRespo...
UserInfoInTokenBO userInfoInToken = AuthUserContext.get(); AuthAccount authAccount = authAccountService.getByUserIdAndType(userInfoInToken.getUserId(), userInfoInToken.getSysType()); if (!passwordEncoder.matches(updatePasswordDTO.getOldPassword(), authAccount.getPassword())) { return ServerResponseEntity.show...
140
185
325
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/controller/TokenController.java
TokenController
refreshToken
class TokenController { @Autowired private TokenStore tokenStore; @PostMapping("/ua/token/refresh") public ServerResponseEntity<TokenInfoVO> refreshToken(@Valid @RequestBody RefreshTokenDTO refreshTokenDTO) {<FILL_FUNCTION_BODY>} }
ServerResponseEntity<TokenInfoBO> tokenInfoServerResponseEntity = tokenStore .refreshToken(refreshTokenDTO.getRefreshToken()); if (!tokenInfoServerResponseEntity.isSuccess()) { return ServerResponseEntity.transform(tokenInfoServerResponseEntity); } return ServerResponseEntity .success(BeanUtil.map(t...
77
104
181
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/dto/AuthenticationDTO.java
AuthenticationDTO
toString
class AuthenticationDTO { /** * 用户名 */ @NotBlank(message = "principal不能为空") @Schema(description = "用户名" , requiredMode = Schema.RequiredMode.REQUIRED) protected String principal; /** * 密码 */ @NotBlank(message = "credentials不能为空") @Schema(description = "一般用作密码" , requiredMode = Schema.RequiredMode.REQUI...
return "AuthenticationDTO{" + "principal='" + principal + '\'' + ", credentials='" + credentials + '\'' + ", sysType=" + sysType + '}';
344
55
399
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/dto/CaptchaAuthenticationDTO.java
CaptchaAuthenticationDTO
toString
class CaptchaAuthenticationDTO extends AuthenticationDTO { @Schema(description = "验证码" , requiredMode = Schema.RequiredMode.REQUIRED) private String captchaVerification; public String getCaptchaVerification() { return captchaVerification; } public void setCaptchaVerification(String captchaVerification) { th...
return "CaptchaAuthenticationDTO{" + "captchaVerification='" + captchaVerification + '\'' + "} " + super.toString();
131
41
172
<methods>public non-sealed void <init>() ,public java.lang.String getCredentials() ,public java.lang.String getPrincipal() ,public java.lang.Integer getSysType() ,public void setCredentials(java.lang.String) ,public void setPrincipal(java.lang.String) ,public void setSysType(java.lang.Integer) ,public java.lang.String ...
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/dto/RefreshTokenDTO.java
RefreshTokenDTO
toString
class RefreshTokenDTO { /** * refreshToken */ @NotBlank(message = "refreshToken不能为空") @Schema(description = "refreshToken" , requiredMode = Schema.RequiredMode.REQUIRED) private String refreshToken; public String getRefreshToken() { return refreshToken; } public void setRefreshToken(String refreshToken)...
return "RefreshTokenDTO{" + "refreshToken='" + refreshToken + '\'' + '}';
137
30
167
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/dto/UpdatePasswordDTO.java
UpdatePasswordDTO
toString
class UpdatePasswordDTO { @NotBlank(message = "oldPassword NotBlank") @Schema(description = "旧密码" , requiredMode = Schema.RequiredMode.REQUIRED) private String oldPassword; @NotNull(message = "newPassword NotNull") @Schema(description = "新密码" , requiredMode = Schema.RequiredMode.REQUIRED) private String newPass...
return "UpdatePasswordDTO{" + "oldPassword='" + oldPassword + '\'' + ", newPassword='" + newPassword + '\'' + '}';
207
47
254
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/feign/AccountFeignController.java
AccountFeignController
getByUserIdAndSysType
class AccountFeignController implements AccountFeignClient { @Autowired private AuthAccountMapper authAccountMapper; @Autowired private PasswordEncoder passwordEncoder; @Autowired private TokenStore tokenStore; @Autowired private SegmentFeignClient segmentFeignClient; @Override ...
UserInfoInTokenBO userInfoInTokenBO = AuthUserContext.get(); AuthAccount authAccount = authAccountMapper.getByUserIdAndType(userId, userInfoInTokenBO.getSysType()); return ServerResponseEntity.success(BeanUtil.map(authAccount, AuthAccountVO.class));
1,389
77
1,466
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/feign/TokenFeignController.java
TokenFeignController
checkToken
class TokenFeignController implements TokenFeignClient { private static final Logger logger = LoggerFactory.getLogger(TokenFeignController.class); @Autowired private TokenStore tokenStore; @Override public ServerResponseEntity<UserInfoInTokenBO> checkToken(String accessToken) {<FILL_FUNCTION_BODY>} }
ServerResponseEntity<UserInfoInTokenBO> userInfoByAccessTokenResponse = tokenStore .getUserInfoByAccessToken(accessToken, true); if (!userInfoByAccessTokenResponse.isSuccess()) { return ServerResponseEntity.transform(userInfoByAccessTokenResponse); } return ServerResponseEntity.success(userInfoByAccessT...
90
93
183
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/model/AuthAccount.java
AuthAccount
toString
class AuthAccount extends BaseModel { /** * 全平台用户唯一id */ @DistributedId("mall4cloud-auth-account") private Long uid; /** * 用户名 */ private String username; /** * 密码 */ private String password; /** * 创建ip */ private String createIp; /** * 状态 1:启用 0:禁用 -1:删除 */ private Integer status; ...
return "AuthAccount{" + "uid=" + uid + ", username='" + username + '\'' + ", password='" + password + '\'' + ", createIp='" + createIp + '\'' + ", status=" + status + ", sysType=" + sysType + ", userId=" + userId + ", tenantId=" + tenantId + ", isAdmin=" + isAdmin + '}';
619
127
746
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-auth/src/main/java/com/mall4j/cloud/auth/service/impl/AuthAccountServiceImpl.java
AuthAccountServiceImpl
getUserInfoInTokenByInputUserNameAndPassword
class AuthAccountServiceImpl implements AuthAccountService { @Resource private AuthAccountMapper authAccountMapper; @Autowired private PasswordEncoder passwordEncoder; public static final String USER_NOT_FOUND_SECRET = "USER_NOT_FOUND_SECRET"; private static String userNotFoundEncodedPassword; @Override p...
if (StrUtil.isBlank(inputUserName)) { return ServerResponseEntity.showFailMsg("用户名不能为空"); } if (StrUtil.isBlank(password)) { return ServerResponseEntity.showFailMsg("密码不能为空"); } InputUserNameEnum inputUserNameEnum = null; // 用户名 if (PrincipalUtil.isUserName(inputUserName)) { inputUserNameEnum...
461
476
937
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/config/MinioTemplate.java
MinioTemplate
uploadMinio
class MinioTemplate implements InitializingBean { @Autowired private OssConfig ossConfig; private MinioClient minioClient; static final Logger logger = LoggerFactory.getLogger(MinioTemplate.class); @Override public void afterPropertiesSet() throws Exception { this.minioClient = Min...
InputStream input = null; try { input = new ByteArrayInputStream(bytes); minioClient.putObject( PutObjectArgs.builder() .bucket(ossConfig.getBucket()) .contentType(contentType) ...
427
150
577
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/controller/OssController.java
OssController
uploadFile
class OssController { private static final Logger log = LoggerFactory.getLogger(OssController.class); /** * 上传的文件夹(根据时间确定) */ public static final String NORM_DAY_PATTERN = "yyyy/MM/dd"; @Autowired private OssConfig ossConfig; @Autowired private MinioTemplate minioTemplate; ...
if (file.isEmpty()) { return ServerResponseEntity.success(); } OssVO oss = loadOssVO(new OssVO()); minioTemplate.uploadMinio(file.getBytes(), oss.getDir() + oss.getFileName(), file.getContentType()); return ServerResponseEntity.success(oss);
599
87
686
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/controller/multishop/AttachFileController.java
AttachFileController
page
class AttachFileController { @Autowired private AttachFileService attachFileService; @GetMapping("/page") @Operation(summary = "获取上传文件记录表列表" , description = "分页获取上传文件记录表列表") public ServerResponseEntity<PageVO<AttachFileVO>> page(@Valid PageDTO pageDTO, String fileName, Long fileGroupId) {<FILL_F...
if (fileGroupId == 0) { fileGroupId = null; } PageVO<AttachFileVO> attachFilePage = attachFileService.page(pageDTO, fileName, fileGroupId); return ServerResponseEntity.success(attachFilePage);
487
70
557
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/controller/multishop/AttachFileGroupController.java
AttachFileGroupController
save
class AttachFileGroupController { @Autowired private AttachFileGroupService attachFileGroupService; @GetMapping("/list") @Operation(summary = "获取列表" , description = "分页获取列表") public ServerResponseEntity<List<AttachFileGroupVO>> list() { List<AttachFileGroupVO> attachFileGroupPage = attachFileGroupService...
AttachFileGroup attachFileGroup = BeanUtil.map(attachFileGroupDTO, AttachFileGroup.class); attachFileGroup.setAttachFileGroupId(null); attachFileGroupService.save(attachFileGroup); return ServerResponseEntity.success();
452
71
523
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/dto/AttachFileDTO.java
AttachFileDTO
toString
class AttachFileDTO { private static final long serialVersionUID = 1L; private Long fileId; @Schema(description = "文件路径" ) private String filePath; @Schema(description = "文件类型" ) private String fileType; @Schema(description = "文件名" ) private String fileName; @Schema(descrip...
return "AttachFileDTO{" + "fileId=" + fileId + ", filePath='" + filePath + '\'' + ", fileType='" + fileType + '\'' + ", fileName='" + fileName + '\'' + ", fileSize=" + fileSize + ", shopId=" + shopId + ", type=" + type + ", attachFileGroupId=" + attachFileGroupId + '}';
555
125
680
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/dto/AttachFileGroupDTO.java
AttachFileGroupDTO
toString
class AttachFileGroupDTO{ private static final long serialVersionUID = 1L; private Long attachFileGroupId; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "分组名称" ) private String name; public Long getAttachFileGroupId() { return attachFileGroupId; } publi...
return "AttachFileGroupDTO{" + "attachFileGroupId=" + attachFileGroupId + ",shopId=" + shopId + ",name=" + name + '}';
236
58
294
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/model/AttachFile.java
AttachFile
toString
class AttachFile extends BaseModel implements Serializable { private static final long serialVersionUID = 1L; /** * */ private Long fileId; /** * 文件路径 */ private String filePath; /** * 文件类型 */ private String fileType; /** * 文件名 */ private S...
return "AttachFile{" + "fileId=" + fileId + ", filePath='" + filePath + '\'' + ", fileType='" + fileType + '\'' + ", fileName='" + fileName + '\'' + ", fileSize=" + fileSize + ", shopId=" + shopId + ", type=" + type + ", attachFileGroupId=" + attachFileGroupId + ", createTime=" + ...
574
147
721
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/model/AttachFileGroup.java
AttachFileGroup
toString
class AttachFileGroup extends BaseModel implements Serializable{ private static final long serialVersionUID = 1L; /** * */ private Long attachFileGroupId; /** * 店铺id */ private Long shopId; /** * 分组名称 */ private String name; public Long getAttachFileGroupId...
return "AttachFileGroup{" + "attachFileGroupId=" + attachFileGroupId + ",createTime=" + createTime + ",updateTime=" + updateTime + ",shopId=" + shopId + ",name=" + name + '}';
247
80
327
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/service/impl/AttachFileServiceImpl.java
AttachFileServiceImpl
deleteFile
class AttachFileServiceImpl implements AttachFileService { @Autowired private AttachFileMapper attachFileMapper; @Autowired private Environment environment; @Autowired private MinioTemplate minioTemplate; @Override public PageVO<AttachFileVO> page(PageDTO pageDTO, String fileName, Lo...
// 获取文件的实际路径--数据库中保存的文件路径为: / + 实际的文件路径 if (StrUtil.isNotBlank(filePath)) { filePath = filePath.substring(1); } try { minioTemplate.removeObject(filePath); } catch (Exception e) { e.printStackTrace(); }
437
102
539
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/vo/AttachFileGroupVO.java
AttachFileGroupVO
toString
class AttachFileGroupVO extends BaseVO{ private static final long serialVersionUID = 1L; private Long attachFileGroupId; @Schema(description = "店铺id" ) private Long shopId; @Schema(description = "分组名称" ) private String name; public Long getAttachFileGroupId() { return attachFileGroup...
return "AttachFileGroupVO{" + "attachFileGroupId=" + attachFileGroupId + ",createTime=" + createTime + ",updateTime=" + updateTime + ",shopId=" + shopId + ",name=" + name + '}';
238
81
319
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/vo/AttachFileVO.java
AttachFileVO
toString
class AttachFileVO extends BaseVO { private static final long serialVersionUID = 1L; private Long fileId; @Schema(description = "文件路径" ) private String filePath; @Schema(description = "文件类型" ) private String fileType; @Schema(description = "文件名" ) private String fileName; @...
return "AttachFileVO{" + "fileId=" + fileId + ", filePath='" + filePath + '\'' + ", fileType='" + fileType + '\'' + ", fileName='" + fileName + '\'' + ", fileSize=" + fileSize + ", shopId=" + shopId + ", type=" + type + ", attachFileGroupId=" + attachFileGroupId + ", createTime=" ...
554
148
702
<methods>public non-sealed void <init>() ,public java.util.Date getCreateTime() ,public java.util.Date getUpdateTime() ,public void setCreateTime(java.util.Date) ,public void setUpdateTime(java.util.Date) ,public java.lang.String toString() <variables>protected java.util.Date createTime,protected java.util.Date updateT...
gz-yami_mall4cloud
mall4cloud/mall4cloud-biz/src/main/java/com/mall4j/cloud/biz/vo/OssVO.java
OssVO
toString
class OssVO { private String accessid; private String policy; private String signature; private String dir; private String host; private Integer expire; private String fileName; private String actionUrl; /** * url列表--minio中一条链接对应一个上传的文件 * @return */ privat...
return "OssVO{" + "accessid='" + accessid + '\'' + ", policy='" + policy + '\'' + ", signature='" + signature + '\'' + ", dir='" + dir + '\'' + ", host='" + host + '\'' + ", expire='" + expire + '\'' + ...
541
109
650
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-common/mall4cloud-common-cache/src/main/java/com/mall4j/cloud/common/cache/bo/CacheNameWithTtlBO.java
CacheNameWithTtlBO
toString
class CacheNameWithTtlBO { private String cacheName; private Integer ttl; public CacheNameWithTtlBO(String cacheName, Integer ttl) { this.cacheName = cacheName; this.ttl = ttl; } public String getCacheName() { return cacheName; } public void setCacheName(String cacheName) { this.cacheName = cacheNam...
return "CacheNameWithTtlBO{" + "cacheName='" + cacheName + '\'' + ", ttl=" + ttl + '}';
174
39
213
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-common/mall4cloud-common-cache/src/main/java/com/mall4j/cloud/common/cache/config/RedisCacheConfig.java
RedisCacheConfig
cacheManager
class RedisCacheConfig { @Bean public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory, CacheTtlAdapter cacheTtlAdapter) {<FILL_FUNCTION_BODY>} private Map<String, RedisCacheConfiguration> getRedisCacheConfigurationMap(CacheTtlAdapter cacheTtlAdapter) { if (cacheTtlAdapter == null) { re...
RedisCacheManager redisCacheManager = new RedisCacheManager( RedisCacheWriter.nonLockingRedisCacheWriter(redisConnectionFactory), // 默认策略,未配置的 key 会使用这个 this.getRedisCacheConfigurationWithTtl(3600), // 指定 key 策略 this.getRedisCacheConfigurationMap(cacheTtlAdapter)); redisCacheManager.setTransa...
1,014
126
1,140
<no_super_class>
gz-yami_mall4cloud
mall4cloud/mall4cloud-common/mall4cloud-common-cache/src/main/java/com/mall4j/cloud/common/cache/util/CacheManagerUtil.java
CacheManagerUtil
evictCache
class CacheManagerUtil { private final CacheManager cacheManager; @Autowired public CacheManagerUtil(CacheManager cacheManager) { this.cacheManager = cacheManager; } @SuppressWarnings({ "unchecked" }) public <T> T getCache(String cacheName, String key) { Cache cache = cacheManager.getCache(cacheName); if...
Cache cache = cacheManager.getCache(cacheName); if (cache != null) { cache.evict(key); }
245
41
286
<no_super_class>