fix(contract-signing): 添加 userRealName 字段到 Flutter ContractSigningTask

修复签名参照显示功能:将后端返回的 userRealName 字段添加到
Flutter 客户端的 ContractSigningTask 模型中,用于在签名
面板显示用户姓名供参照。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-26 06:47:08 -08:00
parent 954f170bd4
commit 7add51f5a3
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class ContractSigningTask {
final double totalAmount; final double totalAmount;
final String provinceName; final String provinceName;
final String cityName; final String cityName;
final String? userRealName; //
final DateTime expiresAt; final DateTime expiresAt;
final DateTime? scrolledToBottomAt; final DateTime? scrolledToBottomAt;
final DateTime? acknowledgedAt; final DateTime? acknowledgedAt;
@ -41,6 +42,7 @@ class ContractSigningTask {
required this.totalAmount, required this.totalAmount,
required this.provinceName, required this.provinceName,
required this.cityName, required this.cityName,
this.userRealName,
required this.expiresAt, required this.expiresAt,
this.scrolledToBottomAt, this.scrolledToBottomAt,
this.acknowledgedAt, this.acknowledgedAt,
@ -61,6 +63,7 @@ class ContractSigningTask {
totalAmount: (json['totalAmount'] ?? 0).toDouble(), totalAmount: (json['totalAmount'] ?? 0).toDouble(),
provinceName: json['provinceName'] ?? '', provinceName: json['provinceName'] ?? '',
cityName: json['cityName'] ?? '', cityName: json['cityName'] ?? '',
userRealName: json['userRealName'],
expiresAt: json['expiresAt'] != null expiresAt: json['expiresAt'] != null
? DateTime.parse(json['expiresAt']) ? DateTime.parse(json['expiresAt'])
: DateTime.now().add(const Duration(hours: 24)), : DateTime.now().add(const Duration(hours: 24)),