123ishaTest / 123ishaTest/ludiek

[Coupon] Add time range to Coupons

未关闭 适合新手
#88 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue plugin
主要语言
TypeScript
星标
12
派生
4
PR 合并指标
30 天内没有已合并 PR

描述

Add an optional `before` and `after` to `CouponDefinition`.

When defined, the current date must be before/after the given dates.

贡献指南

这个仓库没有索引到贡献指南

调研方向

在代码库中查找 CouponDefinition 模型或类型定义,很可能在 `models/CouponDefinition.ts` 或类似文件中。添加可选的 `before` 和 `after` 日期字段。然后找到验证或应用优惠券的位置,并添加逻辑以根据这些范围检查当前日期。运行现有的优惠券相关测试以确保更改有效。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
backend
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。