src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java | ●●●●● patch | view | raw | blame | history | |
src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java | ●●●●● patch | view | raw | blame | history | |
src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java | ●●●●● patch | view | raw | blame | history | |
src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java | ●●●●● patch | view | raw | blame | history |
src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java
New file @@ -0,0 +1,9 @@ package com.xcong.excoin.modules.platform.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity; public interface PlatformBannerDao extends BaseMapper<PlatformPaymentMethodEntity> { } src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java
@@ -1,18 +1,17 @@ package com.xcong.excoin.modules.platform.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.xcong.excoin.common.system.base.BaseEntity; import lombok.Data; @Data @TableName("platform_banner") public class PlatformBannerEntity{ public class PlatformBannerEntity extends BaseEntity{ @TableId(value = "id",type = IdType.AUTO) private Long id; /** * */ private static final long serialVersionUID = 1L; /** * 标题 */ @@ -20,27 +19,29 @@ /** * 图片链接 */ private String image_url; private String imageUrl; /** * 是否可跳转 1-是2-否 */ private String is_jump; private String isJump; /** * 跳转外部或内部 1-内2-外 */ private int is_inside; private int isInside; /** * 跳转链接 */ private String jump_url; private String jumpUrl; /** * 显示端口 1-pc2-手机 */ private int show_port; private int showPort; /** * 联系方式 */ private String sort; private String is_top; /** * 是否置顶 1-是2-否 */ private String isTop; } src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java
New file @@ -0,0 +1,11 @@ package com.xcong.excoin.modules.platform.service; import com.baomidou.mybatisplus.extension.service.IService; import com.xcong.excoin.common.response.Result; import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity; public interface PlatformBannerService extends IService<PlatformPaymentMethodEntity> { public Result findAll(); } src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java
New file @@ -0,0 +1,28 @@ package com.xcong.excoin.modules.platform.service.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.xcong.excoin.common.response.Result; import com.xcong.excoin.modules.platform.dao.PlatformPaymentMethodDao; import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity; import com.xcong.excoin.modules.platform.service.PlatformPaymentMethodService; @Service public class PlatformBannerServiceImpl extends ServiceImpl<PlatformPaymentMethodDao, PlatformPaymentMethodEntity> implements PlatformPaymentMethodService{ @Resource PlatformPaymentMethodDao platformPaymentMethodDao; @Override public Result findAll() { QueryWrapper<PlatformPaymentMethodEntity> queryWrapper = new QueryWrapper<>(); List<PlatformPaymentMethodEntity> paymentMethodList = platformPaymentMethodDao.selectList(queryWrapper); return Result.ok(paymentMethodList); } }