feat:预约页面

This commit is contained in:
dzc committed 2025-04-23 12:31:25 +08:00
1 parent 17914f5d10
commit 2d53ed5622
8 files changed
+279 -9

No files matched your search

@@ -1,5 +1,6 @@
import 'package:floor/floor.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:pj_supermarket_cloud/common/index.dart';
part 'broadcast_entity.g.dart';
@@ -46,6 +47,9 @@ class BroadcastEntity {
/// 支付价格
int payPrice;
/// 菜品时间类型
ProductHourType? hourType;
/// 手动开关
bool enable = true;
@@ -25,6 +25,8 @@ BroadcastEntity _$BroadcastEntityFromJson(Map<String, dynamic> json) =>
..isDoneTime = json['isDoneTime'] == null
? null
: DateTime.parse(json['isDoneTime'] as String)
..hourType =
$enumDecodeNullable(_$ProductHourTypeEnumMap, json['hourType'])
..enable = json['enable'] as bool;
Map<String, dynamic> _$BroadcastEntityToJson(BroadcastEntity instance) =>
@@ -42,6 +44,14 @@ Map<String, dynamic> _$BroadcastEntityToJson(BroadcastEntity instance) =>
'userMobile': instance.userMobile,
'productDesc': instance.productDesc,
'payPrice': instance.payPrice,
'hourType': _$ProductHourTypeEnumMap[instance.hourType],
'enable': instance.enable,
'createTime': instance.createTime.toIso8601String(),
};
const _$ProductHourTypeEnumMap = {
ProductHourType.TOTAL: 'TOTAL',
ProductHourType.MORNING: 'MORNING',
ProductHourType.NOON: 'NOON',
ProductHourType.NIGHT: 'NIGHT',
};