feat: 更新钱包规则和用户模型以支持食堂信息

- 在 `ServiceUser` 模型中添加 `canteenId` 字段以支持查询用户食堂信息
- 修改 `ServiceMchRule` 模型,增加 `rulePriceType` 字段并调整 `basePrice` 和 `multiple` 字段类型
- 更新 `CanteenProductController` 中的价格计算逻辑,支持根据食堂ID和规则类型计算额外费用
This commit is contained in:
dzc committed 2025-05-15 12:07:00 +08:00
1 parent cf9f8da767
commit 01e14a4c1d
6 files changed
+71 -19

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ abstract class WalletApi {
);
if (res.data == null) return null;
return res.data
?.map<ServiceMchRule>((e) => ServiceTenant.fromJson(e))
?.map<ServiceMchRule>((e) => ServiceMchRule.fromJson(e))
.toList();
}
}