feat: 添加商户规则支持和用户实体扩展
- 在 `UserEntity` 中添加 `canteenId` 字段以支持离线模式 - 新增 `ServiceMchRule` 模型和相关 API 方法用于获取商户规则 - 更新 `CanteenExtraPriceSetting` 模型以包含商户规则列表 - 在 `CanteenProductController` 中添加获取商户规则的逻辑 - 更新数据库表结构以支持 `canteenId` 字段
This commit is contained in:
1 parent
47ad782e9a
commit
cf9f8da767
10 files changed
+104
-4
No files matched your search
@@ -51,4 +51,16 @@ abstract class WalletApi {
|
||||
if (res.data == null) return null;
|
||||
return res.data;
|
||||
}
|
||||
|
||||
/// 获取钱包规则(android离线计算展示使用)
|
||||
static Future<List<ServiceMchRule>?> getMchRoleList(dynamic pa) async {
|
||||
final res = await HttpManage().dio.get(
|
||||
"/wallet/mch-rule-join/ad/list",
|
||||
queryParameters: pa,
|
||||
);
|
||||
if (res.data == null) return null;
|
||||
return res.data
|
||||
?.map<ServiceMchRule>((e) => ServiceTenant.fromJson(e))
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user