123ishaTest / 123ishaTest/ludiek
[Coupon] Add time range to Coupons
未关闭
适合新手
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