- 清理被错误提交的 target
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
swagger:
|
||||
enable: false
|
||||
title: 营销子系统
|
||||
description: 营销子系统
|
||||
version: 1.0.0
|
||||
base-package: cn.iocoder.mall.promotion.application.controller
|
||||
@@ -1,29 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: promotion-application
|
||||
cloud:
|
||||
sentinel:
|
||||
transport:
|
||||
port: 8719
|
||||
dashboard: localhost:12088
|
||||
metric:
|
||||
charset: UTF-8
|
||||
eager: false
|
||||
|
||||
# server
|
||||
server:
|
||||
port: 18085
|
||||
servlet:
|
||||
context-path: /promotion-api/
|
||||
|
||||
swagger:
|
||||
enable: false
|
||||
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,env,metrics,prometheus
|
||||
metrics:
|
||||
enabled: true
|
||||
@@ -1,65 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.promotion.api.bo.BannerBO;
|
||||
import cn.iocoder.mall.promotion.api.bo.BannerPageBO;
|
||||
import cn.iocoder.mall.promotion.application.convert.BannerConvert.Admins;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsBannerPageVO;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsBannerVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:16+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class BannerConvert$AdminsImpl implements Admins {
|
||||
|
||||
@Override
|
||||
public AdminsBannerVO convert(BannerBO bannerBO) {
|
||||
if ( bannerBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsBannerVO adminsBannerVO = new AdminsBannerVO();
|
||||
|
||||
adminsBannerVO.setId( bannerBO.getId() );
|
||||
adminsBannerVO.setTitle( bannerBO.getTitle() );
|
||||
adminsBannerVO.setUrl( bannerBO.getUrl() );
|
||||
adminsBannerVO.setPicUrl( bannerBO.getPicUrl() );
|
||||
adminsBannerVO.setSort( bannerBO.getSort() );
|
||||
adminsBannerVO.setStatus( bannerBO.getStatus() );
|
||||
adminsBannerVO.setMemo( bannerBO.getMemo() );
|
||||
adminsBannerVO.setCreateTime( bannerBO.getCreateTime() );
|
||||
|
||||
return adminsBannerVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdminsBannerPageVO convert3(BannerPageBO bannerPageBO) {
|
||||
if ( bannerPageBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsBannerPageVO adminsBannerPageVO = new AdminsBannerPageVO();
|
||||
|
||||
adminsBannerPageVO.setList( bannerBOListToAdminsBannerVOList( bannerPageBO.getList() ) );
|
||||
adminsBannerPageVO.setTotal( bannerPageBO.getTotal() );
|
||||
|
||||
return adminsBannerPageVO;
|
||||
}
|
||||
|
||||
protected List<AdminsBannerVO> bannerBOListToAdminsBannerVOList(List<BannerBO> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<AdminsBannerVO> list1 = new ArrayList<AdminsBannerVO>( list.size() );
|
||||
for ( BannerBO bannerBO : list ) {
|
||||
list1.add( convert( bannerBO ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.promotion.api.bo.BannerBO;
|
||||
import cn.iocoder.mall.promotion.application.convert.BannerConvert.Users;
|
||||
import cn.iocoder.mall.promotion.application.vo.users.UsersBannerVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:15+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class BannerConvert$UsersImpl implements Users {
|
||||
|
||||
@Override
|
||||
public List<UsersBannerVO> convertList(List<BannerBO> banners) {
|
||||
if ( banners == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<UsersBannerVO> list = new ArrayList<UsersBannerVO>( banners.size() );
|
||||
for ( BannerBO bannerBO : banners ) {
|
||||
list.add( bannerBOToUsersBannerVO( bannerBO ) );
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
protected UsersBannerVO bannerBOToUsersBannerVO(BannerBO bannerBO) {
|
||||
if ( bannerBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UsersBannerVO usersBannerVO = new UsersBannerVO();
|
||||
|
||||
usersBannerVO.setUrl( bannerBO.getUrl() );
|
||||
usersBannerVO.setPicUrl( bannerBO.getPicUrl() );
|
||||
|
||||
return usersBannerVO;
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.promotion.api.bo.CouponCardBO;
|
||||
import cn.iocoder.mall.promotion.api.bo.CouponCardPageBO;
|
||||
import cn.iocoder.mall.promotion.application.vo.users.UsersCouponCardPageVO;
|
||||
import cn.iocoder.mall.promotion.application.vo.users.UsersCouponCardVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:15+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class CouponCardConvertImpl implements CouponCardConvert {
|
||||
|
||||
@Override
|
||||
public UsersCouponCardVO convert(CouponCardBO result) {
|
||||
if ( result == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UsersCouponCardVO usersCouponCardVO = new UsersCouponCardVO();
|
||||
|
||||
usersCouponCardVO.setId( result.getId() );
|
||||
usersCouponCardVO.setTemplateId( result.getTemplateId() );
|
||||
usersCouponCardVO.setTitle( result.getTitle() );
|
||||
usersCouponCardVO.setStatus( result.getStatus() );
|
||||
usersCouponCardVO.setPriceAvailable( result.getPriceAvailable() );
|
||||
usersCouponCardVO.setValidStartTime( result.getValidStartTime() );
|
||||
usersCouponCardVO.setValidEndTime( result.getValidEndTime() );
|
||||
usersCouponCardVO.setPreferentialType( result.getPreferentialType() );
|
||||
usersCouponCardVO.setPercentOff( result.getPercentOff() );
|
||||
usersCouponCardVO.setPriceOff( result.getPriceOff() );
|
||||
usersCouponCardVO.setDiscountPriceLimit( result.getDiscountPriceLimit() );
|
||||
|
||||
return usersCouponCardVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UsersCouponCardPageVO convert2(CouponCardPageBO result) {
|
||||
if ( result == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UsersCouponCardPageVO usersCouponCardPageVO = new UsersCouponCardPageVO();
|
||||
|
||||
usersCouponCardPageVO.setList( couponCardBOListToUsersCouponCardVOList( result.getList() ) );
|
||||
usersCouponCardPageVO.setTotal( result.getTotal() );
|
||||
|
||||
return usersCouponCardPageVO;
|
||||
}
|
||||
|
||||
protected List<UsersCouponCardVO> couponCardBOListToUsersCouponCardVOList(List<CouponCardBO> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<UsersCouponCardVO> list1 = new ArrayList<UsersCouponCardVO>( list.size() );
|
||||
for ( CouponCardBO couponCardBO : list ) {
|
||||
list1.add( convert( couponCardBO ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.promotion.api.bo.CouponTemplateBO;
|
||||
import cn.iocoder.mall.promotion.api.bo.CouponTemplatePageBO;
|
||||
import cn.iocoder.mall.promotion.application.convert.CouponTemplateConvert.Admins;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsCouponTemplatePageVO;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsCouponTemplateVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:15+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class CouponTemplateConvert$AdminsImpl implements Admins {
|
||||
|
||||
@Override
|
||||
public AdminsCouponTemplateVO convert(CouponTemplateBO template) {
|
||||
if ( template == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsCouponTemplateVO adminsCouponTemplateVO = new AdminsCouponTemplateVO();
|
||||
|
||||
adminsCouponTemplateVO.setId( template.getId() );
|
||||
adminsCouponTemplateVO.setTitle( template.getTitle() );
|
||||
adminsCouponTemplateVO.setDescription( template.getDescription() );
|
||||
adminsCouponTemplateVO.setType( template.getType() );
|
||||
adminsCouponTemplateVO.setCodeType( template.getCodeType() );
|
||||
adminsCouponTemplateVO.setStatus( template.getStatus() );
|
||||
adminsCouponTemplateVO.setQuota( template.getQuota() );
|
||||
adminsCouponTemplateVO.setTotal( template.getTotal() );
|
||||
adminsCouponTemplateVO.setPriceAvailable( template.getPriceAvailable() );
|
||||
adminsCouponTemplateVO.setRangeType( template.getRangeType() );
|
||||
adminsCouponTemplateVO.setRangeValues( template.getRangeValues() );
|
||||
adminsCouponTemplateVO.setDateType( template.getDateType() );
|
||||
adminsCouponTemplateVO.setValidStartTime( template.getValidStartTime() );
|
||||
adminsCouponTemplateVO.setValidEndTime( template.getValidEndTime() );
|
||||
adminsCouponTemplateVO.setFixedStartTerm( template.getFixedStartTerm() );
|
||||
adminsCouponTemplateVO.setFixedEndTerm( template.getFixedEndTerm() );
|
||||
adminsCouponTemplateVO.setPreferentialType( template.getPreferentialType() );
|
||||
adminsCouponTemplateVO.setPercentOff( template.getPercentOff() );
|
||||
adminsCouponTemplateVO.setPriceOff( template.getPriceOff() );
|
||||
adminsCouponTemplateVO.setDiscountPriceLimit( template.getDiscountPriceLimit() );
|
||||
adminsCouponTemplateVO.setStatFetchNum( template.getStatFetchNum() );
|
||||
adminsCouponTemplateVO.setCreateTime( template.getCreateTime() );
|
||||
|
||||
return adminsCouponTemplateVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdminsCouponTemplatePageVO convertPage(CouponTemplatePageBO result) {
|
||||
if ( result == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsCouponTemplatePageVO adminsCouponTemplatePageVO = new AdminsCouponTemplatePageVO();
|
||||
|
||||
adminsCouponTemplatePageVO.setList( convertList( result.getList() ) );
|
||||
adminsCouponTemplatePageVO.setTotal( result.getTotal() );
|
||||
|
||||
return adminsCouponTemplatePageVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AdminsCouponTemplateVO> convertList(List<CouponTemplateBO> templates) {
|
||||
if ( templates == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<AdminsCouponTemplateVO> list = new ArrayList<AdminsCouponTemplateVO>( templates.size() );
|
||||
for ( CouponTemplateBO couponTemplateBO : templates ) {
|
||||
list.add( convert( couponTemplateBO ) );
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.promotion.api.bo.CouponTemplateBO;
|
||||
import cn.iocoder.mall.promotion.application.convert.CouponTemplateConvert.Users;
|
||||
import cn.iocoder.mall.promotion.application.vo.users.UsersCouponTemplateVO;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:15+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class CouponTemplateConvert$UsersImpl implements Users {
|
||||
|
||||
@Override
|
||||
public UsersCouponTemplateVO convert2(CouponTemplateBO template) {
|
||||
if ( template == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UsersCouponTemplateVO usersCouponTemplateVO = new UsersCouponTemplateVO();
|
||||
|
||||
usersCouponTemplateVO.setId( template.getId() );
|
||||
usersCouponTemplateVO.setTitle( template.getTitle() );
|
||||
usersCouponTemplateVO.setStatus( template.getStatus() );
|
||||
usersCouponTemplateVO.setPriceAvailable( template.getPriceAvailable() );
|
||||
usersCouponTemplateVO.setRangeType( template.getRangeType() );
|
||||
usersCouponTemplateVO.setRangeValues( template.getRangeValues() );
|
||||
usersCouponTemplateVO.setDateType( template.getDateType() );
|
||||
usersCouponTemplateVO.setValidStartTime( template.getValidStartTime() );
|
||||
usersCouponTemplateVO.setValidEndTime( template.getValidEndTime() );
|
||||
usersCouponTemplateVO.setFixedStartTerm( template.getFixedStartTerm() );
|
||||
usersCouponTemplateVO.setFixedEndTerm( template.getFixedEndTerm() );
|
||||
usersCouponTemplateVO.setPreferentialType( template.getPreferentialType() );
|
||||
usersCouponTemplateVO.setPercentOff( template.getPercentOff() );
|
||||
usersCouponTemplateVO.setPriceOff( template.getPriceOff() );
|
||||
usersCouponTemplateVO.setDiscountPriceLimit( template.getDiscountPriceLimit() );
|
||||
|
||||
return usersCouponTemplateVO;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:15+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class CouponTemplateConvertImpl implements CouponTemplateConvert {
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
package cn.iocoder.mall.promotion.application.convert;
|
||||
|
||||
import cn.iocoder.mall.product.api.bo.ProductSpuBO;
|
||||
import cn.iocoder.mall.promotion.api.bo.ProductRecommendBO;
|
||||
import cn.iocoder.mall.promotion.api.bo.ProductRecommendPageBO;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsProductRecommendPageVO;
|
||||
import cn.iocoder.mall.promotion.application.vo.admins.AdminsProductRecommendVO;
|
||||
import cn.iocoder.mall.promotion.application.vo.users.UsersProductRecommendVO;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(
|
||||
value = "org.mapstruct.ap.MappingProcessor",
|
||||
date = "2019-05-24T11:39:16+0800",
|
||||
comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)"
|
||||
)
|
||||
public class ProductRecommendConvertImpl implements ProductRecommendConvert {
|
||||
|
||||
@Override
|
||||
public AdminsProductRecommendVO convert(ProductRecommendBO bannerBO) {
|
||||
if ( bannerBO == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsProductRecommendVO adminsProductRecommendVO = new AdminsProductRecommendVO();
|
||||
|
||||
adminsProductRecommendVO.setId( bannerBO.getId() );
|
||||
adminsProductRecommendVO.setType( bannerBO.getType() );
|
||||
adminsProductRecommendVO.setProductSpuId( bannerBO.getProductSpuId() );
|
||||
adminsProductRecommendVO.setSort( bannerBO.getSort() );
|
||||
adminsProductRecommendVO.setStatus( bannerBO.getStatus() );
|
||||
adminsProductRecommendVO.setMemo( bannerBO.getMemo() );
|
||||
adminsProductRecommendVO.setCreateTime( bannerBO.getCreateTime() );
|
||||
|
||||
return adminsProductRecommendVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AdminsProductRecommendPageVO convert(ProductRecommendPageBO result) {
|
||||
if ( result == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
AdminsProductRecommendPageVO adminsProductRecommendPageVO = new AdminsProductRecommendPageVO();
|
||||
|
||||
adminsProductRecommendPageVO.setList( productRecommendBOListToAdminsProductRecommendVOList( result.getList() ) );
|
||||
adminsProductRecommendPageVO.setTotal( result.getTotal() );
|
||||
|
||||
return adminsProductRecommendPageVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UsersProductRecommendVO convert(ProductSpuBO productSpu) {
|
||||
if ( productSpu == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
UsersProductRecommendVO usersProductRecommendVO = new UsersProductRecommendVO();
|
||||
|
||||
usersProductRecommendVO.setId( productSpu.getId() );
|
||||
usersProductRecommendVO.setName( productSpu.getName() );
|
||||
usersProductRecommendVO.setSellPoint( productSpu.getSellPoint() );
|
||||
List<String> list = productSpu.getPicUrls();
|
||||
if ( list != null ) {
|
||||
usersProductRecommendVO.setPicUrls( new ArrayList<String>( list ) );
|
||||
}
|
||||
usersProductRecommendVO.setPrice( productSpu.getPrice() );
|
||||
|
||||
return usersProductRecommendVO;
|
||||
}
|
||||
|
||||
protected List<AdminsProductRecommendVO> productRecommendBOListToAdminsProductRecommendVOList(List<ProductRecommendBO> list) {
|
||||
if ( list == null ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<AdminsProductRecommendVO> list1 = new ArrayList<AdminsProductRecommendVO>( list.size() );
|
||||
for ( ProductRecommendBO productRecommendBO : list ) {
|
||||
list1.add( convert( productRecommendBO ) );
|
||||
}
|
||||
|
||||
return list1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user