mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
使用 Hive Object
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
|
||||
part 'private_key_info.g.dart';
|
||||
|
||||
///
|
||||
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
|
||||
///
|
||||
@HiveType(typeId: 1)
|
||||
class PrivateKeyInfo {
|
||||
/*
|
||||
{
|
||||
@@ -12,8 +17,11 @@ class PrivateKeyInfo {
|
||||
}
|
||||
*/
|
||||
|
||||
@HiveField(0)
|
||||
late String id;
|
||||
@HiveField(1)
|
||||
late String privateKey;
|
||||
@HiveField(2)
|
||||
late String password;
|
||||
|
||||
PrivateKeyInfo(
|
||||
|
||||
Reference in New Issue
Block a user