Files
platforms/apps/user_app/lib/domain/models/primary_models.dart
czl231 3ef33b531d 已完成用户APP首期功能开发
交付用户端首期页面、配套接口、后台资源及测试文档。用户APP构建、静态分析和三个管理后台构建通过;完整测试仍有2项失败,后端模型注释检查未通过,详见交付记录。
2026-09-13 00:57:32 +08:00

38 lines
1.0 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 功能描述:一级页面使用的不可变领域数据,金额统一为整数分。
// 版本1.0.0
/// 已发布内容;正文和版本由内容后台维护。
class PublishedContent {
const PublishedContent({
required this.identity,
required this.title,
required this.body,
required this.type,
required this.version,
this.publishedAt,
});
final String identity, title, body, type;
final int version;
final DateTime? publishedAt;
}
/// 商品公开摘要,只使用公开标识和服务端价格库存。
class ProductSummary {
const ProductSummary({
required this.identity,
required this.name,
required this.price,
required this.stock,
this.category = '',
this.imageUrl = '',
});
final String identity, name, category, imageUrl;
final int price, stock;
}
/// 有效服务归属;配送点为空表示气站直接服务。
class ServiceRelation {
const ServiceRelation({required this.gasName, required this.deliveryName});
final String gasName, deliveryName;
}