51 lines
1.2 KiB
51 lines
1.2 KiB
10 months ago
|
import 'package:huixiang/data/author.dart';
|
||
|
import 'package:huixiang/generated/json/base/json_field.dart';
|
||
|
import 'package:huixiang/generated/json/article.g.dart';
|
||
|
import 'dart:convert';
|
||
|
export 'package:huixiang/generated/json/article.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class Article {
|
||
|
String? id = '';
|
||
|
String? createTime = '';
|
||
|
String? createUser = '';
|
||
|
String? updateTime = '';
|
||
|
String? updateUser = '';
|
||
|
String? storeId = '';
|
||
|
String? categoryId = '';
|
||
|
String? mainTitle = '';
|
||
|
dynamic viceTitle;
|
||
|
String? content = '';
|
||
|
String? coverImg = '';
|
||
|
Author? author;
|
||
|
int? type = 0;
|
||
|
int? likes = 0;
|
||
|
int? viewers = 0;
|
||
|
String? startTime = '';
|
||
|
String? endTime = '';
|
||
|
bool? isHot = false;
|
||
|
int? state = 0;
|
||
|
String? location = '';
|
||
|
String? longitude = '';
|
||
|
String? latitude = '';
|
||
|
String? remark = '';
|
||
|
int? isDelete = 0;
|
||
|
String? tenantCode = '';
|
||
|
dynamic storeName;
|
||
|
bool? liked = false;
|
||
|
bool? followed = false;
|
||
|
dynamic comments;
|
||
|
String? authorName = '';
|
||
|
String? authorHeadImg = '';
|
||
|
|
||
|
Article();
|
||
|
|
||
|
factory Article.fromJson(Map<String, dynamic> json) => $ArticleFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $ArticleToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|