code review:签到逻辑

This commit is contained in:
YunaiV
2023-10-21 19:56:53 +08:00
parent 3e570b8b89
commit 0db4581030
7 changed files with 19 additions and 14 deletions

View File

@ -93,6 +93,7 @@ public class ProductSpuController {
// 查询商品 SKU
List<ProductSkuDO> skus = productSkuService.getSkuListBySpuId(spu.getId());
// 查询优惠卷
// TODO @puhui999优惠劵的信息要不交给前端读取主要是为了避免商品依赖 promotion 模块哈;
List<CouponTemplateRespDTO> couponTemplateList = couponTemplateApi.getCouponTemplateListByIds(
spu.getGiveCouponTemplateIds());
return success(ProductSpuConvert.INSTANCE.convertForSpuDetailRespVO(spu, skus, couponTemplateList));

View File

@ -13,15 +13,13 @@ import java.time.LocalDateTime;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
/**
* @author xia
*/
@Schema(description = "管理后台 - Banner 分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BannerPageReqVO extends PageParam {
// TODO @puhui999example
@Schema(description = "标题")
private String title;

View File

@ -26,8 +26,7 @@ import static cn.iocoder.yudao.framework.common.util.cache.CacheUtils.buildAsync
@Validated
public class AppBannerController {
@Resource
private BannerService bannerService;
// TODO @puhui999这个目前不缓存也没问题因为首页没用到。
/**
* {@link AppBannerRespVO} 缓存,通过它异步刷新 {@link #getBannerList0(Integer)} 所要的首页数据
*/
@ -41,6 +40,9 @@ public class AppBannerController {
});
@Resource
private BannerService bannerService;
@GetMapping("/list")
@Operation(summary = "获得 banner 列表")
@Parameter(name = "position", description = "Banner position", example = "1")

View File

@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.promotion.enums.banner.BannerPositionEnum;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
// TODO @puhui999表名改成 promotion_banner然后有序加下另外sql 给我下哈;还有那个 position 字典,嘿嘿。
/**
* banner DO
*
@ -61,6 +62,4 @@ public class BannerDO extends BaseDO {
*/
private Integer browseCount;
// TODO 芋艿 其他数据相关
}