yml
2185cd152a
Listing模块:完成分字段重构
核心改造:
1. ListingDTO改为使用PriceCent和DepositAmountCent字段
2. toDTO函数使用listing.PriceCent和listing.DepositAmountCent
3. 筛选函数matchPublicQuery转换为元进行比较
4. 排序函数sortPublicListings使用PriceCent比较
5. 价格视图函数sanitizePriceForOwner使用PriceCent
6. toAdminDTO函数使用*Cent字段
技术细节:
- 筛选时将分转为元:price := float64(item.PriceCent) / 100
- 排序直接比较分:a.PriceCent < b.PriceCent
- 价格调整时转换:item.PriceCent = int64(math.Round(sellerPrice * 100))
- 编译验证通过 ✅
2026-06-09 13:59:53 +08:00
..
2026-05-24 17:51:00 +08:00
2026-06-06 17:49:22 +08:00
2026-05-27 01:23:57 +08:00
2026-06-09 00:13:03 +08:00
2026-05-27 05:41:59 +08:00
2026-06-06 17:49:22 +08:00
2026-06-09 13:54:04 +08:00
2026-06-05 20:40:20 +08:00
2026-06-05 07:41:52 +08:00
2026-06-08 06:35:56 +08:00
2026-05-27 06:18:55 +08:00
2026-06-09 13:54:54 +08:00
2026-06-06 13:16:44 +08:00
2026-06-09 13:59:53 +08:00
2026-05-24 17:51:00 +08:00
2026-06-09 13:54:04 +08:00
2026-06-08 23:56:25 +08:00
2026-06-06 13:16:44 +08:00
2026-06-07 20:17:58 +08:00
2026-06-06 13:16:44 +08:00
2026-06-08 06:35:56 +08:00
2026-05-23 09:00:23 +08:00
2026-06-09 13:44:20 +08:00
2026-06-09 13:44:20 +08:00